xrootd
Loading...
Searching...
No Matches
Public Member Functions | Static Public Member Functions | Private Member Functions | Private Attributes | List of all members
XrdCryptosslCipher Class Reference

#include <XrdCryptosslCipher.hh>

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

Public Member Functions

 XrdCryptosslCipher (const char *t, int l=0)
 
 XrdCryptosslCipher (const char *t, int l, const char *k, int liv, const char *iv)
 
 XrdCryptosslCipher (XrdSutBucket *b)
 
 XrdCryptosslCipher (bool padded, int len, char *pub, int lpub, const char *t)
 
 XrdCryptosslCipher (const XrdCryptosslCipher &c)
 
virtual ~XrdCryptosslCipher ()
 
bool Finalize (bool padded, char *pub, int lpub, const char *t)
 
void Cleanup ()
 
bool IsValid ()
 
int EncOutLength (int l)
 
int DecOutLength (int l)
 
char * Public (int &lpub)
 
XrdSutBucketAsBucket ()
 
char * IV (int &l) const
 
bool IsDefaultLength () const
 
int MaxIVLength () const
 
void SetIV (int l, const char *iv)
 
int Encrypt (const char *bin, int lin, char *out)
 
int Decrypt (const char *bin, int lin, char *out)
 
char * RefreshIV (int &l)
 
- Public Member Functions inherited from XrdCryptoCipher
 XrdCryptoCipher ()
 
virtual ~XrdCryptoCipher ()
 
bool Finalize (char *pub, int lpub, const char *t)
 
int Encrypt (XrdSutBucket &buck, bool useiv=true)
 
int Decrypt (XrdSutBucket &buck, bool useiv=true)
 
- 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)
 

Static Public Member Functions

static bool IsSupported (const char *cip)
 

Private Member Functions

void GenerateIV ()
 
int EncDec (int encdec, const char *bin, int lin, char *out)
 
void PrintPublic (BIGNUM *pub)
 
int Publen ()
 

Private Attributes

char * fIV
 
int lIV
 
const EVP_CIPHER * cipher
 
EVP_CIPHER_CTX * ctx
 
EVP_PKEY * fDH
 
bool deflength
 
bool valid
 

Constructor & Destructor Documentation

◆ XrdCryptosslCipher() [1/5]

XrdCryptosslCipher::XrdCryptosslCipher ( const char *  t,
int  l = 0 
)

◆ XrdCryptosslCipher() [2/5]

XrdCryptosslCipher::XrdCryptosslCipher ( const char *  t,
int  l,
const char *  k,
int  liv,
const char *  iv 
)

◆ XrdCryptosslCipher() [3/5]

XrdCryptosslCipher::XrdCryptosslCipher ( XrdSutBucket b)

◆ XrdCryptosslCipher() [4/5]

XrdCryptosslCipher::XrdCryptosslCipher ( bool  padded,
int  len,
char *  pub,
int  lpub,
const char *  t 
)

◆ XrdCryptosslCipher() [5/5]

XrdCryptosslCipher::XrdCryptosslCipher ( const XrdCryptosslCipher c)

◆ ~XrdCryptosslCipher()

virtual XrdCryptosslCipher::~XrdCryptosslCipher ( )
virtual

Member Function Documentation

◆ AsBucket()

XrdSutBucket * XrdCryptosslCipher::AsBucket ( )
virtual

Reimplemented from XrdCryptoCipher.

◆ Cleanup()

void XrdCryptosslCipher::Cleanup ( )

◆ DecOutLength()

int XrdCryptosslCipher::DecOutLength ( int  l)
virtual

Reimplemented from XrdCryptoCipher.

◆ Decrypt()

int XrdCryptosslCipher::Decrypt ( const char *  bin,
int  lin,
char *  out 
)
virtual

Reimplemented from XrdCryptoCipher.

◆ EncDec()

int XrdCryptosslCipher::EncDec ( int  encdec,
const char *  bin,
int  lin,
char *  out 
)
private

◆ EncOutLength()

int XrdCryptosslCipher::EncOutLength ( int  l)
virtual

Reimplemented from XrdCryptoCipher.

◆ Encrypt()

int XrdCryptosslCipher::Encrypt ( const char *  bin,
int  lin,
char *  out 
)
virtual

Reimplemented from XrdCryptoCipher.

◆ Finalize()

bool XrdCryptosslCipher::Finalize ( bool  padded,
char *  pub,
int  lpub,
const char *  t 
)
virtual

Reimplemented from XrdCryptoCipher.

◆ GenerateIV()

void XrdCryptosslCipher::GenerateIV ( )
private

◆ IsDefaultLength()

bool XrdCryptosslCipher::IsDefaultLength ( ) const
inlinevirtual

Reimplemented from XrdCryptoCipher.

References deflength.

◆ IsSupported()

static bool XrdCryptosslCipher::IsSupported ( const char *  cip)
static

◆ IsValid()

bool XrdCryptosslCipher::IsValid ( )
inlinevirtual

Reimplemented from XrdCryptoCipher.

References valid.

◆ IV()

char * XrdCryptosslCipher::IV ( int &  l) const
inlinevirtual

Reimplemented from XrdCryptoCipher.

References fIV, and lIV.

◆ MaxIVLength()

int XrdCryptosslCipher::MaxIVLength ( ) const
virtual

Reimplemented from XrdCryptoCipher.

◆ PrintPublic()

void XrdCryptosslCipher::PrintPublic ( BIGNUM *  pub)
private

◆ Publen()

int XrdCryptosslCipher::Publen ( )
private

◆ Public()

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

Reimplemented from XrdCryptoCipher.

◆ RefreshIV()

char * XrdCryptosslCipher::RefreshIV ( int &  l)
virtual

Reimplemented from XrdCryptoCipher.

◆ SetIV()

void XrdCryptosslCipher::SetIV ( int  l,
const char *  iv 
)
virtual

Reimplemented from XrdCryptoCipher.

Member Data Documentation

◆ cipher

const EVP_CIPHER* XrdCryptosslCipher::cipher
private

◆ ctx

EVP_CIPHER_CTX* XrdCryptosslCipher::ctx
private

◆ deflength

bool XrdCryptosslCipher::deflength
private

Referenced by IsDefaultLength().

◆ fDH

EVP_PKEY* XrdCryptosslCipher::fDH
private

◆ fIV

char* XrdCryptosslCipher::fIV
private

Referenced by IV().

◆ lIV

int XrdCryptosslCipher::lIV
private

Referenced by IV().

◆ valid

bool XrdCryptosslCipher::valid
private

Referenced by IsValid().


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