#include <WinCAPICryptoProvider.hpp>
Inheritance diagram for WinCAPICryptoProvider:
Public Methods | |
WinCAPICryptoProvider (HCRYPTPROV provDSS, HCRYPTPROV provRSA) | |
Create a Windows CAPI interface layer. More... | |
WinCAPICryptoProvider () | |
Create a Windows CAPI interface layer. More... | |
virtual | ~WinCAPICryptoProvider () |
virtual XSECCryptoHash * | hashSHA1 () |
Return a SHA1 implementation. More... | |
virtual XSECCryptoHash * | hashHMACSHA1 () |
Return a HMAC SHA1 implementation. More... | |
virtual XSECCryptoHash * | hashMD5 () |
Return a MD5 implementation. More... | |
virtual XSECCryptoHash * | hashHMACMD5 () |
Return a HMAC MD5 implementation. More... | |
virtual XSECCryptoBase64 * | base64 () |
Return a Base64 encoder/decoder implementation. More... | |
virtual XSECCryptoKeyDSA * | keyDSA () |
Return a DSA key implementation object. More... | |
virtual XSECCryptoKeyRSA * | keyRSA () |
Return an RSA key implementation object. More... | |
virtual XSECCryptoX509 * | X509 () |
Return an X509 implementation object. More... | |
HCRYPTPROV | getProviderDSS (void) |
HCRYPTPROV | getProviderRSA (void) |
Static Public Methods | |
BYTE * | b642WinBN (const char *b64, unsigned int b64Len, unsigned int &retLen) |
Translate B64 I2OS integer to a WinCAPI int. More... | |
unsigned char * | WinBN2b64 (BYTE *n, DWORD nLen, unsigned int &retLen) |
Translate a WinCAPI int to a B64 I2OS integer . More... |
|
Create a Windows CAPI interface layer.
Windows CSPs work under a provider model. The user should specify which CSP to use and which key container to use.
|
|
Create a Windows CAPI interface layer.
The default constructor will use the default providers and containers
|
|
|
|
Translate B64 I2OS integer to a WinCAPI int.
Decodes a Base64 integer and reverses the order to allow loading into a Windows CAPI function. (CAPI uses Little Endian storage of integers).
|
|
Return a Base64 encoder/decoder implementation.
Call used by the library to obtain a Base64 encoder/decoder.
Implements XSECCryptoProvider. |
|
|
|
|
|
Return a HMAC MD5 implementation.
Call used by the library to obtain a HMAC MD5 object from the provider. The caller will need to set the key in the hash object with an XSECCryptoKeyHMAC using XSECCryptoHash::setKey()
Implements XSECCryptoProvider. |
|
Return a HMAC SHA1 implementation.
Call used by the library to obtain a HMAC SHA1 object from the provider. The caller will need to set the key in the hash object with an XSECCryptoKeyHMAC using XSECCryptoHash::setKey()
Implements XSECCryptoProvider. |
|
Return a MD5 implementation.
Call used by the library to obtain a MD5 object from the provider.
Implements XSECCryptoProvider. |
|
Return a SHA1 implementation.
Call used by the library to obtain a SHA1 object from the provider.
Implements XSECCryptoProvider. |
|
Return a DSA key implementation object.
Call used by the library to obtain a DSA key object.
Implements XSECCryptoProvider. |
|
Return an RSA key implementation object.
Call used by the library to obtain an RSA key object.
Implements XSECCryptoProvider. |
|
Translate a WinCAPI int to a B64 I2OS integer .
Encodes a Windows integer in I2OSP base64 encoded format.
|
|
Return an X509 implementation object.
Call used by the library to obtain an object that can work with X509 certificates.
Implements XSECCryptoProvider. |