def test_AES128_cf2(self): # AES128 cf2 kb = h('97DF97E4B798B29EB31ED7280287A92A') k1 = string_to_key(Enctype.AES128, b'key1', b'key1') k2 = string_to_key(Enctype.AES128, b'key2', b'key2') k = cf2(Enctype.AES128, k1, k2, b'a', b'b') self.assertEqual(k.contents, kb)
def test_DES3_cf2(self): # DES3 cf2 kb = h('E58F9EB643862C13AD38E529313462A7F73E62834FE54A01') k1 = string_to_key(Enctype.DES3, b'key1', b'key1') k2 = string_to_key(Enctype.DES3, b'key2', b'key2') k = cf2(Enctype.DES3, k1, k2, b'a', b'b') self.assertEqual(k.contents, kb)
def test_RC4_cf2(self): # RC4 cf2 kb = h('24D7F6B6BAE4E5C00D2082C5EBAB3672') k1 = string_to_key(Enctype.RC4, 'key1', 'key1') k2 = string_to_key(Enctype.RC4, 'key2', 'key2') k = cf2(Enctype.RC4, k1, k2, b'a', b'b') self.assertEqual(k.contents, kb)
def test_AES256_cf2(self): # AES256 cf2 kb = h( '4D6CA4E629785C1F01BAF55E2E548566B9617AE3A96868C337CB93B5E72B1C7B') k1 = string_to_key(Enctype.AES256, b'key1', b'key1') k2 = string_to_key(Enctype.AES256, b'key2', b'key2') k = cf2(Enctype.AES256, k1, k2, b'a', b'b') self.assertEqual(k.contents, kb)