XRootD
XrdCryptoLite Class Referenceabstract

#include <XrdCryptoLite.hh>

+ Collaboration diagram for XrdCryptoLite:

Public Member Functions

 XrdCryptoLite (char deType, int ovhd=8)
 
virtual ~XrdCryptoLite ()
 
virtual int Decrypt (const char *key, int keyLen, const char *src, int srcLen, char *dst, int dstLen)=0
 
virtual int Encrypt (const char *key, int keyLen, const char *src, int srcLen, char *dst, int dstLen)=0
 
virtual int Overhead ()
 
virtual char Type ()
 

Static Public Member Functions

static XrdCryptoLiteCreate (int &rc, const char *Name, const char Type='\0')
 

Protected Attributes

int Extra
 
char myType
 

Detailed Description

Definition at line 39 of file XrdCryptoLite.hh.

Constructor & Destructor Documentation

◆ XrdCryptoLite()

XrdCryptoLite::XrdCryptoLite ( char  deType,
int  ovhd = 8 
)
inline

Definition at line 91 of file XrdCryptoLite.hh.

91 : Extra(ovhd),myType(deType) {}

◆ ~XrdCryptoLite()

virtual XrdCryptoLite::~XrdCryptoLite ( )
inlinevirtual

Definition at line 92 of file XrdCryptoLite.hh.

92 {}

Member Function Documentation

◆ Create()

XrdCryptoLite * XrdCryptoLite::Create ( int &  rc,
const char *  Name,
const char  Type = '\0' 
)
static

Definition at line 50 of file XrdCryptoLite.cc.

51 {
52  extern XrdCryptoLite *XrdCryptoLite_New_bf32(const char Type);
53  XrdCryptoLite *cryptoP = 0;
54 
55  if (!strcmp(Name, "bf32")) cryptoP = XrdCryptoLite_New_bf32(Type);
56 
57 // Return appropriately
58 //
59  rc = (cryptoP ? 0 : EPROTONOSUPPORT);
60  return cryptoP;
61 }
XrdCryptoLite * XrdCryptoLite_New_bf32(const char Type)
virtual char Type()

References Type(), and XrdCryptoLite_New_bf32().

+ Here is the call graph for this function:

◆ Decrypt()

virtual int XrdCryptoLite::Decrypt ( const char *  key,
int  keyLen,
const char *  src,
int  srcLen,
char *  dst,
int  dstLen 
)
pure virtual

◆ Encrypt()

virtual int XrdCryptoLite::Encrypt ( const char *  key,
int  keyLen,
const char *  src,
int  srcLen,
char *  dst,
int  dstLen 
)
pure virtual

◆ Overhead()

virtual int XrdCryptoLite::Overhead ( )
inlinevirtual

Definition at line 83 of file XrdCryptoLite.hh.

83 {return Extra;}

References Extra.

◆ Type()

virtual char XrdCryptoLite::Type ( )
inlinevirtual

Definition at line 89 of file XrdCryptoLite.hh.

89 {return myType;}

References myType.

Referenced by Create(), and XrdSecProtocolsss::Load_Server().

+ Here is the caller graph for this function:

Member Data Documentation

◆ Extra

int XrdCryptoLite::Extra
protected

Definition at line 96 of file XrdCryptoLite.hh.

Referenced by Overhead().

◆ myType

char XrdCryptoLite::myType
protected

Definition at line 97 of file XrdCryptoLite.hh.

Referenced by Type().


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