Add OSCCA SM3 secure hash generic hash algorithm, described
in OSCCA GM/T 0004-2012 SM3. 

Tianjia Zhang (4):
  Add OSCCA SM3 hash algorithm
  testsuite: add test for SM3 hash function
  hmac: add support for SM3 hash function
  nettle-benchmark: bench SM3 hashes

 Makefile.in                 |   7 +-
 examples/nettle-benchmark.c |   2 +-
 hmac-sm3-meta.c             |  47 +++++++
 hmac-sm3.c                  |  59 +++++++++
 hmac.h                      |  19 +++
 nettle-meta-hashes.c        |   1 +
 nettle-meta-macs.c          |   1 +
 nettle-meta.h               |   2 +
 sm3-meta.c                  |  41 ++++++
 sm3.c                       | 250 ++++++++++++++++++++++++++++++++++++
 sm3.h                       |  81 ++++++++++++
 testsuite/.gitignore        |   1 +
 testsuite/Makefile.in       |   2 +-
 testsuite/hmac-test.c       |   6 +
 testsuite/meta-hash-test.c  |   3 +-
 testsuite/meta-mac-test.c   |   1 +
 testsuite/sm3-test.c        |  20 +++
 17 files changed, 537 insertions(+), 6 deletions(-)
 create mode 100644 hmac-sm3-meta.c
 create mode 100644 hmac-sm3.c
 create mode 100644 sm3-meta.c
 create mode 100644 sm3.c
 create mode 100644 sm3.h
 create mode 100644 testsuite/sm3-test.c

-- 
2.32.0

_______________________________________________
nettle-bugs mailing list
[email protected]
http://lists.lysator.liu.se/mailman/listinfo/nettle-bugs

Reply via email to