Skip to content
Snippets Groups Projects
Commit bb079efb authored by Ian Lance Taylor's avatar Ian Lance Taylor Committed by Gopher Robot
Browse files

crypto/sha256: add WriteString and WriteByte method

This can reduce allocations when hashing a string or byte
rather than []byte.

For #38776

Change-Id: I1c6dd1bc018220784a05939e92b47558c0562110
Reviewed-on: https://go-review.googlesource.com/c/go/+/481478


Reviewed-by: default avatarJoel Sing <joel@sing.id.au>
Run-TryBot: Ian Lance Taylor <iant@golang.org>
TryBot-Result: Gopher Robot <gobot@golang.org>
Auto-Submit: Ian Lance Taylor <iant@google.com>
Reviewed-by: default avatarIan Lance Taylor <iant@google.com>
Reviewed-by: default avatarBryan Mills <bcmills@google.com>
Run-TryBot: Ian Lance Taylor <iant@google.com>
parent ce0b9143
Branches
Tags
No related merge requests found
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment