Lines Matching refs:ndigits
17 unsigned int ndigits;
33 params.key_size > sizeof(u64) * ctx->ndigits)
37 return ecc_gen_privkey(ctx->curve_id, ctx->ndigits,
42 if (ecc_is_key_valid(ctx->curve_id, ctx->ndigits,
60 nbytes = ctx->ndigits << ECC_DIGITS_TO_BYTES_SHIFT;
87 ret = crypto_ecdh_shared_secret(ctx->curve_id, ctx->ndigits,
93 ret = ecc_make_pub_key(ctx->curve_id, ctx->ndigits,
123 return ctx->ndigits << (ECC_DIGITS_TO_BYTES_SHIFT + 1);
131 ctx->ndigits = ECC_CURVE_NIST_P192_DIGITS;
156 ctx->ndigits = ECC_CURVE_NIST_P256_DIGITS;
181 ctx->ndigits = ECC_CURVE_NIST_P384_DIGITS;