Searched refs:curve_bytes (Results 1 – 2 of 2) sorted by relevance
53 size_t curve_bytes = data_length; in mbedtls_psa_ecp_load_representation() local67 curve_bytes = data_length / 2; in mbedtls_psa_ecp_load_representation()78 if (curve_bytes != PSA_BITS_TO_BYTES(curve_bits)) { in mbedtls_psa_ecp_load_representation()85 curve_bits = PSA_BYTES_TO_BITS(curve_bytes); in mbedtls_psa_ecp_load_representation()345 size_t curve_bytes; in mbedtls_psa_ecdsa_sign_hash() local357 curve_bytes = PSA_BITS_TO_BYTES(ecp->grp.pbits); in mbedtls_psa_ecdsa_sign_hash()361 if (signature_size < 2 * curve_bytes) { in mbedtls_psa_ecdsa_sign_hash()390 curve_bytes)); in mbedtls_psa_ecdsa_sign_hash()392 signature + curve_bytes, in mbedtls_psa_ecdsa_sign_hash()393 curve_bytes)); in mbedtls_psa_ecdsa_sign_hash()[all …]
460 static const uint32_t curve_bytes[] = { 4, 12, 16, 20, 28 }; in read_curve_para() local461 if (size < SAFE_FIXED_SIZE(para_Layout) + curve_bytes[function_type]) { in read_curve_para()466 *curve_size = SAFE_FIXED_SIZE(para_Layout) + curve_bytes[function_type]; in read_curve_para()764 uint32_t curve_bytes; in read_curves() local765 if (!read_curve(buf + curve_offset, size - curve_offset, &curves[i], &curve_bytes)) { in read_curves()769 if (curve_bytes > UINT32_MAX - 3) { in read_curves()772 curve_bytes = (curve_bytes + 3) & ~3U; in read_curves()774 uint64_t new_offset_64 = (uint64_t)curve_offset + curve_bytes; in read_curves()