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; }
104 int Encrypt(
const char *bin,
int lin,
char *out);
105 int Decrypt(
const char *bin,
int lin,
char *out);
Definition XrdCryptoCipher.hh:48
Definition XrdCryptosslCipher.hh:55
void PrintPublic(BIGNUM *pub)
void SetIV(int l, const char *iv)
bool deflength
Definition XrdCryptosslCipher.hh:62
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 XrdCryptosslCipher.hh:61
int EncDec(int encdec, const char *bin, int lin, char *out)
XrdCryptosslCipher(bool padded, int len, char *pub, int lpub, const char *t)
const EVP_CIPHER * cipher
Definition XrdCryptosslCipher.hh:59
XrdSutBucket * AsBucket()
XrdCryptosslCipher(XrdSutBucket *b)
virtual ~XrdCryptosslCipher()
int Encrypt(const char *bin, int lin, char *out)
EVP_CIPHER_CTX * ctx
Definition XrdCryptosslCipher.hh:60
XrdCryptosslCipher(const char *t, int l=0)
bool valid
Definition XrdCryptosslCipher.hh:63
bool IsValid()
Definition XrdCryptosslCipher.hh:84
bool IsDefaultLength() const
Definition XrdCryptosslCipher.hh:97
int Decrypt(const char *bin, int lin, char *out)
char * fIV
Definition XrdCryptosslCipher.hh:57
char * IV(int &l) const
Definition XrdCryptosslCipher.hh:96
int lIV
Definition XrdCryptosslCipher.hh:58
bool Finalize(bool padded, char *pub, int lpub, const char *t)
Definition XrdSutBucket.hh:44