Lines Matching defs:seed
5502 if (operation->ctx.tls12_prf.seed != NULL) {
5503 mbedtls_zeroize_and_free(operation->ctx.tls12_prf.seed,
5692 * PRF(secret, label, seed) = P_<hash>(secret, label + seed)
5694 * P_hash(secret, seed) = HMAC_hash(secret, A(1) + seed) +
5695 * HMAC_hash(secret, A(2) + seed) +
5696 * HMAC_hash(secret, A(3) + seed) + ...
5698 * A(0) = seed
5702 * `HMAC_hash(secret, A(i) + seed)` from which the output
5717 /* A(1) = HMAC_hash(secret, A(0)), where A(0) = seed. (The RFC overloads
5718 * the variable seed and in this instance means it in the context of the
5719 * P_hash function, where seed = label + seed.) */
5727 tls12_prf->seed,
5750 /* Calculate HMAC_hash(secret, A(i) + label + seed). */
5766 status = psa_mac_update(&hmac, tls12_prf->seed, tls12_prf->seed_length);
6861 prf->seed = mbedtls_calloc(1, data_length);
6862 if (prf->seed == NULL) {
6866 memcpy(prf->seed, data, data_length);
7715 /* The PSA entropy injection feature depends on using NV seed as an entropy
7716 * source. Add NV seed as an entropy source for PSA entropy injection. */
7776 psa_status_t mbedtls_psa_inject_entropy(const uint8_t *seed,
7789 return mbedtls_psa_storage_inject_entropy(seed, seed_size);
8188 /* Initialize and seed the random generator. */