nRF Connect SDK API 0.1.0
Loading...
Searching...
No Matches
crypto_service.h
Go to the documentation of this file.
1/*
2 * Copyright (c) 2024 Nordic Semiconductor ASA
3 *
4 * SPDX-License-Identifier: LicenseRef-Nordic-5-Clause
5 */
6#ifndef CRYPTO_SERVICE_H__
7#define CRYPTO_SERVICE_H__
8
9#include <psa/crypto.h>
10
15psa_status_t ssf_psa_crypto_init(void);
16
21psa_status_t ssf_psa_get_key_attributes(mbedtls_svc_key_id_t key, psa_key_attributes_t *attributes);
22
27psa_status_t ssf_psa_reset_key_attributes(psa_key_attributes_t *attributes);
28
33psa_status_t ssf_psa_purge_key(mbedtls_svc_key_id_t key);
34
39psa_status_t ssf_psa_copy_key(mbedtls_svc_key_id_t source_key,
40 const psa_key_attributes_t *attributes,
41 mbedtls_svc_key_id_t *target_key);
42
47psa_status_t ssf_psa_destroy_key(mbedtls_svc_key_id_t key);
48
53psa_status_t ssf_psa_import_key(const psa_key_attributes_t *attributes, const uint8_t *data,
54 size_t data_length, mbedtls_svc_key_id_t *key);
55
60psa_status_t ssf_psa_export_key(mbedtls_svc_key_id_t key, uint8_t *data, size_t data_size,
61 size_t *data_length);
62
67psa_status_t ssf_psa_export_public_key(mbedtls_svc_key_id_t key, uint8_t *data, size_t data_size,
68 size_t *data_length);
69
74psa_status_t ssf_psa_hash_compute(psa_algorithm_t alg, const uint8_t *input, size_t input_length,
75 uint8_t *hash, size_t hash_size, size_t *hash_length);
76
81psa_status_t ssf_psa_hash_compare(psa_algorithm_t alg, const uint8_t *input, size_t input_length,
82 const uint8_t *hash, size_t hash_length);
83
88psa_status_t ssf_psa_hash_setup(mbedtls_psa_client_handle_t *p_handle, psa_algorithm_t alg);
89
94psa_status_t ssf_psa_hash_update(mbedtls_psa_client_handle_t *p_handle, const uint8_t *input,
95 size_t input_length);
96
101psa_status_t ssf_psa_hash_finish(mbedtls_psa_client_handle_t *p_handle, uint8_t *hash,
102 size_t hash_size, size_t *hash_length);
103
108psa_status_t ssf_psa_hash_verify(mbedtls_psa_client_handle_t *p_handle, const uint8_t *hash,
109 size_t hash_length);
110
115psa_status_t ssf_psa_hash_abort(mbedtls_psa_client_handle_t *p_handle);
116
121psa_status_t ssf_psa_hash_clone(mbedtls_psa_client_handle_t handle,
122 mbedtls_psa_client_handle_t *p_handle);
123
128psa_status_t ssf_psa_mac_compute(mbedtls_svc_key_id_t key, psa_algorithm_t alg,
129 const uint8_t *input, size_t input_length, uint8_t *mac,
130 size_t mac_size, size_t *mac_length);
131
136psa_status_t ssf_psa_mac_verify(mbedtls_svc_key_id_t key, psa_algorithm_t alg, const uint8_t *input,
137 size_t input_length, const uint8_t *mac, size_t mac_length);
138
143psa_status_t ssf_psa_mac_sign_setup(mbedtls_psa_client_handle_t *p_handle, mbedtls_svc_key_id_t key,
144 psa_algorithm_t alg);
145
150psa_status_t ssf_psa_mac_verify_setup(mbedtls_psa_client_handle_t *p_handle,
151 mbedtls_svc_key_id_t key, psa_algorithm_t alg);
152
157psa_status_t ssf_psa_mac_update(mbedtls_psa_client_handle_t *p_handle, const uint8_t *input,
158 size_t input_length);
159
164psa_status_t ssf_psa_mac_sign_finish(mbedtls_psa_client_handle_t *p_handle, uint8_t *mac,
165 size_t mac_size, size_t *mac_length);
166
171psa_status_t ssf_psa_mac_verify_finish(mbedtls_psa_client_handle_t *p_handle, const uint8_t *mac,
172 size_t mac_length);
173
178psa_status_t ssf_psa_mac_abort(mbedtls_psa_client_handle_t *p_handle);
179
184psa_status_t ssf_psa_cipher_encrypt(mbedtls_svc_key_id_t key, psa_algorithm_t alg,
185 const uint8_t *input, size_t input_length, uint8_t *output,
186 size_t output_size, size_t *output_length);
187
192psa_status_t ssf_psa_cipher_decrypt(mbedtls_svc_key_id_t key, psa_algorithm_t alg,
193 const uint8_t *input, size_t input_length, uint8_t *output,
194 size_t output_size, size_t *output_length);
195
200psa_status_t ssf_psa_cipher_encrypt_setup(mbedtls_psa_client_handle_t *p_handle,
201 mbedtls_svc_key_id_t key, psa_algorithm_t alg);
202
207psa_status_t ssf_psa_cipher_decrypt_setup(mbedtls_psa_client_handle_t *p_handle,
208 mbedtls_svc_key_id_t key, psa_algorithm_t alg);
209
214psa_status_t ssf_psa_cipher_generate_iv(mbedtls_psa_client_handle_t *p_handle, uint8_t *iv,
215 size_t iv_size, size_t *iv_length);
216
221psa_status_t ssf_psa_cipher_set_iv(mbedtls_psa_client_handle_t *p_handle, const uint8_t *iv,
222 size_t iv_length);
223
228psa_status_t ssf_psa_cipher_update(mbedtls_psa_client_handle_t *p_handle, const uint8_t *input,
229 size_t input_length, uint8_t *output, size_t output_size,
230 size_t *output_length);
231
236psa_status_t ssf_psa_cipher_finish(mbedtls_psa_client_handle_t *p_handle, uint8_t *output,
237 size_t output_size, size_t *output_length);
238
243psa_status_t ssf_psa_cipher_abort(mbedtls_psa_client_handle_t *p_handle);
244
249psa_status_t ssf_psa_aead_encrypt(mbedtls_svc_key_id_t key, psa_algorithm_t alg,
250 const uint8_t *nonce, size_t nonce_length,
251 const uint8_t *additional_data, size_t additional_data_length,
252 const uint8_t *plaintext, size_t plaintext_length,
253 uint8_t *ciphertext, size_t ciphertext_size,
254 size_t *ciphertext_length);
255
260psa_status_t ssf_psa_aead_decrypt(mbedtls_svc_key_id_t key, psa_algorithm_t alg,
261 const uint8_t *nonce, size_t nonce_length,
262 const uint8_t *additional_data, size_t additional_data_length,
263 const uint8_t *ciphertext, size_t ciphertext_length,
264 uint8_t *plaintext, size_t plaintext_size,
265 size_t *plaintext_length);
266
271psa_status_t ssf_psa_aead_encrypt_setup(mbedtls_psa_client_handle_t *p_handle,
272 mbedtls_svc_key_id_t key, psa_algorithm_t alg);
273
278psa_status_t ssf_psa_aead_decrypt_setup(mbedtls_psa_client_handle_t *p_handle,
279 mbedtls_svc_key_id_t key, psa_algorithm_t alg);
280
285psa_status_t ssf_psa_aead_generate_nonce(mbedtls_psa_client_handle_t *p_handle, uint8_t *nonce,
286 size_t nonce_size, size_t *nonce_length);
287
292psa_status_t ssf_psa_aead_set_nonce(mbedtls_psa_client_handle_t *p_handle, const uint8_t *nonce,
293 size_t nonce_length);
294
299psa_status_t ssf_psa_aead_set_lengths(mbedtls_psa_client_handle_t *p_handle, size_t ad_length,
300 size_t plaintext_length);
301
306psa_status_t ssf_psa_aead_update_ad(mbedtls_psa_client_handle_t *p_handle, const uint8_t *input,
307 size_t input_length);
308
313psa_status_t ssf_psa_aead_update(mbedtls_psa_client_handle_t *p_handle, const uint8_t *input,
314 size_t input_length, uint8_t *output, size_t output_size,
315 size_t *output_length);
316
321psa_status_t ssf_psa_aead_finish(mbedtls_psa_client_handle_t *p_handle, uint8_t *ciphertext,
322 size_t ciphertext_size, size_t *ciphertext_length, uint8_t *tag,
323 size_t tag_size, size_t *tag_length);
324
329psa_status_t ssf_psa_aead_verify(mbedtls_psa_client_handle_t *p_handle, uint8_t *plaintext,
330 size_t plaintext_size, size_t *plaintext_length,
331 const uint8_t *tag, size_t tag_length);
332
337psa_status_t ssf_psa_aead_abort(mbedtls_psa_client_handle_t *p_handle);
338
343psa_status_t ssf_psa_sign_message(mbedtls_svc_key_id_t key, psa_algorithm_t alg,
344 const uint8_t *input, size_t input_length, uint8_t *signature,
345 size_t signature_size, size_t *signature_length);
346
351psa_status_t ssf_psa_verify_message(mbedtls_svc_key_id_t key, psa_algorithm_t alg,
352 const uint8_t *input, size_t input_length,
353 const uint8_t *signature, size_t signature_length);
354
359psa_status_t ssf_psa_sign_hash(mbedtls_svc_key_id_t key, psa_algorithm_t alg, const uint8_t *hash,
360 size_t hash_length, uint8_t *signature, size_t signature_size,
361 size_t *signature_length);
362
367psa_status_t ssf_psa_verify_hash(mbedtls_svc_key_id_t key, psa_algorithm_t alg, const uint8_t *hash,
368 size_t hash_length, const uint8_t *signature,
369 size_t signature_length);
370
375psa_status_t ssf_psa_asymmetric_encrypt(mbedtls_svc_key_id_t key, psa_algorithm_t alg,
376 const uint8_t *input, size_t input_length,
377 const uint8_t *salt, size_t salt_length, uint8_t *output,
378 size_t output_size, size_t *output_length);
379
384psa_status_t ssf_psa_asymmetric_decrypt(mbedtls_svc_key_id_t key, psa_algorithm_t alg,
385 const uint8_t *input, size_t input_length,
386 const uint8_t *salt, size_t salt_length, uint8_t *output,
387 size_t output_size, size_t *output_length);
388
393psa_status_t ssf_psa_key_derivation_setup(mbedtls_psa_client_handle_t *p_handle,
394 psa_algorithm_t alg);
395
400psa_status_t ssf_psa_key_derivation_get_capacity(mbedtls_psa_client_handle_t handle,
401 size_t *capacity);
402
407psa_status_t ssf_psa_key_derivation_set_capacity(mbedtls_psa_client_handle_t *p_handle,
408 size_t capacity);
409
414psa_status_t ssf_psa_key_derivation_input_bytes(mbedtls_psa_client_handle_t *p_handle,
415 psa_key_derivation_step_t step, const uint8_t *data,
416 size_t data_length);
417
422psa_status_t ssf_psa_key_derivation_input_integer(mbedtls_psa_client_handle_t *p_handle,
423 psa_key_derivation_step_t step, uint64_t value);
424
429psa_status_t ssf_psa_key_derivation_input_key(mbedtls_psa_client_handle_t *p_handle,
430 psa_key_derivation_step_t step,
431 mbedtls_svc_key_id_t key);
432
437psa_status_t ssf_psa_key_derivation_key_agreement(mbedtls_psa_client_handle_t *p_handle,
438 psa_key_derivation_step_t step,
439 mbedtls_svc_key_id_t private_key,
440 const uint8_t *peer_key, size_t peer_key_length);
441
446psa_status_t ssf_psa_key_derivation_output_bytes(mbedtls_psa_client_handle_t *p_handle,
447 uint8_t *output, size_t output_length);
448
453psa_status_t ssf_psa_key_derivation_output_key(const psa_key_attributes_t *attributes,
454 mbedtls_psa_client_handle_t *p_handle,
455 mbedtls_svc_key_id_t *key);
456
461psa_status_t ssf_psa_key_derivation_abort(mbedtls_psa_client_handle_t *p_handle);
462
467psa_status_t ssf_psa_raw_key_agreement(psa_algorithm_t alg, mbedtls_svc_key_id_t private_key,
468 const uint8_t *peer_key, size_t peer_key_length,
469 uint8_t *output, size_t output_size, size_t *output_length);
470
475psa_status_t ssf_psa_generate_random(uint8_t *output, size_t output_size);
476
481psa_status_t ssf_psa_generate_key(const psa_key_attributes_t *attributes,
482 mbedtls_svc_key_id_t *key);
483
488psa_status_t ssf_psa_pake_setup(mbedtls_psa_client_handle_t *p_handle,
489 mbedtls_svc_key_id_t password_key,
490 const psa_pake_cipher_suite_t *cipher_suite);
491
496psa_status_t ssf_psa_pake_set_role(mbedtls_psa_client_handle_t *p_handle, psa_pake_role_t role);
497
502psa_status_t ssf_psa_pake_set_user(mbedtls_psa_client_handle_t *p_handle, const uint8_t *user_id,
503 size_t user_id_len);
504
509psa_status_t ssf_psa_pake_set_peer(mbedtls_psa_client_handle_t *p_handle, const uint8_t *peer_id,
510 size_t peer_id_len);
511
516psa_status_t ssf_psa_pake_set_context(mbedtls_psa_client_handle_t *p_handle, const uint8_t *context,
517 size_t context_len);
518
523psa_status_t ssf_psa_pake_output(mbedtls_psa_client_handle_t *p_handle, psa_pake_step_t step,
524 uint8_t *output, size_t output_size, size_t *output_length);
525
530psa_status_t ssf_psa_pake_input(mbedtls_psa_client_handle_t *p_handle, psa_pake_step_t step,
531 const uint8_t *input, size_t input_length);
532
537psa_status_t ssf_psa_pake_get_shared_key(mbedtls_psa_client_handle_t *p_handle,
538 const psa_key_attributes_t *attributes,
539 mbedtls_svc_key_id_t *key);
540
545psa_status_t ssf_psa_pake_abort(mbedtls_psa_client_handle_t *p_handle);
546
547#endif /* CRYPTO_SERVICE_H__ */
psa_status_t ssf_psa_destroy_key(mbedtls_svc_key_id_t key)
Execute psa_destroy_key over SSF.
psa_status_t ssf_psa_mac_sign_finish(mbedtls_psa_client_handle_t *p_handle, uint8_t *mac, size_t mac_size, size_t *mac_length)
Execute psa_mac_sign_finish over SSF.
psa_status_t ssf_psa_pake_set_user(mbedtls_psa_client_handle_t *p_handle, const uint8_t *user_id, size_t user_id_len)
Execute psa_pake_set_user over SSF.
psa_status_t ssf_psa_aead_finish(mbedtls_psa_client_handle_t *p_handle, uint8_t *ciphertext, size_t ciphertext_size, size_t *ciphertext_length, uint8_t *tag, size_t tag_size, size_t *tag_length)
Execute psa_aead_finish over SSF.
psa_status_t ssf_psa_cipher_encrypt_setup(mbedtls_psa_client_handle_t *p_handle, mbedtls_svc_key_id_t key, psa_algorithm_t alg)
Execute psa_cipher_encrypt_setup over SSF.
psa_status_t ssf_psa_pake_setup(mbedtls_psa_client_handle_t *p_handle, mbedtls_svc_key_id_t password_key, const psa_pake_cipher_suite_t *cipher_suite)
Execute psa_pake_setup over SSF.
psa_status_t ssf_psa_aead_decrypt(mbedtls_svc_key_id_t key, psa_algorithm_t alg, const uint8_t *nonce, size_t nonce_length, const uint8_t *additional_data, size_t additional_data_length, const uint8_t *ciphertext, size_t ciphertext_length, uint8_t *plaintext, size_t plaintext_size, size_t *plaintext_length)
Execute psa_aead_decrypt over SSF.
psa_status_t ssf_psa_cipher_decrypt_setup(mbedtls_psa_client_handle_t *p_handle, mbedtls_svc_key_id_t key, psa_algorithm_t alg)
Execute psa_cipher_decrypt_setup over SSF.
psa_status_t ssf_psa_asymmetric_decrypt(mbedtls_svc_key_id_t key, psa_algorithm_t alg, const uint8_t *input, size_t input_length, const uint8_t *salt, size_t salt_length, uint8_t *output, size_t output_size, size_t *output_length)
Execute psa_asymmetric_decrypt over SSF.
psa_status_t ssf_psa_asymmetric_encrypt(mbedtls_svc_key_id_t key, psa_algorithm_t alg, const uint8_t *input, size_t input_length, const uint8_t *salt, size_t salt_length, uint8_t *output, size_t output_size, size_t *output_length)
Execute psa_asymmetric_encrypt over SSF.
psa_status_t ssf_psa_aead_verify(mbedtls_psa_client_handle_t *p_handle, uint8_t *plaintext, size_t plaintext_size, size_t *plaintext_length, const uint8_t *tag, size_t tag_length)
Execute psa_aead_verify over SSF.
psa_status_t ssf_psa_key_derivation_set_capacity(mbedtls_psa_client_handle_t *p_handle, size_t capacity)
Execute psa_key_derivation_set_capacity over SSF.
psa_status_t ssf_psa_hash_update(mbedtls_psa_client_handle_t *p_handle, const uint8_t *input, size_t input_length)
Execute psa_hash_update over SSF.
psa_status_t ssf_psa_verify_message(mbedtls_svc_key_id_t key, psa_algorithm_t alg, const uint8_t *input, size_t input_length, const uint8_t *signature, size_t signature_length)
Execute psa_verify_message over SSF.
psa_status_t ssf_psa_hash_verify(mbedtls_psa_client_handle_t *p_handle, const uint8_t *hash, size_t hash_length)
Execute psa_hash_verify over SSF.
psa_status_t ssf_psa_key_derivation_output_bytes(mbedtls_psa_client_handle_t *p_handle, uint8_t *output, size_t output_length)
Execute psa_key_derivation_output_bytes over SSF.
psa_status_t ssf_psa_mac_verify_setup(mbedtls_psa_client_handle_t *p_handle, mbedtls_svc_key_id_t key, psa_algorithm_t alg)
Execute psa_mac_verify_setup over SSF.
psa_status_t ssf_psa_aead_encrypt_setup(mbedtls_psa_client_handle_t *p_handle, mbedtls_svc_key_id_t key, psa_algorithm_t alg)
Execute psa_aead_encrypt_setup over SSF.
psa_status_t ssf_psa_mac_update(mbedtls_psa_client_handle_t *p_handle, const uint8_t *input, size_t input_length)
Execute psa_mac_update over SSF.
psa_status_t ssf_psa_key_derivation_get_capacity(mbedtls_psa_client_handle_t handle, size_t *capacity)
Execute psa_key_derivation_get_capacity over SSF.
psa_status_t ssf_psa_sign_message(mbedtls_svc_key_id_t key, psa_algorithm_t alg, const uint8_t *input, size_t input_length, uint8_t *signature, size_t signature_size, size_t *signature_length)
Execute psa_sign_message over SSF.
psa_status_t ssf_psa_aead_encrypt(mbedtls_svc_key_id_t key, psa_algorithm_t alg, const uint8_t *nonce, size_t nonce_length, const uint8_t *additional_data, size_t additional_data_length, const uint8_t *plaintext, size_t plaintext_length, uint8_t *ciphertext, size_t ciphertext_size, size_t *ciphertext_length)
Execute psa_aead_encrypt over SSF.
psa_status_t ssf_psa_key_derivation_key_agreement(mbedtls_psa_client_handle_t *p_handle, psa_key_derivation_step_t step, mbedtls_svc_key_id_t private_key, const uint8_t *peer_key, size_t peer_key_length)
Execute psa_key_derivation_key_agreement over SSF.
psa_status_t ssf_psa_mac_compute(mbedtls_svc_key_id_t key, psa_algorithm_t alg, const uint8_t *input, size_t input_length, uint8_t *mac, size_t mac_size, size_t *mac_length)
Execute psa_mac_compute over SSF.
psa_status_t ssf_psa_aead_set_nonce(mbedtls_psa_client_handle_t *p_handle, const uint8_t *nonce, size_t nonce_length)
Execute psa_aead_set_nonce over SSF.
psa_status_t ssf_psa_key_derivation_input_integer(mbedtls_psa_client_handle_t *p_handle, psa_key_derivation_step_t step, uint64_t value)
Execute psa_key_derivation_input_integer over SSF.
psa_status_t ssf_psa_key_derivation_output_key(const psa_key_attributes_t *attributes, mbedtls_psa_client_handle_t *p_handle, mbedtls_svc_key_id_t *key)
Execute psa_key_derivation_output_key over SSF.
psa_status_t ssf_psa_reset_key_attributes(psa_key_attributes_t *attributes)
Execute psa_reset_key_attributes over SSF.
psa_status_t ssf_psa_hash_abort(mbedtls_psa_client_handle_t *p_handle)
Execute psa_hash_abort over SSF.
psa_status_t ssf_psa_mac_abort(mbedtls_psa_client_handle_t *p_handle)
Execute psa_mac_abort over SSF.
psa_status_t ssf_psa_pake_set_role(mbedtls_psa_client_handle_t *p_handle, psa_pake_role_t role)
Execute psa_pake_set_role over SSF.
psa_status_t ssf_psa_cipher_abort(mbedtls_psa_client_handle_t *p_handle)
Execute psa_cipher_abort over SSF.
psa_status_t ssf_psa_hash_compare(psa_algorithm_t alg, const uint8_t *input, size_t input_length, const uint8_t *hash, size_t hash_length)
Execute psa_hash_compare over SSF.
psa_status_t ssf_psa_aead_abort(mbedtls_psa_client_handle_t *p_handle)
Execute psa_aead_abort over SSF.
psa_status_t ssf_psa_cipher_set_iv(mbedtls_psa_client_handle_t *p_handle, const uint8_t *iv, size_t iv_length)
Execute psa_cipher_set_iv over SSF.
psa_status_t ssf_psa_generate_key(const psa_key_attributes_t *attributes, mbedtls_svc_key_id_t *key)
Execute psa_generate_key over SSF.
psa_status_t ssf_psa_purge_key(mbedtls_svc_key_id_t key)
Execute psa_purge_key over SSF.
psa_status_t ssf_psa_export_public_key(mbedtls_svc_key_id_t key, uint8_t *data, size_t data_size, size_t *data_length)
Execute psa_export_public_key over SSF.
psa_status_t ssf_psa_pake_set_context(mbedtls_psa_client_handle_t *p_handle, const uint8_t *context, size_t context_len)
Execute psa_pake_set_context over SSF.
psa_status_t ssf_psa_raw_key_agreement(psa_algorithm_t alg, mbedtls_svc_key_id_t private_key, const uint8_t *peer_key, size_t peer_key_length, uint8_t *output, size_t output_size, size_t *output_length)
Execute psa_raw_key_agreement over SSF.
psa_status_t ssf_psa_mac_verify_finish(mbedtls_psa_client_handle_t *p_handle, const uint8_t *mac, size_t mac_length)
Execute psa_mac_verify_finish over SSF.
psa_status_t ssf_psa_hash_clone(mbedtls_psa_client_handle_t handle, mbedtls_psa_client_handle_t *p_handle)
Execute psa_hash_clone over SSF.
psa_status_t ssf_psa_aead_update_ad(mbedtls_psa_client_handle_t *p_handle, const uint8_t *input, size_t input_length)
Execute psa_aead_update_ad over SSF.
psa_status_t ssf_psa_export_key(mbedtls_svc_key_id_t key, uint8_t *data, size_t data_size, size_t *data_length)
Execute psa_export_key over SSF.
psa_status_t ssf_psa_mac_verify(mbedtls_svc_key_id_t key, psa_algorithm_t alg, const uint8_t *input, size_t input_length, const uint8_t *mac, size_t mac_length)
Execute psa_mac_verify over SSF.
psa_status_t ssf_psa_verify_hash(mbedtls_svc_key_id_t key, psa_algorithm_t alg, const uint8_t *hash, size_t hash_length, const uint8_t *signature, size_t signature_length)
Execute psa_verify_hash over SSF.
psa_status_t ssf_psa_key_derivation_abort(mbedtls_psa_client_handle_t *p_handle)
Execute psa_key_derivation_abort over SSF.
psa_status_t ssf_psa_key_derivation_input_key(mbedtls_psa_client_handle_t *p_handle, psa_key_derivation_step_t step, mbedtls_svc_key_id_t key)
Execute psa_key_derivation_input_key over SSF.
psa_status_t ssf_psa_generate_random(uint8_t *output, size_t output_size)
Execute psa_generate_random over SSF.
psa_status_t ssf_psa_mac_sign_setup(mbedtls_psa_client_handle_t *p_handle, mbedtls_svc_key_id_t key, psa_algorithm_t alg)
Execute psa_mac_sign_setup over SSF.
psa_status_t ssf_psa_pake_output(mbedtls_psa_client_handle_t *p_handle, psa_pake_step_t step, uint8_t *output, size_t output_size, size_t *output_length)
Execute psa_pake_output over SSF.
psa_status_t ssf_psa_sign_hash(mbedtls_svc_key_id_t key, psa_algorithm_t alg, const uint8_t *hash, size_t hash_length, uint8_t *signature, size_t signature_size, size_t *signature_length)
Execute psa_sign_hash over SSF.
psa_status_t ssf_psa_aead_set_lengths(mbedtls_psa_client_handle_t *p_handle, size_t ad_length, size_t plaintext_length)
Execute psa_aead_set_lengths over SSF.
psa_status_t ssf_psa_copy_key(mbedtls_svc_key_id_t source_key, const psa_key_attributes_t *attributes, mbedtls_svc_key_id_t *target_key)
Execute psa_copy_key over SSF.
psa_status_t ssf_psa_get_key_attributes(mbedtls_svc_key_id_t key, psa_key_attributes_t *attributes)
Execute psa_get_key_attributes over SSF.
psa_status_t ssf_psa_aead_update(mbedtls_psa_client_handle_t *p_handle, const uint8_t *input, size_t input_length, uint8_t *output, size_t output_size, size_t *output_length)
Execute psa_aead_update over SSF.
psa_status_t ssf_psa_cipher_decrypt(mbedtls_svc_key_id_t key, psa_algorithm_t alg, const uint8_t *input, size_t input_length, uint8_t *output, size_t output_size, size_t *output_length)
Execute psa_cipher_decrypt over SSF.
psa_status_t ssf_psa_cipher_encrypt(mbedtls_svc_key_id_t key, psa_algorithm_t alg, const uint8_t *input, size_t input_length, uint8_t *output, size_t output_size, size_t *output_length)
Execute psa_cipher_encrypt over SSF.
psa_status_t ssf_psa_pake_abort(mbedtls_psa_client_handle_t *p_handle)
Execute psa_pake_abort over SSF.
psa_status_t ssf_psa_pake_input(mbedtls_psa_client_handle_t *p_handle, psa_pake_step_t step, const uint8_t *input, size_t input_length)
Execute psa_pake_input over SSF.
psa_status_t ssf_psa_cipher_update(mbedtls_psa_client_handle_t *p_handle, const uint8_t *input, size_t input_length, uint8_t *output, size_t output_size, size_t *output_length)
Execute psa_cipher_update over SSF.
psa_status_t ssf_psa_aead_decrypt_setup(mbedtls_psa_client_handle_t *p_handle, mbedtls_svc_key_id_t key, psa_algorithm_t alg)
Execute psa_aead_decrypt_setup over SSF.
psa_status_t ssf_psa_hash_finish(mbedtls_psa_client_handle_t *p_handle, uint8_t *hash, size_t hash_size, size_t *hash_length)
Execute psa_hash_finish over SSF.
psa_status_t ssf_psa_key_derivation_setup(mbedtls_psa_client_handle_t *p_handle, psa_algorithm_t alg)
Execute psa_key_derivation_setup over SSF.
psa_status_t ssf_psa_hash_setup(mbedtls_psa_client_handle_t *p_handle, psa_algorithm_t alg)
Execute psa_hash_setup over SSF.
psa_status_t ssf_psa_pake_get_shared_key(mbedtls_psa_client_handle_t *p_handle, const psa_key_attributes_t *attributes, mbedtls_svc_key_id_t *key)
Execute psa_pake_get_shared_key over SSF.
psa_status_t ssf_psa_cipher_generate_iv(mbedtls_psa_client_handle_t *p_handle, uint8_t *iv, size_t iv_size, size_t *iv_length)
Execute psa_cipher_generate_iv over SSF.
psa_status_t ssf_psa_cipher_finish(mbedtls_psa_client_handle_t *p_handle, uint8_t *output, size_t output_size, size_t *output_length)
Execute psa_cipher_finish over SSF.
psa_status_t ssf_psa_crypto_init(void)
Execute psa_crypto_init over SSF.
psa_status_t ssf_psa_hash_compute(psa_algorithm_t alg, const uint8_t *input, size_t input_length, uint8_t *hash, size_t hash_size, size_t *hash_length)
Execute psa_hash_compute over SSF.
psa_status_t ssf_psa_import_key(const psa_key_attributes_t *attributes, const uint8_t *data, size_t data_length, mbedtls_svc_key_id_t *key)
Execute psa_import_key over SSF.
psa_status_t ssf_psa_aead_generate_nonce(mbedtls_psa_client_handle_t *p_handle, uint8_t *nonce, size_t nonce_size, size_t *nonce_length)
Execute psa_aead_generate_nonce over SSF.
psa_status_t ssf_psa_key_derivation_input_bytes(mbedtls_psa_client_handle_t *p_handle, psa_key_derivation_step_t step, const uint8_t *data, size_t data_length)
Execute psa_key_derivation_input_bytes over SSF.
psa_status_t ssf_psa_pake_set_peer(mbedtls_psa_client_handle_t *p_handle, const uint8_t *peer_id, size_t peer_id_len)
Execute psa_pake_set_peer over SSF.
peer_id
Definition: peer_conn_event.h:32