13#ifndef CRACEN_PSA_JPAKE_H
14#define CRACEN_PSA_JPAKE_H
16#include <psa/crypto.h>
34 const psa_key_attributes_t *attributes,
const uint8_t *password,
35 size_t password_length,
36 const psa_pake_cipher_suite_t *cipher_suite);
48 const psa_key_attributes_t *attributes,
49 const uint8_t *password,
size_t password_length);
95 uint8_t *output,
size_t output_size,
size_t *output_length);
108 const uint8_t *input,
size_t input_length);
123 const psa_key_attributes_t *attributes, uint8_t *output,
124 size_t output_size,
size_t *output_length);
int32_t psa_status_t
Definition error.h:26
psa_status_t cracen_jpake_setup(cracen_jpake_operation_t *operation, const psa_key_attributes_t *attributes, const uint8_t *password, size_t password_length, const psa_pake_cipher_suite_t *cipher_suite)
Set up a JPAKE operation.
psa_status_t cracen_jpake_input(cracen_jpake_operation_t *operation, psa_pake_step_t step, const uint8_t *input, size_t input_length)
Provide input to a JPAKE operation step.
psa_status_t cracen_jpake_set_peer(cracen_jpake_operation_t *operation, const uint8_t *peer_id, size_t peer_id_len)
Set the peer identifier for a JPAKE operation.
psa_status_t cracen_jpake_set_role(cracen_jpake_operation_t *operation, psa_pake_role_t role)
Set the role for a JPAKE operation.
psa_status_t cracen_jpake_set_password_key(cracen_jpake_operation_t *operation, const psa_key_attributes_t *attributes, const uint8_t *password, size_t password_length)
Set the password key for a JPAKE operation.
psa_status_t cracen_jpake_set_user(cracen_jpake_operation_t *operation, const uint8_t *user_id, size_t user_id_len)
Set the user identifier for a JPAKE operation.
psa_status_t cracen_jpake_output(cracen_jpake_operation_t *operation, psa_pake_step_t step, uint8_t *output, size_t output_size, size_t *output_length)
Get output from a JPAKE operation step.
psa_status_t cracen_jpake_abort(cracen_jpake_operation_t *operation)
Abort a JPAKE operation.
psa_status_t cracen_jpake_get_shared_key(cracen_jpake_operation_t *operation, const psa_key_attributes_t *attributes, uint8_t *output, size_t output_size, size_t *output_length)
Get the shared key from a completed JPAKE operation.
peer_id
Definition peer_conn_event.h:32
Definition cracen_psa_primitives.h:505