summaryrefslogtreecommitdiffstats
path: root/lib/oid_registry.c
diff options
context:
space:
mode:
authorDavid Howells <dhowells@redhat.com>2012-09-22 00:28:05 +0200
committerRusty Russell <rusty@rustcorp.com.au>2012-10-08 05:20:17 +0200
commit0b1568a4536ff287a87908d7fc35c05bd7736a53 (patch)
tree2e2eab236c2fa23d568e0ee7179fbfdc5cf2b3ba /lib/oid_registry.c
parentRSA: Implement signature verification algorithm [PKCS#1 / RFC3447] (diff)
downloadlinux-0b1568a4536ff287a87908d7fc35c05bd7736a53.tar.xz
linux-0b1568a4536ff287a87908d7fc35c05bd7736a53.zip
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>
Diffstat (limited to 'lib/oid_registry.c')
0 files changed, 0 insertions, 0 deletions