Click here to Skip to main content
15,891,607 members
Please Sign up or sign in to vote.
1.00/5 (2 votes)
See more:
s-box for present

def sBoxLayer(state):
"""SBox function for encryption

Input: 64-bit integer
Output: 64-bit integer"""

output = 0

for i in range(16):

output += Sbox[( state >> ( i * 4 ) & 0x0F ) ] << ( i * 4 )

What I have tried:

put s-box for AES place s-box for present lightweight algorithm
Posted
Updated 7-Apr-22 2:13am

1 solution

 
Share this answer
 

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900