How to apply DES Sbox 1?
5 次查看(过去 30 天)
显示 更早的评论
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 个评论
回答(1 个)
Image Analyst
2023-6-29
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?
另请参阅
类别
在 Help Center 和 File Exchange 中查找有关 Encryption / Cryptography 的更多信息
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!