Lines Matching defs:salt
50 private byte[] salt = null;
166 if (salt == null) {
167 salt = new byte[8];
168 SunJCE.RANDOM.nextBytes(salt);
170 PBEParameterSpec pbeSpec = new PBEParameterSpec(salt, iCount);
228 // create random salt and use default iteration count
229 salt = new byte[8];
230 random.nextBytes(salt);
236 salt = ((PBEParameterSpec) params).getSalt();
237 // salt must be 8 bytes long (by definition)
238 if (salt.length != 8) {
267 // P || S (password concatenated with salt)
268 byte[] concat = new byte[passwdBytes.length + salt.length];
271 System.arraycopy(salt, 0, concat, passwdBytes.length, salt.length);
282 // if the 2 salt halves are the same, invert one of them
285 if (salt[i] != salt[i+4])
290 byte tmp = salt[i];
291 salt[i] = salt[3-i];
292 salt[3-1] = tmp;
308 toBeHashed = new byte[salt.length/2];
309 System.arraycopy(salt, i*(salt.length/2), toBeHashed, 0,