Add undfined role for ec j-pake
Signed-off-by: Przemek Stekiel <przemyslaw.stekiel@mobica.com>
This commit is contained in:
parent
ebfeb172ee
commit
6e628a4e7b
2 changed files with 3 additions and 2 deletions
|
@ -52,7 +52,8 @@ extern "C" {
|
||||||
* Roles in the EC J-PAKE exchange
|
* Roles in the EC J-PAKE exchange
|
||||||
*/
|
*/
|
||||||
typedef enum {
|
typedef enum {
|
||||||
MBEDTLS_ECJPAKE_CLIENT = 0, /**< Client */
|
MBEDTLS_ECJPAKE_NONE = 0, /**< Undefined */
|
||||||
|
MBEDTLS_ECJPAKE_CLIENT, /**< Client */
|
||||||
MBEDTLS_ECJPAKE_SERVER, /**< Server */
|
MBEDTLS_ECJPAKE_SERVER, /**< Server */
|
||||||
} mbedtls_ecjpake_role;
|
} mbedtls_ecjpake_role;
|
||||||
|
|
||||||
|
|
|
@ -594,7 +594,7 @@ psa_status_t mbedtls_psa_pake_abort(mbedtls_psa_pake_operation_t *operation)
|
||||||
|
|
||||||
#if defined(MBEDTLS_PSA_BUILTIN_ALG_JPAKE)
|
#if defined(MBEDTLS_PSA_BUILTIN_ALG_JPAKE)
|
||||||
if (operation->alg == PSA_ALG_JPAKE) {
|
if (operation->alg == PSA_ALG_JPAKE) {
|
||||||
operation->role = 0;
|
operation->role = MBEDTLS_ECJPAKE_NONE;
|
||||||
mbedtls_platform_zeroize(operation->buffer, sizeof(operation->buffer));
|
mbedtls_platform_zeroize(operation->buffer, sizeof(operation->buffer));
|
||||||
operation->buffer_length = 0;
|
operation->buffer_length = 0;
|
||||||
operation->buffer_offset = 0;
|
operation->buffer_offset = 0;
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue