MCPcopy Create free account
hub / github.com/TheAlgorithms/Java / addRoundKey

Method addRoundKey

src/main/java/com/thealgorithms/ciphers/AES.java:2529–2531  ·  view source on GitHub ↗

@return ciphertext XOR key

(BigInteger ciphertext, BigInteger key)

Source from the content-addressed store, hash-verified

2527 * @return ciphertext XOR key
2528 */
2529 public static BigInteger addRoundKey(BigInteger ciphertext, BigInteger key) {
2530 return ciphertext.xor(key);
2531 }
2532
2533 /**
2534 * substitutes 8-Bit long substrings of the input using the S-Box and

Callers 2

encryptMethod · 0.95
decryptMethod · 0.95

Calls 1

xorMethod · 0.45

Tested by

no test coverage detected