Home
last modified time | relevance | path

Searched refs:key_bits (Results 1 – 19 of 19) sorted by relevance

/mbedtls-development/include/psa/
A Dcrypto_sizes.h170 ((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 Dcrypto_extra.h560 #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 Dpsa_crypto_cipher.c61 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 Dpsa_crypto_aead.c49 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 Dpsa_crypto_cipher.h40 psa_algorithm_t alg, psa_key_type_t key_type, size_t key_bits,
A Dpsa_crypto_core.h262 psa_algorithm_t alg, psa_key_type_t key_type, size_t key_bits,
A Dpsa_crypto_driver_wrappers.c445 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 Dpsa_crypto.c2301 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 Dcrypto_examples.c163 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 Dpsa_crypto_helpers.h224 #define MBEDTLS_TEST_PSA_SKIP_IF_ALT_AES_192( key_type, key_bits ) \ argument
229 ( key_bits == 192 ) ) \
/mbedtls-development/tests/suites/
A Dtest_suite_psa_crypto_metadata.function192 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 Dtest_suite_psa_crypto.function1306 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 Dtest_suite_psa_crypto_persistent_key.function44 int key_lifetime, int key_type, int key_bits,
54 psa_set_key_bits( &attributes, key_bits );
A Dtest_suite_psa_crypto_driver_wrappers.function1029 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 Dpsa_exercise_key.c508 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 Dkey_management.h64 const size_t key_bits );
/mbedtls-development/tests/src/drivers/
A Dtest_driver_key_management.c72 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 Dgetting_started.md845 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 Dpsa-driver-interface.md621 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.

Completed in 67 milliseconds