00001 #ifndef _PIV_MECHANISM 00002 #define _PIV_MECHANISM 00003 00004 #include "AbstractMechanism.h" 00005 #include "GenericCryptoObject.h" 00006 00007 class Token; 00008 00013 class PivMechanism : public AbstractMechanism 00014 { 00015 public: 00022 PivMechanism(CK_MECHANISM_TYPE type,const char* name,int pivOpCode,Token* thisToken); 00026 virtual ~PivMechanism(void); 00027 00028 virtual int getAlgorithm(); 00033 const char* getDescription(); 00034 CK_OBJECT_CLASS getClass(); 00035 00036 00037 protected: 00041 Token* thisToken; 00048 unsigned char* reverseBytes(unsigned char* in,int end); 00049 int algoCode; 00050 00051 private: 00052 00053 }; 00054 #endif