C# Class HermaFx.Cryptography.ASN1

Show file Open project: evicertia/HermaFx Class Usage Examples

Public Methods

Method Description
ASN1 ( ) : System
ASN1 ( byte tag ) : System
ASN1 ( byte tag, byte data ) : System
Add ( ASN1 asn1 ) : ASN1
CompareValue ( byte value ) : bool
Element ( int index, byte anTag ) : ASN1
Equals ( byte asn1 ) : bool
GetBytes ( ) : byte[]
SaveToFile ( string filename ) : void
ToString ( ) : string
this ( int index ) : ASN1

Protected Methods

Method Description
Decode ( byte asn1, int &anPos, int anLength ) : void
DecodeTLV ( byte asn1, int &pos, byte &tag, int &length, byte &content ) : void

Private Methods

Method Description
CompareArray ( byte array1, byte array2 ) : bool

Method Details

ASN1() public method

public ASN1 ( ) : System
return System

ASN1() public method

public ASN1 ( byte tag ) : System
tag byte
return System

ASN1() public method

public ASN1 ( byte tag, byte data ) : System
tag byte
data byte
return System

Add() public method

public Add ( ASN1 asn1 ) : ASN1
asn1 ASN1
return ASN1

CompareValue() public method

public CompareValue ( byte value ) : bool
value byte
return bool

Decode() protected method

protected Decode ( byte asn1, int &anPos, int anLength ) : void
asn1 byte
anPos int
anLength int
return void

DecodeTLV() protected method

protected DecodeTLV ( byte asn1, int &pos, byte &tag, int &length, byte &content ) : void
asn1 byte
pos int
tag byte
length int
content byte
return void

Element() public method

public Element ( int index, byte anTag ) : ASN1
index int
anTag byte
return ASN1

Equals() public method

public Equals ( byte asn1 ) : bool
asn1 byte
return bool

GetBytes() public method

public GetBytes ( ) : byte[]
return byte[]

SaveToFile() public method

public SaveToFile ( string filename ) : void
filename string
return void

ToString() public method

public ToString ( ) : string
return string

this() public method

public this ( int index ) : ASN1
index int
return ASN1