diff options
author | Rob Austein <sra@hactrn.net> | 2016-05-14 16:23:51 -0400 |
---|---|---|
committer | Rob Austein <sra@hactrn.net> | 2016-05-14 16:23:51 -0400 |
commit | b24ea47f610ab16fc14d9deee22cc68b7d3be214 (patch) | |
tree | 0ab2e01fe83894b7a4c0463558796540255623dd /scripts | |
parent | 7ce10ab8b2351157445a281695dddae0a91f7580 (diff) |
Key flag handling, more trailing whitespace cleanup.
At this point we are passing most of the unit tests in RPC loopback
mode. Remaining failure is TestKeys.test_keygen_token_vs_session(),
which gets HAL_ERROR_KEY_NAME_IN_USE when attempting to generate a
session key and a token key with the same CKA_ID value, so clearly
something is not quite right yet in the keystore selection logic.
Diffstat (limited to 'scripts')
-rw-r--r-- | scripts/py11-test.py | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/scripts/py11-test.py b/scripts/py11-test.py index 1719f8b..04372ec 100644 --- a/scripts/py11-test.py +++ b/scripts/py11-test.py @@ -112,19 +112,19 @@ print "Generating EC P256 keypair" ec_templates = genkeypair_templates("EC-P256", CKA_EC_PARAMS = ec_curve_oid_p256) ec_p256_keypair = p11.C_GenerateKeyPair(session, CKM_EC_KEY_PAIR_GEN, ec_templates[0], ec_templates[1]) print ec_p256_keypair - + print print "Generating EC P384 keypair" ec_templates = genkeypair_templates("EC-P384", CKA_EC_PARAMS = ec_curve_oid_p384) ec_p384_keypair = p11.C_GenerateKeyPair(session, CKM_EC_KEY_PAIR_GEN, ec_templates[0], ec_templates[1]) print ec_p384_keypair - + print print "Generating EC P521 keypair" ec_templates = genkeypair_templates("EC-P521", CKA_EC_PARAMS = ec_curve_oid_p521) ec_p521_keypair = p11.C_GenerateKeyPair(session, CKM_EC_KEY_PAIR_GEN, ec_templates[0], ec_templates[1]) print ec_p521_keypair - + print print "Listing keys" show_keys(session, CKO_PUBLIC_KEY, CKA_VERIFY, CKA_ENCRYPT, CKA_WRAP) |