Lines Matching refs:ndigits
17 unsigned int ndigits; member
40 unsigned int ndigits; in ecdh_set_secret() local
46 ndigits = ecdh_supported_curve(params.curve_id); in ecdh_set_secret()
47 if (!ndigits) in ecdh_set_secret()
51 ctx->ndigits = ndigits; in ecdh_set_secret()
54 return ecc_gen_privkey(ctx->curve_id, ctx->ndigits, in ecdh_set_secret()
59 if (ecc_is_key_valid(ctx->curve_id, ctx->ndigits, in ecdh_set_secret()
77 nbytes = ctx->ndigits << ECC_DIGITS_TO_BYTES_SHIFT; in ecdh_compute_value()
104 ret = crypto_ecdh_shared_secret(ctx->curve_id, ctx->ndigits, in ecdh_compute_value()
110 ret = ecc_make_pub_key(ctx->curve_id, ctx->ndigits, in ecdh_compute_value()
140 return ctx->ndigits << (ECC_DIGITS_TO_BYTES_SHIFT + 1); in ecdh_max_size()