b07d8c96772f426812d3fc5530710ec1f3b205e7
Allows user to set the hash function to use in the OCSP response when using ocsp.CreateResponse instead of hard-coding the use of SHA-1. The field IssuerHash is added to the ocsp.Response struct to set which hash to use. If none is provided CreateResponse falls back to SHA1. ParseResponse also attempts to populate this field and will fail if a unsupported hash algorithm is provided. Change-Id: I3905b1706f347387724e57c33cb82a3b46ffcdf9 Reviewed-on: https://go-review.googlesource.com/32214 Reviewed-by: Brad Fitzpatrick <bradfitz@golang.org> Run-TryBot: Brad Fitzpatrick <bradfitz@golang.org> TryBot-Result: Gobot Gobot <gobot@golang.org>
This repository holds supplementary Go cryptography libraries. To submit changes to this repository, see http://golang.org/doc/contribute.html.
Description
Mirror of ys-ll/crypto (GitHub), kept for paraterm builds
https://golang.org/x/crypto
8.1 MiB
Languages
Go
88.6%
Assembly
11.1%
C
0.3%