[Cryptech-Commits] [sw/pkcs11] 03/03: Identical CKA_ID values no longer constitute a conflict, adjust test.

git at cryptech.is git at cryptech.is
Mon May 16 04:13:11 UTC 2016


This is an automated email from the git hooks/post-receive script.

sra at hactrn.net pushed a commit to branch rpc
in repository sw/pkcs11.

commit dddf744a3cfb4f58f07eb983a4788d83f261b860
Author: Rob Austein <sra at hactrn.net>
AuthorDate: Mon May 16 00:02:44 2016 -0400

    Identical CKA_ID values no longer constitute a conflict, adjust test.
---
 unit_tests.py | 14 --------------
 1 file changed, 14 deletions(-)

diff --git a/unit_tests.py b/unit_tests.py
index 62de2cf..f5553d4 100644
--- a/unit_tests.py
+++ b/unit_tests.py
@@ -236,20 +236,6 @@ class TestKeys(unittest.TestCase):
           p11.C_GenerateKeyPair(self.session, CKM_EC_KEY_PAIR_GEN, CKA_TOKEN = True,
                                 CKA_ID = "EC-P256", CKA_EC_PARAMS = self.oid_p256,
                                 CKA_SIGN = True, CKA_VERIFY = True))
-        with self.assertRaises(CKR_Exception):
-            self.assertIsKeypair(
-                p11.C_GenerateKeyPair(self.session, CKM_EC_KEY_PAIR_GEN,
-                                      public_CKA_TOKEN = False, private_CKA_TOKEN = True,
-                                      CKA_ID = "EC-P256", CKA_EC_PARAMS = self.oid_p256,
-                                      CKA_SIGN = True, CKA_VERIFY = True))
-        with self.assertRaises(CKR_Exception):
-            self.assertIsKeypair(
-                p11.C_GenerateKeyPair(self.session, CKM_EC_KEY_PAIR_GEN,
-                                      public_CKA_TOKEN = True, private_CKA_TOKEN = False,
-                                      CKA_ID = "EC-P256", CKA_EC_PARAMS = self.oid_p256,
-                                      CKA_SIGN = True, CKA_VERIFY = True))
-        for handle in p11.FindObjects(self.session):
-            p11.C_DestroyObject(self.session, handle)
         self.assertIsKeypair(
             p11.C_GenerateKeyPair(self.session, CKM_EC_KEY_PAIR_GEN,
                                   public_CKA_TOKEN = False, private_CKA_TOKEN = True,



More information about the Commits mailing list