示例#1
0
 def test_inv_sbox_lookup_3(self):
     bv = aes.key_bv("33")
     self.assertEqual(aes.bv_hex_str(aes.inv_sbox_lookup(bv)),'66',\
                      "testing '33' on inv_sbox_lookup")
示例#2
0
 def test_inv_sbox_lookup_1(self):
     bv = aes.key_bv("d0")
     self.assertEqual(aes.bv_hex_str(aes.inv_sbox_lookup(bv)),'60',\
                      "testing 'd0' on inv_sbox_lookup")
示例#3
0
 def test_inv_sbox_lookup_2(self):
     bv = aes.key_bv("62")
     self.assertEqual(aes.bv_hex_str(aes.inv_sbox_lookup(bv)),'ab',\
                      "testing '62' on inv_sbox_lookup")
示例#4
0
 def test_inv_sbox_lookup_0(self):
     bv = aes.key_bv("61")
     self.assertEqual(aes.bv_hex_str(aes.inv_sbox_lookup(bv)),'d8',\
                      "testing '61' on inv_sbox_lookup")
示例#5
0
 def test_inv_sbox_lookup_3(self):
     bv = aes.key_bv("33")
     self.assertEqual(aes.bv_hex_str(aes.inv_sbox_lookup(bv)),'66',\
                      "testing '33' on inv_sbox_lookup")
示例#6
0
 def test_inv_sbox_lookup_2(self):
     bv = aes.key_bv("62")
     self.assertEqual(aes.bv_hex_str(aes.inv_sbox_lookup(bv)),'ab',\
                      "testing '62' on inv_sbox_lookup")
示例#7
0
 def test_inv_sbox_lookup_1(self):
     bv = aes.key_bv("d0")
     self.assertEqual(aes.bv_hex_str(aes.inv_sbox_lookup(bv)),'60',\
                      "testing 'd0' on inv_sbox_lookup")    
示例#8
0
 def test_inv_sbox_lookup_0(self):
     bv = aes.key_bv("61")
     self.assertEqual(aes.bv_hex_str(aes.inv_sbox_lookup(bv)),'d8',\
                      "testing '61' on inv_sbox_lookup")