Cleanup, renames, check protocol version of client on handshake.

This commit is contained in:
Andrew Steinborn
2018-07-26 02:42:17 -04:00
parent 3722f5d664
commit 31cc5288f5
6 changed files with 40 additions and 12 deletions

View File

@@ -9,7 +9,7 @@ import static org.junit.jupiter.api.Assertions.assertEquals;
class EncryptionUtilsTest {
@Test
void twoComplementsSha1Digest() throws Exception {
void twosComplementSha1Digest() throws Exception {
String notchHash = hexDigest("Notch");
assertEquals("4ed1f46bbe04bc756bcb17c0c7ce3e4632f06a48", notchHash);
@@ -21,6 +21,6 @@ class EncryptionUtilsTest {
MessageDigest digest = MessageDigest.getInstance("SHA-1");
digest.update(str.getBytes(StandardCharsets.UTF_8));
byte[] digested = digest.digest();
return EncryptionUtils.twoComplementsSha1Digest(digested);
return EncryptionUtils.twosComplementSha1Digest(digested);
}
}