Lines Matching refs:curve_bytes
98 size_t curve_bytes = data_length; in mbedtls_psa_ecp_load_representation() local
112 curve_bytes = data_length / 2; in mbedtls_psa_ecp_load_representation()
123 if (curve_bytes != PSA_BITS_TO_BYTES(curve_bits)) { in mbedtls_psa_ecp_load_representation()
130 curve_bits = PSA_BYTES_TO_BITS(curve_bytes); in mbedtls_psa_ecp_load_representation()
372 size_t curve_bytes; in mbedtls_psa_ecdsa_sign_hash() local
384 curve_bytes = PSA_BITS_TO_BYTES(ecp->grp.pbits); in mbedtls_psa_ecdsa_sign_hash()
388 if (signature_size < 2 * curve_bytes) { in mbedtls_psa_ecdsa_sign_hash()
417 curve_bytes)); in mbedtls_psa_ecdsa_sign_hash()
419 signature + curve_bytes, in mbedtls_psa_ecdsa_sign_hash()
420 curve_bytes)); in mbedtls_psa_ecdsa_sign_hash()
425 *signature_length = 2 * curve_bytes; in mbedtls_psa_ecdsa_sign_hash()
457 size_t curve_bytes; in mbedtls_psa_ecdsa_verify_hash() local
471 curve_bytes = PSA_BITS_TO_BYTES(ecp->grp.pbits); in mbedtls_psa_ecdsa_verify_hash()
475 if (signature_length != 2 * curve_bytes) { in mbedtls_psa_ecdsa_verify_hash()
482 curve_bytes)); in mbedtls_psa_ecdsa_verify_hash()
488 signature + curve_bytes, in mbedtls_psa_ecdsa_verify_hash()
489 curve_bytes)); in mbedtls_psa_ecdsa_verify_hash()