Go to the documentation of this file.
2 #ifndef __CRYPTO_SSLCIPHER_H__
3 #define __CRYPTO_SSLCIPHER_H__
22 #include <openssl/evp.h>
23 #include <openssl/dh.h>
25 #define kDHMINBITS 128
44 int EncDec(
int encdec,
const char *bin,
int lin,
char *out);
51 int liv,
const char *iv);
58 bool Finalize(
char *pub,
int lpub,
const char *t);
74 char *
IV(
int &l)
const { l =
lIV;
return fIV; }
78 void SetIV(
int l,
const char *iv);
81 int Encrypt(
const char *bin,
int lin,
char *out);
82 int Decrypt(
const char *bin,
int lin,
char *out);