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)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Sat, 15 Jul 2017 10:16:16 +0000 (12:16 +0200)
commit716986547f1f052a7f49b5e5502e76db3a32d3e7
treeebb1761cfabb4100d70d88c1a77440459750ef0a
parent0d6758f74a469ff34e353ddd9bf3229afff7915b
crypto: rsa-pkcs1pad - use constant time memory comparison for MACs

commit fec17cb2231733174e039ad9054fa16bb358e2ec upstream.

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: Herbert Xu <herbert@gondor.apana.org.au>
Cc: linux-crypto@vger.kernel.org
Signed-off-by: Herbert Xu <herbert@gondor.apana.org.au>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
crypto/rsa-pkcs1pad.c