nrfxlib API 2.8.99
Loading...
Searching...
No Matches

◆ ocrypto_curve25519_scalarmult_ctx()

void ocrypto_curve25519_scalarmult_ctx ( ocrypto_curve25519_ctx * ctx,
uint8_t r[(32)],
const uint8_t n[(32)],
const uint8_t p[(32)] )

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

Curve25519 scalar multiplication r = n * p with context.

A shared secret is computed from the local secret key n and another party's public key p and put into r. The same shared secret is generated when the other party combines its private key with the local public key.

Parameters
ctxContext.
[out]rResulting curve point.
[in]nScalar factor.
[in]pPoint factor.
Remarks
r may be same as n.