#include <XrdCryptoLite_BFecb.hh>
Public Member Functions | |
| XrdCryptoLite_BFecb (bool &aOK, const unsigned char *key=0, unsigned int keylen=0) | |
| ~XrdCryptoLite_BFecb () | |
| void | Decrypt (const unsigned char *in8, unsigned char *out8) |
| void | Encrypt (const unsigned char *in8, unsigned char *out8) |
Static Public Member Functions | |
| static XrdCryptoLite_BFecb * | Instance (const unsigned char *key=0, unsigned int klen=0) |
Definition at line 46 of file XrdCryptoLite_BFecb.hh.
| XrdCryptoLite_BFecb::XrdCryptoLite_BFecb | ( | bool & | aOK, |
| const unsigned char * | key = 0, | ||
| unsigned int | keylen = 0 ) |
Construct an ECB encryption/decryption object.
| aOK | Upon return must be true if all went well. It will be false otherwise and this object will not be safely usable. |
| key | Pointer to the encryption key which should be 128 bits. When null, a random 128 bit key is generated for use. |
| keylen | The length of the key in bytes if key is specified. |
Definition at line 42 of file XrdCryptoLite_BFecb.cc.
References XrdOucUtils::Random().
Referenced by Instance().
| XrdCryptoLite_BFecb::~XrdCryptoLite_BFecb | ( | ) |
Definition at line 102 of file XrdCryptoLite_BFecb.cc.
| void XrdCryptoLite_BFecb::Decrypt | ( | const unsigned char * | in8, |
| unsigned char * | out8 ) |
Decrypt exactly one blowfish block of 8 bytes (64 bits)
| in8 | Pointer to exactly 8 bytes of data to be decrypted. |
| out8 | Pointer to a 8 bytes or more buffer to hold the result. |
Definition at line 112 of file XrdCryptoLite_BFecb.cc.
| void XrdCryptoLite_BFecb::Encrypt | ( | const unsigned char * | in8, |
| unsigned char * | out8 ) |
Encrypt exactly one blowfish block of 8 bytes (64 bits)
| in8 | Pointer to exactly 8 bytes of data to be encrypted. |
| out8 | Pointer to a 8 bytes or more buffer to hold the result. |
Definition at line 130 of file XrdCryptoLite_BFecb.cc.
|
static |
Return an instance of an ECB encryption/decryption object upon success.
| key | Pointer to the encryption key which should be 128 bits. When null, a random 128 bit key is generated for use. |
| keylen | The length of the key in bytes if key is specified. |
Definition at line 150 of file XrdCryptoLite_BFecb.cc.
References XrdCryptoLite_BFecb().