Home
last modified time | relevance | path

Searched refs:operation (Results 1 – 25 of 89) sorted by relevance

1234

/lib/mbedtls/external/mbedtls/library/
A Dpsa_crypto_pake.c141 mbedtls_platform_zeroize(operation->password, operation->password_len); in psa_pake_ecjpake_setup()
266 (void) operation; in mbedtls_psa_pake_setup()
354 length = operation->buffer[operation->buffer_offset]; in mbedtls_psa_pake_output_internal()
357 if (operation->buffer_offset + length > operation->buffer_length) { in mbedtls_psa_pake_output_internal()
366 operation->buffer + operation->buffer_offset, in mbedtls_psa_pake_output_internal()
375 mbedtls_platform_zeroize(operation->buffer, sizeof(operation->buffer)); in mbedtls_psa_pake_output_internal()
452 memcpy(operation->buffer + operation->buffer_length, in mbedtls_psa_pake_input_internal()
467 operation->buffer[operation->buffer_length] = (uint8_t) input_length; in mbedtls_psa_pake_input_internal()
471 memcpy(operation->buffer + operation->buffer_length, in mbedtls_psa_pake_input_internal()
550 mbedtls_zeroize_and_free(operation->password, operation->password_len); in mbedtls_psa_pake_abort()
[all …]
A Dpsa_crypto_aead.c27 mbedtls_psa_aead_operation_t *operation, in psa_aead_setup() argument
48 operation->alg = PSA_ALG_CCM; in psa_aead_setup()
146 if (operation.alg == PSA_ALG_CCM) { in mbedtls_psa_aead_encrypt()
334 operation->is_encrypt = 1; in mbedtls_psa_aead_encrypt_setup()
355 operation->is_encrypt = 0; in mbedtls_psa_aead_decrypt_setup()
409 (void) operation; in mbedtls_psa_aead_set_nonce()
435 (void) operation; in mbedtls_psa_aead_set_lengths()
472 (void) operation; in mbedtls_psa_aead_update_ad()
533 (void) operation; in mbedtls_psa_aead_update()
626 switch (operation->alg) { in mbedtls_psa_aead_abort()
[all …]
A Dpsa_crypto_hash.c22 mbedtls_psa_hash_operation_t *operation) in mbedtls_psa_hash_abort() argument
24 switch (operation->alg) { in mbedtls_psa_hash_abort()
32 mbedtls_md5_free(&operation->ctx.md5); in mbedtls_psa_hash_abort()
87 operation->alg = 0; in mbedtls_psa_hash_abort()
92 mbedtls_psa_hash_operation_t *operation, in mbedtls_psa_hash_setup() argument
98 if (operation->alg != 0) { in mbedtls_psa_hash_setup()
175 operation->alg = alg; in mbedtls_psa_hash_setup()
177 mbedtls_psa_hash_abort(operation); in mbedtls_psa_hash_setup()
262 mbedtls_psa_hash_operation_t *operation, in mbedtls_psa_hash_update() argument
268 switch (operation->alg) { in mbedtls_psa_hash_update()
[all …]
A Dpsa_crypto_mac.c208 operation->alg = alg; in mac_init()
224 (void) operation; in mac_init()
229 memset(operation, 0, sizeof(*operation)); in mac_init()
236 if (operation->alg == 0) { in mbedtls_psa_mac_abort()
258 operation->alg = 0; in mbedtls_psa_mac_abort()
267 memset(operation, 0, sizeof(*operation)); in mbedtls_psa_mac_abort()
280 if (operation->alg != 0) { in psa_mac_setup()
346 if (operation->alg == 0) { in mbedtls_psa_mac_update()
396 (void) operation; in psa_mac_finish_internal()
411 if (operation->alg == 0) { in mbedtls_psa_mac_sign_finish()
[all …]
A Dpsa_crypto_driver_wrappers.h465 switch( operation->id ) in psa_driver_wrapper_sign_hash_get_num_ops()
489 switch( operation->id ) in psa_driver_wrapper_verify_hash_get_num_ops()
561 switch( operation->id ) in psa_driver_wrapper_sign_hash_complete()
586 switch( operation->id ) in psa_driver_wrapper_sign_hash_abort()
652 switch( operation->id ) in psa_driver_wrapper_verify_hash_complete()
673 switch( operation->id ) in psa_driver_wrapper_verify_hash_abort()
1394 switch( operation->id ) in psa_driver_wrapper_cipher_set_iv()
1432 switch( operation->id ) in psa_driver_wrapper_cipher_update()
1476 switch( operation->id ) in psa_driver_wrapper_cipher_finish()
1513 switch( operation->id ) in psa_driver_wrapper_cipher_abort()
[all …]
A Dpsa_crypto.c2310 memset(&operation->ctx, 0, sizeof(operation->ctx)); in psa_hash_setup()
3495 if (operation->id != 0 || operation->error_occurred) { in psa_sign_hash_start()
4344 if (operation->iv_set || !operation->iv_required) { in psa_cipher_generate_iv()
4399 if (operation->iv_set || !operation->iv_required) { in psa_cipher_set_iv()
4444 if (operation->iv_required && !operation->iv_set) { in psa_cipher_update()
4484 if (operation->iv_required && !operation->iv_set) { in psa_cipher_finish()
4921 if (operation->nonce_set || operation->lengths_set || in psa_aead_setup()
5047 if (operation->nonce_set || !operation->is_encrypt) { in psa_aead_generate_nonce()
5299 if (operation->id == 0 || !operation->nonce_set) { in psa_aead_final_checks()
5421 memset(operation, 0, sizeof(*operation)); in psa_aead_abort()
[all …]
A Dpsa_crypto_cipher.c283 mbedtls_psa_cipher_operation_t *operation, in psa_cipher_setup() argument
298 operation->alg = alg; in psa_cipher_setup()
361 mbedtls_psa_cipher_operation_t *operation, in mbedtls_psa_cipher_encrypt_setup() argument
386 if (iv_length != operation->iv_length) { in mbedtls_psa_cipher_set_iv()
514 / operation->block_length * operation->block_length; in mbedtls_psa_cipher_update()
595 if (!PSA_ALG_IS_CIPHER(operation->alg)) { in mbedtls_psa_cipher_abort()
643 &operation, in mbedtls_psa_cipher_encrypt()
684 if (operation.iv_length > 0) { in mbedtls_psa_cipher_decrypt()
693 &operation, in mbedtls_psa_cipher_decrypt()
695 input_length - operation.iv_length, in mbedtls_psa_cipher_decrypt()
[all …]
A Dpsa_crypto_aead.h176 mbedtls_psa_aead_operation_t *operation,
219 mbedtls_psa_aead_operation_t *operation,
254 mbedtls_psa_aead_operation_t *operation,
295 mbedtls_psa_aead_operation_t *operation,
332 mbedtls_psa_aead_operation_t *operation,
392 mbedtls_psa_aead_operation_t *operation,
464 mbedtls_psa_aead_operation_t *operation,
497 mbedtls_psa_aead_operation_t *operation);
A Dpsa_crypto_mac.h86 mbedtls_psa_mac_operation_t *operation,
121 mbedtls_psa_mac_operation_t *operation,
153 mbedtls_psa_mac_operation_t *operation,
195 mbedtls_psa_mac_operation_t *operation,
236 mbedtls_psa_mac_operation_t *operation,
262 mbedtls_psa_mac_operation_t *operation);
/lib/mbedtls/external/mbedtls/include/psa/
A Dcrypto.h3278 psa_key_derivation_operation_t *operation,
3329 psa_key_derivation_operation_t *operation,
3382 psa_key_derivation_operation_t *operation,
3425 psa_key_derivation_operation_t *operation,
3493 psa_key_derivation_operation_t *operation,
3561 psa_key_derivation_operation_t *operation,
3608 psa_key_derivation_operation_t *operation,
3764 psa_key_derivation_operation_t *operation,
3839 psa_key_derivation_operation_t *operation,
3898 psa_key_derivation_operation_t *operation,
[all …]
/lib/mbedtls/external/mbedtls/tests/src/drivers/
A Dtest_driver_mac.c87 operation, in mbedtls_test_transparent_mac_sign_setup()
95 (void) operation; in mbedtls_test_transparent_mac_sign_setup()
124 operation, in mbedtls_test_transparent_mac_verify_setup()
132 (void) operation; in mbedtls_test_transparent_mac_verify_setup()
165 (void) operation; in mbedtls_test_transparent_mac_update()
197 (void) operation; in mbedtls_test_transparent_mac_sign_finish()
229 (void) operation; in mbedtls_test_transparent_mac_verify_finish()
256 (void) operation; in mbedtls_test_transparent_mac_abort()
309 (void) operation; in mbedtls_test_opaque_mac_sign_setup()
333 (void) operation; in mbedtls_test_opaque_mac_verify_setup()
[all …]
A Dtest_driver_cipher.c142 memset(operation, 0, sizeof(*operation)); in mbedtls_test_transparent_cipher_encrypt_setup()
151 operation, in mbedtls_test_transparent_cipher_encrypt_setup()
177 operation, in mbedtls_test_transparent_cipher_decrypt_setup()
204 memset(operation, 0, sizeof(*operation)); in mbedtls_test_transparent_cipher_abort()
227 operation, iv, iv_length); in mbedtls_test_transparent_cipher_set_iv()
363 (void) operation; in mbedtls_test_opaque_cipher_encrypt_setup()
377 (void) operation; in mbedtls_test_opaque_cipher_decrypt_setup()
388 (void) operation; in mbedtls_test_opaque_cipher_abort()
397 (void) operation; in mbedtls_test_opaque_cipher_set_iv()
411 (void) operation; in mbedtls_test_opaque_cipher_update()
[all …]
A Dtest_driver_aead.c162 (void) operation; in mbedtls_test_transparent_aead_encrypt_setup()
198 (void) operation; in mbedtls_test_transparent_aead_decrypt_setup()
229 (void) operation; in mbedtls_test_transparent_aead_set_nonce()
260 (void) operation; in mbedtls_test_transparent_aead_set_lengths()
289 (void) operation; in mbedtls_test_transparent_aead_update_ad()
324 (void) operation; in mbedtls_test_transparent_aead_update()
364 (void) operation; in mbedtls_test_transparent_aead_finish()
407 mbedtls_psa_aead_finish(operation, in mbedtls_test_transparent_aead_verify()
415 (void) operation; in mbedtls_test_transparent_aead_verify()
452 mbedtls_psa_aead_abort(operation); in mbedtls_test_transparent_aead_abort()
[all …]
A Dtest_driver_pake.c25 mbedtls_transparent_test_driver_pake_operation_t *operation, in mbedtls_test_transparent_pake_setup() argument
43 operation, inputs); in mbedtls_test_transparent_pake_setup()
45 (void) operation; in mbedtls_test_transparent_pake_setup()
55 mbedtls_transparent_test_driver_pake_operation_t *operation, in mbedtls_test_transparent_pake_output() argument
92 (void) operation; in mbedtls_test_transparent_pake_output()
126 operation, step, input, input_length); in mbedtls_test_transparent_pake_input()
128 (void) operation; in mbedtls_test_transparent_pake_input()
160 (void) operation; in mbedtls_test_transparent_pake_get_implicit_key()
181 operation); in mbedtls_test_transparent_pake_abort()
185 operation); in mbedtls_test_transparent_pake_abort()
[all …]
A Dhash.c59 mbedtls_transparent_test_driver_hash_operation_t *operation, in mbedtls_test_transparent_hash_setup() argument
74 mbedtls_psa_hash_setup(operation, alg); in mbedtls_test_transparent_hash_setup()
76 (void) operation; in mbedtls_test_transparent_hash_setup()
114 mbedtls_transparent_test_driver_hash_operation_t *operation, in mbedtls_test_transparent_hash_update() argument
128 operation, input, input_length); in mbedtls_test_transparent_hash_update()
133 (void) operation; in mbedtls_test_transparent_hash_update()
159 operation, hash, hash_size, hash_length); in mbedtls_test_transparent_hash_finish()
164 (void) operation; in mbedtls_test_transparent_hash_finish()
187 libtestdriver1_mbedtls_psa_hash_abort(operation); in mbedtls_test_transparent_hash_abort()
190 mbedtls_psa_hash_abort(operation); in mbedtls_test_transparent_hash_abort()
[all …]
/lib/mbedtls/external/mbedtls/tests/suites/
A Dtest_suite_psa_crypto.function39 #define ASSERT_OPERATION_IS_ACTIVE(operation) TEST_ASSERT(operation.id != 0)
40 #define ASSERT_OPERATION_IS_INACTIVE(operation) TEST_ASSERT(operation.id == 0)
588 psa_aead_abort(&operation);
697 psa_mac_abort(&operation);
2248 psa_mac_abort(&operation);
2255 psa_mac_abort(&operation);
3231 operation.id = UINT_MAX;
3770 psa_mac_abort(&operation);
6265 if (operation.alg == PSA_ALG_CCM || operation.alg == PSA_ALG_GCM) {
6337 if (operation.alg == PSA_ALG_CCM || operation.alg == PSA_ALG_GCM) {
[all …]
A Dtest_suite_psa_crypto_hash.function23 PSA_ASSERT(psa_hash_setup(&operation, alg));
24 PSA_ASSERT(psa_hash_update(&operation,
26 PSA_ASSERT(psa_hash_finish(&operation,
33 psa_hash_abort(&operation);
93 PSA_ASSERT(psa_hash_update(&operation,
96 PSA_ASSERT(psa_hash_verify(&operation,
101 psa_hash_abort(&operation);
122 PSA_ASSERT(psa_hash_update(&operation,
125 PSA_ASSERT(psa_hash_update(&operation,
130 PSA_ASSERT(psa_hash_finish(&operation,
[all …]
A Dtest_suite_psa_crypto_pake.function634 PSA_ASSERT(psa_pake_abort(&operation));
706 SETUP_ALWAYS_CHECK_STEP(psa_pake_input(&operation,
767 PSA_ASSERT(psa_pake_abort(&operation));
1005 PSA_ASSERT(psa_pake_setup(&operation, &cipher_suite));
1039 PSA_ASSERT(psa_pake_abort(&operation));
1064 PSA_ASSERT(psa_pake_setup(&operation, &cipher_suite));
1073 PSA_ASSERT(psa_pake_abort(&operation));
1102 PSA_ASSERT(psa_pake_abort(&operation));
1136 PSA_ASSERT(psa_pake_abort(&operation));
1165 PSA_ASSERT(psa_pake_abort(&operation));
[all …]
A Dtest_suite_psa_crypto_op_fail.function49 psa_hash_operation_t operation = PSA_HASH_OPERATION_INIT;
57 psa_hash_setup(&operation, alg));
66 psa_hash_abort(&operation);
78 psa_mac_operation_t operation = PSA_MAC_OPERATION_INIT;
110 psa_mac_abort(&operation);
156 psa_cipher_abort(&operation);
204 psa_aead_abort(&operation);
346 psa_key_derivation_abort(&operation);
389 PSA_ASSERT(psa_key_derivation_setup(&operation,
393 &operation,
[all …]
/lib/mbedtls/external/mbedtls/scripts/data_files/driver_templates/
A Dpsa_crypto_driver_wrappers.h.jinja466 switch( operation->id )
490 switch( operation->id )
562 switch( operation->id )
587 switch( operation->id )
653 switch( operation->id )
674 switch( operation->id )
1357 switch( operation->id )
1395 switch( operation->id )
1439 switch( operation->id )
1476 switch( operation->id )
[all …]
/lib/mbedtls/external/mbedtls/tests/include/test/drivers/
A Dmac.h48 mbedtls_transparent_test_driver_mac_operation_t *operation,
55 mbedtls_transparent_test_driver_mac_operation_t *operation,
62 mbedtls_transparent_test_driver_mac_operation_t *operation,
67 mbedtls_transparent_test_driver_mac_operation_t *operation,
73 mbedtls_transparent_test_driver_mac_operation_t *operation,
92 mbedtls_opaque_test_driver_mac_operation_t *operation,
99 mbedtls_opaque_test_driver_mac_operation_t *operation,
106 mbedtls_opaque_test_driver_mac_operation_t *operation,
111 mbedtls_opaque_test_driver_mac_operation_t *operation,
117 mbedtls_opaque_test_driver_mac_operation_t *operation,
[all …]
A Dcipher.h62 mbedtls_transparent_test_driver_cipher_operation_t *operation,
68 mbedtls_transparent_test_driver_cipher_operation_t *operation,
77 mbedtls_transparent_test_driver_cipher_operation_t *operation,
81 mbedtls_transparent_test_driver_cipher_operation_t *operation,
86 mbedtls_transparent_test_driver_cipher_operation_t *operation,
108 mbedtls_opaque_test_driver_cipher_operation_t *operation,
114 mbedtls_opaque_test_driver_cipher_operation_t *operation,
120 mbedtls_opaque_test_driver_cipher_operation_t *operation);
123 mbedtls_opaque_test_driver_cipher_operation_t *operation,
127 mbedtls_opaque_test_driver_cipher_operation_t *operation,
[all …]
A Daead.h66 mbedtls_transparent_test_driver_aead_operation_t *operation,
72 mbedtls_transparent_test_driver_aead_operation_t *operation,
78 mbedtls_transparent_test_driver_aead_operation_t *operation,
83 mbedtls_transparent_test_driver_aead_operation_t *operation,
88 mbedtls_transparent_test_driver_aead_operation_t *operation,
93 mbedtls_transparent_test_driver_aead_operation_t *operation,
101 mbedtls_transparent_test_driver_aead_operation_t *operation,
110 mbedtls_transparent_test_driver_aead_operation_t *operation,
118 mbedtls_transparent_test_driver_aead_operation_t *operation);
/lib/mbedtls/external/mbedtls/tests/src/
A Dpsa_exercise_key.c139 PSA_ASSERT(psa_mac_abort(&operation)); in exercise_mac_key()
143 PSA_ASSERT(psa_mac_update(&operation, in exercise_mac_key()
162 PSA_ASSERT(psa_mac_update(&operation, in exercise_mac_key()
171 psa_mac_abort(&operation); in exercise_mac_key()
209 PSA_ASSERT(psa_cipher_update(&operation, in exercise_cipher_key()
213 PSA_ASSERT(psa_cipher_finish(&operation, in exercise_cipher_key()
236 PSA_ASSERT(psa_cipher_update(&operation, in exercise_cipher_key()
240 status = psa_cipher_finish(&operation, in exercise_cipher_key()
258 psa_cipher_abort(&operation); in exercise_cipher_key()
487 psa_key_derivation_operation_t *operation, in mbedtls_test_psa_setup_key_derivation_wrap() argument
[all …]
/lib/mbedtls/external/mbedtls/programs/psa/
A Dcrypto_examples.c66 status = psa_cipher_update(operation, input + bytes_written, in cipher_operation()
75 status = psa_cipher_finish(operation, output + *output_len, in cipher_operation()
96 psa_cipher_operation_t operation = PSA_CIPHER_OPERATION_INIT; in cipher_encrypt() local
99 memset(&operation, 0, sizeof(operation)); in cipher_encrypt()
100 status = psa_cipher_encrypt_setup(&operation, key, alg); in cipher_encrypt()
111 psa_cipher_abort(&operation); in cipher_encrypt()
127 psa_cipher_operation_t operation = PSA_CIPHER_OPERATION_INIT; in cipher_decrypt() local
129 memset(&operation, 0, sizeof(operation)); in cipher_decrypt()
130 status = psa_cipher_decrypt_setup(&operation, key, alg); in cipher_decrypt()
133 status = psa_cipher_set_iv(&operation, iv, iv_size); in cipher_decrypt()
[all …]

Completed in 108 milliseconds

1234