1
0
mirror of https://github.com/golang/go synced 2024-11-08 07:46:15 -07:00
go/src/crypto/sha256
Tim Cooper 731b632172 crypto, hash: implement BinaryMarshaler, BinaryUnmarshaler in hash implementations
The marshal method allows the hash's internal state to be serialized and
unmarshaled at a later time, without having the re-write the entire stream
of data that was already written to the hash.

Fixes #20573

Change-Id: I40bbb84702ac4b7c5662f99bf943cdf4081203e5
Reviewed-on: https://go-review.googlesource.com/66710
Reviewed-by: Joe Tsai <thebrokentoaster@gmail.com>
Reviewed-by: Ian Lance Taylor <iant@golang.org>
Run-TryBot: Joe Tsai <thebrokentoaster@gmail.com>
TryBot-Result: Gobot Gobot <gobot@golang.org>
2017-11-01 21:04:12 +00:00
..
example_test.go
fallback_test.go
sha256_test.go crypto, hash: implement BinaryMarshaler, BinaryUnmarshaler in hash implementations 2017-11-01 21:04:12 +00:00
sha256.go crypto, hash: implement BinaryMarshaler, BinaryUnmarshaler in hash implementations 2017-11-01 21:04:12 +00:00
sha256block_386.s
sha256block_amd64.go
sha256block_amd64.s crypto: simplify amd64 asm for sha{1,256,512} a bit 2017-09-12 18:06:37 +00:00
sha256block_decl.go
sha256block_generic.go
sha256block_ppc64le.s
sha256block_s390x.go
sha256block_s390x.s
sha256block.go