crypto: rsa-pkcs1pad - Require hash to be present
authorHerbert Xu <herbert@gondor.apana.org.au>
Wed, 29 Jun 2016 11:32:23 +0000 (19:32 +0800)
committerHerbert Xu <herbert@gondor.apana.org.au>
Fri, 1 Jul 2016 15:45:19 +0000 (23:45 +0800)
commitc0d20d22e0ad20718702ae98cf8b5c200271d6df
treef0952e208a147dca7e9e04b2815e24845f194e3a
parent127827b9c295db35fa7e49d00ac5d14faeda9461
crypto: rsa-pkcs1pad - Require hash to be present

The only user of rsa-pkcs1pad always uses the hash so there is
no reason to support the case of not having a hash.

This patch also changes the digest info lookup so that it is
only done once during template instantiation rather than on each
operation.

Signed-off-by: Herbert Xu <herbert@gondor.apana.org.au>
crypto/rsa-pkcs1pad.c