#include <IPKIFCryptoKeyIDOperations.h>
TSP-enforcing: No
Definition at line 37 of file IPKIFCryptoKeyIDOperations.h.
Public Member Functions | |
IPKIFCryptoKeyIDOperations () | |
virtual void | GetKeyList (CPKIFCredentialList &v, std::bitset< 9 > *ku=NULL)=0 |
virtual void | GetKeyList (CPKIFCredentialList &v, CPKIFKeyUsagePtr &ku)=0 |
virtual void | Sign (const CPKIFCredential &key, unsigned char *pHashData, int nHashDataLen, unsigned char *pSig, int *nSigLen, PKIFCRYPTO::HASH_ALG hashAlg)=0 |
virtual void | Decrypt (const CPKIFCredential &key, unsigned char *pData, int nDataLen, unsigned char *pResult, int *pnResultLen)=0 |
virtual void | Encrypt (const CPKIFCredential &key, unsigned char *pData, int nDataLen, unsigned char *pResult, int *pnResultLen)=0 |
virtual bool | Verify (const CPKIFCredential &key, unsigned char *pHashData, int nHashDataLen, unsigned char *pSig, int nSigLen, PKIFCRYPTO::HASH_ALG hashAlg)=0 |
virtual IPKIFCryptContext * | CryptInit (CPKIFCredentialPtr &key, bool pad=true)=0 |
virtual void | Decrypt (IPKIFCryptContext *cryptContext, unsigned char *pData, int nDataLen, unsigned char *pResult, int *pnResultLen, bool final)=0 |
virtual void | Encrypt (IPKIFCryptContext *cryptContext, unsigned char *pData, int nDataLen, unsigned char *pResult, int *pnResultLen, bool final)=0 |
IPKIFCryptoKeyIDOperations::IPKIFCryptoKeyIDOperations | ( | ) |
Interface: External
Default constructor
Definition at line 19 of file IPKIFCryptoKeyIDOperations.cpp.
virtual void IPKIFCryptoKeyIDOperations::GetKeyList | ( | CPKIFCredentialList & | v, | |
std::bitset< 9 > * | ku = NULL | |||
) | [pure virtual] |
Implemented in CPKIFCryptoMediator2, CPKIFCAPI2, CPKIFCNGCAPI, CPKIFCryptoPP, and CPKIFNSS.
Referenced by AutoDiscoverDecryptionKey(), and CPKIFCredentialSelectorDlg::OnInitDialog().
virtual void IPKIFCryptoKeyIDOperations::GetKeyList | ( | CPKIFCredentialList & | v, | |
CPKIFKeyUsagePtr & | ku | |||
) | [pure virtual] |
Implemented in CPKIFCryptoMediator2, CPKIFCAPI2, CPKIFCNGCAPI, CPKIFCryptoPP, and CPKIFNSS.
virtual void IPKIFCryptoKeyIDOperations::Sign | ( | const CPKIFCredential & | key, | |
unsigned char * | pHashData, | |||
int | nHashDataLen, | |||
unsigned char * | pSig, | |||
int * | nSigLen, | |||
PKIFCRYPTO::HASH_ALG | hashAlg | |||
) | [pure virtual] |
Implemented in CPKIFCryptoMediator2, CPKIFCAPI2, CPKIFCNGCAPI, CPKIFCryptoPP, and CPKIFNSS.
Referenced by CPKIFOCSPRequest::Encode(), GetSignerInfo(), PKIFXSECCryptoKeyDSA::signBase64Signature(), and PKIFXSECCryptoKeyRSA::signSHA1PKCS1Base64Signature().
virtual void IPKIFCryptoKeyIDOperations::Decrypt | ( | const CPKIFCredential & | key, | |
unsigned char * | pData, | |||
int | nDataLen, | |||
unsigned char * | pResult, | |||
int * | pnResultLen | |||
) | [pure virtual] |
Implemented in CPKIFCryptoMediator2, CPKIFCAPI2, CPKIFCNGCAPI, CPKIFCryptoPP, and CPKIFNSS.
Referenced by GetSymmetricKey(), and PKIFXSECCryptoKeyRSA::privateDecrypt().
virtual void IPKIFCryptoKeyIDOperations::Encrypt | ( | const CPKIFCredential & | key, | |
unsigned char * | pData, | |||
int | nDataLen, | |||
unsigned char * | pResult, | |||
int * | pnResultLen | |||
) | [pure virtual] |
Implemented in CPKIFCryptoMediator2, CPKIFCAPI2, CPKIFCNGCAPI, CPKIFCryptoPP, and CPKIFNSS.
virtual bool IPKIFCryptoKeyIDOperations::Verify | ( | const CPKIFCredential & | key, | |
unsigned char * | pHashData, | |||
int | nHashDataLen, | |||
unsigned char * | pSig, | |||
int | nSigLen, | |||
PKIFCRYPTO::HASH_ALG | hashAlg | |||
) | [pure virtual] |
Implemented in CPKIFCryptoMediator2, CPKIFCAPI2, CPKIFCNGCAPI, CPKIFCryptoPP, and CPKIFNSS.
virtual IPKIFCryptContext* IPKIFCryptoKeyIDOperations::CryptInit | ( | CPKIFCredentialPtr & | key, | |
bool | pad = true | |||
) | [pure virtual] |
Implemented in CPKIFCryptoMediator2, CPKIFCAPI2, CPKIFCNGCAPI, CPKIFCryptoPP, and CPKIFNSS.
virtual void IPKIFCryptoKeyIDOperations::Decrypt | ( | IPKIFCryptContext * | cryptContext, | |
unsigned char * | pData, | |||
int | nDataLen, | |||
unsigned char * | pResult, | |||
int * | pnResultLen, | |||
bool | final | |||
) | [pure virtual] |
Implemented in CPKIFCryptoMediator2, CPKIFCAPI2, CPKIFCNGCAPI, CPKIFCryptoPP, and CPKIFNSS.
virtual void IPKIFCryptoKeyIDOperations::Encrypt | ( | IPKIFCryptContext * | cryptContext, | |
unsigned char * | pData, | |||
int | nDataLen, | |||
unsigned char * | pResult, | |||
int * | pnResultLen, | |||
bool | final | |||
) | [pure virtual] |
Implemented in CPKIFCryptoMediator2, CPKIFCAPI2, CPKIFCNGCAPI, CPKIFCryptoPP, and CPKIFNSS.