crypto: rsa-pkcs1pad - use constant time memory comparison for MACs
authorJason A. Donenfeld <Jason@zx2c4.com>
Sun, 11 Jun 2017 21:20:23 +0000 (23:20 +0200)
committerHerbert Xu <herbert@gondor.apana.org.au>
Tue, 20 Jun 2017 03:21:19 +0000 (11:21 +0800)
commitfec17cb2231733174e039ad9054fa16bb358e2ec
treeb3fef173dac11fb9c6c7927e659a79c8f9df3bce
parentffe55266e36bef40b940b38bfef4fcff4957624d
crypto: rsa-pkcs1pad - use constant time memory comparison for MACs

Otherwise, we enable all sorts of forgeries via timing attack.

Signed-off-by: Jason A. Donenfeld <Jason@zx2c4.com>
Suggested-by: Stephan Müller <smueller@chronox.de>
Cc: stable@vger.kernel.org
Cc: Herbert Xu <herbert@gondor.apana.org.au>
Cc: linux-crypto@vger.kernel.org
Signed-off-by: Herbert Xu <herbert@gondor.apana.org.au>
crypto/rsa-pkcs1pad.c