diff options
author | Rob Austein <sra@hactrn.net> | 2016-03-12 01:12:53 -0500 |
---|---|---|
committer | Rob Austein <sra@hactrn.net> | 2016-03-12 01:12:53 -0500 |
commit | 35664e0881d4841c1e9bf345df5f1d29f8aa0d2c (patch) | |
tree | 80a6eb00f00addf8be2a3802fe4480e8d6099e90 /tests/test-rpc_pkey.c | |
parent | dd478608ef34e9ab88cb16348f86a785255cb8cb (diff) |
Doh, helps to specify the curve.
Diffstat (limited to 'tests/test-rpc_pkey.c')
-rw-r--r-- | tests/test-rpc_pkey.c | 4 |
1 files 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; |