1 #ifndef __CRYPTO_SSLCIPHER_H__
2 #define __CRYPTO_SSLCIPHER_H__
39 #include <openssl/evp.h>
40 #include <openssl/dh.h>
42 #define kDHMINBITS 128
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);
Definition: XrdCryptoCipher.hh:48
Definition: openssl3/XrdCryptosslCipher.hh:50
void PrintPublic(BIGNUM *pub)
void SetIV(int l, const char *iv)
bool deflength
Definition: openssl3/XrdCryptosslCipher.hh:57
static bool IsSupported(const char *cip)
XrdCryptosslCipher(const XrdCryptosslCipher &c)
XrdCryptosslCipher(const char *t, int l, const char *k, int liv, const char *iv)
EVP_PKEY * fDH
Definition: openssl3/XrdCryptosslCipher.hh:56
XrdSutBucket * AsBucket()
int EncDec(int encdec, const char *bin, int lin, char *out)
EVP_CIPHER_CTX * ctx
Definition: openssl3/XrdCryptosslCipher.hh:55
XrdCryptosslCipher(bool padded, int len, char *pub, int lpub, const char *t)
char * IV(int &l) const
Definition: openssl3/XrdCryptosslCipher.hh:91
XrdCryptosslCipher(XrdSutBucket *b)
virtual ~XrdCryptosslCipher()
int Encrypt(const char *bin, int lin, char *out)
XrdCryptosslCipher(const char *t, int l=0)
bool valid
Definition: openssl3/XrdCryptosslCipher.hh:58
bool IsValid()
Definition: openssl3/XrdCryptosslCipher.hh:79
bool IsDefaultLength() const
Definition: openssl3/XrdCryptosslCipher.hh:92
char * fIV
Definition: openssl3/XrdCryptosslCipher.hh:52
int Decrypt(const char *bin, int lin, char *out)
int lIV
Definition: openssl3/XrdCryptosslCipher.hh:53
const EVP_CIPHER * cipher
Definition: openssl3/XrdCryptosslCipher.hh:54
bool Finalize(bool padded, char *pub, int lpub, const char *t)
Definition: XrdSutBucket.hh:44