#include <IPKIFCryptoRawOperations.h>
TSP-enforcing: No
Definition at line 27 of file IPKIFCryptoRawOperations.h.
Public Member Functions | |
IPKIFCryptoRawOperations () | |
virtual void | Sign (const CPKIFKeyMaterial &key, unsigned char *pHashData, int nHashDataLen, unsigned char *pSig, int *pnSigLen, PKIFCRYPTO::HASH_ALG hashAlg)=0 |
virtual void | Encrypt (const CPKIFKeyMaterial &key, unsigned char *pData, int nDataLen, unsigned char *pResult, int *pnResultLen, bool pad=true)=0 |
virtual void | Decrypt (const CPKIFKeyMaterial &key, unsigned char *pData, int nDataLen, unsigned char *pResult, int *pnResultLen, bool pad=true)=0 |
virtual bool | Verify (const CPKIFKeyMaterial &key, unsigned char *pHashData, int nHashDataLen, unsigned char *pSig, int nSigLen, PKIFCRYPTO::HASH_ALG hashAlg)=0 |
virtual IPKIFRawCryptContext * | CryptInit (const CPKIFKeyMaterial &key, bool pad=true)=0 |
virtual IPKIFRawCryptContext * | CryptInit (const CPKIFKeyMaterial *key, bool pad=true) |
virtual void | Decrypt (IPKIFRawCryptContext *cryptContext, unsigned char *pData, int nDataLen, unsigned char *pResult, int *pnResultLen, bool final)=0 |
virtual void | Encrypt (IPKIFRawCryptContext *cryptContext, unsigned char *pData, int nDataLen, unsigned char *pResult, int *pnResultLen, bool final)=0 |
virtual IPKIFRawCryptContext * | HMACInit (const CPKIFKeyMaterial &key, PKIFCRYPTO::HASH_ALG ha)=0 |
virtual void | HMACUpdate (IPKIFRawCryptContext *ctx, unsigned char *pData, int nDataLen)=0 |
virtual void | HMACFinal (IPKIFRawCryptContext *ctx, unsigned char *pResult, int *pnResultLen)=0 |
virtual bool | VerifyCertificate (const CPKIFCertificate &issCert, const CPKIFCertificate &subCert)=0 |
IPKIFCryptoRawOperations::IPKIFCryptoRawOperations | ( | ) |
Interface: External
Default constructor
Definition at line 17 of file IPKIFCryptoRawOperations.cpp.
virtual void IPKIFCryptoRawOperations::Sign | ( | const CPKIFKeyMaterial & | key, | |
unsigned char * | pHashData, | |||
int | nHashDataLen, | |||
unsigned char * | pSig, | |||
int * | pnSigLen, | |||
PKIFCRYPTO::HASH_ALG | hashAlg | |||
) | [pure virtual] |
Implemented in CPKIFCryptoMediator2, CPKIFCAPIRaw, CPKIFCNGCAPIRaw, CPKIFCryptoPPRaw, CPKIFNSSAesKeyWrap, and CPKIFNSSRaw.
virtual void IPKIFCryptoRawOperations::Encrypt | ( | const CPKIFKeyMaterial & | key, | |
unsigned char * | pData, | |||
int | nDataLen, | |||
unsigned char * | pResult, | |||
int * | pnResultLen, | |||
bool | pad = true | |||
) | [pure virtual] |
Implemented in CPKIFCryptoMediator2, CPKIFCAPIRaw, CPKIFCNGCAPIRaw, CPKIFCryptoPPRaw, CPKIFNSSAesKeyWrap, and CPKIFNSSRaw.
Referenced by PKIFXSECCryptoKeyRSA::publicEncrypt(), and WrapSymmKey().
virtual void IPKIFCryptoRawOperations::Decrypt | ( | const CPKIFKeyMaterial & | key, | |
unsigned char * | pData, | |||
int | nDataLen, | |||
unsigned char * | pResult, | |||
int * | pnResultLen, | |||
bool | pad = true | |||
) | [pure virtual] |
Implemented in CPKIFCryptoMediator2, CPKIFCAPIRaw, CPKIFCNGCAPIRaw, CPKIFCryptoPPRaw, CPKIFNSSAesKeyWrap, and CPKIFNSSRaw.
Referenced by CPKIFEnvelopedData::Decrypt(), CPKIFEncryptedData::Decrypt(), GetSymmetricKey(), and UnwrapSymmKey().
virtual bool IPKIFCryptoRawOperations::Verify | ( | const CPKIFKeyMaterial & | key, | |
unsigned char * | pHashData, | |||
int | nHashDataLen, | |||
unsigned char * | pSig, | |||
int | nSigLen, | |||
PKIFCRYPTO::HASH_ALG | hashAlg | |||
) | [pure virtual] |
virtual IPKIFRawCryptContext* IPKIFCryptoRawOperations::CryptInit | ( | const CPKIFKeyMaterial & | key, | |
bool | pad = true | |||
) | [pure virtual] |
Implemented in CPKIFCryptoMediator2, CPKIFCAPIRaw, CPKIFCNGCAPIRaw, CPKIFCryptoPPRaw, CPKIFNSSAesKeyWrap, and CPKIFNSSRaw.
Referenced by CryptInit().
IPKIFRawCryptContext * IPKIFCryptoRawOperations::CryptInit | ( | const CPKIFKeyMaterial * | key, | |
bool | pad = true | |||
) | [virtual] |
Interface: External
This function is used to prepare a crypt context object with presented key material. The crypt context object may then be passed to operations that perform cryptographic operations using the key material. This function is typically used to prepare for operations on large amounts of data. This variant of the function expects a pointer to, rather than a reference to the key material. In the base class, it just dereferences the pointer and calls the other version. Implementations that need the key material object around after the CryptInit() function may store a pointer to key material in the context and require that this overload be used.
Definition at line 36 of file IPKIFCryptoRawOperations.cpp.
References CryptInit().
virtual void IPKIFCryptoRawOperations::Decrypt | ( | IPKIFRawCryptContext * | cryptContext, | |
unsigned char * | pData, | |||
int | nDataLen, | |||
unsigned char * | pResult, | |||
int * | pnResultLen, | |||
bool | final | |||
) | [pure virtual] |
Implemented in CPKIFCryptoMediator2, CPKIFCAPIRaw, CPKIFCNGCAPIRaw, CPKIFCryptoPPRaw, CPKIFNSSAesKeyWrap, and CPKIFNSSRaw.
virtual void IPKIFCryptoRawOperations::Encrypt | ( | IPKIFRawCryptContext * | cryptContext, | |
unsigned char * | pData, | |||
int | nDataLen, | |||
unsigned char * | pResult, | |||
int * | pnResultLen, | |||
bool | final | |||
) | [pure virtual] |
Implemented in CPKIFCryptoMediator2, CPKIFCAPIRaw, CPKIFCNGCAPIRaw, CPKIFCryptoPPRaw, CPKIFNSSAesKeyWrap, and CPKIFNSSRaw.
virtual IPKIFRawCryptContext* IPKIFCryptoRawOperations::HMACInit | ( | const CPKIFKeyMaterial & | key, | |
PKIFCRYPTO::HASH_ALG | ha | |||
) | [pure virtual] |
Implemented in CPKIFCryptoMediator2, CPKIFCAPIRaw, CPKIFCNGCAPIRaw, CPKIFCryptoPPRaw, CPKIFNSSAesKeyWrap, and CPKIFNSSRaw.
virtual void IPKIFCryptoRawOperations::HMACUpdate | ( | IPKIFRawCryptContext * | ctx, | |
unsigned char * | pData, | |||
int | nDataLen | |||
) | [pure virtual] |
Implemented in CPKIFCryptoMediator2, CPKIFCAPIRaw, CPKIFCNGCAPIRaw, CPKIFCryptoPPRaw, CPKIFNSSAesKeyWrap, and CPKIFNSSRaw.
virtual void IPKIFCryptoRawOperations::HMACFinal | ( | IPKIFRawCryptContext * | ctx, | |
unsigned char * | pResult, | |||
int * | pnResultLen | |||
) | [pure virtual] |
Implemented in CPKIFCryptoMediator2, CPKIFCAPIRaw, CPKIFCNGCAPIRaw, CPKIFCryptoPPRaw, CPKIFNSSAesKeyWrap, and CPKIFNSSRaw.
virtual bool IPKIFCryptoRawOperations::VerifyCertificate | ( | const CPKIFCertificate & | issCert, | |
const CPKIFCertificate & | subCert | |||
) | [pure virtual] |
Implemented in CPKIFCryptoMediator2, CPKIFCAPIRaw, CPKIFCNGCAPIRaw, CPKIFCryptoPPRaw, CPKIFNSSAesKeyWrap, and CPKIFNSSRaw.
Referenced by CertPathWantBackToResultsAndStores(), CertPathWantBackToResultsAndStoresForDpd(), CheckKIDsAndSignatures(), GetTrustRootFromValPol(), CPKIFCertificate::IsSelfSigned(), and CPKIFDefaultScoring::ScoreAndSortNodes().