nrfxlib API 2.8.99
|
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.
[out] | X | Public key. |
[out] | V | ZKP ephemeral public key. |
[out] | r | ZKP signature. |
G | Generator. May be NULL to use the default generator. | |
x | Secret key. 0 < x < group order | |
v | ZKP ephemeral secret key. 0 < v < group order | |
id | Identity of originator. | |
id_len | Identity length. |
0 | If inputs are valid. |
-1 | Otherwise. |