/openthread-2.7.6/third_party/mbedtls/repo/include/psa/ |
D | crypto_sizes.h | 227 #define PSA_MAC_FINAL_SIZE(key_type, key_bits, alg) \ argument 230 PSA_ALG_IS_BLOCK_CIPHER_MAC(alg) ? PSA_BLOCK_CIPHER_BLOCK_SIZE(key_type) : \ 231 ((void)(key_type), (void)(key_bits), 0)) 397 #define PSA_SIGN_OUTPUT_SIZE(key_type, key_bits, alg) \ argument 398 (PSA_KEY_TYPE_IS_RSA(key_type) ? ((void)alg, PSA_BITS_TO_BYTES(key_bits)) : \ 399 PSA_KEY_TYPE_IS_ECC(key_type) ? PSA_ECDSA_SIGNATURE_SIZE(key_bits) : \ 444 #define PSA_ASYMMETRIC_ENCRYPT_OUTPUT_SIZE(key_type, key_bits, alg) \ argument 445 (PSA_KEY_TYPE_IS_RSA(key_type) ? \ 475 #define PSA_ASYMMETRIC_DECRYPT_OUTPUT_SIZE(key_type, key_bits, alg) \ argument 476 (PSA_KEY_TYPE_IS_RSA(key_type) ? \ [all …]
|
D | crypto_extra.h | 549 #define PSA_KEY_DOMAIN_PARAMETERS_SIZE(key_type, key_bits) \ argument 550 (PSA_KEY_TYPE_IS_RSA(key_type) ? sizeof(int) : \ 551 PSA_KEY_TYPE_IS_DH(key_type) ? PSA_DH_KEY_DOMAIN_PARAMETERS_SIZE(key_bits) : \ 552 PSA_KEY_TYPE_IS_DSA(key_type) ? PSA_DSA_KEY_DOMAIN_PARAMETERS_SIZE(key_bits) : \
|
D | crypto_accel_driver.h | 667 psa_key_type_t key_type, 706 psa_key_type_t key_type, 756 psa_key_type_t key_type, 808 psa_key_type_t key_type,
|
D | crypto_compat.h | 111 #define PSA_ASYMMETRIC_SIGN_OUTPUT_SIZE( key_type, key_bits, alg ) \ argument 112 MBEDTLS_DEPRECATED_CONSTANT( size_t, PSA_SIGN_OUTPUT_SIZE( key_type, key_bits, alg ) )
|
/openthread-2.7.6/third_party/mbedtls/repo/tests/src/drivers/ |
D | size.c | 33 const psa_key_type_t key_type, in test_size_function() argument 36 (void) key_type; in test_size_function()
|
/openthread-2.7.6/third_party/mbedtls/repo/tests/suites/ |
D | test_suite_psa_crypto_driver_wrappers.function | 195 psa_key_type_t key_type = key_type_arg; 202 key_type ); 298 psa_key_type_t key_type = key_type_arg; 315 psa_set_key_type( &attributes, key_type ); 329 PSA_BLOCK_CIPHER_BLOCK_SIZE( key_type ) ); 390 psa_key_type_t key_type = key_type_arg; 407 psa_set_key_type( &attributes, key_type ); 421 PSA_BLOCK_CIPHER_BLOCK_SIZE( key_type ) ); 475 psa_key_type_t key_type = key_type_arg; 492 psa_set_key_type( &attributes, key_type ); [all …]
|
D | test_suite_psa_crypto.function | 304 int exercise_mac_setup( psa_key_type_t key_type, 316 psa_set_key_type( &attributes, key_type ); 337 int exercise_cipher_setup( psa_key_type_t key_type, 349 psa_set_key_type( &attributes, key_type ); 1871 psa_key_type_t key_type = type_arg; 1885 psa_set_key_type( &attributes, key_type ); 1957 int key_type, 1971 psa_set_key_type( &attributes, key_type ); 2002 int key_type, 2015 psa_set_key_type( &attributes, key_type ); [all …]
|
D | test_suite_psa_crypto_metadata.data | 245 key_type:PSA_KEY_TYPE_RAW_DATA:KEY_TYPE_IS_UNSTRUCTURED 248 key_type:PSA_KEY_TYPE_HMAC:KEY_TYPE_IS_UNSTRUCTURED 251 key_type:PSA_KEY_TYPE_DERIVE:KEY_TYPE_IS_UNSTRUCTURED 275 key_type:PSA_KEY_TYPE_RSA_PUBLIC_KEY:KEY_TYPE_IS_PUBLIC_KEY | KEY_TYPE_IS_RSA 279 key_type:PSA_KEY_TYPE_RSA_KEY_PAIR:KEY_TYPE_IS_KEY_PAIR | KEY_TYPE_IS_RSA
|
D | test_suite_psa_crypto_metadata.function | 144 psa_key_type_t key_type, size_t key_bits, 159 TEST_EQUAL( length, PSA_MAC_FINAL_SIZE( key_type, key_bits, alg ) ); 242 size_t key_type = key_type_arg; 246 key_type, key_bits, length ); 255 key_type, key_bits, n ); 446 void key_type( int type_arg, int classification_flags )
|
D | test_suite_psa_crypto_persistent_key.function | 45 int key_lifetime, int key_type, int key_bits, 54 psa_set_key_type( &attributes, key_type );
|
/openthread-2.7.6/third_party/mbedtls/repo/tests/include/test/drivers/ |
D | size.h | 90 const psa_key_type_t key_type,
|
/openthread-2.7.6/third_party/mbedtls/repo/library/ |
D | psa_crypto_driver_wrappers.c | 260 psa_key_type_t key_type = attributes->core.type; in get_expected_key_size() local 266 buffer_size = PSA_KEY_EXPORT_MAX_SIZE( key_type, key_bits ); in get_expected_key_size() 277 *expected_size = test_size_function( key_type, key_bits ); in get_expected_key_size() 280 if( PSA_KEY_TYPE_IS_KEY_PAIR( key_type ) ) in get_expected_key_size() 283 PSA_KEY_EXPORT_MAX_SIZE( key_type, key_bits ) : 0 ); in get_expected_key_size() 293 else if ( !PSA_KEY_TYPE_IS_KEY_PAIR( key_type ) && in get_expected_key_size()
|
D | pkwrite.c | 267 psa_key_type_t key_type; in mbedtls_pk_write_pubkey_der() local 275 key_type = psa_get_key_type( &attributes ); in mbedtls_pk_write_pubkey_der() 279 curve = PSA_KEY_TYPE_ECC_GET_FAMILY( key_type ); in mbedtls_pk_write_pubkey_der()
|
D | pk.c | 605 psa_key_type_t key_type; in mbedtls_pk_wrap_as_opaque() 619 key_type = PSA_KEY_TYPE_ECC_KEY_PAIR( curve_id ); in mbedtls_pk_wrap_as_opaque() 622 psa_set_key_type( &attributes, key_type ); in mbedtls_pk_wrap_as_opaque()
|
D | cipher.c | 294 psa_key_type_t key_type; in mbedtls_cipher_setkey() local 305 key_type = mbedtls_psa_translate_cipher_type( in mbedtls_cipher_setkey() 307 if( key_type == 0 ) in mbedtls_cipher_setkey() 309 psa_set_key_type( &attributes, key_type ); in mbedtls_cipher_setkey()
|
D | psa_crypto.c | 2970 psa_key_type_t key_type, in mbedtls_cipher_info_from_psa() argument 3023 switch( key_type ) in mbedtls_cipher_info_from_psa() 5985 psa_key_type_t key_type ) in psa_key_derivation_check_input_type() argument 5990 if( key_type == PSA_KEY_TYPE_DERIVE ) in psa_key_derivation_check_input_type() 5992 if( key_type == PSA_KEY_TYPE_NONE ) in psa_key_derivation_check_input_type() 5999 if( key_type == PSA_KEY_TYPE_RAW_DATA ) in psa_key_derivation_check_input_type() 6001 if( key_type == PSA_KEY_TYPE_NONE ) in psa_key_derivation_check_input_type() 6011 psa_key_type_t key_type, in psa_key_derivation_input_internal() argument 6018 status = psa_key_derivation_check_input_type( step, key_type ); in psa_key_derivation_input_internal()
|
/openthread-2.7.6/third_party/mbedtls/repo/docs/proposed/ |
D | psa-driver-interface.md | 471 size_function(key_type, key_bits) 473 where `size_function` is the function named in the `"size_function"` property, `key_type` is the ke… 475 size_t size_function(psa_key_type_t key_type, size_t key_bits); 480 …ize_function"` property, the size of the key context for a key of type `key_type` and of size `key… 482 * For a key pair (`PSA_KEY_TYPE_IS_KEY_PAIR(key_type)` is true): 486 …where `public_key_overhead = PSA_EXPORT_PUBLIC_KEY_MAX_SIZE(key_type, key_bits)` if the `"store_pu… 488 * For a public key (`PSA_KEY_TYPE_IS_PUBLIC_KEY(key_type)` is true):
|