Searched refs:curve_bytes (Results 1 – 3 of 3) sorted by relevance
/third_party/mbedtls/library/ |
D | psa_crypto_ecp.c | 56 size_t curve_bytes = data_length; in mbedtls_psa_ecp_load_representation() local 70 curve_bytes = data_length / 2; in mbedtls_psa_ecp_load_representation() 82 if( curve_bytes != PSA_BITS_TO_BYTES( curve_bits ) ) in mbedtls_psa_ecp_load_representation() 90 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 356 curve_bytes = PSA_BITS_TO_BYTES( ecp->grp.pbits ); in mbedtls_psa_ecdsa_sign_hash() 360 if( signature_size < 2 * curve_bytes ) in mbedtls_psa_ecdsa_sign_hash() 394 curve_bytes ) ); in mbedtls_psa_ecdsa_sign_hash() 396 signature + curve_bytes, in mbedtls_psa_ecdsa_sign_hash() 397 curve_bytes ) ); in mbedtls_psa_ecdsa_sign_hash() [all …]
|
/third_party/flutter/skia/third_party/skcms/ |
D | skcms.cc | 294 static const uint32_t curve_bytes[] = { 4, 12, 16, 20, 28 }; in read_curve_para() local 295 if (size < SAFE_FIXED_SIZE(para_Layout) + curve_bytes[function_type]) { in read_curve_para() 300 *curve_size = SAFE_FIXED_SIZE(para_Layout) + curve_bytes[function_type]; in read_curve_para() 571 uint32_t curve_bytes; in read_curves() local 572 if (!read_curve(buf + curve_offset, size - curve_offset, &curves[i], &curve_bytes)) { in read_curves() 576 if (curve_bytes > UINT32_MAX - 3) { in read_curves() 579 curve_bytes = (curve_bytes + 3) & ~3U; in read_curves() 581 uint64_t new_offset_64 = (uint64_t)curve_offset + curve_bytes; in read_curves()
|
/third_party/skia/third_party/skcms/ |
D | skcms.cc | 457 static const uint32_t curve_bytes[] = { 4, 12, 16, 20, 28 }; in read_curve_para() local 458 if (size < SAFE_FIXED_SIZE(para_Layout) + curve_bytes[function_type]) { in read_curve_para() 463 *curve_size = SAFE_FIXED_SIZE(para_Layout) + curve_bytes[function_type]; in read_curve_para() 761 uint32_t curve_bytes; in read_curves() local 762 if (!read_curve(buf + curve_offset, size - curve_offset, &curves[i], &curve_bytes)) { in read_curves() 766 if (curve_bytes > UINT32_MAX - 3) { in read_curves() 769 curve_bytes = (curve_bytes + 3) & ~3U; in read_curves() 771 uint64_t new_offset_64 = (uint64_t)curve_offset + curve_bytes; in read_curves()
|