]> git.codecow.com Git - Monocypher.git/commit
Add HKDF SHA-512
authorLoup Vaillant <loup@loup-vaillant.fr>
Wed, 1 Feb 2023 22:03:06 +0000 (23:03 +0100)
committerLoup Vaillant <loup@loup-vaillant.fr>
Wed, 1 Feb 2023 22:16:39 +0000 (23:16 +0100)
commit45504b9623135f7e905b2d7baf807736aeb6f24a
tree5591690dd65a3bd5b78929dc5e3aa467df03f480
parent5c2d2e15b40b90be1154697add14cbded0a46c1c
Add HKDF SHA-512

In principle, we can imitate HKDF quite easily with SHA-512 alone.
Being fully RFC compliant however is fiddly and tedious, so for users
who want to do key derivation with SHA-512 in the most standard way
possible need dedicated functions.

Note the absence of a `crypto_sha512_hkdf_extract()` function, which
would be nothing more than an alias of `crypto_sha512_hmac()`.  Aliases
to the equivalent incremental interface are also absent.  There are pros
and cons to both the presence and absence of those aliases, I personally
prefer to leave them out.

See #255
doc/crypto_sha512.3monocypher
src/optional/monocypher-ed25519.c
src/optional/monocypher-ed25519.h
tests/gen/makefile
tests/gen/sha512_hkdf.py [new file with mode: 0755]
tests/test.c
tests/tis-ci-gen-config.sh
tests/tis-ci-vectors.h
tests/tis-ci.c
tis.config