diff options
Diffstat (limited to 'tests/t-ed25519.c')
-rw-r--r-- | tests/t-ed25519.c | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/tests/t-ed25519.c b/tests/t-ed25519.c index 9a3c2f6e..48310b5f 100644 --- a/tests/t-ed25519.c +++ b/tests/t-ed25519.c @@ -464,6 +464,8 @@ one_test_using_new_api (int testno, const char *alg, testno, "pk", "invalid hex string"); goto leave; } + + flags |= GCRY_PKEY_FLAG_SECRET; if (sign_with_pk) err = gcry_pkey_open (&h0, GCRY_PKEY_ECC, flags, GCRY_PKEY_CURVE_ED25519, @@ -481,6 +483,7 @@ one_test_using_new_api (int testno, const char *alg, goto leave; } + flags &= ~GCRY_PKEY_FLAG_SECRET; err = gcry_pkey_open (&h1, GCRY_PKEY_ECC, flags, GCRY_PKEY_CURVE_ED25519, buffer2, buflen2); |