From b24ea47f610ab16fc14d9deee22cc68b7d3be214 Mon Sep 17 00:00:00 2001 From: Rob Austein Date: Sat, 14 May 2016 16:23:51 -0400 Subject: 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. --- scripts/py11-test.py | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'scripts') 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) -- cgit v1.2.3