예제 #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
파일: aes_test.py 프로젝트: dot-Sean/cscd27
 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
파일: aes_test.py 프로젝트: dot-Sean/cscd27
 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
파일: aes_test.py 프로젝트: dot-Sean/cscd27
 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
파일: aes_test.py 프로젝트: dot-Sean/cscd27
 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")