crypto: Add hash param to pkcs1pad
authorTadeusz Struk <tadeusz.struk@intel.com>
Thu, 3 Mar 2016 21:49:26 +0000 (21:49 +0000)
committerDavid Howells <dhowells@redhat.com>
Thu, 3 Mar 2016 21:49:26 +0000 (21:49 +0000)
commita49de377e051eac5bc50a3b838614a05671da4e7
tree0fa58c22cd828ee35e0387d88efd9dbce28e6216
parent41693d1c03212de3267bc77b1cb196294a438616
crypto: Add hash param to pkcs1pad

This adds hash param to pkcs1pad.
The pkcs1pad template can work with or without the hash.
When hash param is provided then the verify operation will
also verify the output against the known digest.

Signed-off-by: Tadeusz Struk <tadeusz.struk@intel.com>
Signed-off-by: David Howells <dhowells@redhat.com>
Acked-by: Herbert Xu <herbert@gondor.apana.org.au>
crypto/rsa-pkcs1pad.c