Fix reading broken BER in gcrypt/rsa.c
authorKirill Isakov <bootctl@gmail.com>
Wed, 27 Apr 2022 09:49:32 +0000 (15:49 +0600)
committerKirill Isakov <bootctl@gmail.com>
Wed, 27 Apr 2022 14:45:48 +0000 (20:45 +0600)
commit76de8e3924fc36e5a3e906741bf640dceb846800
tree9024afd4285bfb9acbbadf43986b2126545290e6
parentb39b69a2e4b20c8fb9c49af4156734437b42f910
Fix reading broken BER in gcrypt/rsa.c

Our hand-rolled BER parser was reading ASN.1 sequence length without
checking if there's a sequence tag (0x10) before it.
src/gcrypt/asn1.h [new file with mode: 0644]
src/gcrypt/rsa.c
src/gcrypt/rsagen.c