Use the mbedtls_ecjpake_write_shared_key() to input raw shared key material as derivation secret
@@ -690,7 +690,7 @@ psa_status_t psa_pake_get_implicit_key(psa_pake_operation_t *operation,
#if defined(MBEDTLS_PSA_BUILTIN_ALG_JPAKE)
if( operation->alg == PSA_ALG_JPAKE )
{
- ret = mbedtls_ecjpake_derive_secret( &operation->ctx.ecjpake,
+ ret = mbedtls_ecjpake_write_shared_key( &operation->ctx.ecjpake,
operation->buffer,
PSA_PAKE_BUFFER_SIZE,
&operation->buffer_length,
