/mbedtls-development/library/ |
A D | psa_crypto_aead.c | 68 operation->alg = PSA_ALG_CCM; in psa_aead_setup() 132 operation->tag_length = PSA_AEAD_TAG_LENGTH( operation->key_type, in psa_aead_setup() 168 if( operation.alg == PSA_ALG_CCM ) in mbedtls_psa_aead_encrypt() 182 if( operation.alg == PSA_ALG_GCM ) in mbedtls_psa_aead_encrypt() 276 if( operation.alg == PSA_ALG_CCM ) in mbedtls_psa_aead_decrypt() 360 operation->is_encrypt = 1; in mbedtls_psa_aead_encrypt_setup() 387 operation->is_encrypt = 0; in mbedtls_psa_aead_decrypt_setup() 451 ( void ) operation; in mbedtls_psa_aead_set_lengths() 485 ( void ) operation; in mbedtls_psa_aead_update_ad() 616 switch( operation->alg ) in mbedtls_psa_aead_abort() [all …]
|
A D | psa_crypto_hash.c | 112 mbedtls_psa_hash_operation_t *operation ) in hash_abort() argument 114 switch( operation->alg ) in hash_abort() 159 operation->alg = 0; in hash_abort() 164 mbedtls_psa_hash_operation_t *operation, in hash_setup() argument 170 if( operation->alg != 0 ) in hash_setup() 225 operation->alg = alg; in hash_setup() 227 hash_abort( operation ); in hash_setup() 298 switch( operation->alg ) in hash_update() 376 switch( operation->alg ) in hash_finish() 505 return( hash_abort( operation ) ); in mbedtls_psa_hash_abort() [all …]
|
A D | psa_crypto_mac.c | 215 operation->alg = alg; in mac_init() 239 memset( operation, 0, sizeof( *operation ) ); in mac_init() 273 operation->alg = 0; in mac_abort() 282 memset( operation, 0, sizeof( *operation ) ); in mac_abort() 396 (void) operation; in mac_finish_internal() 702 (void) operation; in mbedtls_opaque_test_driver_mac_sign_setup() 718 (void) operation; in mbedtls_opaque_test_driver_mac_verify_setup() 732 (void) operation; in mbedtls_opaque_test_driver_mac_update() 745 (void) operation; in mbedtls_opaque_test_driver_mac_sign_finish() 758 (void) operation; in mbedtls_opaque_test_driver_mac_verify_finish() [all …]
|
A D | psa_crypto_cipher.c | 171 operation->alg = alg; in cipher_setup() 386 / operation->block_length * operation->block_length; in cipher_update() 491 if( operation.iv_length > 0 ) in cipher_encrypt() 493 status = cipher_set_iv( &operation, output, operation.iv_length ); in cipher_encrypt() 520 cipher_abort( &operation ); in cipher_encrypt() 543 if( operation.iv_length > 0 ) in cipher_decrypt() 545 status = cipher_set_iv( &operation, input, operation.iv_length ); in cipher_decrypt() 550 status = cipher_update( &operation, input + operation.iv_length, in cipher_decrypt() 569 cipher_abort( &operation ); in cipher_decrypt() 623 return( cipher_abort( operation ) ); in mbedtls_psa_cipher_abort() [all …]
|
A D | psa_crypto_driver_wrappers.c | 1145 switch( operation->id ) in psa_driver_wrapper_cipher_set_iv() 1183 switch( operation->id ) in psa_driver_wrapper_cipher_update() 1227 switch( operation->id ) in psa_driver_wrapper_cipher_finish() 1264 switch( operation->id ) in psa_driver_wrapper_cipher_abort() 1363 (void) operation; in psa_driver_wrapper_hash_setup() 1398 switch( operation->id ) in psa_driver_wrapper_hash_update() 1424 switch( operation->id ) in psa_driver_wrapper_hash_finish() 1448 switch( operation->id ) in psa_driver_wrapper_hash_abort() 1671 switch( operation->id ) in psa_driver_wrapper_aead_set_nonce() 1705 switch( operation->id ) in psa_driver_wrapper_aead_set_lengths() [all …]
|
A D | psa_crypto_mac.h | 98 mbedtls_psa_mac_operation_t *operation, 133 mbedtls_psa_mac_operation_t *operation, 165 mbedtls_psa_mac_operation_t *operation, 207 mbedtls_psa_mac_operation_t *operation, 248 mbedtls_psa_mac_operation_t *operation, 274 mbedtls_psa_mac_operation_t *operation ); 338 mbedtls_opaque_test_driver_mac_operation_t *operation, 345 mbedtls_opaque_test_driver_mac_operation_t *operation, 352 mbedtls_opaque_test_driver_mac_operation_t *operation, 357 mbedtls_opaque_test_driver_mac_operation_t *operation, [all …]
|
A D | psa_crypto.c | 2140 memset( &operation->ctx, 0, sizeof( operation->ctx ) ); in psa_hash_setup() 3357 if( operation->iv_set || ! operation->iv_required ) in psa_cipher_generate_iv() 3401 if( operation->iv_set || ! operation->iv_required ) in psa_cipher_set_iv() 3440 if( operation->iv_required && ! operation->iv_set ) in psa_cipher_update() 3473 if( operation->iv_required && ! operation->iv_set ) in psa_cipher_finish() 3793 if( operation->nonce_set || operation->lengths_set || in psa_aead_setup() 3794 operation->ad_started || operation->body_started ) in psa_aead_setup() 3879 if( operation->nonce_set || !operation->is_encrypt ) in psa_aead_generate_nonce() 3960 if( operation->lengths_set || operation->ad_started || in psa_aead_set_lengths() 4120 if( operation->id == 0 || !operation->nonce_set ) in psa_aead_final_checks() [all …]
|
A D | psa_crypto_driver_wrappers.h | 179 psa_hash_operation_t *operation, 187 psa_hash_operation_t *operation, 192 psa_hash_operation_t *operation, 223 psa_aead_operation_t *operation, 229 psa_aead_operation_t *operation, 235 psa_aead_operation_t *operation, 292 psa_mac_operation_t *operation, 299 psa_mac_operation_t *operation, 306 psa_mac_operation_t *operation, 311 psa_mac_operation_t *operation, [all …]
|
A D | psa_crypto_cipher.h | 68 mbedtls_psa_cipher_operation_t *operation, 98 mbedtls_psa_cipher_operation_t *operation, 126 mbedtls_psa_cipher_operation_t *operation, 151 mbedtls_psa_cipher_operation_t *operation, 182 mbedtls_psa_cipher_operation_t *operation, 313 mbedtls_psa_cipher_operation_t *operation, 319 mbedtls_psa_cipher_operation_t *operation, 325 mbedtls_psa_cipher_operation_t *operation, 329 mbedtls_psa_cipher_operation_t *operation, 334 mbedtls_psa_cipher_operation_t *operation, [all …]
|
A D | psa_crypto_hash.h | 104 mbedtls_psa_hash_operation_t *operation, 163 mbedtls_psa_hash_operation_t *operation, 202 mbedtls_psa_hash_operation_t *operation, 232 mbedtls_psa_hash_operation_t *operation ); 249 mbedtls_transparent_test_driver_hash_operation_t *operation, 257 mbedtls_transparent_test_driver_hash_operation_t *operation, 262 mbedtls_transparent_test_driver_hash_operation_t *operation, 268 mbedtls_transparent_test_driver_hash_operation_t *operation );
|
A D | psa_crypto_aead.h | 188 mbedtls_psa_aead_operation_t *operation, 231 mbedtls_psa_aead_operation_t *operation, 266 mbedtls_psa_aead_operation_t *operation, 307 mbedtls_psa_aead_operation_t *operation, 344 mbedtls_psa_aead_operation_t *operation, 404 mbedtls_psa_aead_operation_t *operation, 476 mbedtls_psa_aead_operation_t *operation, 509 mbedtls_psa_aead_operation_t *operation );
|
/mbedtls-development/tests/src/drivers/ |
A D | test_driver_cipher.c | 122 memset( operation, 0, sizeof( *operation ) ); in mbedtls_test_transparent_cipher_encrypt_setup() 151 if( operation->alg == 0 ) in mbedtls_test_transparent_cipher_abort() 160 memset( operation, 0, sizeof( *operation ) ); in mbedtls_test_transparent_cipher_abort() 176 operation, iv, iv_length ) ); in mbedtls_test_transparent_cipher_set_iv() 206 operation, input, input_length, in mbedtls_test_transparent_cipher_update() 285 (void) operation; in mbedtls_test_opaque_cipher_encrypt_setup() 299 (void) operation; in mbedtls_test_opaque_cipher_decrypt_setup() 310 (void) operation; in mbedtls_test_opaque_cipher_abort() 319 (void) operation; in mbedtls_test_opaque_cipher_set_iv() 333 (void) operation; in mbedtls_test_opaque_cipher_update() [all …]
|
A D | test_driver_mac.c | 124 operation, input, input_length ); in mbedtls_test_transparent_mac_update() 147 operation, mac, mac_size, mac_length ); in mbedtls_test_transparent_mac_sign_finish() 169 operation, mac, mac_length ); in mbedtls_test_transparent_mac_verify_finish() 225 mbedtls_opaque_test_driver_mac_operation_t *operation, in mbedtls_test_opaque_mac_sign_setup() argument 249 mbedtls_opaque_test_driver_mac_operation_t *operation, in mbedtls_test_opaque_mac_verify_setup() argument 273 mbedtls_opaque_test_driver_mac_operation_t *operation, in mbedtls_test_opaque_mac_update() argument 288 operation, input, input_length ); in mbedtls_test_opaque_mac_update() 295 mbedtls_opaque_test_driver_mac_operation_t *operation, in mbedtls_test_opaque_mac_sign_finish() argument 311 operation, mac, mac_size, mac_length ); in mbedtls_test_opaque_mac_sign_finish() 318 mbedtls_opaque_test_driver_mac_operation_t *operation, in mbedtls_test_opaque_mac_verify_finish() argument [all …]
|
A D | test_driver_aead.c | 94 mbedtls_transparent_test_driver_aead_operation_t *operation, in mbedtls_test_transparent_aead_encrypt_setup() argument 117 mbedtls_transparent_test_driver_aead_operation_t *operation, in mbedtls_test_transparent_aead_decrypt_setup() argument 140 mbedtls_transparent_test_driver_aead_operation_t *operation, in mbedtls_test_transparent_aead_set_nonce() argument 161 mbedtls_transparent_test_driver_aead_operation_t *operation, in mbedtls_test_transparent_aead_set_lengths() argument 175 mbedtls_psa_aead_set_lengths( operation, ad_length, in mbedtls_test_transparent_aead_set_lengths() 183 mbedtls_transparent_test_driver_aead_operation_t *operation, in mbedtls_test_transparent_aead_update_ad() argument 204 mbedtls_transparent_test_driver_aead_operation_t *operation, in mbedtls_test_transparent_aead_update() argument 229 mbedtls_transparent_test_driver_aead_operation_t *operation, in mbedtls_test_transparent_aead_finish() argument 256 mbedtls_transparent_test_driver_aead_operation_t *operation, in mbedtls_test_transparent_aead_verify() argument 276 mbedtls_psa_aead_finish( operation, in mbedtls_test_transparent_aead_verify() [all …]
|
A D | hash.c | 54 mbedtls_transparent_test_driver_hash_operation_t *operation, in mbedtls_test_transparent_hash_setup() argument 67 mbedtls_transparent_test_driver_hash_setup( operation, alg ); in mbedtls_test_transparent_hash_setup() 95 mbedtls_transparent_test_driver_hash_operation_t *operation, in mbedtls_test_transparent_hash_update() argument 110 operation, input, input_length ); in mbedtls_test_transparent_hash_update() 117 mbedtls_transparent_test_driver_hash_operation_t *operation, in mbedtls_test_transparent_hash_finish() argument 133 operation, hash, hash_size, hash_length ); in mbedtls_test_transparent_hash_finish() 140 mbedtls_transparent_test_driver_hash_operation_t *operation ) in mbedtls_test_transparent_hash_abort() argument 152 mbedtls_transparent_test_driver_hash_abort( operation ); in mbedtls_test_transparent_hash_abort()
|
/mbedtls-development/tests/suites/ |
A D | test_suite_psa_crypto_hash.function | 22 PSA_ASSERT( psa_hash_setup( &operation, alg ) ); 23 PSA_ASSERT( psa_hash_update( &operation, 25 PSA_ASSERT( psa_hash_finish( &operation, 32 psa_hash_abort( &operation ); 46 PSA_ASSERT( psa_hash_update( &operation, 49 PSA_ASSERT( psa_hash_verify( &operation, 54 psa_hash_abort( &operation ); 76 PSA_ASSERT( psa_hash_update( &operation, 79 PSA_ASSERT( psa_hash_update( &operation, 84 PSA_ASSERT( psa_hash_finish( &operation, [all …]
|
A D | test_suite_psa_crypto.function | 30 #define ASSERT_OPERATION_IS_ACTIVE( operation ) TEST_ASSERT( operation.id != 0 ) 31 #define ASSERT_OPERATION_IS_INACTIVE( operation ) TEST_ASSERT( operation.id == 0 ) 582 psa_aead_abort( &operation ); 1166 psa_mac_abort( &operation ); 1173 psa_mac_abort( &operation ); 1968 operation.id = UINT_MAX; 2464 psa_mac_abort( &operation ); 2563 psa_mac_abort( &operation ); 4099 psa_aead_abort( &operation ); 6549 &operation, [all …]
|
A D | test_suite_psa_crypto_driver_wrappers.function | 498 psa_cipher_abort( &operation ); 631 psa_cipher_abort( &operation ); 764 psa_cipher_abort( &operation ); 916 psa_cipher_abort( &operation ); 938 psa_cipher_abort( &operation ); 968 psa_cipher_abort( &operation ); 1269 psa_mac_abort( &operation ); 1378 psa_mac_abort( &operation ); 1566 psa_hash_abort( &operation ); 1622 psa_hash_abort( &operation ); [all …]
|
/mbedtls-development/include/psa/ |
A D | crypto.h | 3313 psa_key_derivation_operation_t *operation, 3366 psa_key_derivation_operation_t *operation, 3421 psa_key_derivation_operation_t *operation, 3466 psa_key_derivation_operation_t *operation, 3535 psa_key_derivation_operation_t *operation, 3605 psa_key_derivation_operation_t *operation, 3653 psa_key_derivation_operation_t *operation, 3805 psa_key_derivation_operation_t *operation, 3863 psa_key_derivation_operation_t *operation, 3928 psa_key_derivation_operation_t *operation, [all …]
|
/mbedtls-development/tests/include/test/drivers/ |
A D | mac.h | 60 mbedtls_transparent_test_driver_mac_operation_t *operation, 67 mbedtls_transparent_test_driver_mac_operation_t *operation, 74 mbedtls_transparent_test_driver_mac_operation_t *operation, 79 mbedtls_transparent_test_driver_mac_operation_t *operation, 85 mbedtls_transparent_test_driver_mac_operation_t *operation, 104 mbedtls_opaque_test_driver_mac_operation_t *operation, 111 mbedtls_opaque_test_driver_mac_operation_t *operation, 118 mbedtls_opaque_test_driver_mac_operation_t *operation, 123 mbedtls_opaque_test_driver_mac_operation_t *operation, 129 mbedtls_opaque_test_driver_mac_operation_t *operation, [all …]
|
A D | cipher.h | 67 mbedtls_transparent_test_driver_cipher_operation_t *operation, 73 mbedtls_transparent_test_driver_cipher_operation_t *operation, 82 mbedtls_transparent_test_driver_cipher_operation_t *operation, 86 mbedtls_transparent_test_driver_cipher_operation_t *operation, 91 mbedtls_transparent_test_driver_cipher_operation_t *operation, 112 mbedtls_opaque_test_driver_cipher_operation_t *operation, 118 mbedtls_opaque_test_driver_cipher_operation_t *operation, 124 mbedtls_opaque_test_driver_cipher_operation_t *operation); 127 mbedtls_opaque_test_driver_cipher_operation_t *operation, 131 mbedtls_opaque_test_driver_cipher_operation_t *operation, [all …]
|
A D | aead.h | 78 mbedtls_psa_aead_operation_t *operation, 84 mbedtls_psa_aead_operation_t *operation, 90 mbedtls_psa_aead_operation_t *operation, 95 mbedtls_psa_aead_operation_t *operation, 100 mbedtls_psa_aead_operation_t *operation, 105 mbedtls_psa_aead_operation_t *operation, 113 mbedtls_psa_aead_operation_t *operation, 122 mbedtls_psa_aead_operation_t *operation, 130 mbedtls_psa_aead_operation_t *operation );
|
/mbedtls-development/tests/src/ |
A D | psa_exercise_key.c | 134 PSA_ASSERT( psa_mac_update( &operation, in exercise_mac_key() 148 PSA_ASSERT( psa_mac_update( &operation, in exercise_mac_key() 157 psa_mac_abort( &operation ); in exercise_mac_key() 180 PSA_ASSERT( psa_cipher_update( &operation, in exercise_cipher_key() 184 PSA_ASSERT( psa_cipher_finish( &operation, in exercise_cipher_key() 207 PSA_ASSERT( psa_cipher_set_iv( &operation, in exercise_cipher_key() 209 PSA_ASSERT( psa_cipher_update( &operation, in exercise_cipher_key() 213 status = psa_cipher_finish( &operation, in exercise_cipher_key() 230 psa_cipher_abort( &operation ); in exercise_cipher_key() 419 psa_key_derivation_operation_t* operation, in mbedtls_test_psa_setup_key_derivation_wrap() argument [all …]
|
/mbedtls-development/programs/psa/ |
A D | crypto_examples.c | 79 status = psa_cipher_update( operation, input + bytes_written, in cipher_operation() 88 status = psa_cipher_finish( operation, output + *output_len, in cipher_operation() 109 psa_cipher_operation_t operation = PSA_CIPHER_OPERATION_INIT; in cipher_encrypt() local 112 memset( &operation, 0, sizeof( operation ) ); in cipher_encrypt() 113 status = psa_cipher_encrypt_setup( &operation, key, alg ); in cipher_encrypt() 124 psa_cipher_abort( &operation ); in cipher_encrypt() 140 psa_cipher_operation_t operation = PSA_CIPHER_OPERATION_INIT; in cipher_decrypt() local 142 memset( &operation, 0, sizeof( operation ) ); in cipher_decrypt() 143 status = psa_cipher_decrypt_setup( &operation, key, alg ); in cipher_decrypt() 146 status = psa_cipher_set_iv( &operation, iv, iv_size ); in cipher_decrypt() [all …]
|
/mbedtls-development/docs/ |
A D | getting_started.md | 267 /* Clean up cipher operation context */ 268 psa_cipher_abort(&operation); 352 psa_cipher_abort(&operation); 361 #### Handling cipher operation contexts 431 /* Clean up hash operation context */ 432 psa_hash_abort(&operation); 479 /* Clean up hash operation context */ 480 psa_hash_abort(&operation); 487 #### Handling hash operation contexts 496 …operation structure is invalidated; in other words, you cannot reuse the operation structure for t… [all …]
|