summaryrefslogtreecommitdiff
path: root/src/hmac256.c
diff options
context:
space:
mode:
authorNIIBE Yutaka <gniibe@fsij.org>2021-10-11 17:28:32 +0900
committerNIIBE Yutaka <gniibe@fsij.org>2021-10-11 17:28:32 +0900
commit0709359657633271c8c018d67b40d9052c630022 (patch)
treec835265ce3f491990457e5d6033667eb12163746 /src/hmac256.c
parent95425c6b0b96a4d2eae4e2a55a23d293b08f7993 (diff)
downloadlibgcrypt-0709359657633271c8c018d67b40d9052c630022.tar.gz
build: Use KEY_FOR_BINARY_CHECK for --enable-hmac-binary-check.
* src/fips.c (KEY_FOR_BINARY_CHECK): Allow supplying externally. * src/hmac256.c: Use KEY_FOR_BINARY_CHECK macro. -- GnuPG-bug-id: 5550 Signed-off-by: NIIBE Yutaka <gniibe@fsij.org>
Diffstat (limited to 'src/hmac256.c')
-rw-r--r--src/hmac256.c5
1 files changed, 4 insertions, 1 deletions
diff --git a/src/hmac256.c b/src/hmac256.c
index dea5b749..bd089b79 100644
--- a/src/hmac256.c
+++ b/src/hmac256.c
@@ -46,6 +46,9 @@
*/
#ifdef STANDALONE
+# ifndef KEY_FOR_BINARY_CHECK
+# define KEY_FOR_BINARY_CHECK "What am I, a doctor or a moonshuttle conductor?"
+# endif
#include <stdint.h>
#define HAVE_TYPE_U32 1
typedef uint32_t u32;
@@ -719,7 +722,7 @@ main (int argc, char **argv)
#endif
if (use_stdkey)
- key = "What am I, a doctor or a moonshuttle conductor?";
+ key = KEY_FOR_BINARY_CHECK;
else
{
key = *argv;