void *params, chunk_t crypto, chunk_t *plain)
{
botan_pk_op_decrypt_t decrypt_op;
+ chunk_t label = chunk_empty;
const char *padding;
switch (scheme)
return FALSE;
}
+ if (scheme != ENCRYPT_RSA_PKCS1 && params != NULL)
+ {
+ label = *(chunk_t *)params;
+ if (label.len > 0)
+ {
+ DBG1(DBG_LIB, "RSA OAEP decryption with a label not supported");
+ return FALSE;
+ }
+ }
+
if (botan_pk_op_decrypt_create(&decrypt_op, this->key, padding, 0))
{
return FALSE;
{
botan_pk_op_encrypt_t encrypt_op;
botan_rng_t rng;
+ chunk_t label = chunk_empty;
const char* padding;
switch (scheme)
return FALSE;
}
+ if (scheme != ENCRYPT_RSA_PKCS1 && params != NULL)
+ {
+ label = *(chunk_t *)params;
+ if (label.len > 0)
+ {
+ DBG1(DBG_LIB, "RSA OAEP encryption with a label not supported");
+ return FALSE;
+ }
+ }
+
if (!botan_get_rng(&rng, RNG_STRONG))
{
return FALSE;