nRF Connect SDK API 3.3.99
Loading...
Searching...
No Matches
cracen_psa_spake2p.h File Reference
#include <psa/crypto.h>
#include <stddef.h>
#include <stdint.h>
#include <string.h>
#include "cracen_psa_primitives.h"

Go to the source code of this file.

Functions

psa_status_t cracen_spake2p_setup (cracen_spake2p_operation_t *operation, const uint8_t *password, size_t password_length, const psa_pake_cipher_suite_t *cipher_suite)
 Set up a SPAKE2+ operation.
 
psa_status_t cracen_spake2p_set_password_key (cracen_spake2p_operation_t *operation, const psa_key_attributes_t *attributes, const uint8_t *password, size_t password_length)
 Set the password key for a SPAKE2+ operation.
 
psa_status_t cracen_spake2p_set_user (cracen_spake2p_operation_t *operation, const uint8_t *user_id, size_t user_id_len)
 Set the user identifier for a SPAKE2+ operation.
 
psa_status_t cracen_spake2p_set_peer (cracen_spake2p_operation_t *operation, const uint8_t *peer_id, size_t peer_id_len)
 Set the peer identifier for a SPAKE2+ operation.
 
psa_status_t cracen_spake2p_set_context (cracen_spake2p_operation_t *operation, const uint8_t *context, size_t context_length)
 Set the context for a SPAKE2+ operation.
 
psa_status_t cracen_spake2p_set_role (cracen_spake2p_operation_t *operation, psa_pake_role_t role)
 Set the role for a SPAKE2+ operation.
 
psa_status_t cracen_spake2p_output (cracen_spake2p_operation_t *operation, psa_pake_step_t step, uint8_t *output, size_t output_size, size_t *output_length)
 Get output from a SPAKE2+ operation step.
 
psa_status_t cracen_spake2p_input (cracen_spake2p_operation_t *operation, psa_pake_step_t step, const uint8_t *input, size_t input_length)
 Provide input to a SPAKE2+ operation step.
 
psa_status_t cracen_spake2p_get_shared_key (cracen_spake2p_operation_t *operation, uint8_t *output, size_t output_size, size_t *output_length)
 Get the shared key from a completed SPAKE2+ operation.
 
psa_status_t cracen_spake2p_abort (cracen_spake2p_operation_t *operation)
 Abort a SPAKE2+ operation.