nrfxlib API 3.3.99
Loading...
Searching...
No Matches

◆ ocrypto_spake2p_p256_get_ZV()

int ocrypto_spake2p_p256_get_ZV ( uint8_t Z[65],
uint8_t V[65],
const uint8_t w0[32],
const uint8_t w1[32],
const uint8_t xy[32],
const uint8_t YX[65],
const uint8_t NM[65],
const uint8_t L[65] )

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

SPAKE2+ P-256 common value calculation.

Parameters
[out]ZCommon value Z.
[out]VCommon value V.
w0First password hash.
w1Second password hash. NULL on server side.
xySecret key.
YXPeer key share.
NMPeer random element.
LPassword registration. NULL on client side.
Return values
0If the common values are valid.
-1Otherwise.