Commit 083ad286 authored by Adam Langley's avatar Adam Langley
Browse files

crypto/x509: get hash information from signatureAlgorithmDetails and check that it matches

signatureAlgorithmDetails already knows the hash function for each
signature algorithm so there's no point in duplicating that. Also, check
that the public key type of the signature algorithm actually matches the
given public key.

Change-Id: I7aab4ea71691fb815d67ba790b721ce02de11b85
Reviewed-on: https://go-review.googlesource.com/57211


Reviewed-by: default avatarAdam Langley <agl@golang.org>
Reviewed-by: default avatarRuss Cox <rsc@golang.org>
parent 0f9a2cf2
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please to comment