nrfxlib API 2.8.99
|
int ocrypto_ecjpake_get_premaster_secret_key | ( | uint8_t | secret[64], |
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 key generation.
[out] | secret | Resulting premaster secret key (curve point). |
Xr | Remote client/server public key. | |
X2 | Remote public key 2. | |
xs | Client/server secret key. | |
x2 | Secret key 2. |
0 | If the premaster secret key is valid. |
-1 | Otherwise. |