Searched refs:ndigits (Results 1 – 7 of 7) sorted by relevance
/Linux-v4.19/crypto/ |
D | ecc.c | 55 static u64 *ecc_alloc_digits_space(unsigned int ndigits) in ecc_alloc_digits_space() argument 57 size_t len = ndigits * sizeof(u64); in ecc_alloc_digits_space() 70 static struct ecc_point *ecc_alloc_point(unsigned int ndigits) in ecc_alloc_point() argument 77 p->x = ecc_alloc_digits_space(ndigits); in ecc_alloc_point() 81 p->y = ecc_alloc_digits_space(ndigits); in ecc_alloc_point() 85 p->ndigits = ndigits; in ecc_alloc_point() 106 static void vli_clear(u64 *vli, unsigned int ndigits) in vli_clear() argument 110 for (i = 0; i < ndigits; i++) in vli_clear() 115 static bool vli_is_zero(const u64 *vli, unsigned int ndigits) in vli_is_zero() argument 119 for (i = 0; i < ndigits; i++) { in vli_is_zero() [all …]
|
D | ecdh.c | 21 unsigned int ndigits; member 44 unsigned int ndigits; in ecdh_set_secret() local 49 ndigits = ecdh_supported_curve(params.curve_id); in ecdh_set_secret() 50 if (!ndigits) in ecdh_set_secret() 54 ctx->ndigits = ndigits; in ecdh_set_secret() 57 return ecc_gen_privkey(ctx->curve_id, ctx->ndigits, in ecdh_set_secret() 60 if (ecc_is_key_valid(ctx->curve_id, ctx->ndigits, in ecdh_set_secret() 79 nbytes = ctx->ndigits << ECC_DIGITS_TO_BYTES_SHIFT; in ecdh_compute_value() 106 ret = crypto_ecdh_shared_secret(ctx->curve_id, ctx->ndigits, in ecdh_compute_value() 112 ret = ecc_make_pub_key(ctx->curve_id, ctx->ndigits, in ecdh_compute_value() [all …]
|
D | ecc.h | 45 int ecc_is_key_valid(unsigned int curve_id, unsigned int ndigits, 60 int ecc_gen_privkey(unsigned int curve_id, unsigned int ndigits, u64 *privkey); 73 int ecc_make_pub_key(const unsigned int curve_id, unsigned int ndigits, 91 int crypto_ecdh_shared_secret(unsigned int curve_id, unsigned int ndigits,
|
D | ecc_curve_defs.h | 8 u8 ndigits; member 38 .ndigits = 3, 64 .ndigits = 4,
|
/Linux-v4.19/net/bluetooth/ |
D | ecdh_helper.c | 44 static inline void swap_digits(u64 *in, u64 *out, unsigned int ndigits) in swap_digits() argument 48 for (i = 0; i < ndigits; i++) in swap_digits() 49 out[i] = __swab64(in[ndigits - 1 - i]); in swap_digits()
|
/Linux-v4.19/lib/ |
D | bitmap.c | 364 int c, old_c, totaldigits, ndigits, nchunks, nbits; in __bitmap_parse() local 373 ndigits = totaldigits; in __bitmap_parse() 414 if (ndigits == totaldigits) in __bitmap_parse() 517 int c, old_c, totaldigits, ndigits; in __bitmap_parselist() local 530 ndigits = totaldigits; in __bitmap_parselist() 556 if ((totaldigits != ndigits) && isspace(old_c)) in __bitmap_parselist() 595 if (ndigits == totaldigits) in __bitmap_parselist()
|
/Linux-v4.19/scripts/mod/ |
D | file2alias.c | 298 int ndigits; in do_usb_entry_multi() local 315 for (ndigits = 0 ; ndigits < sizeof(bcdDevice_lo) * 2 ; ndigits++) { in do_usb_entry_multi() 316 clo = (devlo >> (ndigits << 2)) & 0xf; in do_usb_entry_multi() 317 chi = ((devhi > 0x9999 ? 0x9999 : devhi) >> (ndigits << 2)) & 0xf; in do_usb_entry_multi() 332 for (ndigits = sizeof(bcdDevice_lo) * 2 - 1; devlo <= devhi; ndigits--) { in do_usb_entry_multi() 340 if (devlo == devhi || !ndigits) { in do_usb_entry_multi() 341 do_usb_entry(symval, devlo, ndigits, clo, chi, max, mod); in do_usb_entry_multi() 349 ndigits, clo, max, max, mod); in do_usb_entry_multi() 355 ndigits, 0x0, chi, max, mod); in do_usb_entry_multi()
|