basic: add hmac_sha256 implementation

Based on the FIPS 198 specification. Not optimized and probably
completely unsafe, to be used only for non-strong-cryptographic
purposes when OpenSSL cannot be used.
This commit is contained in:
Luca Boccassi
2021-10-08 13:11:00 +01:00
parent 6eb736727a
commit 8d39bff4e3
5 changed files with 154 additions and 0 deletions
+2
View File
@@ -72,6 +72,8 @@ basic_sources = files('''
hashmap.h
hexdecoct.c
hexdecoct.h
hmac.c
hmac.h
hostname-util.c
hostname-util.h
in-addr-util.c