diff options
author | Jack Lloyd <[email protected]> | 2016-11-03 15:05:47 -0400 |
---|---|---|
committer | Jack Lloyd <[email protected]> | 2016-11-03 15:05:47 -0400 |
commit | 4c502bdfca58f2cd962108c4d1a8ccbf05a0c228 (patch) | |
tree | 9dce420833e2ef9f7d6dc47ce3999f384432f44a /src/tests/test_pkcs11_high_level.cpp | |
parent | f61363dea7be957e07c13aa6a4d7da7e1f57d914 (diff) |
Run PKCS11 key self tests
Diffstat (limited to 'src/tests/test_pkcs11_high_level.cpp')
-rw-r--r-- | src/tests/test_pkcs11_high_level.cpp | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/src/tests/test_pkcs11_high_level.cpp b/src/tests/test_pkcs11_high_level.cpp index b549abf94..b91cf6ca0 100644 --- a/src/tests/test_pkcs11_high_level.cpp +++ b/src/tests/test_pkcs11_high_level.cpp @@ -602,6 +602,7 @@ Test::Result test_rsa_privkey_import() // create private key RSA_PrivateKey priv_key(Test::rng(), 2048); + result.confirm("Key self test OK", priv_key.check_key(Test::rng(), 2048)); // import to card RSA_PrivateKeyImportProperties props(priv_key.get_n(), priv_key.get_d()); @@ -863,6 +864,7 @@ Test::Result test_ecdsa_privkey_import() // create ecdsa private key ECDSA_PrivateKey priv_key(Test::rng(), EC_Group("secp256r1")); + result.confirm("Key self test OK", priv_key.check_key(Test::rng(), true)); priv_key.set_parameter_encoding(EC_Group_Encoding::EC_DOMPAR_ENC_OID); // import to card @@ -876,6 +878,7 @@ Test::Result test_ecdsa_privkey_import() props.set_label(label); PKCS11_ECDSA_PrivateKey pk(test_session.session(), props); + result.confirm("P11 key self test OK", pk.check_key(Test::rng(), true)); result.test_success("ECDSA private key import was successful"); pk.destroy(); |