2020-02-10 16:31:04

by Ken Goldman

[permalink] [raw]
Subject: Re: [PATCH 1/2] crypto: sm3 - add a new alias name sm3-256

On 2/9/2020 10:17 PM, Eric Biggers wrote:
> According to https://tools.ietf.org/id/draft-oscca-cfrg-sm3-01.html,
> SM3 always produces a 256-bit hash value. E.g., it says:
>
> "SM3 produces an output hash value of 256 bits long"
>
> and
>
> "SM3 is a hash function that generates a 256-bit hash value."
>
> I don't see any mention of "SM3-256".
>
> So why not just keep it as "sm3" and change hash_info.c instead?
> Since the name there is currently wrong, no one can be using it yet.

Question: Is 256 bits fundamental to SM3? Could there ever be a
variant in the future that's e.g., 512 bits?