Skip to content

Commit 84c769d

Browse files
committed
style: fix code format for ElGamalCipher
1 parent 61db75a commit 84c769d

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

src/main/java/com/thealgorithms/ciphers/ElGamalCipher.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,7 @@ public BigInteger[] encrypt(BigInteger message) {
2121
BigInteger c1 = g.modPow(k, p);
2222
BigInteger s = y.modPow(k, p);
2323
BigInteger c2 = s.multiply(message).mod(p);
24-
return new BigInteger[]{c1, c2};
24+
return new BigInteger[] {c1, c2};
2525
}
2626

2727
// Decryption: m = c2 * (c1^x)^-1 mod p

0 commit comments

Comments
 (0)