Lines Matching refs:ndigits
17 unsigned int ndigits; member
40 unsigned int ndigits; in ecdh_set_secret() local
45 ndigits = ecdh_supported_curve(params.curve_id); in ecdh_set_secret()
46 if (!ndigits) in ecdh_set_secret()
50 ctx->ndigits = ndigits; in ecdh_set_secret()
53 return ecc_gen_privkey(ctx->curve_id, ctx->ndigits, in ecdh_set_secret()
56 if (ecc_is_key_valid(ctx->curve_id, ctx->ndigits, in ecdh_set_secret()
75 nbytes = ctx->ndigits << ECC_DIGITS_TO_BYTES_SHIFT; in ecdh_compute_value()
102 ret = crypto_ecdh_shared_secret(ctx->curve_id, ctx->ndigits, in ecdh_compute_value()
108 ret = ecc_make_pub_key(ctx->curve_id, ctx->ndigits, in ecdh_compute_value()
138 return ctx->ndigits << (ECC_DIGITS_TO_BYTES_SHIFT + 1); in ecdh_max_size()