aboutsummaryrefslogtreecommitdiff
path: root/rpc_pkey.c
diff options
context:
space:
mode:
authorRob Austein <sra@hactrn.net>2015-12-20 19:08:58 -0500
committerRob Austein <sra@hactrn.net>2015-12-20 19:08:58 -0500
commite3f62b04be54fda0fddc7d9ee5e09441d1651c21 (patch)
tree1a75d2d4b41d294d1be07a560d5dc20d4a66bb70 /rpc_pkey.c
parent86b35d757048aaa122237e1cb8fb33de9d53292d (diff)
Drop support for the ASN.1-based ECDSA signature format in favor of
the simpler format which PKCS #11 uses, since we have to support the latter in any case and it's not worth the complexity of supporting both.
Diffstat (limited to 'rpc_pkey.c')
-rw-r--r--rpc_pkey.c6
1 files changed, 2 insertions, 4 deletions
diff --git a/rpc_pkey.c b/rpc_pkey.c
index 8fece44..d286497 100644
--- a/rpc_pkey.c
+++ b/rpc_pkey.c
@@ -537,8 +537,7 @@ static hal_error_t sign_ecdsa(uint8_t *keybuf, const size_t keybuf_len,
input = signature;
}
- if ((err = hal_ecdsa_sign(NULL, key, input, input_len, signature, signature_len, signature_max,
- HAL_ECDSA_SIGNATURE_FORMAT_PKCS11)) != HAL_OK)
+ if ((err = hal_ecdsa_sign(NULL, key, input, input_len, signature, signature_len, signature_max)) != HAL_OK)
return err;
return HAL_OK;
@@ -658,8 +657,7 @@ static hal_error_t verify_ecdsa(uint8_t *keybuf, const size_t keybuf_len,
input = digest;
}
- if ((err = hal_ecdsa_verify(NULL, key, input, input_len, signature, signature_len,
- HAL_ECDSA_SIGNATURE_FORMAT_PKCS11)) != HAL_OK)
+ if ((err = hal_ecdsa_verify(NULL, key, input, input_len, signature, signature_len)) != HAL_OK)
return err;
return HAL_OK;