]> Cypherpunks repositories - gostls13.git/commit
crypto: include hash number in panic message.
authorAdam Langley <agl@golang.org>
Mon, 5 Aug 2013 18:23:32 +0000 (14:23 -0400)
committerAdam Langley <agl@golang.org>
Mon, 5 Aug 2013 18:23:32 +0000 (14:23 -0400)
commit5e36877d2a5f41d4e0109d63025d68ce1929054a
tree066f7a32a2be323c81b104952e93f318b02c0ad4
parent6abbbcdc756fbcd22a7a5c118f5385c70207dcb8
crypto: include hash number in panic message.

In the event that code tries to use a hash function that isn't compiled
in and panics, give the developer a fighting chance of figuring out
which hash function it needed.

R=golang-dev, rsc
CC=golang-dev
https://golang.org/cl/12420045
src/pkg/crypto/crypto.go