crypto: rsa-pkcs1pad - Move key size check to setkey
authorHerbert Xu <herbert@gondor.apana.org.au>
Wed, 29 Jun 2016 11:32:27 +0000 (19:32 +0800)
committerHerbert Xu <herbert@gondor.apana.org.au>
Fri, 1 Jul 2016 15:45:20 +0000 (23:45 +0800)
commit73f79189603b3cd8af1ba1ad2d71f1b3f0aa796d
tree360fe5d258b8ca60558fb116dbcebd217928c5a2
parent3a32ce507a942962f81cae8abec9ef0d0647d127
crypto: rsa-pkcs1pad - Move key size check to setkey

Rather than repeatedly checking the key size on each operation,
we should be checking it once when the key is set.

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