|
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 GetOutlen(), XrdSutBucket::size, DecryptPrivate(), XrdSutBucket::buffer, and XrdSutBucket::Update().
| int XrdCryptoRSA::DecryptPublic | ( | const char * | in, |
| int | lin, | ||
| char * | out, | ||
| int | lout | ||
| ) | [virtual] |
Reimplemented in XrdCryptosslRSA.
References ABSTRACTMETHOD.
Referenced by DecryptPublic(), main(), XrdSecProtocolgsi::Verify(), and XrdSecProtocolgsi::CheckRtag().
| int XrdCryptoRSA::DecryptPublic | ( | XrdSutBucket & | buck | ) |
References GetOutlen(), XrdSutBucket::size, DecryptPublic(), XrdSutBucket::buffer, and XrdSutBucket::Update().
| void XrdCryptoRSA::Dump | ( | ) | [virtual] |
| int XrdCryptoRSA::EncryptPrivate | ( | const char * | in, |
| int | lin, | ||
| char * | out, | ||
| int | lout | ||
| ) | [virtual] |
Reimplemented in XrdCryptosslRSA.
References ABSTRACTMETHOD.
Referenced by EncryptPrivate(), main(), XrdSecProtocolgsi::Sign(), and XrdSecProtocolgsi::AddSerialized().
| int XrdCryptoRSA::EncryptPrivate | ( | XrdSutBucket & | buck | ) |
References GetOutlen(), XrdSutBucket::size, EncryptPrivate(), XrdSutBucket::buffer, and XrdSutBucket::Update().
| 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 GetOutlen(), XrdSutBucket::size, EncryptPublic(), XrdSutBucket::buffer, and XrdSutBucket::Update().
| int XrdCryptoRSA::ExportPrivate | ( | char * | out, |
| int | lout | ||
| ) | [virtual] |
Reimplemented in XrdCryptosslRSA.
References ABSTRACTMETHOD.
Referenced by ExportPrivate(), main(), and XrdSecProtocolgsi::ClientDoPxyreq().
| int XrdCryptoRSA::ExportPrivate | ( | XrdOucString & | exp | ) |
References GetPrilen(), and ExportPrivate().
| int XrdCryptoRSA::ExportPublic | ( | char * | out, |
| int | lout | ||
| ) | [virtual] |
Reimplemented in XrdCryptosslRSA.
References ABSTRACTMETHOD.
Referenced by ExportPublic(), and main().
| int XrdCryptoRSA::ExportPublic | ( | XrdOucString & | exp | ) |
References GetPublen(), and ExportPublic().
| int XrdCryptoRSA::GetOutlen | ( | int | lin | ) | [virtual] |
Reimplemented in XrdCryptosslRSA.
References ABSTRACTMETHOD.
Referenced by EncryptPrivate(), EncryptPublic(), DecryptPrivate(), DecryptPublic(), 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 status, and kInvalid.
Referenced by XrdCryptosslFactory::RSA(), XrdCryptosslRSA::Dump(), XrdCryptosslRSA::ExportPublic(), XrdCryptosslRSA::ExportPrivate(), XrdSecProtocolgsi::ClientDoCert(), and XrdSecProtocolgsi::ServerDoCert().
| XrdCryptoRSAdata XrdCryptoRSA::Opaque | ( | ) | [virtual] |
Reimplemented in XrdCryptosslRSA.
References ABSTRACTMETHOD.
Referenced by XrdCryptosslX509ExportChain(), XrdCryptosslX509ChainToFile(), XrdSslgsiX509SignProxyReq(), main(), and XrdSecProtocolgsi::ServerDoSigpxy().
| const char* XrdCryptoRSA::Status | ( | ERSAStatus | t = kInvalid | ) | const [inline] |
const char * XrdCryptoRSA::cstatus = { "Invalid", "Public", "Complete" } [static, private] |
Referenced by Status().
Referenced by XrdCryptoRSA(), Status(), IsValid(), XrdCryptosslX509ExportChain(), XrdCryptosslX509ChainToFile(), XrdCryptosslX509ParseFile(), XrdCryptosslX509ParseBucket(), XrdSslgsiX509SignProxyReq(), XrdCryptosslRSA::XrdCryptosslRSA(), XrdCryptosslRSA::ImportPublic(), XrdCryptosslRSA::ImportPrivate(), XrdSecProtocolgsi::QueryProxy(), and XrdSecProtocolgsi::GetSrvCertEnt().
1.7.5