Home
last modified time | relevance | path

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

/mbedtls-3.4.0/include/psa/
Dcrypto_sizes.h47 #define PSA_BITS_TO_BYTES(bits) (((bits) + 7) / 8) macro
566 (PSA_BITS_TO_BYTES(curve_bits) * 2)
594 (PSA_KEY_TYPE_IS_RSA(key_type) ? ((void)alg, PSA_BITS_TO_BYTES(key_bits)) : \
609 (PSA_BITS_TO_BYTES(PSA_VENDOR_RSA_MAX_KEY_BITS) > PSA_VENDOR_ECDSA_SIGNATURE_MAX_SIZE ? \
610 PSA_BITS_TO_BYTES(PSA_VENDOR_RSA_MAX_KEY_BITS) : \
640 ((void)alg, PSA_BITS_TO_BYTES(key_bits)) : \
650 (PSA_BITS_TO_BYTES(PSA_VENDOR_RSA_MAX_KEY_BITS))
679 PSA_BITS_TO_BYTES(key_bits) - PSA_RSA_MINIMUM_PADDING_SIZE(alg) : \
690 (PSA_BITS_TO_BYTES(PSA_VENDOR_RSA_MAX_KEY_BITS))
793 (2 * PSA_BITS_TO_BYTES(key_bits) + 1)
[all …]
Dcrypto_extra.h564 (4 + (PSA_BITS_TO_BYTES(key_bits) + 5) * 3 /*without optional parts*/)
566 (4 + (PSA_BITS_TO_BYTES(key_bits) + 5) * 2 /*p, g*/ + 34 /*q*/)
/mbedtls-3.4.0/library/
Dpsa_crypto_ecp.c79 if( curve_bytes != PSA_BITS_TO_BYTES( curve_bits ) ) in mbedtls_psa_ecp_load_representation()
239 if( data_size < PSA_BITS_TO_BYTES( ecp->grp.nbits ) ) in mbedtls_psa_ecp_export_key()
245 PSA_BITS_TO_BYTES( ecp->grp.nbits ) ) ); in mbedtls_psa_ecp_export_key()
247 *data_length = PSA_BITS_TO_BYTES( ecp->grp.nbits ); in mbedtls_psa_ecp_export_key()
353 curve_bytes = PSA_BITS_TO_BYTES( ecp->grp.pbits ); in mbedtls_psa_ecdsa_sign_hash()
428 curve_bytes = PSA_BITS_TO_BYTES( ecp->grp.pbits ); in mbedtls_psa_ecdsa_verify_hash()
525 if( PSA_BITS_TO_BYTES( bits ) != *shared_secret_length ) in mbedtls_psa_key_agreement_ecdh()
Dpsa_crypto_storage.h38 #define PSA_CRYPTO_MAX_STORAGE_SIZE ( PSA_BITS_TO_BYTES( PSA_MAX_KEY_BITS ) )
Dssl_ticket.c94 PSA_BITS_TO_BYTES( key->key_bits ), in ssl_ticket_gen_key()
185 PSA_BITS_TO_BYTES( key->key_bits ), in mbedtls_ssl_ticket_rotate()
Dssl_tls13_keys.c1041 PSA_BITS_TO_BYTES( key_bits ), in mbedtls_ssl_tls13_populate_transform()
1052 PSA_BITS_TO_BYTES( key_bits ), in mbedtls_ssl_tls13_populate_transform()
1085 *key_len = PSA_BITS_TO_BYTES( key_bits ); in ssl_tls13_get_cipher_key_info()
1443 shared_secret_len = PSA_BITS_TO_BYTES( in mbedtls_ssl_tls13_key_schedule_stage_handshake()
1800 *psk_len = PSA_BITS_TO_BYTES( psa_get_key_bits( &key_attributes ) ); in mbedtls_ssl_tls13_export_handshake_psk()
Dpk.c839 d_len = PSA_BITS_TO_BYTES( ec->grp.nbits ); in mbedtls_pk_wrap_as_opaque()
Dssl_tls.c8135 keylen = PSA_BITS_TO_BYTES(key_bits); in ssl_tls12_populate_transform()
8328 PSA_BITS_TO_BYTES( key_bits ), in ssl_tls12_populate_transform()
8341 PSA_BITS_TO_BYTES( key_bits ), in ssl_tls12_populate_transform()
Dpsa_crypto.c4823 size_t m_bytes = PSA_BITS_TO_BYTES( m ); in psa_generate_derived_ecc_key_weierstrass_helper()
4957 size_t bytes = PSA_BITS_TO_BYTES( bits ); in psa_generate_derived_key_internal()
Dssl_tls12_server.c2718 key_len = PSA_BITS_TO_BYTES( key->grp.pbits ); in ssl_get_ecdh_params_from_cert()
/mbedtls-3.4.0/tests/src/
Dpsa_exercise_key.c662 if( PSA_BITS_TO_BYTES( key_bits ) != PSA_HASH_LENGTH( hash_alg ) ) in exercise_key_agreement_key()
703 TEST_EQUAL( exported_length, PSA_BITS_TO_BYTES( bits ) ); in mbedtls_test_psa_exported_key_sanity_check()
759 TEST_EQUAL( exported_length, PSA_BITS_TO_BYTES( bits ) ); in mbedtls_test_psa_exported_key_sanity_check()
809 TEST_EQUAL( PSA_BITS_TO_BYTES( bits ), exported_length ); in mbedtls_test_psa_exported_key_sanity_check()
819 TEST_EQUAL( 1 + 2 * PSA_BITS_TO_BYTES( bits ), exported_length ); in mbedtls_test_psa_exported_key_sanity_check()
/mbedtls-3.4.0/tests/suites/
Dtest_suite_psa_crypto_op_fail.function249 output_length = PSA_BITS_TO_BYTES( key_bits );
251 output_length = 2 * PSA_BITS_TO_BYTES( key_bits );
Dtest_suite_psa_crypto_se_driver_hal.function359 actual_size = PSA_BITS_TO_BYTES( ram_slots[slot_number].bits );
385 PSA_BITS_TO_BYTES( ram_slots[slot_number].bits ),
469 PSA_BITS_TO_BYTES( slot->bits ),
502 PSA_BITS_TO_BYTES( slot->bits ),
1350 TEST_EQUAL( key_material->len, PSA_BITS_TO_BYTES( bits ) );
Dtest_suite_psa_crypto_pake.function893 PSA_BITS_TO_BYTES( bits ) );
Dtest_suite_ssl.function1679 PSA_BITS_TO_BYTES( key_bits ),
1690 PSA_BITS_TO_BYTES( key_bits ),
1703 PSA_BITS_TO_BYTES( key_bits ),
1714 PSA_BITS_TO_BYTES( key_bits ),
Dtest_suite_psa_crypto.function7660 TEST_LE_U( PSA_BITS_TO_BYTES( psa_get_key_bits( &attributes1 ) ),
7930 size_t capacity = PSA_BITS_TO_BYTES( derived_bits );
9186 PSA_BITS_TO_BYTES( bits ) );
/mbedtls-3.4.0/docs/
Dgetting_started.md594 size_t capacity = PSA_BITS_TO_BYTES(derived_bits);