Lines Matching refs:ndigits
17 unsigned int ndigits; member
33 params.key_size > sizeof(u64) * ctx->ndigits) in ecdh_set_secret()
39 return ecc_gen_privkey(ctx->curve_id, ctx->ndigits, in ecdh_set_secret()
44 if (ecc_is_key_valid(ctx->curve_id, ctx->ndigits, in ecdh_set_secret()
62 nbytes = ctx->ndigits << ECC_DIGITS_TO_BYTES_SHIFT; in ecdh_compute_value()
89 ret = crypto_ecdh_shared_secret(ctx->curve_id, ctx->ndigits, in ecdh_compute_value()
95 ret = ecc_make_pub_key(ctx->curve_id, ctx->ndigits, in ecdh_compute_value()
125 return ctx->ndigits << (ECC_DIGITS_TO_BYTES_SHIFT + 1); in ecdh_max_size()
133 ctx->ndigits = ECC_CURVE_NIST_P192_DIGITS; in ecdh_nist_p192_init_tfm()
158 ctx->ndigits = ECC_CURVE_NIST_P256_DIGITS; in ecdh_nist_p256_init_tfm()
183 ctx->ndigits = ECC_CURVE_NIST_P384_DIGITS; in ecdh_nist_p384_init_tfm()