summaryrefslogtreecommitdiff
path: root/cipher/mac-hmac.c
diff options
context:
space:
mode:
authorNIIBE Yutaka <gniibe@fsij.org>2021-12-06 09:50:37 +0900
committerNIIBE Yutaka <gniibe@fsij.org>2021-12-06 09:50:37 +0900
commitb14aaf1a2dc71560e1f7c19ac88a7b16cc491f25 (patch)
treed9008c2d2d4186aeeb8208bcc6a78dd5a55ba70f /cipher/mac-hmac.c
parent57b61b0f4f1be7513ed064a90321849bb9f47f29 (diff)
downloadlibgcrypt-b14aaf1a2dc71560e1f7c19ac88a7b16cc491f25.tar.gz
cipher,tests: Consitent use of #if/#endif for algo selection.
* cipher/cipher.c: Use #if instead of #ifdef for algo. * cipher/mac-cmac.c: Likewise. * cipher/mac-hmac.c: Likewise. * cipher/mac-internal.h: Likewise. * cipher/mac.c: Likewise. * tests/basic.c: Likewise. -- Signed-off-by: NIIBE Yutaka <gniibe@fsij.org>
Diffstat (limited to 'cipher/mac-hmac.c')
-rw-r--r--cipher/mac-hmac.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/cipher/mac-hmac.c b/cipher/mac-hmac.c
index 6d76895a..38746241 100644
--- a/cipher/mac-hmac.c
+++ b/cipher/mac-hmac.c
@@ -1367,7 +1367,7 @@ gcry_mac_spec_t _gcry_mac_type_spec_hmac_sha3_512 = {
&hmac_ops
};
#endif
-#ifdef USE_GOST_R_3411_94
+#if USE_GOST_R_3411_94
gcry_mac_spec_t _gcry_mac_type_spec_hmac_gost3411_94 = {
GCRY_MAC_HMAC_GOSTR3411_94, {0, 0}, "HMAC_GOSTR3411_94",
&hmac_ops
@@ -1377,7 +1377,7 @@ gcry_mac_spec_t _gcry_mac_type_spec_hmac_gost3411_cp = {
&hmac_ops
};
#endif
-#ifdef USE_GOST_R_3411_12
+#if USE_GOST_R_3411_12
gcry_mac_spec_t _gcry_mac_type_spec_hmac_stribog256 = {
GCRY_MAC_HMAC_STRIBOG256, {0, 0}, "HMAC_STRIBOG256",
&hmac_ops