PivMechanism Class Reference

Inheritance diagram for PivMechanism:

Inheritance graph
[legend]
Collaboration diagram for PivMechanism:

Collaboration graph
[legend]
List of all members.

Detailed Description

A specific subclass of Mechanism to interface with the PIV card. This is essential since the piv requires an opcode to specify which mechanism to execute


Public Member Functions

 PivMechanism (CK_MECHANISM_TYPE type, const char *name, int pivOpCode, Token *thisToken)
virtual ~PivMechanism (void)
const char * getDescription ()
CK_OBJECT_CLASS getClass ()

Protected Member Functions

unsigned char * reverseBytes (unsigned char *in, int end)

Protected Attributes

Token * thisToken


Constructor & Destructor Documentation

PivMechanism::PivMechanism CK_MECHANISM_TYPE  type,
const char *  name,
int  pivOpCode,
Token *  thisToken
 

Parameters:
type the mechanism type as defined by CRYPTOKI -- this is how cryptoki refers to this mech
name just a string that can be used to decribe this object -- this is how humans refer to it
thisToken the token this mechanism is tied to. This mech could add itself to the searchable objects through the token, but currently doesn't

PivMechanism::~PivMechanism void   )  [virtual]
 

Does nothing


Member Function Documentation

const char * PivMechanism::getDescription  )  [virtual]
 

Returns:
A description of this mechanism

Implements CryptoObject.

CK_OBJECT_CLASS PivMechanism::getClass  )  [virtual]
 

Returns:
the cryptoki class type for this object. Will vary by subtype.
See also:
pkcs11t.h

Reimplemented from GenericCryptoObject.

unsigned char * PivMechanism::reverseBytes unsigned char *  in,
int  end
[protected]
 

At one point I thought I might have to reverse the bytes of somethign returned. Maybe it could be it's own stripper like in PivRsaMechanism

Parameters:
in the inputdata
end the buffer


Member Data Documentation

Token* PivMechanism::thisToken [protected]
 

The token this mechanism belongs to


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