]> Savannah Git Hosting - gnulib.git/commit
hmac-*: refactor to remove repetitive code
authorPádraig Brady <P@draigBrady.com>
Sun, 30 Sep 2018 05:20:17 +0000 (22:20 -0700)
committerPádraig Brady <P@draigBrady.com>
Mon, 1 Oct 2018 08:08:31 +0000 (01:08 -0700)
commit7d0bb7b0e50dbd631f7b0f3cf2718bcdf06e0506
tree810ab111d375bb9693ace4cd84c152a536d10e86
parentcfc433962ce15e5f45c00d938f1ca6af3f4a29b9
hmac-*: refactor to remove repetitive code

A net removal of 240 lines.

* lib/hmac.c: A new parameterized single implementation.
* lib/hmac-md5.c: Define parameters and include implementation.
* lib/hmac-sha1.c: Likewise.
* lib/hmac-sha256.c: Likewise.
* lib/hmac-sha512.c: Likewise.
* modules/crypto/hmac-md5: Reference the new implementation file.
* modules/crypto/hmac-sha1: Likewise.
* modules/crypto/hmac-sha256: Likewise.
* modules/crypto/hmac-sha512: Likewise.
* tests/test-hmac-md5.c: Refactor common code to a single function.
* tests/test-hmac-sha1.c: Likewise.
* tests/test-hmac-sha256.c: Likewise.
* tests/test-hmac-sha512.c: Likewise.
14 files changed:
ChangeLog
lib/hmac-md5.c
lib/hmac-sha1.c
lib/hmac-sha256.c
lib/hmac-sha512.c
lib/hmac.c [new file with mode: 0644]
modules/crypto/hmac-md5
modules/crypto/hmac-sha1
modules/crypto/hmac-sha256
modules/crypto/hmac-sha512
tests/test-hmac-md5.c
tests/test-hmac-sha1.c
tests/test-hmac-sha256.c
tests/test-hmac-sha512.c