#include <OpenSSLCryptoBase64.hpp>
Inheritance diagram for OpenSSLCryptoBase64:
The XSEC library will use implementations of this interface for translating bytes to/from base64 encoding.
Uses the EVP decode/encode routines in OpenSSL to perform the work.
Public Member Functions | |
OpenSSLCryptoBase64 () | |
virtual | ~OpenSSLCryptoBase64 () |
Decoding Functions | |
virtual void | decodeInit (void) |
Initialise the base64 object. | |
virtual unsigned int | decode (const unsigned char *inData, unsigned int inLength, unsigned char *outData, unsigned int outLength) |
Decode some passed in data. | |
virtual unsigned int | decodeFinish (unsigned char *outData, unsigned int outLength) |
Finish off a decode. | |
Encoding Functions | |
virtual void | encodeInit (void) |
Initialise the base64 object for encoding. | |
virtual unsigned int | encode (const unsigned char *inData, unsigned int inLength, unsigned char *outData, unsigned int outLength) |
Encode some passed in data. | |
virtual unsigned int | encodeFinish (unsigned char *outData, unsigned int outLength) |
Finish off an encode. | |
Static Public Member Functions | |
Library Specific Functions | |
static BIGNUM * | b642BN (char *b64in, unsigned int len) |
Translate a base64 encoded BN to a bignum. |
|
|
|
|
|
Translate a base64 encoded BN to a bignum. Take a ds:CryptoBinary number and translate to an OpenSSL representation of a "big number" BIGNUM. |
|
Decode some passed in data. Pass the encoded data through the OpenSSL base64 decode function and place the data in the outData buffer.
Implements XSECCryptoBase64. |
|
Finish off a decode. Clean out any extra data in the OpenSSL decode context variable into the outData buffer.
Implements XSECCryptoBase64. |
|
Initialise the base64 object. Initialises the OpenSSL decode context and gets ready for data to be decoded. Implements XSECCryptoBase64. |
|
Encode some passed in data. Pass the data through the OpenSSL Base64 encoder and place the output in the outData buffer. Will keep any "overhang" data in the context buffer ready for the next pass of input data.
Implements XSECCryptoBase64. |
|
Finish off an encode. Take any data left in the context variable, and create the tail of the base64 encoding.
Implements XSECCryptoBase64. |
|
Initialise the base64 object for encoding. Get the context variable ready for a base64 decode Implements XSECCryptoBase64. |