Home | History | Annotate | Download | only in crypto

Lines Matching refs:password

6  * super class for all Password Based Encryption (PBE) parameter generator classes.
10 protected byte[] password;
24 * @param password the password converted into bytes (see below).
25 * @param salt the salt to be mixed with the password.
30 byte[] password,
34 this.password = password;
40 * return the password byte array.
42 * @return the password byte array.
46 return password;
97 * converts a password to a byte array according to the scheme in
100 * @param password a character array representing the password.
101 * @return a byte array representing the password.
104 char[] password)
106 if (password != null)
108 byte[] bytes = new byte[password.length];
112 bytes[i] = (byte)password[i];
124 * converts a password to a byte array according to the scheme in
127 * @param password a character array representing the password.
128 * @return a byte array representing the password.
131 char[] password)
133 if (password != null)
135 return Strings.toUTF8ByteArray(password);
144 * converts a password to a byte array according to the scheme in
147 * @param password a character array representing the password.
148 * @return a byte array representing the password.
151 char[] password)
153 if (password != null && password.length > 0)
156 byte[] bytes = new byte[(password.length + 1) * 2];
158 for (int i = 0; i != password.length; i ++)
160 bytes[i * 2] = (byte)(password[i] >>> 8);
161 bytes[i * 2 + 1] = (byte)password[i];