#include <XSECCryptoKeyDSA.hpp>
Inheritance diagram for XSECCryptoKeyDSA:
The library uses classes derived from this to process DSA keys.
Public Member Functions | |
Constructors and Destructors | |
XSECCryptoKeyDSA () | |
virtual | ~XSECCryptoKeyDSA () |
Key Interface methods | |
virtual XSECCryptoKey::KeyType | getKeyType () |
Return the type of this key. | |
virtual XSECCryptoKey * | clone ()=0 |
Replicate key. | |
Mandatory DSA interface methods | |
These classes are required by the library. | |
virtual bool | verifyBase64Signature (unsigned char *hashBuf, unsigned int hashLen, char *base64Signature, unsigned int sigLen)=0 |
Verify a signature. | |
virtual unsigned int | signBase64Signature (unsigned char *hashBuf, unsigned int hashLen, char *base64SignatureBuf, unsigned int base64SignatureBufLen)=0 |
Create a signature. | |
Optional Interface methods | |
These functions do not necessarily have to be implmented. They are used by XSECKeyInfoResolverDefault to try to create a key from KeyInfo elements without knowing anything else.
If an interface class does not implement these functions, a simple stub that does nothing should be used. | |
virtual void | loadPBase64BigNums (const char *b64, unsigned int len)=0 |
Load P. | |
virtual void | loadQBase64BigNums (const char *b64, unsigned int len)=0 |
Load Q. | |
virtual void | loadGBase64BigNums (const char *b64, unsigned int len)=0 |
Load G. | |
virtual void | loadYBase64BigNums (const char *b64, unsigned int len)=0 |
Load Y. | |
virtual void | loadJBase64BigNums (const char *b64, unsigned int len)=0 |
Load J. |
|
|
|
|
|
Replicate key.
Implements XSECCryptoKey. Implemented in OpenSSLCryptoKeyDSA, and WinCAPICryptoKeyDSA. |
|
Return the type of this key. For DSA keys, this allows people to determine whether this is a public key, private key or a key pair Reimplemented from XSECCryptoKey. Reimplemented in OpenSSLCryptoKeyDSA, and WinCAPICryptoKeyDSA. |
|
Load G.
Implemented in OpenSSLCryptoKeyDSA, and WinCAPICryptoKeyDSA. |
|
Load J.
Implemented in OpenSSLCryptoKeyDSA, and WinCAPICryptoKeyDSA. |
|
Load P.
Implemented in OpenSSLCryptoKeyDSA, and WinCAPICryptoKeyDSA. |
|
Load Q.
Implemented in OpenSSLCryptoKeyDSA, and WinCAPICryptoKeyDSA. |
|
Load Y.
Implemented in OpenSSLCryptoKeyDSA, and WinCAPICryptoKeyDSA. |
|
Create a signature. The library will call this function to create a signature from a pre-calculated digest. The output signature is required to be Base64 encoded such that it can be placed directly into the XML document
Implemented in OpenSSLCryptoKeyDSA, and WinCAPICryptoKeyDSA. |
|
Verify a signature. The library will call this function to validate a signature
Implemented in OpenSSLCryptoKeyDSA, and WinCAPICryptoKeyDSA. |