00001
00002
00003
00004
00005
00006
00007
00008
00009
00010
00011
00012
00013
00014
00015
00016
00017
00018
00019
00020
00021
00022
00023
00024
00025
00026 #ifndef NSSCRYPTOKEYHMAC_INCLUDE
00027 #define NSSCRYPTOKEYHMAC_INCLUDE
00028
00029 #include <xsec/enc/XSECCryptoKeyHMAC.hpp>
00030
00031 #if defined (HAVE_NSS)
00032
00033 #include "nss/pk11func.h"
00034 #include "nss/nss.h"
00035
00046 class DSIG_EXPORT NSSCryptoKeyHMAC : public XSECCryptoKeyHMAC {
00047
00048 public :
00049
00057 NSSCryptoKeyHMAC();
00058
00059 virtual ~NSSCryptoKeyHMAC() {};
00060
00062
00065
00073 virtual XSECCryptoKey::KeyType getKeyType() {return KEY_HMAC;}
00074
00079 virtual XSECCryptoKey * clone();
00080
00085 virtual const XMLCh * getProviderName() {return DSIGConstants::s_unicodeStrPROVNSS;}
00086
00088
00091
00104 virtual void setKey(unsigned char * inBuf, unsigned int inLength);
00105
00116 virtual unsigned int getKey(safeBuffer &outBuf);
00117
00119
00120 private:
00121
00122 safeBuffer m_keyBuf;
00123 unsigned int m_keyLen;
00124
00125 };
00126
00127 #endif
00128 #endif