/freebsd/crypto/libecc/src/nn/ |
H A D | nn_rand.c | 99 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 D | nn.c | 274 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 D | nn_modinv.c | 223 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 D | fp_square_residue.c | 29 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 D | curve_basic_examples.c | 112 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 D | ec_key.c | 143 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 D | bip0340.c | 78 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 D | ecccdh.c | 169 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 D | fp.c | 247 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 D | nn.h | 87 ATTRIBUTE_WARN_UNUSED_RET int nn_isone(nn_src_t A, int *isone);
|