Home
last modified time | relevance | path

Searched refs:key_buffer (Results 1 – 25 of 35) sorted by relevance

12

/mbedtls-3.6.0/library/
Dpsa_crypto_driver_wrappers.h157 const uint8_t *key_buffer, in psa_driver_wrapper_sign_message() argument
182 key_buffer, in psa_driver_wrapper_sign_message()
197 key_buffer, in psa_driver_wrapper_sign_message()
209 key_buffer, in psa_driver_wrapper_sign_message()
224 key_buffer, in psa_driver_wrapper_sign_message()
246 const uint8_t *key_buffer, in psa_driver_wrapper_verify_message() argument
270 key_buffer, in psa_driver_wrapper_verify_message()
284 key_buffer, in psa_driver_wrapper_verify_message()
295 key_buffer, in psa_driver_wrapper_verify_message()
309 key_buffer, in psa_driver_wrapper_verify_message()
[all …]
Dpsa_crypto_driver_wrappers_no_static.c159 const uint8_t *key_buffer, size_t key_buffer_size, in psa_driver_wrapper_export_public_key() argument
183 *( (psa_key_slot_number_t *)key_buffer ), in psa_driver_wrapper_export_public_key()
201 key_buffer, in psa_driver_wrapper_export_public_key()
215 key_buffer, in psa_driver_wrapper_export_public_key()
226 key_buffer, in psa_driver_wrapper_export_public_key()
241 key_buffer, in psa_driver_wrapper_export_public_key()
254 key_buffer, in psa_driver_wrapper_export_public_key()
274 uint8_t *key_buffer, size_t key_buffer_size, size_t *key_buffer_length ) in psa_driver_wrapper_get_builtin_key() argument
287 key_buffer, in psa_driver_wrapper_get_builtin_key()
300 key_buffer, key_buffer_size, key_buffer_length ) ); in psa_driver_wrapper_get_builtin_key()
[all …]
Dpsa_crypto_core.h256 uint8_t *key_buffer, size_t key_buffer_size,
283 const uint8_t *key_buffer, size_t key_buffer_size,
311 const uint8_t *key_buffer, size_t key_buffer_size,
335 uint8_t *key_buffer,
378 const uint8_t *key_buffer, size_t key_buffer_size,
415 const uint8_t *key_buffer, size_t key_buffer_size,
454 const uint8_t *key_buffer, size_t key_buffer_size,
489 const uint8_t *key_buffer, size_t key_buffer_size,
561 const uint8_t *key_buffer,
677 const psa_key_attributes_t *attributes, const uint8_t *key_buffer,
[all …]
Dpsa_crypto_rsa.h59 uint8_t *key_buffer, size_t key_buffer_size,
102 const uint8_t *key_buffer, size_t key_buffer_size,
126 uint8_t *key_buffer, size_t key_buffer_size, size_t *key_buffer_length);
163 const uint8_t *key_buffer, size_t key_buffer_size,
199 const uint8_t *key_buffer, size_t key_buffer_size,
248 const uint8_t *key_buffer,
306 const uint8_t *key_buffer,
Dpsa_crypto_rsa.c125 uint8_t *key_buffer, size_t key_buffer_size, in mbedtls_psa_rsa_import_key() argument
148 key_buffer, in mbedtls_psa_rsa_import_key()
210 const uint8_t *key_buffer, size_t key_buffer_size, in mbedtls_psa_rsa_export_public_key() argument
217 attributes->core.type, key_buffer, key_buffer_size, &rsa); in mbedtls_psa_rsa_export_public_key()
267 uint8_t *key_buffer, size_t key_buffer_size, size_t *key_buffer_length) in mbedtls_psa_rsa_generate_key() argument
292 &rsa, key_buffer, key_buffer_size, in mbedtls_psa_rsa_generate_key()
340 const uint8_t *key_buffer, size_t key_buffer_size, in mbedtls_psa_rsa_sign_hash() argument
350 key_buffer, in mbedtls_psa_rsa_sign_hash()
439 const uint8_t *key_buffer, size_t key_buffer_size, in mbedtls_psa_rsa_verify_hash() argument
449 key_buffer, in mbedtls_psa_rsa_verify_hash()
[all …]
Dpsa_crypto_ecp.h77 uint8_t *key_buffer, size_t key_buffer_size,
120 const uint8_t *key_buffer, size_t key_buffer_size,
144 uint8_t *key_buffer, size_t key_buffer_size, size_t *key_buffer_length);
180 const uint8_t *key_buffer, size_t key_buffer_size,
215 const uint8_t *key_buffer, size_t key_buffer_size,
263 const uint8_t *key_buffer, size_t key_buffer_size,
Dpsa_crypto_mac.c159 const uint8_t *key_buffer) in cmac_setup() argument
190 key_buffer, in cmac_setup()
273 const uint8_t *key_buffer, in psa_mac_setup() argument
294 status = cmac_setup(operation, attributes, key_buffer); in psa_mac_setup()
300 key_buffer, in psa_mac_setup()
307 (void) key_buffer; in psa_mac_setup()
322 const uint8_t *key_buffer, in mbedtls_psa_mac_sign_setup() argument
327 key_buffer, key_buffer_size, alg); in mbedtls_psa_mac_sign_setup()
333 const uint8_t *key_buffer, in mbedtls_psa_mac_verify_setup() argument
338 key_buffer, key_buffer_size, alg); in mbedtls_psa_mac_verify_setup()
[all …]
Dpsa_crypto_ffdh.c119 const uint8_t *key_buffer, in mbedtls_psa_ffdh_export_public_key() argument
134 memcpy(data, key_buffer, key_buffer_size); in mbedtls_psa_ffdh_export_public_key()
152 MBEDTLS_MPI_CHK(mbedtls_mpi_read_binary(&X, key_buffer, in mbedtls_psa_ffdh_export_public_key()
177 uint8_t *key_buffer, size_t key_buffer_size, size_t *key_buffer_length) in mbedtls_psa_ffdh_generate_key() argument
197 MBEDTLS_MPI_CHK(mbedtls_mpi_write_binary(&X, key_buffer, key_buffer_size)); in mbedtls_psa_ffdh_generate_key()
214 uint8_t *key_buffer, size_t key_buffer_size, in mbedtls_psa_ffdh_import_key() argument
222 memcpy(key_buffer, data, data_length); in mbedtls_psa_ffdh_import_key()
235 const uint8_t *key_buffer, in mbedtls_psa_ffdh_key_agreement() argument
266 MBEDTLS_MPI_CHK(mbedtls_mpi_read_binary(&X, key_buffer, in mbedtls_psa_ffdh_key_agreement()
Dpsa_crypto_cipher.c155 const uint8_t *key_buffer, size_t key_buffer_size, in psa_cipher_setup() argument
185 memcpy(keys, key_buffer, 16); in psa_cipher_setup()
186 memcpy(keys + 16, key_buffer, 8); in psa_cipher_setup()
193 ret = mbedtls_cipher_setkey(&operation->ctx.cipher, key_buffer, in psa_cipher_setup()
233 const uint8_t *key_buffer, size_t key_buffer_size, in mbedtls_psa_cipher_encrypt_setup() argument
237 key_buffer, key_buffer_size, in mbedtls_psa_cipher_encrypt_setup()
244 const uint8_t *key_buffer, size_t key_buffer_size, in mbedtls_psa_cipher_decrypt_setup() argument
248 key_buffer, key_buffer_size, in mbedtls_psa_cipher_decrypt_setup()
472 const uint8_t *key_buffer, in mbedtls_psa_cipher_encrypt() argument
488 key_buffer, key_buffer_size, in mbedtls_psa_cipher_encrypt()
[all …]
Dpsa_crypto_aead.c29 const uint8_t *key_buffer, in psa_aead_setup() argument
63 key_buffer, (unsigned int) key_bits)); in psa_aead_setup()
83 key_buffer, (unsigned int) key_bits)); in psa_aead_setup()
101 key_buffer)); in psa_aead_setup()
110 (void) key_buffer; in psa_aead_setup()
123 const uint8_t *key_buffer, size_t key_buffer_size, in mbedtls_psa_aead_encrypt() argument
134 status = psa_aead_setup(&operation, attributes, key_buffer, in mbedtls_psa_aead_encrypt()
235 const uint8_t *key_buffer, size_t key_buffer_size, in mbedtls_psa_aead_decrypt() argument
246 status = psa_aead_setup(&operation, attributes, key_buffer, in mbedtls_psa_aead_decrypt()
328 const uint8_t *key_buffer, in mbedtls_psa_aead_encrypt_setup() argument
[all …]
Dpsa_crypto_ecp.c158 uint8_t *key_buffer, size_t key_buffer_size, in mbedtls_psa_ecp_import_key() argument
186 key_buffer, in mbedtls_psa_ecp_import_key()
250 const uint8_t *key_buffer, size_t key_buffer_size, in mbedtls_psa_ecp_export_public_key() argument
258 key_buffer, key_buffer_size, &ecp); in mbedtls_psa_ecp_export_public_key()
280 uint8_t *key_buffer, size_t key_buffer_size, size_t *key_buffer_length) in mbedtls_psa_ecp_generate_key() argument
312 mbedtls_ecp_write_key(&ecp, key_buffer, key_buffer_size)); in mbedtls_psa_ecp_generate_key()
332 const uint8_t *key_buffer, size_t key_buffer_size, in mbedtls_psa_ecdsa_sign_hash() argument
344 key_buffer, in mbedtls_psa_ecdsa_sign_hash()
418 const uint8_t *key_buffer, size_t key_buffer_size, in mbedtls_psa_ecdsa_verify_hash() argument
431 key_buffer, in mbedtls_psa_ecdsa_verify_hash()
[all …]
Dpsa_crypto_ffdh.h45 const uint8_t *key_buffer,
70 const uint8_t *key_buffer,
99 uint8_t *key_buffer,
129 uint8_t *key_buffer, size_t key_buffer_size,
Dpsa_crypto_cipher.h58 const uint8_t *key_buffer, size_t key_buffer_size,
88 const uint8_t *key_buffer, size_t key_buffer_size,
233 const uint8_t *key_buffer,
284 const uint8_t *key_buffer,
Dpsa_crypto_aead.h69 const uint8_t *key_buffer, size_t key_buffer_size,
132 const uint8_t *key_buffer, size_t key_buffer_size,
178 const uint8_t *key_buffer,
221 const uint8_t *key_buffer,
/mbedtls-3.6.0/3rdparty/p256-m/
Dp256-m_driver_entrypoints.c64 uint8_t *key_buffer, in p256_transparent_import_key() argument
100 memcpy(key_buffer, data, data_length); in p256_transparent_import_key()
107 const uint8_t *key_buffer, in p256_transparent_export_public_key() argument
130 int ret = p256_public_from_private(data + 1, key_buffer); in p256_transparent_export_public_key()
140 uint8_t *key_buffer, in p256_transparent_generate_key() argument
160 int ret = p256_gen_keypair(key_buffer, public_key_buffer); in p256_transparent_generate_key()
170 const uint8_t *key_buffer, in p256_transparent_key_agreement() argument
195 int ret = p256_ecdh_shared_secret(shared_secret, key_buffer, peer_key_p256m); in p256_transparent_key_agreement()
205 const uint8_t *key_buffer, in p256_transparent_sign_hash() argument
228 int ret = p256_ecdsa_sign(signature, key_buffer, hash, hash_length); in p256_transparent_sign_hash()
[all …]
Dp256-m_driver_entrypoints.h48 uint8_t *key_buffer,
74 const uint8_t *key_buffer,
102 uint8_t *key_buffer,
133 const uint8_t *key_buffer,
169 const uint8_t *key_buffer,
211 const uint8_t *key_buffer,
/mbedtls-3.6.0/tests/src/drivers/
Dtest_driver_signature.c44 const uint8_t *key_buffer, in sign_hash() argument
61 key_buffer, key_buffer_size, in sign_hash()
68 key_buffer, key_buffer_size, in sign_hash()
82 key_buffer, key_buffer_size, in sign_hash()
89 key_buffer, key_buffer_size, in sign_hash()
99 (void) key_buffer; in sign_hash()
112 const uint8_t *key_buffer, in verify_hash() argument
128 key_buffer, key_buffer_size, in verify_hash()
135 key_buffer, key_buffer_size, in verify_hash()
149 key_buffer, key_buffer_size, in verify_hash()
[all …]
Dtest_driver_mac.c24 const uint8_t *key_buffer, in mbedtls_test_transparent_mac_compute() argument
44 key_buffer, key_buffer_size, alg, in mbedtls_test_transparent_mac_compute()
50 attributes, key_buffer, key_buffer_size, alg, in mbedtls_test_transparent_mac_compute()
55 (void) key_buffer; in mbedtls_test_transparent_mac_compute()
73 const uint8_t *key_buffer, in mbedtls_test_transparent_mac_sign_setup() argument
89 key_buffer, key_buffer_size, alg); in mbedtls_test_transparent_mac_sign_setup()
93 operation, attributes, key_buffer, key_buffer_size, alg); in mbedtls_test_transparent_mac_sign_setup()
97 (void) key_buffer; in mbedtls_test_transparent_mac_sign_setup()
110 const uint8_t *key_buffer, in mbedtls_test_transparent_mac_verify_setup() argument
126 key_buffer, key_buffer_size, alg); in mbedtls_test_transparent_mac_verify_setup()
[all …]
Dtest_driver_key_management.c165 uint8_t *key_buffer, in mbedtls_test_opaque_unwrap_key() argument
186 key_buffer[clear_key_size] = wrapped_key[clear_key_size] ^ 0xFF; in mbedtls_test_opaque_unwrap_key()
265 uint8_t *key_buffer, in mbedtls_test_transparent_import_key() argument
286 key_buffer, key_buffer_size, in mbedtls_test_transparent_import_key()
293 key_buffer, key_buffer_size, in mbedtls_test_transparent_import_key()
303 key_buffer, key_buffer_size, in mbedtls_test_transparent_import_key()
310 key_buffer, key_buffer_size, in mbedtls_test_transparent_import_key()
320 key_buffer, key_buffer_size, in mbedtls_test_transparent_import_key()
327 key_buffer, key_buffer_size, in mbedtls_test_transparent_import_key()
333 (void) key_buffer; in mbedtls_test_transparent_import_key()
[all …]
Dtest_driver_key_agreement.c33 const uint8_t *key_buffer, in mbedtls_test_transparent_key_agreement() argument
65 key_buffer, key_buffer_size, in mbedtls_test_transparent_key_agreement()
72 key_buffer, key_buffer_size, in mbedtls_test_transparent_key_agreement()
78 (void) key_buffer; in mbedtls_test_transparent_key_agreement()
94 key_buffer, key_buffer_size, in mbedtls_test_transparent_key_agreement()
102 key_buffer, in mbedtls_test_transparent_key_agreement()
109 (void) key_buffer; in mbedtls_test_transparent_key_agreement()
126 const uint8_t *key_buffer, in mbedtls_test_opaque_key_agreement() argument
136 (void) key_buffer; in mbedtls_test_opaque_key_agreement()
Dtest_driver_aead.c27 const uint8_t *key_buffer, size_t key_buffer_size, in mbedtls_test_transparent_aead_encrypt() argument
45 key_buffer, key_buffer_size, in mbedtls_test_transparent_aead_encrypt()
54 attributes, key_buffer, key_buffer_size, in mbedtls_test_transparent_aead_encrypt()
62 (void) key_buffer; in mbedtls_test_transparent_aead_encrypt()
83 const uint8_t *key_buffer, size_t key_buffer_size, in mbedtls_test_transparent_aead_decrypt() argument
101 key_buffer, key_buffer_size, in mbedtls_test_transparent_aead_decrypt()
110 attributes, key_buffer, key_buffer_size, in mbedtls_test_transparent_aead_decrypt()
118 (void) key_buffer; in mbedtls_test_transparent_aead_decrypt()
140 const uint8_t *key_buffer, size_t key_buffer_size, in mbedtls_test_transparent_aead_encrypt_setup() argument
155 key_buffer, in mbedtls_test_transparent_aead_encrypt_setup()
[all …]
Dtest_driver_asymmetric_encryption.c25 const psa_key_attributes_t *attributes, const uint8_t *key_buffer, in mbedtls_test_transparent_asymmetric_encrypt() argument
53 key_buffer, key_buffer_size, in mbedtls_test_transparent_asymmetric_encrypt()
58 attributes, key_buffer, key_buffer_size, in mbedtls_test_transparent_asymmetric_encrypt()
67 const psa_key_attributes_t *attributes, const uint8_t *key_buffer, in mbedtls_test_transparent_asymmetric_decrypt() argument
95 key_buffer, key_buffer_size, in mbedtls_test_transparent_asymmetric_decrypt()
100 attributes, key_buffer, key_buffer_size, in mbedtls_test_transparent_asymmetric_decrypt()
/mbedtls-3.6.0/scripts/data_files/driver_templates/
Dpsa_crypto_driver_wrappers.h.jinja114 const uint8_t *key_buffer,
136 key_buffer,
157 key_buffer,
177 key_buffer,
189 const uint8_t *key_buffer,
210 key_buffer,
230 key_buffer,
249 key_buffer,
260 const uint8_t *key_buffer, size_t key_buffer_size,
278 drv_context, *( (psa_key_slot_number_t *)key_buffer ),
[all …]
/mbedtls-3.6.0/tests/include/test/drivers/
Dmac.h38 const uint8_t *key_buffer,
50 const uint8_t *key_buffer,
57 const uint8_t *key_buffer,
82 const uint8_t *key_buffer,
94 const uint8_t *key_buffer,
101 const uint8_t *key_buffer,
Daead.h49 const uint8_t *key_buffer, size_t key_buffer_size,
58 const uint8_t *key_buffer, size_t key_buffer_size,
68 const uint8_t *key_buffer, size_t key_buffer_size,
74 const uint8_t *key_buffer, size_t key_buffer_size,

12