Go to the source code of this file.
|
| psa_status_t | mbedtls_psa_pake_setup (mbedtls_psa_pake_operation_t *operation, const psa_crypto_driver_pake_inputs_t *inputs) |
| |
| psa_status_t | mbedtls_psa_pake_output (mbedtls_psa_pake_operation_t *operation, psa_crypto_driver_pake_step_t step, uint8_t *output, size_t output_size, size_t *output_length) |
| |
| psa_status_t | mbedtls_psa_pake_input (mbedtls_psa_pake_operation_t *operation, psa_crypto_driver_pake_step_t step, const uint8_t *input, size_t input_length) |
| |
| psa_status_t | mbedtls_psa_pake_get_implicit_key (mbedtls_psa_pake_operation_t *operation, uint8_t *output, size_t output_size, size_t *output_length) |
| |
| psa_status_t | mbedtls_psa_pake_abort (mbedtls_psa_pake_operation_t *operation) |
| |
◆ mbedtls_psa_pake_abort()
Abort a PAKE operation.
- Note
- The signature of this function is that of a PSA driver pake_abort entry point. This function behaves as a pake_abort entry point as defined in the PSA driver interface specification for transparent drivers.
- Parameters
-
| [in,out] | operation | The operation to abort. |
- Return values
-
◆ mbedtls_psa_pake_get_implicit_key()
Get implicitly confirmed shared secret from a PAKE.
- Note
- The signature of this function is that of a PSA driver pake_get_implicit_key entry point. This function behaves as a pake_get_implicit_key entry point as defined in the PSA driver interface specification for transparent drivers.
- Parameters
-
| [in,out] | operation | Active PAKE operation. |
| [out] | output | Output buffer for implicit key. |
| output_size | Size of the output buffer in bytes. |
| [out] | output_length | On success, the number of bytes of the implicit key. |
- Return values
-
◆ mbedtls_psa_pake_input()
Provide input for a step of a password-authenticated key exchange.
- Note
- The signature of this function is that of a PSA driver pake_input entry point. This function behaves as a pake_input entry point as defined in the PSA driver interface specification for transparent drivers.
-
The core checks that input_length is smaller than PSA_PAKE_INPUT_MAX_SIZE.
- Parameters
-
| [in,out] | operation | Active PAKE operation. |
| step | The driver step for which the input is provided. |
| [in] | input | Buffer containing the input in the format appropriate for this step. Refer to the documentation of psa_crypto_driver_pake_step_t for more information. |
| input_length | Size of the input buffer in bytes. |
- Return values
-
◆ mbedtls_psa_pake_output()
Get output for a step of a password-authenticated key exchange.
- Note
- 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.
- Parameters
-
| [in,out] | operation | Active PAKE operation. |
| step | The step of the algorithm for which the output is requested. |
| [out] | output | Buffer where the output is to be written in the format appropriate for this driver step. Refer to the documentation of psa_crypto_driver_pake_step_t for more information. |
| output_size | Size of the output buffer in bytes. This must be at least PSA_PAKE_OUTPUT_SIZE(alg, primitive, step) where alg and primitive are the PAKE algorithm and primitive in the operation's cipher suite, and step is the output step. |
| [out] | output_length | On success, the number of bytes of the returned output. |
- Return values
-
◆ mbedtls_psa_pake_setup()
Set the session information for a password-authenticated key exchange.
- Note
- The signature of this function is that of a PSA driver pake_setup entry point. This function behaves as a pake_setup entry point as defined in the PSA driver interface specification for transparent drivers.
- Parameters
-
| [in,out] | operation | The operation object to set up. It must have been initialized but not set up yet. |
| [in] | inputs | Inputs required for PAKE operation (role, password, key lifetime, cipher suite) |
- Return values
-