#include <cert.h>
Collaboration diagram for Signer:

Sample code illustrating the use of this class to create signed CMS PDUs appears in the Cookbook section IETF Cryptographic Message Syntax (CMS).
Public Member Functions | |
| void | clear () |
| Clear this object. | |
| int | load (const str &b) |
| Load this object with signer information. | |
| int | make (const str &digest, const str &cert, const Key &k, const num &rand, str &b) |
| Create a CMS SignerInfo PDU using a specified key. | |
| int | make2 (const str &digest, tokenop &t1, str &b) |
| Create a CMS SignerInfo PDU using a signing callback. | |
Create a CMS SignerInfo PDU using a specified key.
| digest | the message digest to be signed | |
| cert | the signer's certificate | |
| k | the signer's key (SHA-1 hashing and PKCS#1 padding must already be specified) | |
| rand | an pseudorandom seed required for non-deterministic signatures | |
| b | an output buffer for the CMS SignerInfo PDU |
Create a CMS SignerInfo PDU using a signing callback.
| digest | the message digest to be signed | |
| t1 | the signature callback function | |
| b | an output buffer for the CMS SignerInfo PDU |
| ISC Cryptographic Development Kit - User's Guide | |
| Questions? E-mail ISC technical support | |
| Copyright© 2002-2006 Information Security Corp. All rights reserved. |