1 #ifndef __CRYPTO_SSLCIPHER_H__
2 #define __CRYPTO_SSLCIPHER_H__
39 #include <openssl/evp.h>
40 #include <openssl/dh.h>
66 int EncDec(
int encdec,
const char *bin,
int lin,
char *out);
73 int liv,
const char *iv);
80 bool Finalize(
bool padded,
char *pub,
int lpub,
const char *t);
96 char *
IV(
int &l)
const { l =
lIV;
return fIV; }
101 void SetIV(
int l,
const char *iv);
104 int Encrypt(
const char *bin,
int lin,
char *out);
105 int Decrypt(
const char *bin,
int lin,
char *out);
virtual ~XrdCryptosslCipher()
Definition: XrdCryptoCipher.hh:47
bool IsValid()
Definition: XrdCryptosslCipher.hh:84
XrdSutBucket * AsBucket()
EVP_CIPHER_CTX * ctx
Definition: XrdCryptosslCipher.hh:60
Definition: XrdCryptosslCipher.hh:54
void PrintPublic(BIGNUM *pub)
int EncDec(int encdec, const char *bin, int lin, char *out)
int Encrypt(const char *bin, int lin, char *out)
bool Finalize(bool padded, char *pub, int lpub, const char *t)
bool valid
Definition: XrdCryptosslCipher.hh:63
bool IsDefaultLength() const
Definition: XrdCryptosslCipher.hh:97
static bool IsSupported(const char *cip)
void SetIV(int l, const char *iv)
int Decrypt(const char *bin, int lin, char *out)
char * IV(int &l) const
Definition: XrdCryptosslCipher.hh:96
EVP_PKEY * fDH
Definition: XrdCryptosslCipher.hh:61
int lIV
Definition: XrdCryptosslCipher.hh:58
XrdCryptosslCipher(const char *t, int l=0)
Definition: XrdSutBucket.hh:43
char * fIV
Definition: XrdCryptosslCipher.hh:57
bool deflength
Definition: XrdCryptosslCipher.hh:62
const EVP_CIPHER * cipher
Definition: XrdCryptosslCipher.hh:59