]> Cypherpunks repositories - gostls13.git/commit
crypto, hash: document marshal/unmarshal implementation
authorRoger Peppe <rogpeppe@gmail.com>
Sun, 12 Nov 2017 22:19:11 +0000 (22:19 +0000)
committerBrad Fitzpatrick <bradfitz@golang.org>
Wed, 15 Nov 2017 00:06:24 +0000 (00:06 +0000)
commitbd926e1c65557870d152c42265af7533981fae8a
treef9ec95231ac9bbb27b4fd9d9519ddbf0a6000b5a
parenta158382b1c9c0b95a7d41865a405736be6bc585f
crypto, hash: document marshal/unmarshal implementation

Unless you go back and read the hash package documentation, it's
not clear that all the hash packages implement marshaling and
unmarshaling. Document the behaviour specifically in each package
that implements it as it this is hidden behaviour and easy to miss.

Change-Id: Id9d3508909362f1a3e53872d0319298359e50a94
Reviewed-on: https://go-review.googlesource.com/77251
Reviewed-by: Brad Fitzpatrick <bradfitz@golang.org>
Reviewed-by: Joe Tsai <thebrokentoaster@gmail.com>
src/crypto/hmac/hmac.go
src/crypto/md5/md5.go
src/crypto/sha1/sha1.go
src/crypto/sha256/sha256.go
src/crypto/sha512/sha512.go
src/hash/adler32/adler32.go
src/hash/crc32/crc32.go
src/hash/crc64/crc64.go
src/hash/fnv/fnv.go