1 #ifndef __CRYPTO_SSLCIPHER_H__
2 #define __CRYPTO_SSLCIPHER_H__
39 #include <openssl/evp.h>
40 #include <openssl/dh.h>
59 const EVP_CIPHER *cipher;
66 int EncDec(
int encdec,
const char *bin,
int lin,
char *out);
67 void PrintPublic(BIGNUM *pub);
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);
void SetIV(int l, const char *iv)
virtual ~XrdCryptosslCipher()
XrdSutBucket * AsBucket()
int Encrypt(const char *bin, int lin, char *out)
XrdCryptosslCipher(const char *t, int l=0)
bool IsDefaultLength() const
static bool IsSupported(const char *cip)
int Decrypt(const char *bin, int lin, char *out)
bool Finalize(bool padded, char *pub, int lpub, const char *t)