substitutes 8-Bit long substrings of the input using the inverse S-Box for decryption and returns the result. @return subtraction Output
(BigInteger ciphertext)
| 2553 | * @return subtraction Output |
| 2554 | */ |
| 2555 | public static BigInteger subBytesDec(BigInteger ciphertext) { |
| 2556 | int[] cells = splitBlockIntoCells(ciphertext); |
| 2557 | |
| 2558 | for (int i = 0; i < 16; i++) { |
| 2559 | cells[i] = INVERSE_SBOX[cells[i]]; |
| 2560 | } |
| 2561 | |
| 2562 | return mergeCellsIntoBlock(cells); |
| 2563 | } |
| 2564 | |
| 2565 | /** |
| 2566 | * Cell permutation step. Shifts cells within the rows of the input and |
no test coverage detected