]> git.ipfire.org Git - thirdparty/hostap.git/commit
ASN.1: Fix AlgorithmInfo parsing for signatures
authorJouni Malinen <j@w1.fi>
Sat, 13 Mar 2021 16:00:55 +0000 (18:00 +0200)
committerJouni Malinen <j@w1.fi>
Sun, 14 Mar 2021 09:37:58 +0000 (11:37 +0200)
commit94beb8e3677a0fc7e79534819679bcbe39444880
treefc0261857d0f59795f521098593c10528d5a00cb
parentee76493bbd77c8f3a636beac5540dbbe0543f00d
ASN.1: Fix AlgorithmInfo parsing for signatures

Digest is within the DigestInfo SEQUENCE and as such, parsing for it
should use the end of that data instead of the end of the decrypted
signature as the end point. Fix this in the PKCS #1 and X.509
implementations to avoid accepting invalid digest data that is
constructed to get the hash value from after the actual DigestInfo
container.

Signed-off-by: Jouni Malinen <j@w1.fi>
src/tls/pkcs1.c
src/tls/x509v3.c