Signer Struct Reference

#include <cert.h>

Collaboration diagram for Signer:

Collaboration graph

Detailed Description

Data type used for CMS digital signature operations.

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.


Member Function Documentation

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.

Parameters:
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
Returns:
0 success
1 signature operation failed

int make2 ( const str digest,
tokenop t1,
str b 
)

Create a CMS SignerInfo PDU using a signing callback.

Parameters:
digest the message digest to be signed
t1 the signature callback function
b an output buffer for the CMS SignerInfo PDU
Returns:
0 success
2 no callback function specified in t1 6 signature callback failed
Remarks:
Upon return the output buffer contains a SignerInfo PDU as specified in RFC 3852, section 5.3.


The documentation for this struct was generated from the following file:
ISC Cryptographic Development Kit - User's Guide
ISC website
Questions? E-mail ISC technical support
Copyright© 2002-2006 Information Security Corp. All rights reserved.