kernel-ark/crypto/asymmetric_keys
David Howells 0b1568a453 RSA: Fix signature verification for shorter signatures
gpg can produce a signature file where length of signature is less than the
modulus size because the amount of space an MPI takes up is kept as low as
possible by discarding leading zeros.  This regularly happens for several
modules during the build.

Fix it by relaxing check in RSA verification code.

Thanks to Tomas Mraz and Miloslav Trmac for help.

Signed-off-by: Milan Broz <mbroz@redhat.com>
Signed-off-by: David Howells <dhowells@redhat.com>
Signed-off-by: Rusty Russell <rusty@rustcorp.com.au>
2012-10-08 13:50:17 +10:30
..
asymmetric_keys.h
asymmetric_type.c KEYS: Asymmetric key pluggable data parsers 2012-10-08 13:50:13 +10:30
Kconfig RSA: Implement signature verification algorithm [PKCS#1 / RFC3447] 2012-10-08 13:50:16 +10:30
Makefile RSA: Implement signature verification algorithm [PKCS#1 / RFC3447] 2012-10-08 13:50:16 +10:30
public_key.c KEYS: Asymmetric public-key algorithm crypto key subtype 2012-10-08 13:50:14 +10:30
public_key.h RSA: Implement signature verification algorithm [PKCS#1 / RFC3447] 2012-10-08 13:50:16 +10:30
rsa.c RSA: Fix signature verification for shorter signatures 2012-10-08 13:50:17 +10:30
signature.c KEYS: Provide signature verification with an asymmetric key 2012-10-08 13:50:15 +10:30