This patch implements Ascon-Hash256. Ascon-Hash256 is a hash function as a part
of the Ascon-Based Lightweight Cryptography Standards for Constrained Devices,
published as NIST SP 800-232 (https://csrc.nist.gov/pubs/sp/800/232/final).
Signed-off-by: Rusydi H. Makarim <rusydi.makarim@kriptograf.id>
---
Rusydi H. Makarim (3):
lib/crypto: Add KUnit test vectors for Ascon-Hash256
lib/crypto: Initial implementation of Ascon-Hash256
crypto: Crypto API implementation of Ascon-Hash256
crypto/Kconfig | 7 +
crypto/Makefile | 1 +
crypto/ascon_hash.c | 86 ++++++++++++
include/crypto/ascon_hash.h | 97 ++++++++++++++
lib/crypto/Kconfig | 8 ++
lib/crypto/Makefile | 5 +
lib/crypto/ascon_hash.c | 154 +++++++++++++++++++++
lib/crypto/hash_info.c | 2 +
lib/crypto/tests/Kconfig | 9 ++
lib/crypto/tests/Makefile | 1 +
lib/crypto/tests/ascon_hash-testvecs.h | 235 +++++++++++++++++++++++++++++++++
lib/crypto/tests/ascon_hash_kunit.c | 33 +++++
12 files changed, 638 insertions(+)
---
base-commit: 92de2d349e02c2dd96d8d1b7016cc78cf80fc085
change-id: 20251214-ascon_hash256-704130f41b29
Best regards,
--
Rusydi H. Makarim <rusydi.makarim@kriptograf.id>