diff options
author | Pádraig Brady <P@draigBrady.com> | 2018-09-29 22:20:17 -0700 |
---|---|---|
committer | Pádraig Brady <P@draigBrady.com> | 2018-10-01 01:08:31 -0700 |
commit | 7d0bb7b0e50dbd631f7b0f3cf2718bcdf06e0506 (patch) | |
tree | 810ab111d375bb9693ace4cd84c152a536d10e86 /modules/crypto/hmac-sha1 | |
parent | cfc433962ce15e5f45c00d938f1ca6af3f4a29b9 (diff) | |
download | gnulib-7d0bb7b0e50dbd631f7b0f3cf2718bcdf06e0506.tar.gz |
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.
Diffstat (limited to 'modules/crypto/hmac-sha1')
-rw-r--r-- | modules/crypto/hmac-sha1 | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/modules/crypto/hmac-sha1 b/modules/crypto/hmac-sha1 index 32ea359c7c..6bec8ae092 100644 --- a/modules/crypto/hmac-sha1 +++ b/modules/crypto/hmac-sha1 @@ -3,6 +3,7 @@ Compute hashed message authentication codes with SHA1. Files: lib/hmac.h +lib/hmac.c lib/hmac-sha1.c Depends-on: |