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

◆ ocrypto_ecdh_p256_common_secret_final()

int ocrypto_ecdh_p256_common_secret_final ( ocrypto_ecdh_p256_ctx *  ctx,
uint8_t  r[32] 
)

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

Incremental ECDH P-256 common secret generation final step.

Common secret calculation is finalized and the context ctx is used to generate the secret.

Parameters
ctxContext.
[out]rGenerated common secret.
Return values
0If sk is a valid secret key and pk is a valid public key.
-1Otherwise.