nRF Connect SDK API 3.3.99
Loading...
Searching...
No Matches

◆ cracen_pake_get_shared_key()

psa_status_t cracen_pake_get_shared_key ( cracen_pake_operation_t * operation,
const psa_key_attributes_t * attributes,
uint8_t * key_buffer,
size_t key_buffer_size,
size_t * key_buffer_length )

#include <subsys/nrf_security/src/drivers/cracen/cracenpsa/include/cracen_psa_pake.h>

Get the shared key from a completed PAKE operation.

Parameters
[in,out]operationPAKE operation context.
[in]attributesKey attributes for the shared key.
[out]key_bufferBuffer to store the shared key.
[in]key_buffer_sizeSize of the key buffer in bytes.
[out]key_buffer_lengthLength of the generated shared key in bytes.
Return values
PSA_SUCCESSThe operation completed successfully.
PSA_ERROR_BAD_STATEThe operation is not in a valid state.
PSA_ERROR_BUFFER_TOO_SMALLThe key buffer is too small.