[Cryptech-Commits] [sw/libhal] 02/02: Doh, helps to specify the curve.

git at cryptech.is git at cryptech.is
Sat Mar 12 06:14:39 UTC 2016


This is an automated email from the git hooks/post-receive script.

sra at hactrn.net pushed a commit to branch rpc
in repository sw/libhal.

commit 35664e0881d4841c1e9bf345df5f1d29f8aa0d2c
Author: Rob Austein <sra at hactrn.net>
AuthorDate: Sat Mar 12 01:12:53 2016 -0500

    Doh, helps to specify the curve.
---
 tests/test-rpc_pkey.c | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/tests/test-rpc_pkey.c b/tests/test-rpc_pkey.c
index cc2337c..5402f4b 100644
--- a/tests/test-rpc_pkey.c
+++ b/tests/test-rpc_pkey.c
@@ -170,7 +170,7 @@ static int test_ecdsa_testvec(const ecdsa_tc_t * const tc)
 
   assert(len == sizeof(private_der));
 
-  if ((err = hal_rpc_pkey_load(client, session, &private_key, HAL_KEY_TYPE_EC_PRIVATE, HAL_CURVE_NONE,
+  if ((err = hal_rpc_pkey_load(client, session, &private_key, HAL_KEY_TYPE_EC_PRIVATE, tc->curve,
                                private_label, sizeof(private_label), private_der, sizeof(private_der),
                                HAL_KEY_FLAG_USAGE_DIGITALSIGNATURE)) != HAL_OK)
     return printf("Could not load private key into RPC: %s\n", hal_error_string(err)), 0;
@@ -180,7 +180,7 @@ static int test_ecdsa_testvec(const ecdsa_tc_t * const tc)
 
   assert(len == sizeof(public_der));
 
-  if ((err = hal_rpc_pkey_load(client, session, &public_key, HAL_KEY_TYPE_EC_PUBLIC, HAL_CURVE_NONE,
+  if ((err = hal_rpc_pkey_load(client, session, &public_key, HAL_KEY_TYPE_EC_PUBLIC, tc->curve,
                                public_label, sizeof(public_label), public_der, sizeof(public_der),
                                HAL_KEY_FLAG_USAGE_DIGITALSIGNATURE)) != HAL_OK)
     return printf("Could not load public key into RPC: %s\n", hal_error_string(err)), 0;



More information about the Commits mailing list