Ejemplo n.º 1
0
 def test_KeyHandler(self):
     KeyHandler(self.ikey, cur1='secp112r2')
     KeyHandler(self.ikey, cur1='secp128r1')
     KeyHandler(self.ikey, cur1='sect131r2')
     KeyHandler(self.ikey, cur1='secp160k1')
     KeyHandler(self.ikey, cur1='sect239k1')
     KeyHandler(self.ikey, cur1='secp256k1')
     KeyHandler(self.ikey, cur1='secp384r1')
     KeyHandler(self.ikey, cur1='sect409r1')
     KeyHandler(self.ikey, cur1='secp521r1')
     KeyHandler(self.ikey, cur1='sect571r1')
Ejemplo n.º 2
0
 def setUpClass(cls):
     logging.basicConfig(
         filename='test/test_common/test_SecretInfoBlock.log')
     SecretInfoBlockTestCase.ikey = "this is the key for testing".encode()
     SecretInfoBlockTestCase.keyh = KeyHandler(SecretInfoBlockTestCase.ikey, \
                                               cur2='secp256k1', cip2='aes-128-cbc', \
                                               cur3='sect283r1', cip3='rc4')
Ejemplo n.º 3
0
 def setUp(self):
     self.ikey = "this is the key for testing".encode()
     self.foo1 = KeyHandler(self.ikey, cur2='sect409k1', cip2='aes-256-cbc', cur3='sect409k1', cip3='aes-256-cbc')
     self.plaintext1 = b"0123456789ABCDEFGHIJKLMNOPQRSTUVWXYZ"