Go to the documentation of this file. 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);
virtual ~XrdCryptosslCipher()
Definition: XrdCryptoCipher.hh:48
XrdCryptosslCipher(bool padded, int len, char *pub, int lpub, const char *t)
int Encrypt(const char *bin, int lin, char *out)
int Decrypt(const char *bin, int lin, char *out)
EVP_CIPHER_CTX * ctx
Definition: openssl3/XrdCryptosslCipher.hh:55
static bool IsSupported(const char *cip)
bool IsDefaultLength() const
Definition: XrdCryptosslCipher.hh:92
XrdSutBucket * AsBucket()
bool IsValid()
Definition: XrdCryptosslCipher.hh:79
void SetIV(int l, const char *iv)
char * IV(int &l) const
Definition: XrdCryptosslCipher.hh:91
bool deflength
Definition: openssl3/XrdCryptosslCipher.hh:57
bool Finalize(bool padded, char *pub, int lpub, const char *t)
Definition: openssl3/XrdCryptosslCipher.hh:50
XrdCryptosslCipher(const char *t, int l, const char *k, int liv, const char *iv)
char * fIV
Definition: openssl3/XrdCryptosslCipher.hh:52
XrdCryptosslCipher(const char *t, int l=0)
void PrintPublic(BIGNUM *pub)
bool valid
Definition: openssl3/XrdCryptosslCipher.hh:58
int EncDec(int encdec, const char *bin, int lin, char *out)
XrdCryptosslCipher(XrdSutBucket *b)
XrdCryptosslCipher(const XrdCryptosslCipher &c)
const EVP_CIPHER * cipher
Definition: openssl3/XrdCryptosslCipher.hh:54
Definition: XrdSutBucket.hh:44
DH * fDH
Definition: XrdCryptosslCipher.hh:56
int lIV
Definition: openssl3/XrdCryptosslCipher.hh:53