nrfxlib API 0.1.0
Loading...
Searching...
No Matches

◆ ocrypto_ecjpake_get_key()

int ocrypto_ecjpake_get_key ( uint8_t  X[64],
uint8_t  V[64],
uint8_t  r[32],
const uint8_t  G[64],
const uint8_t  x[32],
const uint8_t  v[32],
const char *  id,
size_t  id_len 
)

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

EC-JPAKE-P256 public key and zero knowledge proof generation.

Parameters
[out]XPublic key.
[out]VZKP ephemeral public key.
[out]rZKP signature.
GGenerator. May be NULL to use the default generator.
xSecret key. 0 < x < group order
vZKP ephemeral secret key. 0 < v < group order
idIdentity of originator.
id_lenIdentity length.
Return values
0If inputs are valid.
-1Otherwise.