xrootd
Public Member Functions | Private Attributes | List of all members
XrdCryptolocalCipher Class Reference

#include <XrdCryptolocalCipher.hh>

Inheritance diagram for XrdCryptolocalCipher:
Inheritance graph
[legend]
Collaboration diagram for XrdCryptolocalCipher:
Collaboration graph
[legend]

Public Member Functions

 XrdCryptolocalCipher (const char *t="PC1", int l=0)
 
 XrdCryptolocalCipher (const char *t, int l, const char *k)
 
 XrdCryptolocalCipher (XrdSutBucket *b)
 
 XrdCryptolocalCipher (int len, char *pub, int lpub, const char *t="PC1")
 
 XrdCryptolocalCipher (const XrdCryptolocalCipher &c)
 
virtual ~XrdCryptolocalCipher ()
 
bool Finalize (char *pub, int lpub, const char *t="PC1")
 
void Cleanup ()
 
bool IsValid ()
 
XrdSutBucketAsBucket ()
 
bool IsDefaultLength () const
 
char * Public (int &lpub)
 
int EncOutLength (int l)
 
int DecOutLength (int l)
 
int Encrypt (const char *in, int lin, char *out)
 
int Decrypt (const char *in, int lin, char *out)
 
- Public Member Functions inherited from XrdCryptoCipher
 XrdCryptoCipher ()
 
virtual ~XrdCryptoCipher ()
 
virtual char * IV (int &l) const
 
virtual void SetIV (int l, const char *iv)
 
int Encrypt (XrdSutBucket &buck)
 
int Decrypt (XrdSutBucket &buck)
 
virtual char * RefreshIV (int &l)
 
- Public Member Functions inherited from XrdCryptoBasic
 XrdCryptoBasic (const char *t=0, int l=0, const char *b=0)
 
virtual ~XrdCryptoBasic ()
 
char * AsHexString ()
 
virtual int Length () const
 
virtual char * Buffer () const
 
virtual char * Type () const
 
virtual int FromHex (const char *hex)
 
virtual int SetLength (int l)
 
virtual int SetBuffer (int l, const char *b)
 
virtual int SetType (const char *t)
 
virtual void UseBuffer (int l, const char *b)
 

Private Attributes

bool valid
 
unsigned char * bpub
 
unsigned char * bpriv
 

Constructor & Destructor Documentation

XrdCryptolocalCipher::XrdCryptolocalCipher ( const char *  t = "PC1",
int  l = 0 
)
XrdCryptolocalCipher::XrdCryptolocalCipher ( const char *  t,
int  l,
const char *  k 
)
XrdCryptolocalCipher::XrdCryptolocalCipher ( XrdSutBucket b)
XrdCryptolocalCipher::XrdCryptolocalCipher ( int  len,
char *  pub,
int  lpub,
const char *  t = "PC1" 
)
XrdCryptolocalCipher::XrdCryptolocalCipher ( const XrdCryptolocalCipher c)
virtual XrdCryptolocalCipher::~XrdCryptolocalCipher ( )
inlinevirtual

References Cleanup().

Member Function Documentation

XrdSutBucket * XrdCryptolocalCipher::AsBucket ( )
virtual
void XrdCryptolocalCipher::Cleanup ( )

References bpriv, and bpub.

Referenced by XrdCryptolocalCipher(), and ~XrdCryptolocalCipher().

int XrdCryptolocalCipher::DecOutLength ( int  l)
virtual

Reimplemented from XrdCryptoCipher.

int XrdCryptolocalCipher::Decrypt ( const char *  in,
int  lin,
char *  out 
)
virtual
int XrdCryptolocalCipher::EncOutLength ( int  l)
virtual

Reimplemented from XrdCryptoCipher.

int XrdCryptolocalCipher::Encrypt ( const char *  in,
int  lin,
char *  out 
)
virtual
bool XrdCryptolocalCipher::Finalize ( char *  pub,
int  lpub,
const char *  t = "PC1" 
)
virtual
bool XrdCryptolocalCipher::IsDefaultLength ( ) const
virtual

Reimplemented from XrdCryptoCipher.

References kPC1LENGTH, and XrdCryptoBasic::Length().

bool XrdCryptolocalCipher::IsValid ( )
inlinevirtual

Reimplemented from XrdCryptoCipher.

References valid.

char * XrdCryptolocalCipher::Public ( int &  lpub)
virtual

Reimplemented from XrdCryptoCipher.

References bpub, kPC3SLEN, and XrdSutToHex().

Member Data Documentation

unsigned char* XrdCryptolocalCipher::bpriv
private
unsigned char* XrdCryptolocalCipher::bpub
private
bool XrdCryptolocalCipher::valid
private

The documentation for this class was generated from the following files: