C# Class Granados.Poderosa.KeyFormat.BERReader

Reads elements which are encoded by ASN.1 Basic Encoding Rules
Only SEQUENCE and INTEGER are supported.
Mostrar archivo Open project: poderosaproject/poderosa Class Usage Examples

Public Methods

Method Description
BERReader ( Stream s ) : NUnit.Framework

Constructor

ReadBitString ( byte &bits ) : bool

Read bit string.

ReadInteger ( BigInteger &bigint ) : bool

Read integer.

ReadObjectIdentifier ( string &oid ) : bool

Read object-identifier.

ReadOctetString ( byte &str ) : bool

Read octet-string.

ReadSequence ( ) : bool

Read sequnce. (only check the value type)

ReadTag ( TagClass tagClass, bool isConstructed, int tagNumber, int &length ) : bool

Read tag. (only check the value type)

Private Methods

Method Description
ReadBinary ( TagClass tagClass, bool isConstructed, int tagNumber, byte &data ) : bool
ReadLength ( int &length ) : bool
ReadTag ( int &cls, bool &constructed, int &tagnum ) : bool
ReadTagInfo ( BERTagInfo &tagInfo ) : bool

Method Details

BERReader() public method

Constructor
public BERReader ( Stream s ) : NUnit.Framework
s Stream stream to input
return NUnit.Framework

ReadBitString() public method

Read bit string.
public ReadBitString ( byte &bits ) : bool
bits byte byte array will be stored if succeeded.
return bool

ReadInteger() public method

Read integer.
public ReadInteger ( BigInteger &bigint ) : bool
bigint BigInteger BigInteger instance will be stored if succeeded.
return bool

ReadObjectIdentifier() public method

Read object-identifier.
public ReadObjectIdentifier ( string &oid ) : bool
oid string object identifier will be stored if succeeded.
return bool

ReadOctetString() public method

Read octet-string.
public ReadOctetString ( byte &str ) : bool
str byte byte array will be stored if succeeded.
return bool

ReadSequence() public method

Read sequnce. (only check the value type)
public ReadSequence ( ) : bool
return bool

ReadTag() public method

Read tag. (only check the value type)
public ReadTag ( TagClass tagClass, bool isConstructed, int tagNumber, int &length ) : bool
tagClass TagClass expected tag class
isConstructed bool expected value of "constructed" flag
tagNumber int expected tag number
length int length of the value field will be stored
return bool