mirror of
https://github.com/TheAlgorithms/Java.git
synced 2025-07-23 04:20:16 +08:00
style: enable MethodName
in CheckStyle (#5182)
enabled: MethodName in CheckStyle
This commit is contained in:

committed by
GitHub

parent
ea4dc15a24
commit
295e7436b1
@ -106,7 +106,7 @@ public class DES {
|
||||
return subKeys;
|
||||
}
|
||||
|
||||
private String XOR(String a, String b) {
|
||||
private String xOR(String a, String b) {
|
||||
int i;
|
||||
int l = a.length();
|
||||
StringBuilder xor = new StringBuilder();
|
||||
@ -143,7 +143,7 @@ public class DES {
|
||||
for (i = 0; i < 48; i++) {
|
||||
expandedKey.append(messageBlock.charAt(EXPANSION[i] - 1));
|
||||
}
|
||||
String mixedKey = XOR(expandedKey.toString(), key);
|
||||
String mixedKey = xOR(expandedKey.toString(), key);
|
||||
StringBuilder substitutedString = new StringBuilder();
|
||||
|
||||
// Let us now use the s-boxes to transform each 6 bit (length here) block to 4 bits
|
||||
@ -175,7 +175,7 @@ public class DES {
|
||||
// Iterate 16 times
|
||||
for (i = 0; i < 16; i++) {
|
||||
String Ln = R0; // Previous Right block
|
||||
String Rn = XOR(L0, feistel(R0, keys[i]));
|
||||
String Rn = xOR(L0, feistel(R0, keys[i]));
|
||||
L0 = Ln;
|
||||
R0 = Rn;
|
||||
}
|
||||
|
Reference in New Issue
Block a user