mirror of
https://github.com/AuthMe/AuthMeReloaded.git
synced 2024-12-23 17:17:36 +01:00
Reformatted all files once again
This commit is contained in:
parent
4a2a5ed309
commit
53117928f5
@ -166,9 +166,10 @@ public class WHIRLPOOL implements EncryptionMethod {
|
|||||||
|
|
||||||
/**
|
/**
|
||||||
* Method display.
|
* Method display.
|
||||||
|
*
|
||||||
* @param array byte[]
|
* @param array byte[]
|
||||||
|
* @return String
|
||||||
* @return String */
|
*/
|
||||||
protected static String display(byte[] array) {
|
protected static String display(byte[] array) {
|
||||||
char[] val = new char[2 * array.length];
|
char[] val = new char[2 * array.length];
|
||||||
String hex = "0123456789ABCDEF";
|
String hex = "0123456789ABCDEF";
|
||||||
@ -247,12 +248,10 @@ public class WHIRLPOOL implements EncryptionMethod {
|
|||||||
/**
|
/**
|
||||||
* Delivers input data to the hashing algorithm.
|
* Delivers input data to the hashing algorithm.
|
||||||
*
|
*
|
||||||
* @param source
|
* @param source plaintext data to hash.
|
||||||
* plaintext data to hash.
|
* @param sourceBits how many bits of plaintext to process.
|
||||||
* @param sourceBits
|
* <p/>
|
||||||
* how many bits of plaintext to process.
|
* This method maintains the invariant: bufferBits < 512
|
||||||
*
|
|
||||||
* This method maintains the invariant: bufferBits < 512
|
|
||||||
*/
|
*/
|
||||||
public void NESSIEadd(byte[] source, long sourceBits) {
|
public void NESSIEadd(byte[] source, long sourceBits) {
|
||||||
/*
|
/*
|
||||||
@ -333,8 +332,9 @@ public class WHIRLPOOL implements EncryptionMethod {
|
|||||||
|
|
||||||
/**
|
/**
|
||||||
* Get the hash value from the hashing state.
|
* Get the hash value from the hashing state.
|
||||||
*
|
* <p/>
|
||||||
* This method uses the invariant: bufferBits < 512
|
* This method uses the invariant: bufferBits < 512
|
||||||
|
*
|
||||||
* @param digest byte[]
|
* @param digest byte[]
|
||||||
*/
|
*/
|
||||||
public void NESSIEfinalize(byte[] digest) {
|
public void NESSIEfinalize(byte[] digest) {
|
||||||
@ -375,10 +375,9 @@ public class WHIRLPOOL implements EncryptionMethod {
|
|||||||
/**
|
/**
|
||||||
* Delivers string input data to the hashing algorithm.
|
* Delivers string input data to the hashing algorithm.
|
||||||
*
|
*
|
||||||
* @param source
|
* @param source plaintext data to hash (ASCII text string).
|
||||||
* plaintext data to hash (ASCII text string).
|
* <p/>
|
||||||
*
|
* This method maintains the invariant: bufferBits < 512
|
||||||
* This method maintains the invariant: bufferBits < 512
|
|
||||||
*/
|
*/
|
||||||
public void NESSIEadd(String source) {
|
public void NESSIEadd(String source) {
|
||||||
if (source.length() > 0) {
|
if (source.length() > 0) {
|
||||||
@ -392,13 +391,12 @@ public class WHIRLPOOL implements EncryptionMethod {
|
|||||||
|
|
||||||
/**
|
/**
|
||||||
* Method getHash.
|
* Method getHash.
|
||||||
|
*
|
||||||
* @param password String
|
* @param password String
|
||||||
* @param salt String
|
* @param salt String
|
||||||
* @param name String
|
* @param name String
|
||||||
|
* @return String * @throws NoSuchAlgorithmException * @see fr.xephi.authme.security.crypts.EncryptionMethod#getHash(String, String, String)
|
||||||
|
*/
|
||||||
|
|
||||||
* @return String * @throws NoSuchAlgorithmException * @see fr.xephi.authme.security.crypts.EncryptionMethod#getHash(String, String, String) */
|
|
||||||
@Override
|
@Override
|
||||||
public String getHash(String password, String salt, String name)
|
public String getHash(String password, String salt, String name)
|
||||||
throws NoSuchAlgorithmException {
|
throws NoSuchAlgorithmException {
|
||||||
@ -411,13 +409,12 @@ public class WHIRLPOOL implements EncryptionMethod {
|
|||||||
|
|
||||||
/**
|
/**
|
||||||
* Method comparePassword.
|
* Method comparePassword.
|
||||||
* @param hash String
|
*
|
||||||
* @param password String
|
* @param hash String
|
||||||
|
* @param password String
|
||||||
* @param playerName String
|
* @param playerName String
|
||||||
|
* @return boolean * @throws NoSuchAlgorithmException * @see fr.xephi.authme.security.crypts.EncryptionMethod#comparePassword(String, String, String)
|
||||||
|
*/
|
||||||
|
|
||||||
* @return boolean * @throws NoSuchAlgorithmException * @see fr.xephi.authme.security.crypts.EncryptionMethod#comparePassword(String, String, String) */
|
|
||||||
@Override
|
@Override
|
||||||
public boolean comparePassword(String hash, String password,
|
public boolean comparePassword(String hash, String password,
|
||||||
String playerName) throws NoSuchAlgorithmException {
|
String playerName) throws NoSuchAlgorithmException {
|
||||||
|
Loading…
Reference in New Issue
Block a user