]> Cypherpunks repositories - gostls13.git/commit
crypto/x509: get hash information from signatureAlgorithmDetails and check that it...
authorAdam Langley <agl@golang.org>
Fri, 18 Aug 2017 20:51:07 +0000 (13:51 -0700)
committerAdam Langley <agl@golang.org>
Sat, 9 Sep 2017 19:36:07 +0000 (19:36 +0000)
commit083ad28622580195a97cbe83a877c7d49b1dadfa
treeebf717f9696fd5bf6b71f29bf5ad3cf4e612a25c
parent0f9a2cf2c4e1d223ba30db4b5127991e97a830e4
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: Adam Langley <agl@golang.org>
Reviewed-by: Russ Cox <rsc@golang.org>
src/crypto/x509/x509.go
src/crypto/x509/x509_test.go