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
@@ -137,7 +137,7 @@ static bool decrypt(private_key_t *private, chunk_t key, chunk_t iv, int oid,
DBG1(DBG_LIB, "unsupported content encryption algorithm");
return FALSE;
}
if (!private->decrypt(private, ENCRYPT_RSA_PKCS1, key, &plain_key))
if (!private->decrypt(private, ENCRYPT_RSA_PKCS1, NULL, key, &plain_key))
{
DBG1(DBG_LIB, "symmetric key could not be decrypted with rsa");
return FALSE;
@@ -438,7 +438,7 @@ static bool encrypt_key(certificate_t *cert, chunk_t in, chunk_t *out)
{
return FALSE;
}
if (!key->encrypt(key, ENCRYPT_RSA_PKCS1, in, out))
if (!key->encrypt(key, ENCRYPT_RSA_PKCS1, NULL, in, out))
{
key->destroy(key);
return FALSE;