|
xrootd
|
#include <XrdCryptosslCipher.hh>


Public Member Functions | |
| XrdCryptosslCipher (const char *t, int l=0) | |
| XrdCryptosslCipher (const char *t, int l, const char *k, int liv, const char *iv) | |
| XrdCryptosslCipher (XrdSutBucket *b) | |
| XrdCryptosslCipher (int len, char *pub, int lpub, const char *t) | |
| XrdCryptosslCipher (const XrdCryptosslCipher &c) | |
| virtual | ~XrdCryptosslCipher () |
| bool | Finalize (char *pub, int lpub, const char *t) |
| void | Cleanup () |
| bool | IsValid () |
| int | EncOutLength (int l) |
| int | DecOutLength (int l) |
| char * | Public (int &lpub) |
| XrdSutBucket * | AsBucket () |
| char * | IV (int &l) const |
| bool | IsDefaultLength () const |
| void | SetIV (int l, const char *iv) |
| int | Encrypt (const char *bin, int lin, char *out) |
| int | Decrypt (const char *bin, int lin, char *out) |
| char * | RefreshIV (int &l) |
Static Public Member Functions | |
| static bool | IsSupported (const char *cip) |
Private Member Functions | |
| void | GenerateIV () |
| int | EncDec (int encdec, const char *bin, int lin, char *out) |
| void | PrintPublic (BIGNUM *pub) |
| int | Publen () |
Private Attributes | |
| char * | fIV |
| int | lIV |
| const EVP_CIPHER * | cipher |
| EVP_CIPHER_CTX | ctx |
| DH * | fDH |
| bool | deflength |
| bool | valid |
| XrdCryptosslCipher::XrdCryptosslCipher | ( | const char * | t, |
| int | l = 0 |
||
| ) |
References valid, fIV, lIV, cipher, fDH, deflength, ctx, XrdSutRndm::GetBuffer(), XrdCryptoBasic::SetBuffer(), XrdCryptoBasic::Length(), XrdCryptoBasic::SetType(), and GenerateIV().
| XrdCryptosslCipher::XrdCryptosslCipher | ( | const char * | t, |
| int | l, | ||
| const char * | k, | ||
| int | liv, | ||
| const char * | iv | ||
| ) |
References valid, fIV, lIV, fDH, cipher, deflength, ctx, XrdCryptoBasic::SetBuffer(), XrdCryptoBasic::SetType(), SetIV(), XrdCryptoBasic::Buffer(), and XrdCryptoBasic::Length().
| XrdCryptosslCipher::XrdCryptosslCipher | ( | XrdSutBucket * | b | ) |
| XrdCryptosslCipher::XrdCryptosslCipher | ( | int | len, |
| char * | pub, | ||
| int | lpub, | ||
| const char * | t | ||
| ) |
References EPNAME, valid, fIV, lIV, fDH, cipher, deflength, DEBUG, kDHMINBITS, ctx, XrdCryptoBasic::SetBuffer(), XrdCryptoBasic::Length(), XrdCryptoBasic::SetType(), and Cleanup().
| XrdCryptosslCipher::XrdCryptosslCipher | ( | const XrdCryptosslCipher & | c | ) |
| XrdSutBucket * XrdCryptosslCipher::AsBucket | ( | ) | [virtual] |
Reimplemented from XrdCryptoCipher.
References valid, XrdCryptoBasic::Length(), XrdCryptoBasic::Type(), lIV, fDH, fIV, XrdCryptoBasic::Buffer(), and kXRS_cipher.
| void XrdCryptosslCipher::Cleanup | ( | ) |
References fDH.
Referenced by XrdCryptosslCipher(), ~XrdCryptosslCipher(), and Finalize().
| int XrdCryptosslCipher::DecOutLength | ( | int | l | ) | [virtual] |
Reimplemented from XrdCryptoCipher.
References ctx.
| int XrdCryptosslCipher::Decrypt | ( | const char * | bin, |
| int | lin, | ||
| char * | out | ||
| ) | [virtual] |
Reimplemented from XrdCryptoCipher.
References EncDec().
| int XrdCryptosslCipher::EncDec | ( | int | encdec, |
| const char * | bin, | ||
| int | lin, | ||
| char * | out | ||
| ) | [private] |
References EPNAME, DEBUG, fIV, deflength, ctx, cipher, XrdCryptoBasic::Buffer(), and XrdCryptoBasic::Length().
| int XrdCryptosslCipher::EncOutLength | ( | int | l | ) | [virtual] |
Reimplemented from XrdCryptoCipher.
References ctx.
| int XrdCryptosslCipher::Encrypt | ( | const char * | bin, |
| int | lin, | ||
| char * | out | ||
| ) | [virtual] |
Reimplemented from XrdCryptoCipher.
References EncDec().
| bool XrdCryptosslCipher::Finalize | ( | char * | pub, |
| int | lpub, | ||
| const char * | t | ||
| ) | [virtual] |
Reimplemented from XrdCryptoCipher.
References EPNAME, fDH, DEBUG, valid, cipher, ctx, XrdCryptoBasic::SetBuffer(), deflength, XrdCryptoBasic::Length(), XrdCryptoBasic::SetType(), and Cleanup().
| void XrdCryptosslCipher::GenerateIV | ( | ) | [private] |
References fIV, lIV, and XrdSutRndm::GetBuffer().
Referenced by XrdCryptosslCipher(), and RefreshIV().
| bool XrdCryptosslCipher::IsDefaultLength | ( | ) | const [inline, virtual] |
Reimplemented from XrdCryptoCipher.
References deflength.
| bool XrdCryptosslCipher::IsSupported | ( | const char * | cip | ) | [static] |
Referenced by XrdCryptosslFactory::SupportedCipher().
| bool XrdCryptosslCipher::IsValid | ( | ) | [inline, virtual] |
Reimplemented from XrdCryptoCipher.
References valid.
| char* XrdCryptosslCipher::IV | ( | int & | l | ) | const [inline, virtual] |
Reimplemented from XrdCryptoCipher.
| void XrdCryptosslCipher::PrintPublic | ( | BIGNUM * | pub | ) | [private] |
References Publen().
| int XrdCryptosslCipher::Publen | ( | ) | [private] |
References fDH.
Referenced by Public(), and PrintPublic().
| char * XrdCryptosslCipher::Public | ( | int & | lpub | ) | [virtual] |
Reimplemented from XrdCryptoCipher.
| char * XrdCryptosslCipher::RefreshIV | ( | int & | l | ) | [virtual] |
Reimplemented from XrdCryptoCipher.
References GenerateIV(), lIV, and fIV.
| void XrdCryptosslCipher::SetIV | ( | int | l, |
| const char * | iv | ||
| ) | [virtual] |
const EVP_CIPHER* XrdCryptosslCipher::cipher [private] |
Referenced by XrdCryptosslCipher(), Finalize(), and EncDec().
EVP_CIPHER_CTX XrdCryptosslCipher::ctx [private] |
Referenced by XrdCryptosslCipher(), ~XrdCryptosslCipher(), Finalize(), EncDec(), EncOutLength(), and DecOutLength().
bool XrdCryptosslCipher::deflength [private] |
Referenced by XrdCryptosslCipher(), Finalize(), EncDec(), and IsDefaultLength().
DH* XrdCryptosslCipher::fDH [private] |
Referenced by XrdCryptosslCipher(), Cleanup(), Finalize(), Publen(), Public(), and AsBucket().
char* XrdCryptosslCipher::fIV [private] |
Referenced by XrdCryptosslCipher(), ~XrdCryptosslCipher(), AsBucket(), SetIV(), RefreshIV(), GenerateIV(), EncDec(), and IV().
int XrdCryptosslCipher::lIV [private] |
Referenced by XrdCryptosslCipher(), AsBucket(), SetIV(), RefreshIV(), GenerateIV(), and IV().
bool XrdCryptosslCipher::valid [private] |
Referenced by XrdCryptosslCipher(), ~XrdCryptosslCipher(), Finalize(), AsBucket(), and IsValid().
1.7.5