Home
last modified time | relevance | path

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

/mbedtls-3.7.0/library/
Dpsa_crypto_ecp.c98 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()
[all …]
Dpk_wrap.c968 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()