Lines Matching refs:bits
40 static int check_ecc_parameters(psa_ecc_family_t family, size_t *bits) in check_ecc_parameters() argument
44 switch (*bits) { in check_ecc_parameters()
52 *bits = 521; in check_ecc_parameters()
58 switch (*bits) { in check_ecc_parameters()
67 switch (*bits) { in check_ecc_parameters()
72 *bits = 255; in check_ecc_parameters()
78 switch (*bits) { in check_ecc_parameters()
213 size_t *key_buffer_length, size_t *bits) in mbedtls_psa_ecp_import_key() argument
220 attributes->bits, in mbedtls_psa_ecp_import_key()
230 *bits = ecp->grp.nbits + 1; in mbedtls_psa_ecp_import_key()
232 *bits = ecp->grp.nbits; in mbedtls_psa_ecp_import_key()
299 attributes->type, attributes->bits, in mbedtls_psa_ecp_export_public_key()
330 mbedtls_ecc_group_from_psa(curve, attributes->bits); in mbedtls_psa_ecp_generate_key()
378 attributes->bits, in mbedtls_psa_ecdsa_sign_hash()
465 attributes->bits, in mbedtls_psa_ecdsa_verify_hash()
536 attributes->bits, in mbedtls_psa_key_agreement_ecdh()
545 size_t bits = 0; in mbedtls_psa_key_agreement_ecdh() local
546 psa_ecc_family_t curve = mbedtls_ecc_group_to_psa(ecp->grp.id, &bits); in mbedtls_psa_key_agreement_ecdh()
551 bits, in mbedtls_psa_key_agreement_ecdh()
579 if (PSA_BITS_TO_BYTES(bits) != *shared_secret_length) { in mbedtls_psa_key_agreement_ecdh()