From baeed622b8d86045ff442b324772b0ad306a2b3f Mon Sep 17 00:00:00 2001 From: Katie Hockman Date: Wed, 1 Apr 2020 17:43:50 -0400 Subject: [PATCH] blake2b,blake2s: clarify difference between blake2b and blake2s Fixes golang/go#37784 Change-Id: I2fdaf96979390f3744ba8135da78107a15f5e9a8 Reviewed-on: https://go-review.googlesource.com/c/crypto/+/226845 Run-TryBot: Katie Hockman TryBot-Result: Gobot Gobot Reviewed-by: Filippo Valsorda --- blake2b/blake2b.go | 2 ++ blake2s/blake2s.go | 2 ++ 2 files changed, 4 insertions(+) diff --git a/blake2b/blake2b.go b/blake2b/blake2b.go index c160e1a4e3..d2e98d4295 100644 --- a/blake2b/blake2b.go +++ b/blake2b/blake2b.go @@ -5,6 +5,8 @@ // Package blake2b implements the BLAKE2b hash algorithm defined by RFC 7693 // and the extendable output function (XOF) BLAKE2Xb. // +// BLAKE2b is optimized for 64-bit platforms—including NEON-enabled ARMs—and +// produces digests of any size between 1 and 64 bytes. // For a detailed specification of BLAKE2b see https://blake2.net/blake2.pdf // and for BLAKE2Xb see https://blake2.net/blake2x.pdf // diff --git a/blake2s/blake2s.go b/blake2s/blake2s.go index 5fb4a9ecd1..e3f46aab3a 100644 --- a/blake2s/blake2s.go +++ b/blake2s/blake2s.go @@ -5,6 +5,8 @@ // Package blake2s implements the BLAKE2s hash algorithm defined by RFC 7693 // and the extendable output function (XOF) BLAKE2Xs. // +// BLAKE2s is optimized for 8- to 32-bit platforms and produces digests of any +// size between 1 and 32 bytes. // For a detailed specification of BLAKE2s see https://blake2.net/blake2.pdf // and for BLAKE2Xs see https://blake2.net/blake2x.pdf //