![]() |
XRootD
|
#include <XrdCryptosslCipher.hh>
Public Member Functions | |
XrdCryptosslCipher (bool padded, int len, char *pub, int lpub, const char *t) | |
XrdCryptosslCipher (const char *t, int l, const char *k, int liv, const char *iv) | |
XrdCryptosslCipher (const char *t, int l=0) | |
XrdCryptosslCipher (const XrdCryptosslCipher &c) | |
XrdCryptosslCipher (XrdSutBucket *b) | |
virtual | ~XrdCryptosslCipher () |
XrdSutBucket * | AsBucket () |
void | Cleanup () |
int | DecOutLength (int l) |
int | Decrypt (const char *bin, int lin, char *out) |
int | EncOutLength (int l) |
int | Encrypt (const char *bin, int lin, char *out) |
bool | Finalize (bool padded, char *pub, int lpub, const char *t) |
bool | IsDefaultLength () const |
bool | IsValid () |
char * | IV (int &l) const |
int | MaxIVLength () const |
char * | Public (int &lpub) |
char * | RefreshIV (int &l) |
void | SetIV (int l, const char *iv) |
![]() | |
XrdCryptoCipher () | |
virtual | ~XrdCryptoCipher () |
int | Decrypt (XrdSutBucket &buck, bool useiv=true) |
int | Encrypt (XrdSutBucket &buck, bool useiv=true) |
bool | Finalize (char *pub, int lpub, const char *t) |
![]() | |
XrdCryptoBasic (const char *t=0, int l=0, const char *b=0) | |
virtual | ~XrdCryptoBasic () |
char * | AsHexString () |
virtual char * | Buffer () const |
virtual int | FromHex (const char *hex) |
virtual int | Length () const |
virtual int | SetBuffer (int l, const char *b) |
virtual int | SetLength (int l) |
virtual int | SetType (const char *t) |
virtual char * | Type () const |
virtual void | UseBuffer (int l, const char *b) |
Static Public Member Functions | |
static bool | IsSupported (const char *cip) |
Definition at line 54 of file XrdCryptosslCipher.hh.
XrdCryptosslCipher::XrdCryptosslCipher | ( | const char * | t, |
int | l = 0 |
||
) |
Definition at line 223 of file XrdCryptosslCipher.cc.
References XrdSutRndm::GetBuffer(), XrdCryptoBasic::Length(), XrdCryptoBasic::SetBuffer(), and XrdCryptoBasic::SetType().
XrdCryptosslCipher::XrdCryptosslCipher | ( | const char * | t, |
int | l, | ||
const char * | k, | ||
int | liv, | ||
const char * | iv | ||
) |
Definition at line 287 of file XrdCryptosslCipher.cc.
References XrdCryptoBasic::Buffer(), XrdCryptoBasic::Length(), XrdCryptoBasic::SetBuffer(), SetIV(), and XrdCryptoBasic::SetType().
XrdCryptosslCipher::XrdCryptosslCipher | ( | XrdSutBucket * | b | ) |
Definition at line 342 of file XrdCryptosslCipher.cc.
References XrdCryptoBasic::Buffer(), XrdSutBucket::buffer, Cleanup(), DH_set0_key(), DH_set0_pqg(), XrdCryptoBasic::Length(), SetIV(), XrdCryptoBasic::SetType(), XrdSutBucket::size, XrdCryptoBasic::UseBuffer(), and XrdCheckDH().
XrdCryptosslCipher::XrdCryptosslCipher | ( | bool | padded, |
int | len, | ||
char * | pub, | ||
int | lpub, | ||
const char * | t | ||
) |
Definition at line 531 of file XrdCryptosslCipher.cc.
References Cleanup(), DEBUG, DH_set0_key(), EPNAME, getFixedDHParams(), XrdCryptoBasic::Length(), XrdCryptoBasic::SetBuffer(), XrdCryptoBasic::SetType(), and XrdCheckDH().
XrdCryptosslCipher::XrdCryptosslCipher | ( | const XrdCryptosslCipher & | c | ) |
Definition at line 745 of file XrdCryptosslCipher.cc.
References XrdCryptoBasic::Buffer(), Cleanup(), DH_get0_key(), DH_get0_pqg(), DH_set0_key(), DH_set0_pqg(), EVP_PKEY_get0_DH(), XrdCryptoBasic::Length(), XrdCryptoBasic::SetBuffer(), SetIV(), XrdCryptoBasic::SetType(), XrdCryptoBasic::Type(), and XrdCheckDH().
|
virtual |
Definition at line 824 of file XrdCryptosslCipher.cc.
References Cleanup().
|
virtual |
Reimplemented from XrdCryptoCipher.
Definition at line 1116 of file XrdCryptosslCipher.cc.
References XrdCryptoBasic::Buffer(), DH_get0_key(), DH_get0_pqg(), EVP_PKEY_get0_DH(), kXRS_cipher, XrdCryptoBasic::Length(), and XrdCryptoBasic::Type().
void XrdCryptosslCipher::Cleanup | ( | ) |
Definition at line 839 of file XrdCryptosslCipher.cc.
Referenced by XrdCryptosslCipher(), ~XrdCryptosslCipher(), and Finalize().
|
virtual |
Reimplemented from XrdCryptoCipher.
Definition at line 1371 of file XrdCryptosslCipher.cc.
|
virtual |
Reimplemented from XrdCryptoCipher.
Definition at line 1281 of file XrdCryptosslCipher.cc.
|
virtual |
Reimplemented from XrdCryptoCipher.
Definition at line 1363 of file XrdCryptosslCipher.cc.
|
virtual |
Reimplemented from XrdCryptoCipher.
Definition at line 1270 of file XrdCryptosslCipher.cc.
|
virtual |
Reimplemented from XrdCryptoCipher.
Definition at line 851 of file XrdCryptosslCipher.cc.
References Cleanup(), DEBUG, DH_set0_key(), EPNAME, XrdCryptoBasic::Length(), XrdCryptoBasic::SetBuffer(), and XrdCryptoBasic::SetType().
|
inlinevirtual |
Reimplemented from XrdCryptoCipher.
Definition at line 97 of file XrdCryptosslCipher.hh.
|
static |
Definition at line 215 of file XrdCryptosslCipher.cc.
Referenced by XrdCryptosslFactory::SupportedCipher().
|
inlinevirtual |
Reimplemented from XrdCryptoCipher.
Definition at line 84 of file XrdCryptosslCipher.hh.
|
inlinevirtual |
Reimplemented from XrdCryptoCipher.
Definition at line 96 of file XrdCryptosslCipher.hh.
|
virtual |
Reimplemented from XrdCryptoCipher.
Definition at line 1381 of file XrdCryptosslCipher.cc.
|
virtual |
Reimplemented from XrdCryptoCipher.
Definition at line 1005 of file XrdCryptosslCipher.cc.
References DH_get0_key(), and EVP_PKEY_get0_DH().
|
virtual |
Reimplemented from XrdCryptoCipher.
Definition at line 1239 of file XrdCryptosslCipher.cc.
|
virtual |
Reimplemented from XrdCryptoCipher.
Definition at line 1219 of file XrdCryptosslCipher.cc.
Referenced by XrdCryptosslCipher().