Home
last modified time | relevance | path

Searched refs:key_buffer_size (Results 1 – 24 of 24) sorted by relevance

/third_party/mbedtls/library/
Dpsa_crypto_driver_wrappers.c112 size_t key_buffer_size, in psa_driver_wrapper_sign_message() argument
134 key_buffer_size, in psa_driver_wrapper_sign_message()
155 key_buffer_size, in psa_driver_wrapper_sign_message()
175 key_buffer_size, in psa_driver_wrapper_sign_message()
187 size_t key_buffer_size, in psa_driver_wrapper_verify_message() argument
208 key_buffer_size, in psa_driver_wrapper_verify_message()
228 key_buffer_size, in psa_driver_wrapper_verify_message()
247 key_buffer_size, in psa_driver_wrapper_verify_message()
257 const uint8_t *key_buffer, size_t key_buffer_size, in psa_driver_wrapper_sign_hash() argument
294 key_buffer_size, in psa_driver_wrapper_sign_hash()
[all …]
Dpsa_crypto_driver_wrappers.h40 size_t key_buffer_size,
51 size_t key_buffer_size,
60 const uint8_t *key_buffer, size_t key_buffer_size,
66 const uint8_t *key_buffer, size_t key_buffer_size,
77 uint8_t *key_buffer, size_t key_buffer_size,
82 const uint8_t *key_buffer, size_t key_buffer_size,
87 const uint8_t *key_buffer, size_t key_buffer_size,
92 size_t *key_buffer_size );
98 size_t *key_buffer_size );
102 uint8_t *key_buffer, size_t key_buffer_size, size_t *key_buffer_length );
[all …]
Dpsa_crypto_core.h294 uint8_t *key_buffer, size_t key_buffer_size,
321 const uint8_t *key_buffer, size_t key_buffer_size,
349 const uint8_t *key_buffer, size_t key_buffer_size,
374 size_t key_buffer_size,
416 const uint8_t *key_buffer, size_t key_buffer_size,
453 const uint8_t *key_buffer, size_t key_buffer_size,
492 const uint8_t *key_buffer, size_t key_buffer_size,
527 const uint8_t *key_buffer, size_t key_buffer_size,
Dpsa_crypto_rsa.h71 uint8_t *key_buffer, size_t key_buffer_size,
114 const uint8_t *key_buffer, size_t key_buffer_size,
138 uint8_t *key_buffer, size_t key_buffer_size, size_t *key_buffer_length );
175 const uint8_t *key_buffer, size_t key_buffer_size,
211 const uint8_t *key_buffer, size_t key_buffer_size,
Dpsa_crypto_ecp.h80 uint8_t *key_buffer, size_t key_buffer_size,
123 const uint8_t *key_buffer, size_t key_buffer_size,
147 uint8_t *key_buffer, size_t key_buffer_size, size_t *key_buffer_length );
183 const uint8_t *key_buffer, size_t key_buffer_size,
218 const uint8_t *key_buffer, size_t key_buffer_size,
Dpsa_crypto_ecp.c170 uint8_t *key_buffer, size_t key_buffer_size, in mbedtls_psa_ecp_import_key() argument
197 key_buffer_size, in mbedtls_psa_ecp_import_key()
260 const uint8_t *key_buffer, size_t key_buffer_size, in mbedtls_psa_ecp_export_public_key() argument
268 key_buffer, key_buffer_size, &ecp ); in mbedtls_psa_ecp_export_public_key()
288 uint8_t *key_buffer, size_t key_buffer_size, size_t *key_buffer_length ) in mbedtls_psa_ecp_generate_key() argument
319 mbedtls_ecp_write_key( &ecp, key_buffer, key_buffer_size ) ); in mbedtls_psa_ecp_generate_key()
324 *key_buffer_length = key_buffer_size; in mbedtls_psa_ecp_generate_key()
338 const uint8_t *key_buffer, size_t key_buffer_size, in mbedtls_psa_ecdsa_sign_hash() argument
351 key_buffer_size, in mbedtls_psa_ecdsa_sign_hash()
412 const uint8_t *key_buffer, size_t key_buffer_size, in mbedtls_psa_ecdsa_verify_hash() argument
[all …]
Dpsa_crypto_rsa.c136 uint8_t *key_buffer, size_t key_buffer_size, in mbedtls_psa_rsa_import_key() argument
159 key_buffer_size, in mbedtls_psa_rsa_import_key()
227 const uint8_t *key_buffer, size_t key_buffer_size, in mbedtls_psa_rsa_export_public_key() argument
234 attributes->core.type, key_buffer, key_buffer_size, &rsa ); in mbedtls_psa_rsa_export_public_key()
282 uint8_t *key_buffer, size_t key_buffer_size, size_t *key_buffer_length ) in mbedtls_psa_rsa_generate_key() argument
305 &rsa, key_buffer, key_buffer_size, in mbedtls_psa_rsa_generate_key()
353 const uint8_t *key_buffer, size_t key_buffer_size, in mbedtls_psa_rsa_sign_hash() argument
364 key_buffer_size, in mbedtls_psa_rsa_sign_hash()
454 const uint8_t *key_buffer, size_t key_buffer_size, in mbedtls_psa_rsa_verify_hash() argument
465 key_buffer_size, in mbedtls_psa_rsa_verify_hash()
Dpsa_crypto_mac.c278 size_t key_buffer_size, in psa_mac_setup() argument
296 (void) key_buffer_size; in psa_mac_setup()
306 key_buffer_size, in psa_mac_setup()
314 (void) key_buffer_size; in psa_mac_setup()
328 size_t key_buffer_size, in mbedtls_psa_mac_sign_setup() argument
332 key_buffer, key_buffer_size, alg ) ); in mbedtls_psa_mac_sign_setup()
339 size_t key_buffer_size, in mbedtls_psa_mac_verify_setup() argument
343 key_buffer, key_buffer_size, alg ) ); in mbedtls_psa_mac_verify_setup()
463 size_t key_buffer_size, in mbedtls_psa_mac_compute() argument
475 attributes, key_buffer, key_buffer_size, in mbedtls_psa_mac_compute()
Dpsa_crypto_cipher.h70 const uint8_t *key_buffer, size_t key_buffer_size,
100 const uint8_t *key_buffer, size_t key_buffer_size,
246 size_t key_buffer_size,
297 size_t key_buffer_size,
Dpsa_crypto_cipher.c134 const uint8_t *key_buffer, size_t key_buffer_size, in psa_cipher_setup() argument
143 (void)key_buffer_size; in psa_cipher_setup()
211 const uint8_t *key_buffer, size_t key_buffer_size, in mbedtls_psa_cipher_encrypt_setup() argument
215 key_buffer, key_buffer_size, in mbedtls_psa_cipher_encrypt_setup()
222 const uint8_t *key_buffer, size_t key_buffer_size, in mbedtls_psa_cipher_decrypt_setup() argument
226 key_buffer, key_buffer_size, in mbedtls_psa_cipher_decrypt_setup()
450 size_t key_buffer_size, in mbedtls_psa_cipher_encrypt() argument
465 key_buffer, key_buffer_size, in mbedtls_psa_cipher_encrypt()
504 size_t key_buffer_size, in mbedtls_psa_cipher_decrypt() argument
517 key_buffer, key_buffer_size, in mbedtls_psa_cipher_decrypt()
Dpsa_crypto_aead.h81 const uint8_t *key_buffer, size_t key_buffer_size,
144 const uint8_t *key_buffer, size_t key_buffer_size,
191 size_t key_buffer_size,
234 size_t key_buffer_size,
Dpsa_crypto_aead.c45 size_t key_buffer_size, in psa_aead_setup() argument
54 ( void ) key_buffer_size; in psa_aead_setup()
143 const uint8_t *key_buffer, size_t key_buffer_size, in mbedtls_psa_aead_encrypt() argument
155 key_buffer_size, alg ); in mbedtls_psa_aead_encrypt()
259 const uint8_t *key_buffer, size_t key_buffer_size, in mbedtls_psa_aead_decrypt() argument
271 key_buffer_size, alg ); in mbedtls_psa_aead_decrypt()
356 size_t key_buffer_size, in mbedtls_psa_aead_encrypt_setup() argument
362 key_buffer_size, alg ); in mbedtls_psa_aead_encrypt_setup()
376 size_t key_buffer_size, in mbedtls_psa_aead_decrypt_setup() argument
382 key_buffer_size, alg ); in mbedtls_psa_aead_decrypt_setup()
Dpsa_crypto_mac.h61 size_t key_buffer_size,
101 size_t key_buffer_size,
136 size_t key_buffer_size,
Dpsa_crypto.c552 uint8_t *key_buffer, size_t key_buffer_size, in psa_import_key_into_slot() argument
574 (void)key_buffer_size; in psa_import_key_into_slot()
586 key_buffer, key_buffer_size, in psa_import_key_into_slot()
598 key_buffer, key_buffer_size, in psa_import_key_into_slot()
1258 size_t key_buffer_size, in psa_export_key_buffer_internal() argument
1263 if( key_buffer_size > data_size ) in psa_export_key_buffer_internal()
1265 memcpy( data, key_buffer, key_buffer_size ); in psa_export_key_buffer_internal()
1266 memset( data + key_buffer_size, 0, in psa_export_key_buffer_internal()
1267 data_size - key_buffer_size ); in psa_export_key_buffer_internal()
1268 *data_length = key_buffer_size; in psa_export_key_buffer_internal()
[all …]
Dpsa_crypto_slot_management.c285 size_t key_buffer_size = 0; in psa_load_builtin_key_into_slot() local
321 &key_buffer_size ); in psa_load_builtin_key_into_slot()
327 status = psa_allocate_buffer_to_slot( slot, key_buffer_size ); in psa_load_builtin_key_into_slot()
/third_party/mbedtls/tests/src/drivers/
Dtest_driver_key_management.c110 size_t key_buffer_size = 0; in mbedtls_test_opaque_size_function() local
112 key_buffer_size = PSA_EXPORT_KEY_OUTPUT_SIZE( key_type, key_bits ); in mbedtls_test_opaque_size_function()
113 if( key_buffer_size == 0 ) in mbedtls_test_opaque_size_function()
117 key_buffer_size += TEST_DRIVER_KEY_CONTEXT_BASE_SIZE; in mbedtls_test_opaque_size_function()
118 return( key_buffer_size ); in mbedtls_test_opaque_size_function()
170 size_t key_buffer_size, in mbedtls_test_opaque_unwrap_key() argument
183 if( clear_key_size > key_buffer_size ) in mbedtls_test_opaque_unwrap_key()
258 size_t key_buffer_size, in mbedtls_test_transparent_import_key() argument
277 key_buffer, key_buffer_size, in mbedtls_test_transparent_import_key()
284 key_buffer, key_buffer_size, in mbedtls_test_transparent_import_key()
[all …]
Dtest_driver_signature.c57 size_t key_buffer_size, in sign_hash() argument
75 key_buffer, key_buffer_size, in sign_hash()
82 key_buffer, key_buffer_size, in sign_hash()
101 key_buffer, key_buffer_size, in sign_hash()
108 key_buffer, key_buffer_size, in sign_hash()
121 (void)key_buffer_size; in sign_hash()
134 size_t key_buffer_size, in verify_hash() argument
151 key_buffer, key_buffer_size, in verify_hash()
158 key_buffer, key_buffer_size, in verify_hash()
177 key_buffer, key_buffer_size, in verify_hash()
[all …]
Dtest_driver_mac.c37 size_t key_buffer_size, in mbedtls_test_transparent_mac_compute() argument
59 key_buffer, key_buffer_size, alg, in mbedtls_test_transparent_mac_compute()
65 attributes, key_buffer, key_buffer_size, alg, in mbedtls_test_transparent_mac_compute()
71 (void) key_buffer_size; in mbedtls_test_transparent_mac_compute()
89 size_t key_buffer_size, in mbedtls_test_transparent_mac_sign_setup() argument
107 key_buffer, key_buffer_size, alg ); in mbedtls_test_transparent_mac_sign_setup()
111 operation, attributes, key_buffer, key_buffer_size, alg ); in mbedtls_test_transparent_mac_sign_setup()
116 (void) key_buffer_size; in mbedtls_test_transparent_mac_sign_setup()
129 size_t key_buffer_size, in mbedtls_test_transparent_mac_verify_setup() argument
147 key_buffer, key_buffer_size, alg ); in mbedtls_test_transparent_mac_verify_setup()
[all …]
Dtest_driver_aead.c33 const uint8_t *key_buffer, size_t key_buffer_size, in mbedtls_test_transparent_aead_encrypt() argument
52 attributes, key_buffer, key_buffer_size, in mbedtls_test_transparent_aead_encrypt()
61 (void) key_buffer_size; in mbedtls_test_transparent_aead_encrypt()
81 const uint8_t *key_buffer, size_t key_buffer_size, in mbedtls_test_transparent_aead_decrypt() argument
100 attributes, key_buffer, key_buffer_size, in mbedtls_test_transparent_aead_decrypt()
109 (void) key_buffer_size; in mbedtls_test_transparent_aead_decrypt()
130 const uint8_t *key_buffer, size_t key_buffer_size, in mbedtls_test_transparent_aead_encrypt_setup() argument
145 key_buffer_size, alg ); in mbedtls_test_transparent_aead_encrypt_setup()
150 (void) key_buffer_size; in mbedtls_test_transparent_aead_encrypt_setup()
162 const uint8_t *key_buffer, size_t key_buffer_size, in mbedtls_test_transparent_aead_decrypt_setup() argument
[all …]
Dtest_driver_cipher.c45 size_t key_buffer_size, in mbedtls_test_transparent_cipher_encrypt() argument
77 key_buffer, key_buffer_size, in mbedtls_test_transparent_cipher_encrypt()
82 attributes, key_buffer, key_buffer_size, in mbedtls_test_transparent_cipher_encrypt()
93 size_t key_buffer_size, in mbedtls_test_transparent_cipher_decrypt() argument
123 key_buffer, key_buffer_size, in mbedtls_test_transparent_cipher_decrypt()
128 attributes, key_buffer, key_buffer_size, in mbedtls_test_transparent_cipher_decrypt()
/third_party/mbedtls/tests/include/test/drivers/
Dmac.h51 size_t key_buffer_size,
63 size_t key_buffer_size,
70 size_t key_buffer_size,
95 size_t key_buffer_size,
107 size_t key_buffer_size,
114 size_t key_buffer_size,
Daead.h61 const uint8_t *key_buffer, size_t key_buffer_size,
70 const uint8_t *key_buffer, size_t key_buffer_size,
80 const uint8_t *key_buffer, size_t key_buffer_size,
86 const uint8_t *key_buffer, size_t key_buffer_size,
Dkey_management.h102 size_t key_buffer_size,
111 size_t key_buffer_size,
118 uint8_t *key_buffer, size_t key_buffer_size, size_t *key_buffer_length );
/third_party/mbedtls/docs/proposed/
Dpsa-driver-interface.md184 3. `size_t key_buffer_size`: the size of the key buffer in bytes.
192 2. `size_t key_buffer_size`: the size of the key buffer in bytes.
331 size_t key_buffer_size,
336 size_t key_buffer_size,
465 size_t key_buffer_size,
699 size_t key_buffer_size);
702 size_t key_buffer_size);
740 size_t key_buffer_size,
745 size_t key_buffer_size,
760 size_t key_buffer_size,
[all …]