Seed7 - The extensible programming language
Seed7 FAQ Manual Screenshots Examples Libraries Algorithms Download Links
Libraries AES ARC4 Array ASN.1 Bigfile Bigint Bigrat Bin32 Bin64 Bitdata Bitmapfont Bitset Bitsetof Boolean Browser Bstring Bytedata Cards Category CC config Cgi Cgi dialog Char Charsets Cipher Clib_file Color CLI Commands Complex Console Crc32 Deflate DES Dialog Dir Draw Duration Echo Editline Enable_input Enable_io Enable_output Encoding Environment External_file File File system Float Font Forloop Ftp Getf Gethttp Gethttps Graph Graph_file Gzip Hash Hashsetof Hmac Html_ent Httpserv Idxarray Image Inflate Inflate file Inifile Integer Keybd Line Listener LZW Make Math Msgdigest Null_file Osfiles Picture utility Pixmap_file Pixmapfont PKCS #1 Poll Process Progs Propertyfile Rational Reference Ref_list Scanfile Scanstri Set Shell Smtp Sockbase Socket SQL base Stdio Strifile String Stritext Subrange Tar Text Time TLS/SSL Triple DES Unicode Utf16 Utf8 Vectorfont 3D Vector Wildcard Window Wrinum X.509 Xmldom Xml_ent Zip
Libraries
ASN.1 Source Code
 previous   up   next 

Function Summary
asn1DataElement
getAsn1DataElement (in string: stri, inout integer: pos)
Read the header of an ASN.1/BER data element, from stri.
string
getData (in string: stri, inout integer: pos, in asn1DataElement: dataElement)
Read the data of a given ASN.1/BER dataElement, from stri.
void
skipData (inout integer: pos, in asn1DataElement: dataElement)
Skip the data of a given ASN.1/BER dataElement, from stri.
string
genAsn1Element (in asn1TagType: tagCategory, in string: data)
Create an ASN.1/BER data element from tagCategory and data.
string
genAsn1Integer (in string: data)
Create an integer ASN.1/BER data element from data.
string
genAsn1Sequence (in string: data)
Create a sequence ASN.1/BER data element from data.
string
genAsn1Set (in string: data)
Create a set ASN.1/BER data element from data.
string
genAsn1Tag (in integer: tagNumber, in string: data)
Create an explicit ASN.1/BER tag with tagNumber from data.

Function Detail

getAsn1DataElement

const func asn1DataElement: getAsn1DataElement (in string: stri, inout integer: pos)

Read the header of an ASN.1/BER data element, from stri. It is assumed that the data element header starts at position pos. The function advances pos beyond the header to the actual data. The actual data can be read afterwards, with the function getData.

Returns:
the header of an ASN.1/BER data element.

getData

const func string: getData (in string: stri, inout integer: pos, in asn1DataElement: dataElement)

Read the data of a given ASN.1/BER dataElement, from stri. It is assumed that the actual data starts at position pos. The function advances pos beyond the dataElement data.

Returns:
the data of the ASN.1/BER dataElement.

skipData

const proc: skipData (inout integer: pos, in asn1DataElement: dataElement)

Skip the data of a given ASN.1/BER dataElement, from stri. It is assumed that the actual data starts at position pos. The function advances pos beyond the dataElement data.


genAsn1Element

const func string: genAsn1Element (in asn1TagType: tagCategory, in string: data)

Create an ASN.1/BER data element from tagCategory and data.

Returns:
the ASN.1/BER data element as string.

genAsn1Integer

const func string: genAsn1Integer (in string: data)

Create an integer ASN.1/BER data element from data.

Returns:
the integer ASN.1/BER data element as string.

genAsn1Sequence

const func string: genAsn1Sequence (in string: data)

Create a sequence ASN.1/BER data element from data.

Returns:
the sequence ASN.1/BER data element as string.

genAsn1Set

const func string: genAsn1Set (in string: data)

Create a set ASN.1/BER data element from data.

Returns:
the set ASN.1/BER data element as string.

genAsn1Tag

const func string: genAsn1Tag (in integer: tagNumber, in string: data)

Create an explicit ASN.1/BER tag with tagNumber from data.

Returns:
the explicit ASN.1/BER tag as string.


 previous   up   next