#include <asn.h>
Inheritance diagram for asn:


Public Member Functions | |
Constructors | |
| asn () | |
| Constructor for an empty object. | |
| asn (const asn &x) | |
| Copy constructor. | |
| asn (const str &x) | |
| Constructor based on a cdk::str object. | |
| asn (tags tag, const str &x, double extra) | |
| Constructor based on tag and body (allowing additional space for additions). | |
Assignment and Concatenation Operators | |
| asn | operator= (const str &x) |
| Assign a string to this object. | |
| asn | operator= (const asn &x) |
| Assign another asn object to this one. | |
| asn | operator+= (const str &x) |
| Concatenate a str object onto this one. | |
Predicates | |
| bool | isParseable () const |
| Predicate used to detect if object can be parsed as a sequence of ANS.1 records. | |
Inspectors | |
| int | parseoid (int &alg, int &hashtype) const |
| Parse this object for an algorithm ID and hash function type. | |
Conversions | |
| asn | tobin () const |
| Decode object, converting base-64 encoded data to binary if necessary. | |
| str | getText () const |
| Decode object, converting text from Unicode to UTF8 if necessary. | |
| str | dump (int level) const |
| Convert object to a printable string for display purposes. | |
Static Public Member Functions | |
| static asn | name (int code, const str &name) |
| Encode a name as a UTF8String. | |
| static asn | email (const str &address) |
| Encode an e-mail address as an IA5String. | |
| static asn | date (TimeT t1) |
| Encode a UNIX date (chosing between UTCTime or GeneralizedTime to match input). | |
| static asn | integer (int x) |
| Encode a small integer. | |
| static asn | integer (const num &x) |
| Encode a num as an INTEGER. | |
| static asn | Int_ (int &x, tags t=Int) |
| Encode a small integer or boolean value. | |
| static asn | Date_ (TimeT &x) |
| Encode a date. | |
Encode a UNIX date (chosing between UTCTime or GeneralizedTime to match input).
| t1 | the UNIX date to be encoded |
Encode a date.
| x | the value to be encoded |
| str dump | ( | int | level | ) | const |
Convert object to a printable string for display purposes.
| level | the number of levels to recurse into the ASN.1 record |
Encode an e-mail address as an IA5String.
| address | the address to be encoded |
| str getText | ( | ) | const |
Decode object, converting text from Unicode to UTF8 if necessary.
Encode a small integer or boolean value.
| x | the value to be encoded | |
| t | the desired tag (defaults to INTEGER) |
Encode a num as an INTEGER.
| x | the value to be encoded |
| static asn integer | ( | int | x | ) | [static] |
Encode a small integer.
| x | the value to be encoded |
Encode a name as a UTF8String.
| code | the name to be encoded | |
| name | the name to be encoded |
Concatenate a str object onto this one.
| x | the asn tring to be copied |
Reimplemented from str.
Assign another asn object to this one.
| x | the asn tring to be copied |
Assign a string to this object.
| x | the string to be copied into this object |
Reimplemented from str.
| int parseoid | ( | int & | alg, | |
| int & | hashtype | |||
| ) | const |
Parse this object for an algorithm ID and hash function type.
| alg | output parameter to receive algorithm ID | |
| hashtype | output parameter to receive hash function ID |
| asn tobin | ( | ) | const |
Decode object, converting base-64 encoded data to binary if necessary.
| ISC Cryptographic Development Kit - User's Guide | |
| Questions? E-mail ISC technical support | |
| Copyright© 2002-2006 Information Security Corp. All rights reserved. |