]> git.baikalelectronics.ru Git - kernel.git/commit
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)
commitf95c0a0620d5279388c25a5e84f2c5bd155aae2a
treef0952e208a147dca7e9e04b2815e24845f194e3a
parentb84b613c4eb226e690302fd50cd2f932cc98e680
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