|
xrootd
|
#include <XrdCryptolocalCipher.hh>


Public Member Functions | |
| XrdCryptolocalCipher (const char *t="PC1", int l=0) | |
| XrdCryptolocalCipher (const char *t, int l, const char *k) | |
| XrdCryptolocalCipher (XrdSutBucket *b) | |
| XrdCryptolocalCipher (int len, char *pub, int lpub, const char *t="PC1") | |
| XrdCryptolocalCipher (const XrdCryptolocalCipher &c) | |
| virtual | ~XrdCryptolocalCipher () |
| bool | Finalize (char *pub, int lpub, const char *t="PC1") |
| void | Cleanup () |
| bool | IsValid () |
| XrdSutBucket * | AsBucket () |
| bool | IsDefaultLength () const |
| char * | Public (int &lpub) |
| int | EncOutLength (int l) |
| int | DecOutLength (int l) |
| int | Encrypt (const char *in, int lin, char *out) |
| int | Decrypt (const char *in, int lin, char *out) |
Private Attributes | |
| bool | valid |
| unsigned char * | bpub |
| unsigned char * | bpriv |
| XrdCryptolocalCipher::XrdCryptolocalCipher | ( | const char * | t = "PC1", |
| int | l = 0 |
||
| ) |
References valid, bpub, bpriv, kPC1LENGTH, XrdSutRndm::GetBuffer(), XrdCryptoBasic::SetBuffer(), and XrdCryptoBasic::SetType().
| XrdCryptolocalCipher::XrdCryptolocalCipher | ( | const char * | t, |
| int | l, | ||
| const char * | k | ||
| ) |
References valid, bpub, bpriv, kPC1LENGTH, XrdCryptoBasic::SetBuffer(), and XrdCryptoBasic::SetType().
| XrdCryptolocalCipher::XrdCryptolocalCipher | ( | XrdSutBucket * | b | ) |
References valid, bpub, bpriv, XrdSutBucket::size, XrdSutBucket::buffer, XrdCryptoBasic::SetBuffer(), and XrdCryptoBasic::SetType().
| XrdCryptolocalCipher::XrdCryptolocalCipher | ( | int | len, |
| char * | pub, | ||
| int | lpub, | ||
| const char * | t = "PC1" |
||
| ) |
| XrdCryptolocalCipher::XrdCryptolocalCipher | ( | const XrdCryptolocalCipher & | c | ) |
| virtual XrdCryptolocalCipher::~XrdCryptolocalCipher | ( | ) | [inline, virtual] |
References Cleanup().
| XrdSutBucket * XrdCryptolocalCipher::AsBucket | ( | ) | [virtual] |
Reimplemented from XrdCryptoCipher.
References valid, XrdCryptoBasic::Length(), XrdCryptoBasic::Type(), bpub, kPC3SLEN, bpriv, XrdCryptoBasic::Buffer(), and kXRS_cipher.
| void XrdCryptolocalCipher::Cleanup | ( | ) |
Referenced by XrdCryptolocalCipher(), and ~XrdCryptolocalCipher().
| int XrdCryptolocalCipher::DecOutLength | ( | int | l | ) | [virtual] |
Reimplemented from XrdCryptoCipher.
| int XrdCryptolocalCipher::Decrypt | ( | const char * | in, |
| int | lin, | ||
| char * | out | ||
| ) | [virtual] |
Reimplemented from XrdCryptoCipher.
References PC1Decrypt(), XrdCryptoBasic::Buffer(), and XrdCryptoBasic::Length().
| int XrdCryptolocalCipher::EncOutLength | ( | int | l | ) | [virtual] |
Reimplemented from XrdCryptoCipher.
| int XrdCryptolocalCipher::Encrypt | ( | const char * | in, |
| int | lin, | ||
| char * | out | ||
| ) | [virtual] |
Reimplemented from XrdCryptoCipher.
References PC1Encrypt(), XrdCryptoBasic::Buffer(), and XrdCryptoBasic::Length().
| bool XrdCryptolocalCipher::Finalize | ( | char * | pub, |
| int | lpub, | ||
| const char * | t = "PC1" |
||
| ) | [virtual] |
Reimplemented from XrdCryptoCipher.
References kPC3SLEN, valid, bpriv, XrdSutFromHex(), kPC3KEYLEN, PC3DiPukExp(), XrdCryptoBasic::SetBuffer(), and XrdCryptoBasic::SetType().
| bool XrdCryptolocalCipher::IsDefaultLength | ( | ) | const [virtual] |
Reimplemented from XrdCryptoCipher.
References XrdCryptoBasic::Length(), and kPC1LENGTH.
| bool XrdCryptolocalCipher::IsValid | ( | ) | [inline, virtual] |
Reimplemented from XrdCryptoCipher.
References valid.
| char * XrdCryptolocalCipher::Public | ( | int & | lpub | ) | [virtual] |
Reimplemented from XrdCryptoCipher.
References bpub, kPC3SLEN, and XrdSutToHex().
unsigned char* XrdCryptolocalCipher::bpriv [private] |
Referenced by XrdCryptolocalCipher(), Finalize(), Cleanup(), and AsBucket().
unsigned char* XrdCryptolocalCipher::bpub [private] |
Referenced by XrdCryptolocalCipher(), Cleanup(), Public(), and AsBucket().
bool XrdCryptolocalCipher::valid [private] |
Referenced by XrdCryptolocalCipher(), Finalize(), AsBucket(), and IsValid().
1.7.5