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()
374 size_t curve_bytes; in mbedtls_psa_ecdsa_sign_hash() local
386 curve_bytes = PSA_BITS_TO_BYTES(ecp->grp.pbits); in mbedtls_psa_ecdsa_sign_hash()
390 if (signature_size < 2 * curve_bytes) { in mbedtls_psa_ecdsa_sign_hash()
419 curve_bytes)); in mbedtls_psa_ecdsa_sign_hash()
421 signature + curve_bytes, in mbedtls_psa_ecdsa_sign_hash()
422 curve_bytes)); in mbedtls_psa_ecdsa_sign_hash()
427 *signature_length = 2 * curve_bytes; in mbedtls_psa_ecdsa_sign_hash()
459 size_t curve_bytes; in mbedtls_psa_ecdsa_verify_hash() local
473 curve_bytes = PSA_BITS_TO_BYTES(ecp->grp.pbits); in mbedtls_psa_ecdsa_verify_hash()
477 if (signature_length != 2 * curve_bytes) { in mbedtls_psa_ecdsa_verify_hash()
484 curve_bytes)); in mbedtls_psa_ecdsa_verify_hash()
490 signature + curve_bytes, in mbedtls_psa_ecdsa_verify_hash()
491 curve_bytes)); in mbedtls_psa_ecdsa_verify_hash()