nrfxlib API 2.8.99
Loading...
Searching...
No Matches

◆ ocrypto_ecjpake_get_premaster_secret()

int ocrypto_ecjpake_get_premaster_secret ( uint8_t secret[32],
const uint8_t Xr[64],
const uint8_t X2[64],
const uint8_t xs[32],
const uint8_t x2[32] )

#include <crypto/nrf_oberon/include/ocrypto_ecjpake_p256.h>

EC-JPAKE-P256 premaster secret generation.

Parameters
[out]secretResulting premaster secret.
XrRemote client/server public key.
X2Remote public key 2.
xsClient/server secret key.
x2Secret key 2.
Return values
0If the secret is valid.
-1Otherwise.