Searched refs:digits_to_bytes (Results 1 – 1 of 1) sorted by relevance
124 static inline unsigned int digits_to_bytes(unsigned int n) in digits_to_bytes() function229 size_t nbytes = digits_to_bytes(curve->g.ndigits); in kmb_ecc_point_mult()312 size_t nbytes = digits_to_bytes(ndigits); in kmb_ecc_do_scalar_op()461 if (private_key_len != digits_to_bytes(ndigits)) in kmb_ecc_is_key_valid()493 size_t nbytes = digits_to_bytes(curve->g.ndigits); in kmb_ecc_gen_privkey()547 if (params.key_size > digits_to_bytes(tctx->curve->g.ndigits)) { in kmb_ocs_ecdh_set_secret()586 nbytes = digits_to_bytes(curve->g.ndigits); in kmb_ecc_do_shared_secret()669 pubk_len = 2 * digits_to_bytes(curve->g.ndigits); in kmb_ecc_do_public_key()737 if (req->dst_len < (2 * digits_to_bytes(curve->g.ndigits))) in kmb_ocs_ecdh_generate_public_key()769 if (req->src_len != 2 * digits_to_bytes(curve->g.ndigits)) in kmb_ocs_ecdh_compute_shared_secret()[all …]