#include <WinCAPICryptoKeyDSA.hpp>
Inheritance diagram for WinCAPICryptoKeyDSA:


The library uses classes derived from this to process DSA keys.
Public Member Functions | |
Constructors and Destructors | |
| WinCAPICryptoKeyDSA (HCRYPTPROV prov) | |
| Ctor for DSA keys. | |
| virtual | ~WinCAPICryptoKeyDSA () |
| WinCAPICryptoKeyDSA (HCRYPTPROV prov, HCRYPTKEY k) | |
| WinCAPI Specific constructor for public keys. | |
| WinCAPICryptoKeyDSA (HCRYPTPROV prov, DWORD keySpec, bool isPrivate) | |
| WinCAPI Specific constructor for private keys. | |
Required Key Interface methods | |
| virtual XSECCryptoKey::KeyType | getKeyType () |
| Return the type of this key. | |
| virtual const XMLCh * | getProviderName () |
| Return the WiNCAPI string identifier. | |
| virtual XSECCryptoKey * | clone () |
| Replicate key. | |
Required DSA methods | |
| virtual unsigned int | signBase64Signature (unsigned char *hashBuf, unsigned int hashLen, char *base64SignatureBuf, unsigned int base64SignatureBufLen) |
| Create a signature. | |
| virtual bool | verifyBase64Signature (unsigned char *hashBuf, unsigned int hashLen, char *base64Signature, unsigned int sigLen) |
| Verify a signature. | |
Optional Interface methods | |
Have been fully implemented in the WinCAPI interface to allow interop testing to occur. | |
| virtual void | loadPBase64BigNums (const char *b64, unsigned int len) |
| Load P. | |
| virtual void | loadQBase64BigNums (const char *b64, unsigned int len) |
| Load Q. | |
| virtual void | loadGBase64BigNums (const char *b64, unsigned int len) |
| Load G. | |
| virtual void | loadYBase64BigNums (const char *b64, unsigned int len) |
| Load Y. | |
| virtual void | loadJBase64BigNums (const char *b64, unsigned int len) |
| Load J. | |
WinCAPI Specific functions | |
| unsigned int | getPBase64BigNums (char *b64, unsigned int len) |
| Retrieve P. | |
| unsigned int | getQBase64BigNums (char *b64, unsigned int len) |
| Retrieve Q. | |
| unsigned int | getGBase64BigNums (char *b64, unsigned int len) |
| Retrieve G. | |
| unsigned int | getYBase64BigNums (char *b64, unsigned int len) |
| Retrieve Y. | |
|
|
Ctor for DSA keys. This constructor should be used for public keys that are going to be loaded later via P, Q etc.
|
|
|
|
|
||||||||||||
|
WinCAPI Specific constructor for public keys. Create a DSA key for use in XSEC from an existing public HCRYPTKEY
|
|
||||||||||||||||
|
WinCAPI Specific constructor for private keys. Create a DSA key for use in XSEC from a passed in handle to a provider and associated key store
|
|
|
Replicate key.
Implements XSECCryptoKeyDSA. |
|
||||||||||||
|
Retrieve G.
|
|
|
Return the type of this key. Allows the caller (and library) to determine whether this is a public key, private key or a key pair Reimplemented from XSECCryptoKeyDSA. |
|
||||||||||||
|
Retrieve P.
|
|
|
Return the WiNCAPI string identifier.
Implements XSECCryptoKey. |
|
||||||||||||
|
Retrieve Q.
|
|
||||||||||||
|
Retrieve Y.
|
|
||||||||||||
|
Load G.
Implements XSECCryptoKeyDSA. |
|
||||||||||||
|
Load J.
Implements XSECCryptoKeyDSA. |
|
||||||||||||
|
Load P.
Implements XSECCryptoKeyDSA. |
|
||||||||||||
|
Load Q.
Implements XSECCryptoKeyDSA. |
|
||||||||||||
|
Load Y.
Implements XSECCryptoKeyDSA. |
|
||||||||||||||||||||
|
Create a signature. Sign the buffer using the internal private key. Will throw a DSAError if the key is not set, or is not a private key.
Implements XSECCryptoKeyDSA. |
|
||||||||||||||||||||
|
Verify a signature. The library will call this function to validate a signature
Implements XSECCryptoKeyDSA. |
1.4.2