• Home
  • Raw
  • Download

Lines Matching refs:pwe

195 				 struct crypto_bignum *pwe)  in sae_test_pwd_seed_ffc()  argument
257 res = crypto_bignum_exptmod(a, b, sae->tmp->prime, pwe); in sae_test_pwd_seed_ffc()
269 is_val = crypto_bignum_is_zero(pwe); in sae_test_pwd_seed_ffc()
271 is_val = crypto_bignum_is_one(pwe); in sae_test_pwd_seed_ffc()
451 struct crypto_bignum *pwe; in sae_derive_pwe_ffc() local
461 pwe = crypto_bignum_init(); in sae_derive_pwe_ffc()
462 if (!pwe_buf || !pwe) in sae_derive_pwe_ffc()
503 res = sae_test_pwd_seed_ffc(sae, pwd_seed, pwe); in sae_derive_pwe_ffc()
511 if (crypto_bignum_to_bin(pwe, pwe_buf + prime_len, prime_len, in sae_derive_pwe_ffc()
527 crypto_bignum_deinit(pwe, 1); in sae_derive_pwe_ffc()
1158 struct crypto_ec_point *pwe = NULL; in sae_derive_pwe_from_pt_ecc() local
1192 pwe = crypto_ec_point_init(pt->ec); in sae_derive_pwe_from_pt_ecc()
1193 if (!pwe || in sae_derive_pwe_from_pt_ecc()
1194 crypto_ec_point_mul(pt->ec, pt->ecc_pt, val, pwe) < 0 || in sae_derive_pwe_from_pt_ecc()
1195 crypto_ec_point_to_bin(pt->ec, pwe, bin, bin + prime_len) < 0) { in sae_derive_pwe_from_pt_ecc()
1196 crypto_ec_point_deinit(pwe, 1); in sae_derive_pwe_from_pt_ecc()
1197 pwe = NULL; in sae_derive_pwe_from_pt_ecc()
1207 return pwe; in sae_derive_pwe_from_pt_ecc()
1221 struct crypto_bignum *pwe = NULL, *order = NULL, *prime = NULL; in sae_derive_pwe_from_pt_ffc() local
1253 pwe = crypto_bignum_init(); in sae_derive_pwe_from_pt_ffc()
1254 if (!pwe || crypto_bignum_exptmod(pt->ffc_pt, val, prime, pwe) < 0) { in sae_derive_pwe_from_pt_ffc()
1255 crypto_bignum_deinit(pwe, 1); in sae_derive_pwe_from_pt_ffc()
1256 pwe = NULL; in sae_derive_pwe_from_pt_ffc()
1259 debug_print_bignum("SAE: PWE", pwe, prime_len); in sae_derive_pwe_from_pt_ffc()
1267 return pwe; in sae_derive_pwe_from_pt_ffc()