|
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 bpriv, bpub, XrdSutRndm::GetBuffer(), kPC1LENGTH, XrdCryptoBasic::SetBuffer(), XrdCryptoBasic::SetType(), and valid.
| XrdCryptolocalCipher::XrdCryptolocalCipher | ( | const char * | t, |
| int | l, | ||
| const char * | k | ||
| ) |
References bpriv, bpub, kPC1LENGTH, XrdCryptoBasic::SetBuffer(), XrdCryptoBasic::SetType(), and valid.
| XrdCryptolocalCipher::XrdCryptolocalCipher | ( | XrdSutBucket * | b | ) |
References bpriv, bpub, XrdSutBucket::buffer, XrdCryptoBasic::SetBuffer(), XrdCryptoBasic::SetType(), XrdSutBucket::size, and valid.
| 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 bpriv, bpub, XrdCryptoBasic::Buffer(), kPC3SLEN, kXRS_cipher, XrdCryptoBasic::Length(), XrdCryptoBasic::Type(), and valid.
| 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 XrdCryptoBasic::Buffer(), XrdCryptoBasic::Length(), and PC1Decrypt().
| int XrdCryptolocalCipher::EncOutLength | ( | int | l | ) | [virtual] |
Reimplemented from XrdCryptoCipher.
| int XrdCryptolocalCipher::Encrypt | ( | const char * | in, |
| int | lin, | ||
| char * | out | ||
| ) | [virtual] |
Reimplemented from XrdCryptoCipher.
References XrdCryptoBasic::Buffer(), XrdCryptoBasic::Length(), and PC1Encrypt().
| bool XrdCryptolocalCipher::Finalize | ( | char * | pub, |
| int | lpub, | ||
| const char * | t = "PC1" |
||
| ) | [virtual] |
Reimplemented from XrdCryptoCipher.
References bpriv, kPC3KEYLEN, kPC3SLEN, PC3DiPukExp(), XrdCryptoBasic::SetBuffer(), XrdCryptoBasic::SetType(), valid, and XrdSutFromHex().
| bool XrdCryptolocalCipher::IsDefaultLength | ( | ) | const [virtual] |
Reimplemented from XrdCryptoCipher.
References kPC1LENGTH, and XrdCryptoBasic::Length().
| 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 AsBucket(), Cleanup(), Finalize(), and XrdCryptolocalCipher().
unsigned char* XrdCryptolocalCipher::bpub [private] |
Referenced by AsBucket(), Cleanup(), Public(), and XrdCryptolocalCipher().
bool XrdCryptolocalCipher::valid [private] |
Referenced by AsBucket(), Finalize(), IsValid(), and XrdCryptolocalCipher().
1.7.3