]> Cypherpunks repositories - gostls13.git/commit
crypto/dsa: don't truncate input hashes.
authorAdam Langley <agl@golang.org>
Thu, 8 Dec 2011 21:46:19 +0000 (16:46 -0500)
committerAdam Langley <agl@golang.org>
Thu, 8 Dec 2011 21:46:19 +0000 (16:46 -0500)
commit60f564fc3759a2d4cb2216ed643a65aa963f06b3
treedee638f0da6f1b37a4b4af5fd69c00677ccd560d
parent9d59c40eabae6ae1c4f11aa9227a9fd69156599a
crypto/dsa: don't truncate input hashes.

Although FIPS 186-3 says that we should truncate the hashes, at least
one other library (libgcrypt) doesn't. This means that it's impossible
to interoperate with code using gcrypt if we enforce the truncation
inside of crypto/dsa.

This change shouldn't actually affect anything because nearly
everybody pairs DSA with SHA1, which doesn't need to be truncated in
either case.

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