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

◆ ocrypto_curve_p256_scalarmult()

int ocrypto_curve_p256_scalarmult ( ocrypto_cp_p256 r,
const ocrypto_cp_p256 p,
const ocrypto_sc_p256 s 
)

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

P256 scalar multiplication.

r = p * s r = [0,0] if p = [0,0] or s mod q = 0

Parameters
[out]rOutput point.
pInput point.
sScalar.
Return values
-1If r = [0,0].
0If 0 < s < q.
1If s > q.