xrootd
|
#include <XrdCryptosslRSA.hh>
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 |
XrdCryptosslRSA::XrdCryptosslRSA | ( | int | bits = XrdCryptoMinRSABits , |
int | exp = XrdCryptoDefRSAExp |
||
) |
References DEBUG, EPNAME, fEVP, XrdCryptoRSA::kComplete, prilen, publen, XrdCryptoRSA::status, XrdCryptoDefRSAExp, and XrdCryptoMinRSABits.
XrdCryptosslRSA::XrdCryptosslRSA | ( | const char * | pub, |
int | lpub = 0 |
||
) |
References fEVP, ImportPublic(), prilen, and publen.
XrdCryptosslRSA::XrdCryptosslRSA | ( | EVP_PKEY * | key, |
bool | check = 1 |
||
) |
References DEBUG, EPNAME, fEVP, XrdCryptoRSA::kComplete, XrdCryptoRSA::kPublic, prilen, publen, and XrdCryptoRSA::status.
XrdCryptosslRSA::XrdCryptosslRSA | ( | const XrdCryptosslRSA & | r | ) |
References DEBUG, EPNAME, fEVP, XrdCryptoRSA::kComplete, XrdCryptoRSA::kPublic, prilen, publen, and XrdCryptoRSA::status.
XrdCryptosslRSA::~XrdCryptosslRSA | ( | ) | [virtual] |
References fEVP.
int XrdCryptosslRSA::DecryptPrivate | ( | const char * | in, |
int | lin, | ||
char * | out, | ||
int | lout | ||
) | [virtual] |
Reimplemented from XrdCryptoRSA.
int XrdCryptosslRSA::DecryptPublic | ( | const char * | in, |
int | lin, | ||
char * | out, | ||
int | lout | ||
) | [virtual] |
Reimplemented from XrdCryptoRSA.
void XrdCryptosslRSA::Dump | ( | ) | [virtual] |
Reimplemented from XrdCryptoRSA.
References DEBUG, EPNAME, ExportPublic(), GetPublen(), and XrdCryptoRSA::IsValid().
int XrdCryptosslRSA::EncryptPrivate | ( | const char * | in, |
int | lin, | ||
char * | out, | ||
int | lout | ||
) | [virtual] |
Reimplemented from XrdCryptoRSA.
int XrdCryptosslRSA::EncryptPublic | ( | const char * | in, |
int | lin, | ||
char * | out, | ||
int | lout | ||
) | [virtual] |
Reimplemented from XrdCryptoRSA.
int XrdCryptosslRSA::ExportPrivate | ( | char * | out, |
int | lout | ||
) | [virtual] |
Reimplemented from XrdCryptoRSA.
References DEBUG, EPNAME, fEVP, and XrdCryptoRSA::IsValid().
int XrdCryptosslRSA::ExportPublic | ( | char * | out, |
int | lout | ||
) | [virtual] |
Reimplemented from XrdCryptoRSA.
References DEBUG, EPNAME, fEVP, and XrdCryptoRSA::IsValid().
Referenced by Dump().
int XrdCryptosslRSA::GetOutlen | ( | int | lin | ) | [virtual] |
Reimplemented from XrdCryptoRSA.
References fEVP.
int XrdCryptosslRSA::GetPrilen | ( | ) | [virtual] |
Reimplemented from XrdCryptoRSA.
int XrdCryptosslRSA::GetPublen | ( | ) | [virtual] |
int XrdCryptosslRSA::ImportPrivate | ( | const char * | in, |
int | lin | ||
) | [virtual] |
Reimplemented from XrdCryptoRSA.
References fEVP, XrdCryptoRSA::kComplete, prilen, and XrdCryptoRSA::status.
int XrdCryptosslRSA::ImportPublic | ( | const char * | in, |
int | lin | ||
) | [virtual] |
Reimplemented from XrdCryptoRSA.
References fEVP, XrdCryptoRSA::kPublic, prilen, publen, and XrdCryptoRSA::status.
Referenced by XrdCryptosslRSA().
XrdCryptoRSAdata XrdCryptosslRSA::Opaque | ( | ) | [inline, virtual] |
Reimplemented from XrdCryptoRSA.
References fEVP.
EVP_PKEY* XrdCryptosslRSA::fEVP [private] |
int XrdCryptosslRSA::prilen [private] |
Referenced by GetPrilen(), ImportPrivate(), ImportPublic(), and XrdCryptosslRSA().
int XrdCryptosslRSA::publen [private] |
Referenced by GetPublen(), ImportPublic(), and XrdCryptosslRSA().