from sage.crypto.sbox import SBox
input_Value = [12,5,6,11,9,0,10,13,3,14,15,8,4,7,1,2]
S = SBox(input_Value); S
(input_Value)
Cipher_PRESENT = S(1)
print (Cipher_PRESENT)
#
sr = mq.SR(input_Value, allow_zero_inversions=True)
S = SBox([sr.sub_byte(e) for e in list(sr.k)])
print(S)
File "/usr/lib/python2.7/dist-packages/sage/crypto/mq/sr.py", line 442, in __init__ if n-1 not in range(10): TypeError: unsupported operand type(s) for -: 'list' and 'int'