]> git.codecow.com Git - Monocypher.git/commit
Fixed HMAC SHA-512 (and added tests)
authorLoup Vaillant <loup@loup-vaillant.fr>
Mon, 2 Dec 2019 22:49:25 +0000 (23:49 +0100)
committerLoup Vaillant <loup@loup-vaillant.fr>
Mon, 2 Dec 2019 22:49:25 +0000 (23:49 +0100)
commit34db5fcd402ad141af47c4bda82cb3aba6025b6f
treed87ae398d0f293ead900033ae8679ce8a13c9842
parent1ca3dce7e74c72a323bed8d05c9379d110fa7d49
Fixed HMAC SHA-512 (and added tests)

Test vectors were generated with Libsodium, with various key sizes (both
shorter and longer than the message), and every message size from 0 to
256 (twice the SHA 512 block size).

Also added Test vectors from RFC 4231, except the one with truncated
output (we don't support truncated outputs, users will have to do that
manually).
src/optional/ed25519.c
src/optional/ed25519.h
tests/gen/hmac_sha512.c [new file with mode: 0644]
tests/gen/makefile
tests/gen/vectors/hmac_sha512 [new file with mode: 0644]
tests/test.c