PivRsaPkcsMechanism Class Reference

Inheritance diagram for PivRsaPkcsMechanism:

Inheritance graph
[legend]
Collaboration diagram for PivRsaPkcsMechanism:

Collaboration graph
[legend]
List of all members.

Detailed Description

This class represents a mechanism (a crypto operation on the card). Because the operations all require subtle differences in their operation


Public Member Functions

 PivRsaPkcsMechanism (Token *thisToken)
 ~PivRsaPkcsMechanism (void)
PIV_RV sign (Session *sess, CK_BYTE *in, CK_ULONG inLen, CK_BYTE *out, CK_ULONG *outLen)
PIV_RV decrypt (Session *sess, CK_BYTE *in, CK_ULONG inLen, CK_BYTE *out, CK_ULONG *outLen)


Constructor & Destructor Documentation

PivRsaPkcsMechanism::PivRsaPkcsMechanism Token *  thisToken  ) 
 

construct this object and 'add' it to the token for search. Currently it does not get added to the token

Parameters:
thisToken the token to add this object to. Mechanisms ARE objects, but I wasn't sure if they should be part of the search objects for cryptoki

PivRsaPkcsMechanism::~PivRsaPkcsMechanism void   ) 
 

Does nothing


Member Function Documentation

PIV_RV PivRsaPkcsMechanism::sign Session *  sess,
CK_BYTE *  in,
CK_ULONG  inLen,
CK_BYTE *  out,
CK_ULONG *  outLen
[virtual]
 

Fullfills the Mechanism interface.

See also:
Mechanism::sign
Returns:
results from the OP with the PIV card

Implements Mechanism.

PIV_RV PivRsaPkcsMechanism::decrypt Session *  sess,
CK_BYTE *  in,
CK_ULONG  inLen,
CK_BYTE *  out,
CK_ULONG *  outLen
[virtual]
 

Fullfills the Mechanism interface.

See also:
Mechanism::sign
Returns:
results from the OP with the PIV card

Implements Mechanism.


Generated on Fri Jan 12 15:48:45 2007 for NIST_PKCS11 by doxygen 1.3.1 using KingsTools