Lines Matching refs:salt

451     // persisted) salt.  Validation is performed by running the challenge text through the
452 // same PBKDF2 cycle with the persisted salt; if the resulting derived key string matches
848 // integer length of the salt array, followed by the salt,
851 byte[] salt = new byte[saltLen];
852 in.readFully(salt);
854 mPasswordSalt = salt;
1141 private SecretKey buildPasswordKey(String algorithm, String pw, byte[] salt, int rounds) {
1142 return buildCharArrayKey(algorithm, pw.toCharArray(), salt, rounds);
1145 private SecretKey buildCharArrayKey(String algorithm, char[] pwArray, byte[] salt, int rounds) {
1148 KeySpec ks = new PBEKeySpec(pwArray, salt, rounds, PBKDF2_KEY_SIZE);
1158 private String buildPasswordHash(String algorithm, String pw, byte[] salt, int rounds) {
1159 SecretKey key = buildPasswordKey(algorithm, pw, salt, rounds);
1187 private byte[] makeKeyChecksum(String algorithm, byte[] pwBytes, byte[] salt, int rounds) {
1193 Key checksum = buildCharArrayKey(algorithm, mkAsChar, salt, rounds);
1310 byte[] salt = randomBytes(PBKDF2_SALT_SIZE);
1311 String newPwHash = buildPasswordHash(PBKDF_CURRENT, newPw, salt, PBKDF2_HASH_ROUNDS);
1319 // integer length of the salt array, followed by the salt,
1321 out.writeInt(salt.length);
1322 out.write(salt);
1326 mPasswordSalt = salt;
2803 // line 5: user password salt [hex]
2804 // line 6: master key checksum salt [hex]
2810 // The master key checksum is the master key plus its checksum salt, run through
2922 // line 5: user password salt [hex]
2925 // line 6: master key checksum salt [hex]
2948 // The checksum is the (master key + checksum salt), run through the