1 #ifndef __CRYPTO_SSLCIPHER_H__
2 #define __CRYPTO_SSLCIPHER_H__
39 #include <openssl/evp.h>
40 #include <openssl/dh.h>
42 #define kDHMINBITS 512
61 int EncDec(
int encdec,
const char *bin,
int lin,
char *out);
68 int liv,
const char *iv);
75 bool Finalize(
bool padded,
char *pub,
int lpub,
const char *t);
91 char *
IV(
int &l)
const { l =
lIV;
return fIV; }
96 void SetIV(
int l,
const char *iv);
99 int Encrypt(
const char *bin,
int lin,
char *out);
100 int Decrypt(
const char *bin,
int lin,
char *out);
virtual ~XrdCryptosslCipher()
Definition: XrdCryptoCipher.hh:47
bool IsValid()
Definition: XrdCryptosslCipher.hh:79
const EVP_CIPHER * cipher
Definition: openssl3/XrdCryptosslCipher.hh:54
XrdSutBucket * AsBucket()
Definition: openssl3/XrdCryptosslCipher.hh:49
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: openssl3/XrdCryptosslCipher.hh:58
bool IsDefaultLength() const
Definition: XrdCryptosslCipher.hh:92
char * fIV
Definition: openssl3/XrdCryptosslCipher.hh:52
EVP_CIPHER_CTX * ctx
Definition: openssl3/XrdCryptosslCipher.hh:55
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:91
int lIV
Definition: openssl3/XrdCryptosslCipher.hh:53
XrdCryptosslCipher(const char *t, int l=0)
DH * fDH
Definition: XrdCryptosslCipher.hh:56
Definition: XrdSutBucket.hh:43
bool deflength
Definition: openssl3/XrdCryptosslCipher.hh:57