Mechanism Class Reference

Inheritance diagram for Mechanism:

Inheritance graph
[legend]
List of all members.

Detailed Description

This class represents a Mechanism or a functional portion of the card, such as encryption or key generation.


Public Member Functions

virtual ~Mechanism ()
virtual CK_ULONG sign (Session *sess, CK_BYTE *in, CK_ULONG inLen, CK_BYTE *out, CK_ULONG *outLen)=0
virtual CK_ULONG decrypt (Session *sess, CK_BYTE *in, CK_ULONG inLen, CK_BYTE *out, CK_ULONG *outLen)=0


Constructor & Destructor Documentation

virtual Mechanism::~Mechanism  )  [inline, virtual]
 

It does nothing


Member Function Documentation

virtual CK_ULONG Mechanism::sign Session *  sess,
CK_BYTE *  in,
CK_ULONG  inLen,
CK_BYTE *  out,
CK_ULONG *  outLen
[pure virtual]
 

Signs data represented by 'in'

Parameters:
sess and active session with which to talk to the card
in the input data to sign
inLen the length of the input data to sign
out the buffer that will receive the signed data
outLen an in/out pointer. IN: tells us how much the outBuffer can accept. OUT: how much was actually put into the buffer
Returns:
a success code -- see pkcs11t.h
See also:
pkcs11t.h

Implemented in PivRsaPkcsMechanism.

virtual CK_ULONG Mechanism::decrypt Session *  sess,
CK_BYTE *  in,
CK_ULONG  inLen,
CK_BYTE *  out,
CK_ULONG *  outLen
[pure virtual]
 

Decrypts data represented by 'in'

Parameters:
sess and active session with which to talk to the card
in the input data to sign
inLen the length of the input data to sign
out the buffer that will receive the signed data
outLen an in/out pointer. IN: tells us how much the outBuffer can accept. OUT: how much was actually put into the buffer
Returns:
a success code -- see pkcs11t.h
See also:
pkcs11t.h

Implemented in PivRsaPkcsMechanism.


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