/** * Compatibility with new OpenBSD function. */ public void hash(byte[] hpass, byte[] hsalt, byte[] output) { init_key(); ekskey(hsalt, hpass); for (int i = 0; i < 64; i++) { key(hsalt); key(hpass); } int[] buf = new int[openbsd_iv.length]; System.arraycopy(openbsd_iv, 0, buf, 0, openbsd_iv.length); for (int i = 0; i < 8; i += 2) { for (int j = 0; j < 64; j++) { encipher(buf, i); } } for (int i = 0, j = 0; i < buf.length; i++) { // Output of this is little endian output[j++] = (byte)(buf[i] & 0xff); output[j++] = (byte)((buf[i] >> 8) & 0xff); output[j++] = (byte)((buf[i] >> 16) & 0xff); output[j++] = (byte)((buf[i] >> 24) & 0xff); } }
ekskey(salt, password); for (i = 0; i != rounds; i++) { key(password);
ekskey(salt, password); for (i = 0; i != rounds; i++) { key(password);
/** * Compatibility with new OpenBSD function. */ public void hash(byte[] hpass, byte[] hsalt, byte[] output) { init_key(); ekskey(hsalt, hpass); for (int i = 0; i < 64; i++) { key(hsalt); key(hpass); } int[] buf = new int[openbsd_iv.length]; System.arraycopy(openbsd_iv, 0, buf, 0, openbsd_iv.length); for (int i = 0; i < 8; i += 2) { for (int j = 0; j < 64; j++) { encipher(buf, i); } } for (int i = 0, j = 0; i < buf.length; i++) { // Output of this is little endian output[j++] = (byte)(buf[i] & 0xff); output[j++] = (byte)((buf[i] >> 8) & 0xff); output[j++] = (byte)((buf[i] >> 16) & 0xff); output[j++] = (byte)((buf[i] >> 24) & 0xff); } }
ekskey(salt, password); for (i = 0; i != rounds; i++) { key(password);
ekskey(salt, password); for (i = 0; i != rounds; i++) { key(password);
ekskey(salt, password); for (i = 0; i != rounds; i++) { key(password);
ekskey(salt, password); for (i = 0; i != rounds; i++) { key(password);
/** * Compatibility with new OpenBSD function. */ public void hash(byte[] hpass, byte[] hsalt, byte[] output) { init_key(); ekskey(hsalt, hpass); for (int i = 0; i < 64; i++) { key(hsalt); key(hpass); } int[] buf = new int[openbsd_iv.length]; System.arraycopy(openbsd_iv, 0, buf, 0, openbsd_iv.length); for (int i = 0; i < 8; i += 2) { for (int j = 0; j < 64; j++) { encipher(buf, i); } } for (int i = 0, j = 0; i < buf.length; i++) { // Output of this is little endian output[j++] = (byte)(buf[i] & 0xff); output[j++] = (byte)((buf[i] >> 8) & 0xff); output[j++] = (byte)((buf[i] >> 16) & 0xff); output[j++] = (byte)((buf[i] >> 24) & 0xff); } }
ekskey(salt, password); for (i = 0; i != rounds; i++) { key(password);
ekskey(salt, password); for (i = 0; i < rounds; i++) { key(password);