We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 61db75a commit 84c769dCopy full SHA for 84c769d
1 file changed
src/main/java/com/thealgorithms/ciphers/ElGamalCipher.java
@@ -21,7 +21,7 @@ public BigInteger[] encrypt(BigInteger message) {
21
BigInteger c1 = g.modPow(k, p);
22
BigInteger s = y.modPow(k, p);
23
BigInteger c2 = s.multiply(message).mod(p);
24
- return new BigInteger[]{c1, c2};
+ return new BigInteger[] {c1, c2};
25
}
26
27
// Decryption: m = c2 * (c1^x)^-1 mod p
0 commit comments