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

◆ cracen_spake2p_get_shared_key()

psa_status_t cracen_spake2p_get_shared_key ( cracen_spake2p_operation_t * operation,
uint8_t * output,
size_t output_size,
size_t * output_length )

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

Get the shared key from a completed SPAKE2+ operation.

Parameters
[in,out]operationSPAKE2+ operation context.
[out]outputBuffer to store the shared key.
[in]output_sizeSize of the output buffer in bytes.
[out]output_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 output buffer is too small.