Searched refs:curve_bytes (Results 1 - 3 of 3) sorted by relevance
/third_party/mbedtls/library/ |
H A D | psa_crypto_ecp.c | 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() 115 * their curve_bytes is equal to the amount of input. */ in mbedtls_psa_ecp_load_representation() 118 * format, meaning their curve_bytes is equal to the amount of input. */ 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() 459 size_t curve_bytes; mbedtls_psa_ecdsa_verify_hash() local [all...] |
H A D | pk_wrap.c | 968 const size_t curve_bytes = PSA_BITS_TO_BYTES(curve_bits); in eckey_check_pair_psa() local 978 prv_key_buf, curve_bytes); in eckey_check_pair_psa() 984 status = psa_import_key(&key_attr, prv_key_buf, curve_bytes, &key_id); in eckey_check_pair_psa() 1011 if (memcmp(prv_key_buf, pub_key_buf, curve_bytes) != 0) { in eckey_check_pair_psa()
|
/third_party/skia/third_party/skcms/ |
H A D | skcms.cc | 460 static const uint32_t curve_bytes[] = { 4, 12, 16, 20, 28 }; 461 if (size < SAFE_FIXED_SIZE(para_Layout) + curve_bytes[function_type]) { 466 *curve_size = SAFE_FIXED_SIZE(para_Layout) + curve_bytes[function_type]; 764 uint32_t curve_bytes; 765 if (!read_curve(buf + curve_offset, size - curve_offset, &curves[i], &curve_bytes)) { 769 if (curve_bytes > UINT32_MAX - 3) { 772 curve_bytes = (curve_bytes + 3) & ~3U; 774 uint64_t new_offset_64 = (uint64_t)curve_offset + curve_bytes;
|
Completed in 6 milliseconds