Lines Matching defs:mask
163 /* Create a const_time mask for selection based on prf result
213 * the negative sign can be used to fill the mask for constant time
297 * mask */
463 * mask */
464 u8 mask;
531 mask = const_time_eq_u8(res, 1);
532 found = const_time_select_u8(found, found, mask);
548 struct crypto_bignum *mask)
550 /* COMMIT-ELEMENT = inverse(scalar-op(mask, PWE)) */
558 if (crypto_ec_point_mul(sae->tmp->ec, sae->tmp->pwe_ecc, mask,
571 struct crypto_bignum *mask)
573 /* COMMIT-ELEMENT = inverse(scalar-op(mask, PWE)) */
580 if (crypto_bignum_exptmod(sae->tmp->pwe_ffc, mask, sae->tmp->prime,
595 struct crypto_bignum *mask;
598 mask = crypto_bignum_init();
603 ret = !mask || !sae->tmp->sae_rand || !sae->tmp->own_commit_scalar ||
605 mask,
608 sae_derive_commit_element_ecc(sae, mask) < 0) ||
610 sae_derive_commit_element_ffc(sae, mask) < 0);
611 crypto_bignum_deinit(mask, 1);