Lines Matching refs:one
578 struct crypto_bignum *a, *u2, *t1, *t2, *z, *t, *zero, *one, *two, *three, in sswu() local
606 one = crypto_bignum_init_uint(1); in sswu()
615 if (!u2 || !t1 || !t2 || !z || !t || !zero || !one || !two || !three || in sswu()
658 crypto_bignum_addmod(one, t, prime, t2) < 0 || in sswu()
697 if (crypto_bignum_sub(prime, one, t1) < 0 || in sswu()
766 crypto_bignum_deinit(one, 0); in sswu()
925 struct crypto_bignum *one = NULL, *two = NULL, *bn = NULL, *tmp = NULL, in sae_derive_pt_ffc() local
957 one = crypto_bignum_init_uint(1); in sae_derive_pt_ffc()
960 if (!bn || !one || !two || !tmp || in sae_derive_pt_ffc()
973 crypto_bignum_sub(prime, one, tmp) < 0 || in sae_derive_pt_ffc()
987 crypto_bignum_deinit(one, 0); in sae_derive_pt_ffc()
1102 struct crypto_bignum *tmp = NULL, *val = NULL, *one = NULL; in sae_derive_pwe_from_pt_ecc() local
1128 one = crypto_bignum_init_uint(1); in sae_derive_pwe_from_pt_ecc()
1129 if (!tmp || !val || !one || in sae_derive_pwe_from_pt_ecc()
1130 crypto_bignum_sub(order, one, tmp) < 0 || in sae_derive_pwe_from_pt_ecc()
1132 crypto_bignum_add(val, one, val) < 0) in sae_derive_pwe_from_pt_ecc()
1151 crypto_bignum_deinit(one, 0); in sae_derive_pwe_from_pt_ecc()
1165 struct crypto_bignum *tmp = NULL, *val = NULL, *one = NULL; in sae_derive_pwe_from_pt_ffc() local
1189 one = crypto_bignum_init_uint(1); in sae_derive_pwe_from_pt_ffc()
1190 if (!tmp || !val || !one || in sae_derive_pwe_from_pt_ffc()
1191 crypto_bignum_sub(order, one, tmp) < 0 || in sae_derive_pwe_from_pt_ffc()
1193 crypto_bignum_add(val, one, val) < 0) in sae_derive_pwe_from_pt_ffc()
1209 crypto_bignum_deinit(one, 0); in sae_derive_pwe_from_pt_ffc()
1909 struct crypto_bignum *res, *one; in sae_parse_commit_element_ffc() local
1927 one = crypto_bignum_init_set(one_bin, sizeof(one_bin)); in sae_parse_commit_element_ffc()
1928 if (!res || !one || in sae_parse_commit_element_ffc()
1929 crypto_bignum_sub(sae->tmp->prime, one, res) || in sae_parse_commit_element_ffc()
1934 crypto_bignum_deinit(one, 0); in sae_parse_commit_element_ffc()
1938 crypto_bignum_deinit(one, 0); in sae_parse_commit_element_ffc()