Lines Matching refs:secret
68 * @param secret: the buffer containing the secret value to generate prf.
71 static synchronized void computePRF_SSLv3(byte[] out, byte[] secret, byte[] seed) {
82 sha.update(secret);
84 md5.update(secret);
100 * @param secret: the buffer containing the secret value to generate prf.
104 synchronized static void computePRF(byte[] out, byte[] secret,
124 if ((secret == null) || (secret.length == 0)) {
125 secret = new byte[8];
126 keyMd5 = new SecretKeySpec(secret, "HmacMD5");
127 keySha1 = new SecretKeySpec(secret, "HmacSHA1");
129 int length = secret.length >> 1; // division by 2
130 int offset = secret.length & 1; // remainder
131 keyMd5 = new SecretKeySpec(secret, 0, length + offset,
133 keySha1 = new SecretKeySpec(secret, length, length
140 logger.println("secret["+secret.length+"]: ");
141 logger.printAsHex(16, "", " ", secret);