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(
char *pub,
int lpub,
const char *t);
91 char *
IV(
int &l)
const { l =
lIV;
return fIV; }
95 void SetIV(
int l,
const char *iv);
98 int Encrypt(
const char *bin,
int lin,
char *out);
99 int Decrypt(
const char *bin,
int lin,
char *out);