mbedtls_psa_pake_output() function
Get output for a step of a password-authenticated key exchange.
Arguments
operation
Active PAKE operation.
step
The step of the algorithm for which the output is requested.
output
Buffer where the output is to be written in the format appropriate for this driver \p step. Refer to the documentation of psa_crypto_driver_pake_step_t for more information.
output_size
Size of the \p output buffer in bytes. This must be at least #PSA_PAKE_OUTPUT_SIZE(\p alg, \p primitive, \p step) where \p alg and \p primitive are the PAKE algorithm and primitive in the operation's cipher suite, and \p step is the output step.
output_length
On success, the number of bytes of the returned output.
Return value
#PSA_SUCCESS Success. #PSA_ERROR_BUFFER_TOO_SMALL The size of the \p output buffer is too small. #PSA_ERROR_INSUFFICIENT_ENTROPY \emptydescription #PSA_ERROR_CORRUPTION_DETECTED \emptydescription #PSA_ERROR_DATA_CORRUPT \emptydescription #PSA_ERROR_DATA_INVALID \emptydescription
Notes
The signature of this function is that of a PSA driver pake_output entry point. This function behaves as a pake_output entry point as defined in the PSA driver interface specification for transparent drivers.
mbedtls_psa_pake_output() is called by 1 function and calls 1 function:
![]()
mbedtls_psa_pake_output()
mbedtls_psa_pake_output():
![]()
mbedtls_psa_pake_output()