summaryrefslogtreecommitdiff
path: root/tests/t-ecdsa.c
diff options
context:
space:
mode:
authorNIIBE Yutaka <gniibe@fsij.org>2021-09-10 21:15:04 +0900
committerNIIBE Yutaka <gniibe@fsij.org>2021-09-10 21:16:24 +0900
commitb82e66cf067b58b992e43b72938ac88d52d06385 (patch)
tree221b3fbc22938ebc1a65caae8f6c7a24f864f701 /tests/t-ecdsa.c
parent023b689d8f3aa98a71a7c943fe113d7a13ebe466 (diff)
downloadlibgcrypt-b82e66cf067b58b992e43b72938ac88d52d06385.tar.gz
experiment: Implement ECDSA with NIST curves by PKEY API.
-- Need to fix _gcry_ecc_ecdsa_sign to support supplying K externally. Signed-off-by: NIIBE Yutaka <gniibe@fsij.org>
Diffstat (limited to 'tests/t-ecdsa.c')
-rw-r--r--tests/t-ecdsa.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/tests/t-ecdsa.c b/tests/t-ecdsa.c
index fb7f2741..18876273 100644
--- a/tests/t-ecdsa.c
+++ b/tests/t-ecdsa.c
@@ -210,7 +210,7 @@ one_test (const char *curvename, const char *sha_alg,
size_t in_len[4];
unsigned char *out[2] = { NULL, NULL };
size_t out_len[2] = { 0, 0 };
- unsigned int flags = 0;
+ unsigned int flags = GCRY_PKEY_FLAG_PREHASH;
int curve;
int md_algo;