credentials: Added void *params to public_key encrypt() and private_key decrypt() methods

This commit is contained in:
Andreas Steffen
2021-11-09 17:58:28 +01:00
parent c8341fca61
commit 4abb29f639
43 changed files with 50 additions and 48 deletions
+1 -1
View File
@@ -1628,7 +1628,7 @@ static status_t send_key_exchange_encrypt(private_tls_peer_t *this,
this->alert->add(this->alert, TLS_FATAL, TLS_CERTIFICATE_UNKNOWN);
return NEED_MORE;
}
if (!public->encrypt(public, ENCRYPT_RSA_PKCS1,
if (!public->encrypt(public, ENCRYPT_RSA_PKCS1, NULL,
chunk_from_thing(premaster), &encrypted))
{
public->destroy(public);
+2 -2
View File
@@ -805,8 +805,8 @@ static status_t process_key_exchange_encrypted(private_tls_server_t *this,
rng->destroy(rng);
if (this->private &&
this->private->decrypt(this->private,
ENCRYPT_RSA_PKCS1, encrypted, &decrypted))
this->private->decrypt(this->private, ENCRYPT_RSA_PKCS1, NULL,
encrypted, &decrypted))
{
if (decrypted.len == sizeof(premaster) &&
untoh16(decrypted.ptr) == this->client_version)