Lines Matching defs:secret

73 static uchar_t TLS_MASTER_SECRET_LABEL[] = {"master secret"};
101 * Called for derivation of the master secret from the pre-master secret,
106 soft_ssl3_churn(uchar_t *secret, uint_t secretlen, uchar_t *rand1,
119 SHA1Update(&sha1_ctx, secret, secretlen);
125 MD5Update(&md5_ctx, secret, secretlen);
134 * {secret, label, seed} into any arbitrary length string of pseudo
136 * Here, it is called for the derivation of the master secret from the
137 * pre-master secret, and for the derivation of the key_block in a TLS
141 soft_tls_prf(uchar_t *secret, uint_t secretlen, uchar_t *label, uint_t labellen,
150 /* secret is NULL for IV's in exportable ciphersuites */
151 if (secret == NULL) {
162 S1 = secret;
163 S2 = secret + (secretlen / 2); /* Possible overlap of S1 and S2. */
184 * PRF(secret, label, seed) = P_MD5(S1, label + seed) XOR
203 * P_hash(secret, seed) = HMAC_hash(secret, A(1) + seed) +
204 * HMAC_hash(secret, A(2) + seed) +
205 * HMAC_hash(secret, A(3) + seed) + ...
209 * A(i) = HMAC_hash(secret, A(i-1))
214 P_MD5(uchar_t *secret, uint_t secretlen, uchar_t *label, uint_t labellen,
232 bcopy(secret, md5_ipad, secretlen);
233 bcopy(secret, md5_opad, secretlen);
236 /* A(1) = HMAC_MD5(secret, rand1 + rand2) */
252 * Compute HMAC_MD5(secret, A(i) + seed);
253 * The secret is already expanded in the ictx and octx, so
286 /* A(i) = HMAC_MD5(secret, A(i-1) */
294 P_SHA1(uchar_t *secret, uint_t secretlen, uchar_t *label, uint_t labellen,
312 bcopy(secret, sha1_ipad, secretlen);
313 bcopy(secret, sha1_opad, secretlen);
316 /* A(1) = HMAC_SHA1(secret, rand1 + rand2) */
332 * Compute HMAC_SHA1(secret, A(i) + seed);
333 * The secret is already expanded in the ictx and octx, so
367 /* A(i) = HMAC_SHA1(secret, A(i-1) */
400 * . basekey_p: The pre-master secret key.
406 * Derive the SSL master secret from the pre-master secret, the client
417 * PRF(pre_master_secret, "master secret",
466 /* Get the SSL version number from the premaster secret */
497 /* Now the actual secret derivation */
588 * . basekey_p: The master secret key.
594 * keys and IVs), from the master secret and the client
735 /* Now the actual secret derivation */
1054 soft_ssl_weaken_key(CK_MECHANISM_PTR mech, uchar_t *secret, uint_t secretlen,
1064 MD5Update(&exp_md5_ctx, secret, secretlen);
1072 soft_tls_prf(secret, secretlen, label, labellen,
1077 soft_tls_prf(secret, secretlen, label, labellen,