Re: [PATCH v2 1/4] Add OSCCA SM3 hash algorithm

2021-12-06 Thread Tianjia Zhang
Hi Niels, On 12/3/21 4:09 AM, Niels Möller wrote: Tianjia Zhang writes: Hi Niels, 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,

Re: [PATCH v2 1/4] Add OSCCA SM3 hash algorithm

2021-12-02 Thread Niels Möller
Tianjia Zhang writes: > Hi Niels, > >> 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

Re: [PATCH v2 1/4] Add OSCCA SM3 hash algorithm

2021-12-02 Thread Tianjia Zhang
Hi Niels, On 12/2/21 3:40 AM, Niels Möller wrote: Tianjia Zhang 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

Re: [PATCH v2 1/4] Add OSCCA SM3 hash algorithm

2021-12-01 Thread Niels Möller
Tianjia Zhang 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 >

[PATCH v2 1/4] Add OSCCA SM3 hash algorithm

2021-11-29 Thread Tianjia Zhang
Add OSCCA SM3 secure hash (OSCCA GM/T 0004-2012 SM3) generic hash transformation. Signed-off-by: Tianjia Zhang --- Makefile.in| 3 +- nettle-meta-hashes.c | 1 + nettle-meta.h | 1 + sm3-meta.c | 42 +++ sm3.c |