XrdCryptosslRSA Class Reference

#include <XrdCryptosslRSA.hh>

Inheritance diagram for XrdCryptosslRSA:

XrdCryptoRSA List of all members.

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

Detailed Description

Definition at line 29 of file XrdCryptosslRSA.hh.


Constructor & Destructor Documentation

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]

Definition at line 176 of file XrdCryptosslRSA.cc.

References fEVP.


Member Function Documentation

XrdCryptoRSAdata XrdCryptosslRSA::Opaque (  )  [inline, virtual]

Reimplemented from XrdCryptoRSA.

Definition at line 44 of file XrdCryptosslRSA.hh.

References fEVP.

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]

Reimplemented from XrdCryptoRSA.

Definition at line 354 of file XrdCryptosslRSA.cc.

References fEVP, int, and prilen.

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]

Reimplemented from XrdCryptoRSA.

Definition at line 419 of file XrdCryptosslRSA.cc.

References DEBUG, EPNAME, fEVP, and len.

int XrdCryptosslRSA::DecryptPublic ( const char *  in,
int  lin,
char *  out,
int  lout 
) [virtual]

Reimplemented from XrdCryptoRSA.

Definition at line 570 of file XrdCryptosslRSA.cc.

References DEBUG, EPNAME, fEVP, len, and PRINT.

int XrdCryptosslRSA::EncryptPublic ( const char *  in,
int  lin,
char *  out,
int  lout 
) [virtual]

Reimplemented from XrdCryptoRSA.

Definition at line 470 of file XrdCryptosslRSA.cc.

References DEBUG, EPNAME, fEVP, and len.

int XrdCryptosslRSA::DecryptPrivate ( const char *  in,
int  lin,
char *  out,
int  lout 
) [virtual]

Reimplemented from XrdCryptoRSA.

Definition at line 521 of file XrdCryptosslRSA.cc.

References DEBUG, EPNAME, fEVP, len, and PRINT.


Member Data Documentation

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().


The documentation for this class was generated from the following files:
Generated on Tue Jul 5 16:50:30 2011 for ROOT_528-00b_version by  doxygen 1.5.1