Home
last modified time | relevance | path

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

/openthread-2.7.6/third_party/mbedtls/repo/include/psa/
Dcrypto_sizes.h227 #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 …]
Dcrypto_extra.h549 #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) : \
Dcrypto_accel_driver.h667 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,
Dcrypto_compat.h111 #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/
Dsize.c33 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/
Dtest_suite_psa_crypto_driver_wrappers.function195 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 …]
Dtest_suite_psa_crypto.function304 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 …]
Dtest_suite_psa_crypto_metadata.data245 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
Dtest_suite_psa_crypto_metadata.function144 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 )
Dtest_suite_psa_crypto_persistent_key.function45 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/
Dsize.h90 const psa_key_type_t key_type,
/openthread-2.7.6/third_party/mbedtls/repo/library/
Dpsa_crypto_driver_wrappers.c260 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()
Dpkwrite.c267 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()
Dpk.c605 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()
Dcipher.c294 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()
Dpsa_crypto.c2970 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/
Dpsa-driver-interface.md471 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):