#include <pk.h>
Collaboration diagram for Signature:

Public Member Functions | |
Destructor | |
| virtual | ~Signature () |
| Destructor. | |
Object Reuse and Initialization | |
| void | clear () |
| Clear this object. | |
| int | init (const Key &k) |
| Initialize this object based on a specified key. | |
| int | load (const str &x, int isRaw=0) |
| Load a raw binary or ASN.1 DER-encoded signature into this object. | |
Predicates | |
| bool | isRSA () const |
| Predicate used to test whether this object contains an RSA signature. | |
Conversions | |
| template<class T> | |
| T | to () const |
| Convert this object into an object of type T. | |
| str | toraw () const |
| Convert this object into a str containing a raw signature. | |
| asn | toasn1 () const |
| Convert this object into a ASN.1 DER-encoded str object. | |
| void clear | ( | void | ) | [inline] |
Clear this object.
| int init | ( | const Key & | k | ) |
Initialize this object based on a specified key.
| k | a key whose parameters are inspected and used to initialize this object. |
| bool isRSA | ( | ) | const [inline] |
| int load | ( | const str & | x, | |
| int | isRaw = 0 | |||
| ) |
Load a raw binary or ASN.1 DER-encoded signature into this object.
| x | ASN.1 DER-encoded signature or binary raw signature | |
| isRaw | 0 if x is ASN.1 encoded 1 if you know x is RAW (function will try RAW anyway, if ASN.1 decoding fails) |
| T to | ( | ) | const |
Convert this object into an object of type T.
| asn toasn1 | ( | ) | const |
Convert this object into a ASN.1 DER-encoded str object.
| str toraw | ( | ) | const |
Convert this object into a str containing a raw signature.
| ISC Cryptographic Development Kit - User's Guide | |
| Questions? E-mail ISC technical support | |
| Copyright© 2002-2006 Information Security Corp. All rights reserved. |