Home
last modified time | relevance | path

Searched refs:curve_bytes (Results 1 – 2 of 2) sorted by relevance

/third_party/mbedtls/library/
Dpsa_crypto_ecp.c53 size_t curve_bytes = data_length; in mbedtls_psa_ecp_load_representation() local
67 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() local
357 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 …]
/third_party/skia/third_party/skcms/
Dskcms.cc460 static const uint32_t curve_bytes[] = { 4, 12, 16, 20, 28 }; in read_curve_para() local
461 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() local
765 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()