/mbedtls-development/include/psa/ |
A D | crypto_sizes.h | 267 ((alg) & PSA_ALG_MAC_TRUNCATION_MASK ? PSA_MAC_TRUNCATED_LENGTH(alg) : \ 268 PSA_ALG_IS_HMAC(alg) ? PSA_HASH_LENGTH(PSA_ALG_HMAC_GET_HASH(alg)) : \ 403 #define PSA_AEAD_NONCE_LENGTH(key_type, alg) \ argument 587 ((void)alg, 0)) 984 #define PSA_CIPHER_IV_LENGTH(key_type, alg) \ argument 986 ((alg) == PSA_ALG_CTR || \ 987 (alg) == PSA_ALG_CFB || \ 988 (alg) == PSA_ALG_OFB || \ 989 (alg) == PSA_ALG_XTS || \ 990 (alg) == PSA_ALG_CBC_NO_PADDING || \ [all …]
|
A D | crypto_values.h | 1514 (PSA_ALG_IS_ECDSA(alg) && PSA_ALG_ECDSA_IS_DETERMINISTIC(alg)) 1516 (PSA_ALG_IS_ECDSA(alg) && !PSA_ALG_ECDSA_IS_DETERMINISTIC(alg)) 1624 (PSA_ALG_IS_RSA_PSS(alg) || PSA_ALG_IS_RSA_PKCS1V15_SIGN(alg) || \ 1625 PSA_ALG_IS_ECDSA(alg) || PSA_ALG_IS_HASH_EDDSA(alg) || \ 1640 (PSA_ALG_IS_SIGN_HASH(alg) || (alg) == PSA_ALG_PURE_EDDSA ) 1957 ((PSA_ALG_IS_KEY_DERIVATION(alg) || PSA_ALG_IS_KEY_AGREEMENT(alg))) 1980 #define PSA_ALG_IS_FFDH(alg) \ argument 2024 #define PSA_ALG_IS_ECDH(alg) \ argument 2047 (alg) == PSA_ALG_ANY_HASH) 2058 #define PSA_ALG_GET_HASH(alg) \ argument [all …]
|
A D | crypto.h | 867 psa_status_t psa_hash_compute(psa_algorithm_t alg, 903 psa_status_t psa_hash_compare(psa_algorithm_t alg, 999 psa_algorithm_t alg); 1226 psa_algorithm_t alg, 1267 psa_algorithm_t alg, 2131 psa_algorithm_t alg, 2204 psa_algorithm_t alg, 2922 psa_algorithm_t alg, 3027 psa_algorithm_t alg, 3078 psa_algorithm_t alg, [all …]
|
A D | crypto_extra.h | 406 #define PSA_ALG_DSA_IS_DETERMINISTIC(alg) \ argument 407 (((alg) & PSA_ALG_DSA_DETERMINISTIC_FLAG) != 0) 408 #define PSA_ALG_IS_DETERMINISTIC_DSA(alg) \ argument 409 (PSA_ALG_IS_DSA(alg) && PSA_ALG_DSA_IS_DETERMINISTIC(alg)) 411 (PSA_ALG_IS_DSA(alg) && !PSA_ALG_DSA_IS_DETERMINISTIC(alg)) 417 #define PSA_ALG_IS_VENDOR_HASH_AND_SIGN(alg) \ argument 418 PSA_ALG_IS_DSA(alg) 833 (((alg) & PSA_ALG_CATEGORY_MASK) == PSA_ALG_CATEGORY_PAKE) 1704 #define PSA_PAKE_OUTPUT_SIZE(alg, primitive, output_step) 0 argument 1725 #define PSA_PAKE_INPUT_SIZE(alg, primitive, input_step) 0 argument [all …]
|
/mbedtls-development/tests/suites/ |
A D | test_suite_psa_crypto_metadata.function | 72 * PSA_##flag(alg) is true. 249 psa_algorithm_t alg = alg_arg; 295 psa_algorithm_t alg = alg_arg; 303 TEST_EQUAL( PSA_ALG_FULL_LENGTH_MAC( alg ), alg ); 377 psa_algorithm_t alg = alg_arg; 403 psa_algorithm_t alg = alg_arg; 424 psa_algorithm_t alg = alg_arg; 440 alg ); 473 alg ); 504 psa_algorithm_t alg = alg_arg; [all …]
|
A D | test_suite_psa_crypto.function | 332 psa_algorithm_t alg = alg_arg; 621 psa_algorithm_t alg = alg_arg; 811 psa_algorithm_t alg = alg_arg; 920 psa_algorithm_t alg = alg_arg; 982 psa_algorithm_t alg = alg_arg; 1032 psa_algorithm_t alg = alg_arg; 1547 psa_algorithm_t alg = alg_arg; 1804 psa_algorithm_t alg = alg_arg; 1837 psa_algorithm_t alg = alg_arg; 1864 psa_algorithm_t alg = alg_arg; [all …]
|
A D | test_suite_psa_crypto_driver_wrappers.function | 432 psa_algorithm_t alg = alg_arg; 523 psa_algorithm_t alg = alg_arg; 655 psa_algorithm_t alg = alg_arg; 786 psa_algorithm_t alg = alg_arg; 855 psa_algorithm_t alg = alg_arg; 1028 psa_algorithm_t alg = alg_arg; 1097 psa_algorithm_t alg = alg_arg; 1160 psa_algorithm_t alg = alg_arg; 1287 psa_algorithm_t alg = alg_arg; 1495 psa_algorithm_t alg = alg_arg; [all …]
|
/mbedtls-development/tests/src/ |
A D | psa_exercise_key.c | 128 alg = PSA_ALG_TRUNCATED_MAC( alg, PSA_MAC_TRUNCATED_LENGTH( alg ) ); in exercise_mac_key() 248 alg = PSA_ALG_AEAD_WITH_SHORTENED_TAG( alg, PSA_ALG_AEAD_GET_TAG_LENGTH( alg ) ); in exercise_aead_key() 421 psa_algorithm_t alg, in mbedtls_test_psa_setup_key_derivation_wrap() argument 427 if( PSA_ALG_IS_HKDF( alg ) ) in mbedtls_test_psa_setup_key_derivation_wrap() 543 psa_algorithm_t alg, in mbedtls_test_psa_raw_key_agreement_with_self() argument 895 if( alg == 0 ) in mbedtls_test_psa_exercise_key() 897 else if( PSA_ALG_IS_MAC( alg ) ) in mbedtls_test_psa_exercise_key() 901 else if( PSA_ALG_IS_AEAD( alg ) ) in mbedtls_test_psa_exercise_key() 903 else if( PSA_ALG_IS_SIGN( alg ) ) in mbedtls_test_psa_exercise_key() 926 if( PSA_ALG_IS_MAC( alg ) || PSA_ALG_IS_SIGN( alg ) ) in mbedtls_test_psa_usage_to_exercise() [all …]
|
/mbedtls-development/library/ |
A D | psa_crypto_mac.c | 64 hmac->alg = hash_alg; in psa_hmac_setup_internal() 211 psa_algorithm_t alg ) in mac_init() argument 215 operation->alg = alg; in mac_init() 273 operation->alg = 0; in mac_abort() 454 psa_algorithm_t alg, in mac_compute() argument 494 psa_algorithm_t alg, in mbedtls_psa_mac_compute() argument 587 psa_algorithm_t alg, in mbedtls_transparent_test_driver_mac_compute() argument 674 psa_algorithm_t alg, in mbedtls_opaque_test_driver_mac_compute() argument 685 (void) alg; in mbedtls_opaque_test_driver_mac_compute() 706 (void) alg; in mbedtls_opaque_test_driver_mac_sign_setup() [all …]
|
A D | psa_crypto_hash.c | 69 switch( alg ) in mbedtls_md_info_from_psa() 159 operation->alg = 0; in hash_abort() 165 psa_algorithm_t alg ) in hash_setup() argument 175 switch( alg ) in hash_setup() 225 operation->alg = alg; in hash_setup() 287 target_operation->alg = source_operation->alg; in hash_clone() 426 psa_algorithm_t alg, in hash_compute() argument 460 psa_algorithm_t alg, in mbedtls_psa_hash_compute() argument 473 psa_algorithm_t alg ) in mbedtls_psa_hash_setup() argument 516 switch( alg ) in is_hash_accelerated() [all …]
|
A D | psa_crypto_cipher.c | 59 psa_algorithm_t alg, in mbedtls_cipher_info_from_psa() argument 68 alg = PSA_ALG_AEAD_WITH_SHORTENED_TAG( alg, 0 ); in mbedtls_cipher_info_from_psa() 70 if( PSA_ALG_IS_CIPHER( alg ) || PSA_ALG_IS_AEAD( alg ) ) in mbedtls_cipher_info_from_psa() 72 switch( alg ) in mbedtls_cipher_info_from_psa() 159 psa_algorithm_t alg, in cipher_setup() argument 171 operation->alg = alg; in cipher_setup() 204 switch( alg ) in cipher_setup() 235 psa_algorithm_t alg ) in cipher_encrypt_setup() argument 246 psa_algorithm_t alg ) in cipher_decrypt_setup() argument 715 psa_algorithm_t alg, in mbedtls_transparent_test_driver_cipher_encrypt() argument [all …]
|
A D | psa_crypto_aead.c | 46 psa_algorithm_t alg ) in psa_aead_setup() argument 68 operation->alg = PSA_ALG_CCM; in psa_aead_setup() 142 psa_algorithm_t alg, in mbedtls_psa_aead_encrypt() argument 168 if( operation.alg == PSA_ALG_CCM ) in mbedtls_psa_aead_encrypt() 182 if( operation.alg == PSA_ALG_GCM ) in mbedtls_psa_aead_encrypt() 253 psa_algorithm_t alg, in mbedtls_psa_aead_decrypt() argument 276 if( operation.alg == PSA_ALG_CCM ) in mbedtls_psa_aead_decrypt() 290 if( operation.alg == PSA_ALG_GCM ) in mbedtls_psa_aead_decrypt() 345 psa_algorithm_t alg ) in mbedtls_psa_aead_encrypt_setup() argument 372 psa_algorithm_t alg ) in mbedtls_psa_aead_decrypt_setup() argument [all …]
|
A D | psa_crypto_driver_wrappers.c | 75 psa_algorithm_t alg, in psa_driver_wrapper_sign_message() argument 150 psa_algorithm_t alg, in psa_driver_wrapper_verify_message() argument 905 (void)alg; in psa_driver_wrapper_cipher_encrypt() 987 (void)alg; in psa_driver_wrapper_cipher_decrypt() 1019 alg ); in psa_driver_wrapper_cipher_encrypt_setup() 1051 alg ); in psa_driver_wrapper_cipher_encrypt_setup() 1064 (void)alg; in psa_driver_wrapper_cipher_encrypt_setup() 1091 alg ); in psa_driver_wrapper_cipher_decrypt_setup() 1135 (void)alg; in psa_driver_wrapper_cipher_decrypt_setup() 1325 (void) alg; in psa_driver_wrapper_hash_compute() [all …]
|
A D | psa_crypto.c | 825 if( alg == 0 ) in psa_key_policy_permits() 832 if( psa_key_algorithm_permits( key_type, policy->alg, alg ) || in psa_key_policy_permits() 3687 if( !PSA_ALG_IS_AEAD( alg ) || PSA_ALG_IS_WILDCARD( alg ) ) in psa_aead_encrypt() 3705 alg, in psa_aead_encrypt() 3737 if( !PSA_ALG_IS_AEAD( alg ) || PSA_ALG_IS_WILDCARD( alg ) ) in psa_aead_decrypt() 3755 alg, in psa_aead_decrypt() 3781 if( !PSA_ALG_IS_AEAD( alg ) || PSA_ALG_IS_WILDCARD( alg ) ) in psa_aead_setup() 3837 operation->alg = psa_aead_get_base_algorithm( alg ); in psa_aead_setup() 4676 psa_algorithm_t alg = operation->alg; in psa_key_derivation_output_bytes() local 4678 operation->alg = alg; in psa_key_derivation_output_bytes() [all …]
|
A D | psa_crypto_driver_wrappers.h | 35 psa_algorithm_t alg, 46 psa_algorithm_t alg, 115 psa_algorithm_t alg, 126 psa_algorithm_t alg, 137 psa_algorithm_t alg ); 143 psa_algorithm_t alg ); 171 psa_algorithm_t alg, 180 psa_algorithm_t alg ); 207 psa_algorithm_t alg, 216 psa_algorithm_t alg, [all …]
|
A D | psa_crypto_cipher.h | 40 psa_algorithm_t alg, psa_key_type_t key_type, size_t key_bits, 71 psa_algorithm_t alg ); 101 psa_algorithm_t alg ); 251 psa_algorithm_t alg, 300 psa_algorithm_t alg, 316 psa_algorithm_t alg ); 322 psa_algorithm_t alg ); 344 psa_algorithm_t alg, 355 psa_algorithm_t alg,
|
A D | psa_crypto_mac.h | 62 psa_algorithm_t alg, 102 psa_algorithm_t alg); 137 psa_algorithm_t alg); 286 psa_algorithm_t alg, 298 psa_algorithm_t alg ); 305 psa_algorithm_t alg ); 330 psa_algorithm_t alg, 342 psa_algorithm_t alg ); 349 psa_algorithm_t alg );
|
A D | psa_crypto_rsa.c | 405 if( PSA_ALG_IS_RSA_PKCS1V15_SIGN( alg ) ) in rsa_sign_hash() 423 if( PSA_ALG_IS_RSA_PSS( alg ) ) in rsa_sign_hash() 461 if( PSA_ALG_IS_RSA_PSS_ANY_SALT( alg ) ) in rsa_pss_expected_salt_len() 506 if( PSA_ALG_IS_RSA_PKCS1V15_SIGN( alg ) ) in rsa_verify_hash() 522 if( PSA_ALG_IS_RSA_PSS( alg ) ) in rsa_verify_hash() 610 alg, hash, hash_length, in mbedtls_psa_rsa_sign_hash() 623 alg, hash, hash_length, in mbedtls_psa_rsa_verify_hash() 684 alg, hash, hash_length, in mbedtls_transparent_test_driver_rsa_sign_hash() 690 (void)alg; in mbedtls_transparent_test_driver_rsa_sign_hash() 711 alg, hash, hash_length, in mbedtls_transparent_test_driver_rsa_verify_hash() [all …]
|
/mbedtls-development/tests/src/drivers/ |
A D | test_driver_signature.c | 50 psa_algorithm_t alg, in sign_hash() argument 101 (void)alg; in sign_hash() 115 psa_algorithm_t alg, in verify_hash() argument 159 (void)alg; in verify_hash() 173 psa_algorithm_t alg, in mbedtls_test_transparent_signature_sign_message() argument 217 psa_algorithm_t alg, in mbedtls_test_opaque_signature_sign_message() argument 227 (void) alg; in mbedtls_test_opaque_signature_sign_message() 241 psa_algorithm_t alg, in mbedtls_test_transparent_signature_verify_message() argument 281 (void) alg; in mbedtls_test_opaque_signature_verify_message() 327 (void) alg; in mbedtls_test_opaque_signature_sign_hash() [all …]
|
A D | test_driver_cipher.c | 42 psa_algorithm_t alg, in mbedtls_test_transparent_cipher_encrypt() argument 79 psa_algorithm_t alg, in mbedtls_test_transparent_cipher_decrypt() argument 114 psa_algorithm_t alg) in mbedtls_test_transparent_cipher_encrypt_setup() argument 135 psa_algorithm_t alg) in mbedtls_test_transparent_cipher_decrypt_setup() argument 244 psa_algorithm_t alg, in mbedtls_test_opaque_cipher_encrypt() argument 251 (void) alg; in mbedtls_test_opaque_cipher_encrypt() 263 psa_algorithm_t alg, in mbedtls_test_opaque_cipher_decrypt() argument 270 (void) alg; in mbedtls_test_opaque_cipher_decrypt() 283 psa_algorithm_t alg) in mbedtls_test_opaque_cipher_encrypt_setup() argument 289 (void) alg; in mbedtls_test_opaque_cipher_encrypt_setup() [all …]
|
A D | test_driver_mac.c | 34 psa_algorithm_t alg, in mbedtls_test_transparent_mac_compute() argument 52 attributes, key_buffer, key_buffer_size, alg, in mbedtls_test_transparent_mac_compute() 65 psa_algorithm_t alg ) in mbedtls_test_transparent_mac_sign_setup() argument 78 operation, attributes, key_buffer, key_buffer_size, alg ); in mbedtls_test_transparent_mac_sign_setup() 89 psa_algorithm_t alg ) in mbedtls_test_transparent_mac_verify_setup() argument 102 operation, attributes, key_buffer, key_buffer_size, alg ); in mbedtls_test_transparent_mac_verify_setup() 198 psa_algorithm_t alg, in mbedtls_test_opaque_mac_compute() argument 216 attributes, key_buffer, key_buffer_size, alg, in mbedtls_test_opaque_mac_compute() 229 psa_algorithm_t alg ) in mbedtls_test_opaque_mac_sign_setup() argument 242 operation, attributes, key_buffer, key_buffer_size, alg ); in mbedtls_test_opaque_mac_sign_setup() [all …]
|
/mbedtls-development/tests/scripts/ |
A D | depends-pkalgs.pl | 83 while( my ($alg, $extras) = each %algs ) { 88 print "* Testing without alg: $alg\n"; 90 $ENV{MBEDTLS_TEST_CONFIGURATION} = "-$alg"; 92 system( "scripts/config.py unset $alg" ) 93 and abort "Failed to disable $alg\n"; 100 and abort "Failed to build lib: $alg\n"; 101 system( "cd tests && make" ) and abort "Failed to build tests: $alg\n"; 102 system( "make test" ) and abort "Failed test suite: $alg\n";
|
/mbedtls-development/tests/include/test/drivers/ |
A D | signature.h | 57 psa_algorithm_t alg, 68 psa_algorithm_t alg, 79 psa_algorithm_t alg, 89 psa_algorithm_t alg, 98 psa_algorithm_t alg, 105 psa_algorithm_t alg, 112 psa_algorithm_t alg, 119 psa_algorithm_t alg,
|
A D | cipher.h | 55 psa_algorithm_t alg, 62 psa_algorithm_t alg, 70 psa_algorithm_t alg); 76 psa_algorithm_t alg); 100 psa_algorithm_t alg, 107 psa_algorithm_t alg, 115 psa_algorithm_t alg); 121 psa_algorithm_t alg);
|
/mbedtls-development/programs/psa/ |
A D | crypto_examples.c | 98 psa_algorithm_t alg, in cipher_encrypt() argument 129 psa_algorithm_t alg, in cipher_decrypt() argument 166 const psa_algorithm_t alg = PSA_ALG_CBC_NO_PADDING; in cipher_example_encrypt_decrypt_aes_cbc_nopad_1_block() local 182 psa_set_key_algorithm( &attributes, alg ); in cipher_example_encrypt_decrypt_aes_cbc_nopad_1_block() 189 status = cipher_encrypt( key, alg, iv, sizeof( iv ), in cipher_example_encrypt_decrypt_aes_cbc_nopad_1_block() 194 status = cipher_decrypt( key, alg, iv, sizeof( iv ), in cipher_example_encrypt_decrypt_aes_cbc_nopad_1_block() 216 const psa_algorithm_t alg = PSA_ALG_CBC_PKCS7; in cipher_example_encrypt_decrypt_aes_cbc_pkcs7_multi() local 230 psa_set_key_algorithm( &attributes, alg ); in cipher_example_encrypt_decrypt_aes_cbc_pkcs7_multi() 237 status = cipher_encrypt( key, alg, iv, sizeof( iv ), in cipher_example_encrypt_decrypt_aes_cbc_pkcs7_multi() 263 const psa_algorithm_t alg = PSA_ALG_CTR; in cipher_example_encrypt_decrypt_aes_ctr_multi() local [all …]
|