x/crypto/blake2s: add 224bit variant #36429
Labels
FeatureRequest
Issues asking for a new feature that does not need a proposal.
NeedsInvestigation
Someone must examine and confirm this is a valid issue and not a duplicate of an existing one.
Milestone
What version of Go are you using (
go version
)?irrelevant
Does this issue reproduce with the latest release?
yes
What operating system and processor architecture are you using (
go env
)?irrelevant
What did you do?
Went to https://godoc.org/golang.org/x/crypto/blake2s and looked for 224bit version.
What did you expect to see?
Something like
func New224(key []byte) (hash.Hash, error)
(kinda like in crypto/sha256) orfunc New(size int, key []byte) (hash.Hash, error)
(like in x/crypto/blake2b).What did you see instead?
I didn't find anything what would clearly enable using canonical blake2s-224 hash.
Truncating New256 output would be ugly and wouldn't match canonical blake2s-224 (output size is embedded into IV).
I don't think blake2s XOF would provide canonical blake2s-224 either.
The text was updated successfully, but these errors were encountered: