Lines Matching defs:bits
37 * Note: "bits" parameter is used both as input and output and it might be updated
38 * in case provided input value is not multiple of 8 ("sloppy" bits).
40 static int check_ecc_parameters(psa_ecc_family_t family, size_t *bits)
44 switch (*bits) {
52 *bits = 521;
58 switch (*bits) {
67 switch (*bits) {
72 *bits = 255;
78 switch (*bits) {
107 * So its data length is 2m+1 where m is the curve size in bits.
213 size_t *key_buffer_length, size_t *bits)
220 attributes->bits,
230 *bits = ecp->grp.nbits + 1;
232 *bits = ecp->grp.nbits;
299 attributes->type, attributes->bits,
330 mbedtls_ecc_group_from_psa(curve, attributes->bits);
378 attributes->bits,
465 attributes->bits,
536 attributes->bits,
545 size_t bits = 0;
546 psa_ecc_family_t curve = mbedtls_ecc_group_to_psa(ecp->grp.id, &bits);
551 bits,
579 if (PSA_BITS_TO_BYTES(bits) != *shared_secret_length) {