xrootd
|
#include <XrdCryptoRSA.hh>
Public Types | |
enum | ERSAStatus { kInvalid = 0, kPublic = 1, kComplete = 2 } |
Public Member Functions | |
XrdCryptoRSA () | |
virtual | ~XrdCryptoRSA () |
const char * | Status (ERSAStatus t=kInvalid) const |
virtual XrdCryptoRSAdata | Opaque () |
virtual void | Dump () |
bool | IsValid () |
virtual int | GetOutlen (int lin) |
virtual int | GetPublen () |
virtual int | GetPrilen () |
virtual int | ImportPublic (const char *in, int lin) |
virtual int | ExportPublic (char *out, int lout) |
int | ExportPublic (XrdOucString &exp) |
virtual int | ImportPrivate (const char *in, int lin) |
virtual int | ExportPrivate (char *out, int lout) |
int | ExportPrivate (XrdOucString &exp) |
virtual int | EncryptPrivate (const char *in, int lin, char *out, int lout) |
virtual int | DecryptPublic (const char *in, int lin, char *out, int lout) |
virtual int | EncryptPublic (const char *in, int lin, char *out, int lout) |
virtual int | DecryptPrivate (const char *in, int lin, char *out, int lout) |
int | EncryptPrivate (XrdSutBucket &buck) |
int | DecryptPublic (XrdSutBucket &buck) |
int | EncryptPublic (XrdSutBucket &buck) |
int | DecryptPrivate (XrdSutBucket &buck) |
Public Attributes | |
ERSAStatus | status |
Static Private Attributes | |
static const char * | cstatus [3] = { "Invalid", "Public", "Complete" } |
virtual XrdCryptoRSA::~XrdCryptoRSA | ( | ) | [inline, virtual] |
int XrdCryptoRSA::DecryptPrivate | ( | const char * | in, |
int | lin, | ||
char * | out, | ||
int | lout | ||
) | [virtual] |
Reimplemented in XrdCryptosslRSA.
References ABSTRACTMETHOD.
Referenced by DecryptPrivate(), and main().
int XrdCryptoRSA::DecryptPrivate | ( | XrdSutBucket & | buck | ) |
References XrdSutBucket::buffer, DecryptPrivate(), GetOutlen(), XrdSutBucket::size, and XrdSutBucket::Update().
int XrdCryptoRSA::DecryptPublic | ( | XrdSutBucket & | buck | ) |
References XrdSutBucket::buffer, DecryptPublic(), GetOutlen(), XrdSutBucket::size, and XrdSutBucket::Update().
int XrdCryptoRSA::DecryptPublic | ( | const char * | in, |
int | lin, | ||
char * | out, | ||
int | lout | ||
) | [virtual] |
Reimplemented in XrdCryptosslRSA.
References ABSTRACTMETHOD.
Referenced by XrdSecProtocolgsi::CheckRtag(), DecryptPublic(), main(), and XrdSecProtocolgsi::Verify().
void XrdCryptoRSA::Dump | ( | ) | [virtual] |
int XrdCryptoRSA::EncryptPrivate | ( | XrdSutBucket & | buck | ) |
References XrdSutBucket::buffer, EncryptPrivate(), GetOutlen(), XrdSutBucket::size, and XrdSutBucket::Update().
int XrdCryptoRSA::EncryptPrivate | ( | const char * | in, |
int | lin, | ||
char * | out, | ||
int | lout | ||
) | [virtual] |
Reimplemented in XrdCryptosslRSA.
References ABSTRACTMETHOD.
Referenced by XrdSecProtocolgsi::AddSerialized(), EncryptPrivate(), main(), and XrdSecProtocolgsi::Sign().
int XrdCryptoRSA::EncryptPublic | ( | const char * | in, |
int | lin, | ||
char * | out, | ||
int | lout | ||
) | [virtual] |
Reimplemented in XrdCryptosslRSA.
References ABSTRACTMETHOD.
Referenced by EncryptPublic(), and main().
int XrdCryptoRSA::EncryptPublic | ( | XrdSutBucket & | buck | ) |
References XrdSutBucket::buffer, EncryptPublic(), GetOutlen(), XrdSutBucket::size, and XrdSutBucket::Update().
int XrdCryptoRSA::ExportPrivate | ( | XrdOucString & | exp | ) |
References ExportPrivate(), and GetPrilen().
int XrdCryptoRSA::ExportPrivate | ( | char * | out, |
int | lout | ||
) | [virtual] |
Reimplemented in XrdCryptosslRSA.
References ABSTRACTMETHOD.
Referenced by XrdSecProtocolgsi::ClientDoPxyreq(), ExportPrivate(), and main().
int XrdCryptoRSA::ExportPublic | ( | char * | out, |
int | lout | ||
) | [virtual] |
Reimplemented in XrdCryptosslRSA.
References ABSTRACTMETHOD.
Referenced by ExportPublic(), and main().
int XrdCryptoRSA::ExportPublic | ( | XrdOucString & | exp | ) |
References ExportPublic(), and GetPublen().
int XrdCryptoRSA::GetOutlen | ( | int | lin | ) | [virtual] |
Reimplemented in XrdCryptosslRSA.
References ABSTRACTMETHOD.
Referenced by DecryptPrivate(), DecryptPublic(), EncryptPrivate(), EncryptPublic(), XrdSecProtocolgsi::Sign(), and XrdSecProtocolgsi::Verify().
int XrdCryptoRSA::GetPrilen | ( | ) | [virtual] |
Reimplemented in XrdCryptosslRSA.
References ABSTRACTMETHOD.
Referenced by ExportPrivate(), and main().
int XrdCryptoRSA::GetPublen | ( | ) | [virtual] |
Reimplemented in XrdCryptosslRSA.
References ABSTRACTMETHOD.
Referenced by ExportPublic(), and main().
int XrdCryptoRSA::ImportPrivate | ( | const char * | in, |
int | lin | ||
) | [virtual] |
Reimplemented in XrdCryptosslRSA.
References ABSTRACTMETHOD.
Referenced by main(), and XrdSecProtocolgsi::ServerDoSigpxy().
int XrdCryptoRSA::ImportPublic | ( | const char * | in, |
int | lin | ||
) | [virtual] |
bool XrdCryptoRSA::IsValid | ( | ) | [inline] |
References kInvalid, and status.
Referenced by XrdSecProtocolgsi::ClientDoCert(), XrdCryptosslRSA::Dump(), XrdCryptosslRSA::ExportPrivate(), XrdCryptosslRSA::ExportPublic(), XrdCryptosslFactory::RSA(), and XrdSecProtocolgsi::ServerDoCert().
XrdCryptoRSAdata XrdCryptoRSA::Opaque | ( | ) | [virtual] |
Reimplemented in XrdCryptosslRSA.
References ABSTRACTMETHOD.
Referenced by main(), XrdSecProtocolgsi::ServerDoSigpxy(), XrdCryptosslX509ChainToFile(), XrdCryptosslX509ExportChain(), and XrdSslgsiX509SignProxyReq().
const char* XrdCryptoRSA::Status | ( | ERSAStatus | t = kInvalid | ) | const [inline] |
const char * XrdCryptoRSA::cstatus = { "Invalid", "Public", "Complete" } [static, private] |
Referenced by Status().
Referenced by XrdCryptosslRSA::ImportPrivate(), XrdCryptosslRSA::ImportPublic(), XrdSecProtocolgsi::Init(), IsValid(), XrdSecProtocolgsi::QueryProxy(), Status(), XrdCryptoRSA(), XrdCryptosslRSA::XrdCryptosslRSA(), XrdCryptosslX509ChainToFile(), XrdCryptosslX509ExportChain(), XrdCryptosslX509ParseBucket(), XrdCryptosslX509ParseFile(), and XrdSslgsiX509SignProxyReq().