botan: Fully enable RSA OAEP decryption

This commit is contained in:
Andreas Steffen
2021-11-09 17:58:28 +01:00
parent f4bfdec21f
commit c8341fca61
2 changed files with 12 additions and 5 deletions
@@ -206,6 +206,7 @@ METHOD(private_key_t, decrypt, bool,
if (botan_pk_op_decrypt(decrypt_op, plain->ptr, &plain->len, crypto.ptr,
crypto.len))
{
DBG1(DBG_LIB, "RSA decryption failed");
chunk_free(plain);
botan_pk_op_decrypt_destroy(decrypt_op);
return FALSE;