aboutsummaryrefslogtreecommitdiff
path: root/tests/test-ecdsa.c
diff options
context:
space:
mode:
authorRob Austein <sra@hactrn.net>2015-12-23 01:59:40 -0500
committerRob Austein <sra@hactrn.net>2015-12-23 01:59:40 -0500
commit8c427a7b537a35d6685fb8a95e9b64732d6b4c49 (patch)
tree1306377c7a9a0b4feecc3a04c32a0c5462b662fe /tests/test-ecdsa.c
parentc4c6c5e349916c3592fa361c8bda045d67f182d7 (diff)
First round of fixes for new ASN.1 and test code.
Diffstat (limited to 'tests/test-ecdsa.c')
-rw-r--r--tests/test-ecdsa.c3
1 files changed, 3 insertions, 0 deletions
diff --git a/tests/test-ecdsa.c b/tests/test-ecdsa.c
index bdcfca6..da2b367 100644
--- a/tests/test-ecdsa.c
+++ b/tests/test-ecdsa.c
@@ -231,6 +231,9 @@ static int test_against_static_vectors(const ecdsa_tc_t * const tc)
if (err != HAL_OK)
return printf("hal_ecdsa_public_key_to_der() failed: %s\n", hal_error_string(err)), 0;
+ if ((err = hal_ecdsa_public_key_from_der(&key2, keybuf2, sizeof(keybuf2), der, der_len)) != HAL_OK)
+ return printf("hal_ecdsa_public_key_from_der() failed: %s\n", hal_error_string(err)), 0;
+
if (memcmp(key1, key2, hal_ecdsa_key_t_size) != 0)
return printf("Public key mismatch after second read/write cycle\n"), 0;