Home
last modified time | relevance | path

Searched refs:PSA_BITS_TO_BYTES (Results 1 – 9 of 9) sorted by relevance

/mbedtls-development/include/psa/
A Dcrypto_sizes.h47 #define PSA_BITS_TO_BYTES(bits) (((bits) + 7) / 8) macro
557 (PSA_BITS_TO_BYTES(curve_bits) * 2)
601 PSA_BITS_TO_BYTES(PSA_VENDOR_RSA_MAX_KEY_BITS) : \
631 ((void)alg, PSA_BITS_TO_BYTES(key_bits)) : \
641 (PSA_BITS_TO_BYTES(PSA_VENDOR_RSA_MAX_KEY_BITS))
670 PSA_BITS_TO_BYTES(key_bits) - PSA_RSA_MINIMUM_PADDING_SIZE(alg) : \
681 (PSA_BITS_TO_BYTES(PSA_VENDOR_RSA_MAX_KEY_BITS))
784 (2 * PSA_BITS_TO_BYTES(key_bits) + 1)
791 (PSA_BITS_TO_BYTES(key_bits))
947 PSA_BITS_TO_BYTES(key_bits) : \
[all …]
A Dcrypto_extra.h566 (4 + (PSA_BITS_TO_BYTES(key_bits) + 5) * 3 /*without optional parts*/)
568 (4 + (PSA_BITS_TO_BYTES(key_bits) + 5) * 2 /*p, g*/ + 34 /*q*/)
/mbedtls-development/library/
A Dpsa_crypto_ecp.c108 if( curve_bytes != PSA_BITS_TO_BYTES( curve_bits ) ) in mbedtls_psa_ecp_load_representation()
268 if( data_size < PSA_BITS_TO_BYTES( ecp->grp.nbits ) ) in mbedtls_psa_ecp_export_key()
274 PSA_BITS_TO_BYTES( ecp->grp.nbits ) ) ); in mbedtls_psa_ecp_export_key()
276 *data_length = PSA_BITS_TO_BYTES( ecp->grp.nbits ); in mbedtls_psa_ecp_export_key()
382 curve_bytes = PSA_BITS_TO_BYTES( ecp->grp.pbits ); in ecdsa_sign_hash()
458 curve_bytes = PSA_BITS_TO_BYTES( ecp->grp.pbits ); in ecdsa_verify_hash()
A Dpsa_crypto_storage.h38 #define PSA_CRYPTO_MAX_STORAGE_SIZE ( PSA_BITS_TO_BYTES( PSA_MAX_KEY_BITS ) )
A Dpsa_crypto.c4702 size_t bytes = PSA_BITS_TO_BYTES( bits ); in psa_generate_derived_key_internal()
5269 if( PSA_BITS_TO_BYTES( bits ) != *shared_secret_length ) in psa_key_agreement_ecdh()
/mbedtls-development/tests/src/
A Dpsa_exercise_key.c642 TEST_EQUAL( exported_length, PSA_BITS_TO_BYTES( bits ) ); in mbedtls_test_psa_exported_key_sanity_check()
698 TEST_EQUAL( exported_length, PSA_BITS_TO_BYTES( bits ) ); in mbedtls_test_psa_exported_key_sanity_check()
748 TEST_EQUAL( PSA_BITS_TO_BYTES( bits ), exported_length ); in mbedtls_test_psa_exported_key_sanity_check()
758 TEST_EQUAL( 1 + 2 * PSA_BITS_TO_BYTES( bits ), exported_length ); in mbedtls_test_psa_exported_key_sanity_check()
/mbedtls-development/tests/suites/
A Dtest_suite_psa_crypto_se_driver_hal.function355 actual_size = PSA_BITS_TO_BYTES( ram_slots[slot_number].bits );
381 PSA_BITS_TO_BYTES( ram_slots[slot_number].bits ),
465 PSA_BITS_TO_BYTES( slot->bits ),
498 PSA_BITS_TO_BYTES( slot->bits ),
1341 TEST_EQUAL( key_material->len, PSA_BITS_TO_BYTES( bits ) );
A Dtest_suite_psa_crypto.function6102 TEST_ASSERT( PSA_BITS_TO_BYTES( psa_get_key_bits( &attributes ) ) <=
6245 size_t capacity = PSA_BITS_TO_BYTES( derived_bits );
/mbedtls-development/docs/
A Dgetting_started.md594 size_t capacity = PSA_BITS_TO_BYTES(derived_bits);

Completed in 32 milliseconds