0
$\begingroup$

enter image description here a) if input 1011

= 0 1 1 1

b) if input 0110

= 1 1 0 0

my answer right?

$\endgroup$
1
  • $\begingroup$ For b, if the input is 0110, the answer should be 0011. $\endgroup$ Dec 19, 2017 at 8:30

1 Answer 1

0
$\begingroup$

No, your answers are incorrect by my reading of the description. The leftmost bit can't change, since only the other three bits are rotated. That does make for a pretty terrible s-box, but it's an exercise anyway...

$\endgroup$
2
  • $\begingroup$ aha im understand you 1011 ===> 1110 0111 ===> 0111 same $\endgroup$
    – A_Coder
    Dec 16, 2017 at 19:27
  • $\begingroup$ 1011: Rotate the rightmost three bits right by one bit. 011 >>> 101. Therefore 1101. 0110: Rotate the rightmost three bits left by one bit: 110 <<< 101. Therefore 0101. $\endgroup$ Dec 17, 2017 at 6:44

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge that you have read and understand our privacy policy and code of conduct.

Not the answer you're looking for? Browse other questions tagged or ask your own question.