46 struct evp_cipher_ctx_st;
59 #define PDECLARE_SSLPasswordNotifier(cls, fn) PDECLARE_NOTIFIER2(PString, cls, fn, bool)
78 void (*callback)(
int,
int,
void *) = NULL,
111 evp_pkey_st * privKey,
112 bool duplicate =
true
121 evp_pkey_st * privKay
130 operator evp_pkey_st *()
const {
return m_pkey; }
134 void Attach(evp_pkey_st * key);
140 void (*callback)(
int,
int,
void *) = NULL,
222 const BYTE * certData,
245 bool duplicate =
true
267 void Attach(x509_st * cert);
334 void PrintOn(ostream & strm)
const;
400 const BYTE * pubKey = NULL
434 operator dh_st *()
const {
return m_dh; }
471 bool Construct(
const BYTE * pData, PINDEX pSize,
472 const BYTE * gData, PINDEX gSize,
473 const BYTE * kData, PINDEX kSize);
482 class PAESContext :
public PObject
487 PAESContext(
bool encrypt,
const void * key, PINDEX numBits);
490 void SetEncrypt(
const void * key, PINDEX numBits);
491 void SetDecrypt(
const void * key, PINDEX numBits);
493 void Encrypt(
const void * in,
void * out);
494 void Decrypt(
const void * in,
void * out);
515 operator evp_cipher_ctx_st *()
const {
return m_context; }
534 bool SetKey(
const BYTE * keyPtr, PINDEX keyLen);
539 bool SetIV(
const BYTE * ivPtr, PINDEX ivLen);
610 void Update(
const void * data, PINDEX length);
616 static void Process(
const void * data, PINDEX length,
Digest result);
652 const void * sessionId = NULL,
657 const void * sessionId = NULL,
896 #endif // PTLIB_PSSL_H