How to apply DES Sbox 1?
조회 수: 13 (최근 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!