/mbedtls-development/include/psa/ |
A D | crypto_sizes.h | 170 ((void) (key_bits), 0)) 270 ((void)(key_type), (void)(key_bits), 0)) 584 #define PSA_SIGN_OUTPUT_SIZE(key_type, key_bits, alg) \ argument 708 (PSA_KEY_EXPORT_ASN1_INTEGER_MAX_SIZE(key_bits) + 11) 732 #define PSA_KEY_EXPORT_RSA_KEY_PAIR_MAX_SIZE(key_bits) \ argument 752 (PSA_KEY_EXPORT_ASN1_INTEGER_MAX_SIZE(key_bits) * 3 + 59) 770 #define PSA_KEY_EXPORT_DSA_KEY_PAIR_MAX_SIZE(key_bits) \ argument 771 (PSA_KEY_EXPORT_ASN1_INTEGER_MAX_SIZE(key_bits) * 3 + 75) 784 (2 * PSA_BITS_TO_BYTES(key_bits) + 1) 790 #define PSA_KEY_EXPORT_ECC_KEY_PAIR_MAX_SIZE(key_bits) \ argument [all …]
|
A D | crypto_extra.h | 560 #define PSA_KEY_DOMAIN_PARAMETERS_SIZE(key_type, key_bits) \ argument 562 PSA_KEY_TYPE_IS_DH(key_type) ? PSA_DH_KEY_DOMAIN_PARAMETERS_SIZE(key_bits) : \ 563 PSA_KEY_TYPE_IS_DSA(key_type) ? PSA_DSA_KEY_DOMAIN_PARAMETERS_SIZE(key_bits) : \ 565 #define PSA_DH_KEY_DOMAIN_PARAMETERS_SIZE(key_bits) \ argument 566 (4 + (PSA_BITS_TO_BYTES(key_bits) + 5) * 3 /*without optional parts*/) 567 #define PSA_DSA_KEY_DOMAIN_PARAMETERS_SIZE(key_bits) \ argument 568 (4 + (PSA_BITS_TO_BYTES(key_bits) + 5) * 2 /*p, g*/ + 34 /*q*/)
|
/mbedtls-development/library/ |
A D | psa_crypto_cipher.c | 61 size_t key_bits, in mbedtls_cipher_info_from_psa() argument 127 if( key_bits == 64 ) in mbedtls_cipher_info_from_psa() 134 if( key_bits == 128 ) in mbedtls_cipher_info_from_psa() 135 key_bits = 192; in mbedtls_cipher_info_from_psa() 150 (int) key_bits, mode ) ); in mbedtls_cipher_info_from_psa() 163 size_t key_bits; in cipher_setup() local 172 key_bits = attributes->core.bits; in cipher_setup() 174 key_bits, NULL ); in cipher_setup() 183 if( key_type == PSA_KEY_TYPE_DES && key_bits == 128 ) in cipher_setup() 197 (int) key_bits, cipher_operation ); in cipher_setup()
|
A D | psa_crypto_aead.c | 49 size_t key_bits; in psa_aead_setup() local 56 key_bits = attributes->core.bits; in psa_aead_setup() 59 attributes->core.type, key_bits, in psa_aead_setup() 79 key_buffer, (unsigned int) key_bits ) ); in psa_aead_setup() 98 key_buffer, (unsigned int) key_bits ) ); in psa_aead_setup() 126 key_bits, alg ) in psa_aead_setup() 133 key_bits, in psa_aead_setup()
|
A D | psa_crypto_cipher.h | 40 psa_algorithm_t alg, psa_key_type_t key_type, size_t key_bits,
|
A D | psa_crypto_core.h | 262 psa_algorithm_t alg, psa_key_type_t key_type, size_t key_bits,
|
A D | psa_crypto_driver_wrappers.c | 445 size_t key_bits = attributes->core.bits; in psa_driver_wrapper_get_key_buffer_size() local 463 key_bits ); in psa_driver_wrapper_get_key_buffer_size() 470 (void)key_bits; in psa_driver_wrapper_get_key_buffer_size()
|
A D | psa_crypto.c | 2301 size_t key_bits = psa_get_key_bits( attributes ); in psa_mac_finalize_alg_and_key_validation() local 2312 *mac_size = PSA_MAC_LENGTH( key_type, key_bits, alg ); in psa_mac_finalize_alg_and_key_validation() 2323 if( *mac_size > PSA_MAC_LENGTH( key_type, key_bits, in psa_mac_finalize_alg_and_key_validation()
|
/mbedtls-development/programs/psa/ |
A D | crypto_examples.c | 163 key_bits = 256, in cipher_example_encrypt_decrypt_aes_cbc_nopad_1_block() enumerator 184 psa_set_key_bits( &attributes, key_bits ); in cipher_example_encrypt_decrypt_aes_cbc_nopad_1_block() 211 key_bits = 256, in cipher_example_encrypt_decrypt_aes_cbc_pkcs7_multi() enumerator 232 psa_set_key_bits( &attributes, key_bits ); in cipher_example_encrypt_decrypt_aes_cbc_pkcs7_multi() 259 key_bits = 256, in cipher_example_encrypt_decrypt_aes_ctr_multi() enumerator 279 psa_set_key_bits( &attributes, key_bits ); in cipher_example_encrypt_decrypt_aes_ctr_multi()
|
/mbedtls-development/tests/include/test/ |
A D | psa_crypto_helpers.h | 224 #define MBEDTLS_TEST_PSA_SKIP_IF_ALT_AES_192( key_type, key_bits ) \ argument 229 ( key_bits == 192 ) ) \
|
/mbedtls-development/tests/suites/ |
A D | test_suite_psa_crypto_metadata.function | 192 psa_key_type_t key_type, size_t key_bits, 208 TEST_EQUAL( length, PSA_MAC_LENGTH( key_type, key_bits, alg ) ); 218 psa_key_type_t key_type, size_t key_bits, 299 size_t key_bits = key_bits_arg; 302 key_type, key_bits, length ); 311 key_type, key_bits, n ); 343 key_type, key_bits, n ); 428 size_t key_bits = key_bits_arg; 431 key_type, key_bits, tag_length ); 438 key_type, key_bits, n ); [all …]
|
A D | test_suite_psa_crypto.function | 1306 size_t key_bits; 3592 size_t key_bits; 3690 size_t key_bits; 3757 size_t key_bits; 5048 size_t key_bits; 5147 size_t key_bits; 5287 size_t key_bits; 5384 size_t key_bits; 5523 size_t key_bits; 5596 size_t key_bits; [all …]
|
A D | test_suite_psa_crypto_persistent_key.function | 44 int key_lifetime, int key_type, int key_bits, 54 psa_set_key_bits( &attributes, key_bits );
|
A D | test_suite_psa_crypto_driver_wrappers.function | 1029 size_t key_bits; 1047 key_bits = psa_get_key_bits( &attributes ); 1049 output_size = input_data->len + PSA_AEAD_TAG_LENGTH( key_type, key_bits, 1098 size_t key_bits; 1116 key_bits = psa_get_key_bits( &attributes ); 1118 output_size = input_data->len - PSA_AEAD_TAG_LENGTH( key_type, key_bits,
|
/mbedtls-development/tests/src/ |
A D | psa_exercise_key.c | 508 size_t key_bits; in mbedtls_test_psa_key_agreement_with_self() local 519 key_bits = psa_get_key_bits( &attributes ); in mbedtls_test_psa_key_agreement_with_self() 521 public_key_length = PSA_EXPORT_PUBLIC_KEY_OUTPUT_SIZE( public_key_type, key_bits ); in mbedtls_test_psa_key_agreement_with_self() 548 size_t key_bits; in mbedtls_test_psa_raw_key_agreement_with_self() local 561 key_bits = psa_get_key_bits( &attributes ); in mbedtls_test_psa_raw_key_agreement_with_self() 563 public_key_length = PSA_EXPORT_PUBLIC_KEY_OUTPUT_SIZE( public_key_type, key_bits ); in mbedtls_test_psa_raw_key_agreement_with_self() 576 key_bits ) ); in mbedtls_test_psa_raw_key_agreement_with_self()
|
/mbedtls-development/tests/include/test/drivers/ |
A D | key_management.h | 64 const size_t key_bits );
|
/mbedtls-development/tests/src/drivers/ |
A D | test_driver_key_management.c | 72 const size_t key_bits ) in mbedtls_test_opaque_size_function() argument 76 key_buffer_size = PSA_EXPORT_KEY_OUTPUT_SIZE( key_type, key_bits ); in mbedtls_test_opaque_size_function()
|
/mbedtls-development/docs/ |
A D | getting_started.md | 845 key_bits = 256, 849 static uint8_t exported[PSA_KEY_EXPORT_ECC_PUBLIC_KEY_MAX_SIZE(key_bits)]; 869 psa_set_key_bits(&attributes, key_bits);
|
/mbedtls-development/docs/proposed/ |
A D | psa-driver-interface.md | 621 size_function(key_type, key_bits) 623 …amed in the `"size_function"` property, `key_type` is the key type and `key_bits` is the key size … 625 size_t size_function(psa_key_type_t key_type, size_t key_bits); 630 … property, the size of the key context for a key of type `key_type` and of size `key_bits` bits is: 636 …where `public_key_overhead = PSA_EXPORT_PUBLIC_KEY_MAX_SIZE(key_type, key_bits)` if the `"store_pu… 647 where `key_bytes = ((key_bits + 7) / 8)` is the key size in bytes.
|