How to apply DES Sbox 1?
19 views (last 30 days)
Show older comments
Hi. I want to apply DES Sbox1.
S-box1= [ 14 4 13 1 2 15 11 8 3 10 6 12 5 9 0 7 ...
0 15 7 4 14 2 13 1 10 6 12 11 9 5 3 8 ...
4 1 14 8 13 6 2 11 15 12 9 7 3 10 5 0 ...
15 12 8 2 4 9 1 7 5 11 3 14 10 0 6 13 ];
num=[15 23 19 12 8];
N=de2bi(num,6,'left-msb');
I want to apply sbox on N.
If any one can help...
0 Comments
Answers (1)
Image Analyst
on 29 Jun 2023
You can't have a subtraction operation on the left wide of an equals sign:
S-box1 = ...............
The right side of the equals sign needs to be put into a variable, not an expression (a subtraction operation, like S minus box1)
What is sbox? And what does it mean to "apply" sbox on N?
See Also
Categories
Find more on Encryption / Cryptography in Help Center and File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!