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

◆ ocrypto_curve25519_scalarmult()

void ocrypto_curve25519_scalarmult ( 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.

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
[out]rResulting curve point.
[in]nScalar factor.
[in]pPoint factor.
Remarks
r may be same as n.