Home
last modified time | relevance | path

Searched refs:isone (Results 1 – 10 of 10) sorted by relevance

/freebsd/crypto/libecc/src/nn/
H A Dnn_rand.c99 int ret, isone; in nn_get_random_mod() local
109 MUST_HAVE((!nn_isone(q, &isone)) && (!isone), ret, err); in nn_get_random_mod()
H A Dnn.c274 int nn_isone(nn_src_t A, int *isone) in nn_isone() argument
281 MUST_HAVE((isone != NULL), ret, err); in nn_isone()
290 *isone = !notone; in nn_isone()
H A Dnn_modinv.c223 int sign, ret, cmp, isodd, isone; in nn_modinv() local
260 ret = nn_isone(&out, &isone); EG(ret, err); in nn_modinv()
261 MUST_HAVE(isone, ret, err); in nn_modinv()
/freebsd/crypto/libecc/src/examples/basic/
H A Dfp_square_residue.c29 int ret, ret_sqr, isone, check, cmp; in main() local
47 ret = nn_isone(&p, &isone); EG(ret, err); in main()
48 if(isone){ in main()
H A Dcurve_basic_examples.c112 int ret, is_oncurve, isone, iszero; in check_curve() local
212 ret = nn_isone(&(curve_params.ec_gen_cofactor), &isone); EG(ret, err); in check_curve()
213 if (isone) { in check_curve()
/freebsd/crypto/libecc/src/sig/
H A Dec_key.c143 int ret, isone, check; in ec_pub_key_import_from_buf() local
159 ret = nn_isone(&(params->ec_gen_cofactor), &isone); EG(ret, err); in ec_pub_key_import_from_buf()
160 if (!isone) { in ec_pub_key_import_from_buf()
185 int ret, isone, check; in ec_pub_key_import_from_aff_buf() local
201 ret = nn_isone(&(params->ec_gen_cofactor), &isone); EG(ret, err); in ec_pub_key_import_from_aff_buf()
202 if (!isone){ in ec_pub_key_import_from_aff_buf()
H A Dbip0340.c78 int ret, isodd, isone; in _bip0340_set_scalar() local
86 ret = nn_isone(&(P->Z.fp_val), &isone); EG(ret, err); in _bip0340_set_scalar()
87 MUST_HAVE((isone), ret, err); in _bip0340_set_scalar()
/freebsd/crypto/libecc/src/ecdh/
H A Decccdh.c169 int ret, iszero, isone; in ecccdh_derive_secret() local
188 ret = nn_isone(cofactor, &isone); EG(ret, err); in ecccdh_derive_secret()
189 if(!isone){ in ecccdh_derive_secret()
/freebsd/crypto/libecc/src/fp/
H A Dfp.c247 int ret, isone; in fp_one() local
252 ret = nn_isone(&(out->ctx->p), &isone); EG(ret, err); in fp_one()
254 val = isone ? WORD(0) : WORD(1); in fp_one()
/freebsd/crypto/libecc/include/libecc/nn/
H A Dnn.h87 ATTRIBUTE_WARN_UNUSED_RET int nn_isone(nn_src_t A, int *isone);