Tianjia Zhang <[email protected]> writes:

> Add OSCCA SM3 secure hash (OSCCA GM/T 0004-2012 SM3) generic
> hash transformation.

Thanks, merged the patch series onto a branch "sm3" for testing, with
only minor changes.

> --- /dev/null
> +++ b/sm3.h
[...]
> +#define SM3_DIGEST_SIZE 32
> +#define SM3_BLOCK_SIZE 64
> +/* For backwards compatibility */
> +#define SM3_DATA_SIZE SM3_BLOCK_SIZE

I dropped the definition of SM3_DATA_SIZE, since this is a new feature
in Nettle, there's no old version to be compatible with.

Would you mind writing a short description of the algorithm for the
manual? I think it should go under "Miscellaneous hash functions". Would
be nice with some brief background on this hash function (origin,
intended applications, when and where it's useful) plus reference docs
for the defined constants and functions.

Regards,
/Niels

-- 
Niels Möller. PGP-encrypted email is preferred. Keyid 368C6677.
Internet email is subject to wholesale government surveillance.
_______________________________________________
nettle-bugs mailing list
[email protected]
http://lists.lysator.liu.se/mailman/listinfo/nettle-bugs

Reply via email to