cleanup: remove redundant cast
This commit is contained in:
@@ -423,7 +423,7 @@ public class BCrypt {
|
||||
if ((int) x < 0 || (int) x > index_64.length) {
|
||||
return -1;
|
||||
}
|
||||
return index_64[(int) x];
|
||||
return index_64[x];
|
||||
}
|
||||
|
||||
/**
|
||||
@@ -566,8 +566,8 @@ public class BCrypt {
|
||||
* Initialise the Blowfish key schedule
|
||||
*/
|
||||
private void init_key() {
|
||||
P = (int[]) P_orig.clone();
|
||||
S = (int[]) S_orig.clone();
|
||||
P = P_orig.clone();
|
||||
S = S_orig.clone();
|
||||
}
|
||||
|
||||
/**
|
||||
@@ -797,7 +797,7 @@ public class BCrypt {
|
||||
hashed = B.crypt_raw(passwordb, saltb, rounds,
|
||||
minor == 'x', // true for sign extension bug ('2x')
|
||||
minor == 'a' ? 0x10000 : 0, // safety factor for '2a'
|
||||
(int[])bf_crypt_ciphertext.clone());
|
||||
bf_crypt_ciphertext.clone());
|
||||
|
||||
rs.append("$2");
|
||||
if (minor >= 'a') {
|
||||
|
||||
Reference in New Issue
Block a user