#include <XSECCryptoKeyRSA.hpp>
Inheritance diagram for XSECCryptoKeyRSA:
The library uses classes derived from this to process RSA keys.
Public Methods | |
Constructors and Destructors | |
XSECCryptoKeyRSA () | |
virtual | ~XSECCryptoKeyRSA () |
Key Interface methods | |
virtual XSECCryptoKey::KeyType | getKeyType () |
Return the type of this key. | |
virtual XSECCryptoKey * | clone ()=0 |
Replicate key. | |
Mandatory RSA interface methods | |
These classes are required by the library. | |
virtual bool | verifySHA1PKCS1Base64Signature (const unsigned char *hashBuf, unsigned int hashLen, const char *base64Signature, unsigned int sigLen)=0 |
Verify a SHA1 PKCS1 encoded signature. | |
virtual unsigned int | signSHA1PKCS1Base64Signature (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 | loadPublicModulusBase64BigNums (const char *b64, unsigned int len)=0 |
Load the modulus. | |
virtual void | loadPublicExponentBase64BigNums (const char *b64, unsigned int len)=0 |
Load the exponent. |
|
|
|
|
|
Replicate key.
Implements XSECCryptoKey. Implemented in OpenSSLCryptoKeyRSA. |
|
Return the type of this key. For RSA keys, this allows people to determine whether this is a public key, private key or a key pair Reimplemented from XSECCryptoKey. Reimplemented in OpenSSLCryptoKeyRSA. |
|
Load the exponent. Load the exponent from a Base64 encoded string param b64 A buffer containing the encoded string param len The length of the data in the buffer Implemented in OpenSSLCryptoKeyRSA. |
|
Load the modulus. Load the modulus from a Base64 encoded string param b64 A buffer containing the encoded string param len The length of the data in the buffer Implemented in OpenSSLCryptoKeyRSA. |
|
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 This call needs to do a PKCS1 encode for a SHA-1 signature.
Implemented in OpenSSLCryptoKeyRSA. |
|
Verify a SHA1 PKCS1 encoded signature. The library will call this function to validate an RSA signature The standard by default uses SHA1 in a PKCS1 encoding.
Implemented in OpenSSLCryptoKeyRSA. |