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

◆ ocrypto_ecdh_p224_common_secret()

int ocrypto_ecdh_p224_common_secret ( uint8_t  r[28],
const uint8_t  sk[28],
const uint8_t  pk[56] 
)

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

ECDH P-224 common secret.

The common secret is computed from both the client's public key pk and the server's secret key sk and put into r.

Parameters
[out]rGenerated common secret.
skServer private key.
pkClient public key.
Return values
0If sk is a valid secret key and pk is a valid public key.
-1Otherwise.
Remarks
r may be same as sk or pk.