#include <XrdCryptosslRSA.hh>
Inheritance diagram for XrdCryptosslRSA:
Public Member Functions | |
XrdCryptosslRSA (int bits=XrdCryptoMinRSABits, int exp=XrdCryptoDefRSAExp) | |
XrdCryptosslRSA (const char *pub, int lpub=0) | |
XrdCryptosslRSA (EVP_PKEY *key, bool check=1) | |
XrdCryptosslRSA (const XrdCryptosslRSA &r) | |
virtual | ~XrdCryptosslRSA () |
XrdCryptoRSAdata | Opaque () |
void | Dump () |
int | GetOutlen (int lin) |
int | GetPublen () |
int | GetPrilen () |
int | ImportPublic (const char *in, int lin) |
int | ExportPublic (char *out, int lout) |
int | ImportPrivate (const char *in, int lin) |
int | ExportPrivate (char *out, int lout) |
int | EncryptPrivate (const char *in, int lin, char *out, int lout) |
int | DecryptPublic (const char *in, int lin, char *out, int lout) |
int | EncryptPublic (const char *in, int lin, char *out, int lout) |
int | DecryptPrivate (const char *in, int lin, char *out, int lout) |
Private Attributes | |
EVP_PKEY * | fEVP |
int | publen |
int | prilen |
Definition at line 29 of file XrdCryptosslRSA.hh.
XrdCryptosslRSA::XrdCryptosslRSA | ( | int | bits = XrdCryptoMinRSABits , |
|
int | exp = XrdCryptoDefRSAExp | |||
) |
Definition at line 31 of file XrdCryptosslRSA.cc.
References DEBUG, EPNAME, fEVP, XrdCryptoRSA::kComplete, prilen, publen, XrdCryptoRSA::status, XrdCryptoDefRSAExp, and XrdCryptoMinRSABits.
XrdCryptosslRSA::XrdCryptosslRSA | ( | const char * | pub, | |
int | lpub = 0 | |||
) |
Definition at line 76 of file XrdCryptosslRSA.cc.
References fEVP, ImportPublic(), prilen, and publen.
XrdCryptosslRSA::XrdCryptosslRSA | ( | EVP_PKEY * | key, | |
bool | check = 1 | |||
) |
Definition at line 93 of file XrdCryptosslRSA.cc.
References DEBUG, EPNAME, fEVP, XrdCryptoRSA::kComplete, XrdCryptoRSA::kPublic, prilen, publen, and XrdCryptoRSA::status.
XrdCryptosslRSA::XrdCryptosslRSA | ( | const XrdCryptosslRSA & | r | ) |
Definition at line 127 of file XrdCryptosslRSA.cc.
References DEBUG, EPNAME, fEVP, XrdCryptoRSA::kComplete, XrdCryptoRSA::kPublic, ok, prilen, publen, and XrdCryptoRSA::status.
XrdCryptosslRSA::~XrdCryptosslRSA | ( | ) | [virtual] |
XrdCryptoRSAdata XrdCryptosslRSA::Opaque | ( | ) | [inline, virtual] |
void XrdCryptosslRSA::Dump | ( | ) | [virtual] |
Reimplemented from XrdCryptoRSA.
Definition at line 267 of file XrdCryptosslRSA.cc.
References DEBUG, EPNAME, ExportPublic(), GetPublen(), and XrdCryptoRSA::IsValid().
int XrdCryptosslRSA::GetOutlen | ( | int | lin | ) | [virtual] |
Reimplemented from XrdCryptoRSA.
Definition at line 187 of file XrdCryptosslRSA.cc.
References fEVP.
int XrdCryptosslRSA::GetPublen | ( | ) | [virtual] |
Reimplemented from XrdCryptoRSA.
Definition at line 290 of file XrdCryptosslRSA.cc.
References fEVP, int, and publen.
Referenced by Dump().
int XrdCryptosslRSA::GetPrilen | ( | ) | [virtual] |
int XrdCryptosslRSA::ImportPublic | ( | const char * | in, | |
int | lin | |||
) | [virtual] |
Reimplemented from XrdCryptoRSA.
Definition at line 197 of file XrdCryptosslRSA.cc.
References fEVP, XrdCryptoRSA::kPublic, prilen, publen, and XrdCryptoRSA::status.
Referenced by XrdCryptosslRSA().
int XrdCryptosslRSA::ExportPublic | ( | char * | out, | |
int | lout | |||
) | [virtual] |
Reimplemented from XrdCryptoRSA.
Definition at line 307 of file XrdCryptosslRSA.cc.
References DEBUG, EPNAME, fEVP, int, XrdCryptoRSA::IsValid(), and malloc().
Referenced by Dump().
int XrdCryptosslRSA::ImportPrivate | ( | const char * | in, | |
int | lin | |||
) | [virtual] |
Reimplemented from XrdCryptoRSA.
Definition at line 235 of file XrdCryptosslRSA.cc.
References fEVP, XrdCryptoRSA::kComplete, prilen, and XrdCryptoRSA::status.
int XrdCryptosslRSA::ExportPrivate | ( | char * | out, | |
int | lout | |||
) | [virtual] |
Reimplemented from XrdCryptoRSA.
Definition at line 372 of file XrdCryptosslRSA.cc.
References DEBUG, EPNAME, fEVP, int, XrdCryptoRSA::IsValid(), and malloc().
int XrdCryptosslRSA::EncryptPrivate | ( | const char * | in, | |
int | lin, | |||
char * | out, | |||
int | lout | |||
) | [virtual] |
int XrdCryptosslRSA::DecryptPublic | ( | const char * | in, | |
int | lin, | |||
char * | out, | |||
int | lout | |||
) | [virtual] |
int XrdCryptosslRSA::EncryptPublic | ( | const char * | in, | |
int | lin, | |||
char * | out, | |||
int | lout | |||
) | [virtual] |
int XrdCryptosslRSA::DecryptPrivate | ( | const char * | in, | |
int | lin, | |||
char * | out, | |||
int | lout | |||
) | [virtual] |
EVP_PKEY* XrdCryptosslRSA::fEVP [private] |
Definition at line 32 of file XrdCryptosslRSA.hh.
Referenced by DecryptPrivate(), DecryptPublic(), EncryptPrivate(), EncryptPublic(), ExportPrivate(), ExportPublic(), GetOutlen(), GetPrilen(), GetPublen(), ImportPrivate(), ImportPublic(), Opaque(), XrdCryptosslRSA(), and ~XrdCryptosslRSA().
int XrdCryptosslRSA::publen [private] |
Definition at line 33 of file XrdCryptosslRSA.hh.
Referenced by GetPublen(), ImportPublic(), and XrdCryptosslRSA().
int XrdCryptosslRSA::prilen [private] |
Definition at line 34 of file XrdCryptosslRSA.hh.
Referenced by GetPrilen(), ImportPrivate(), ImportPublic(), and XrdCryptosslRSA().