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

◆ ocrypto_curve_p224_scalarmult()

int ocrypto_curve_p224_scalarmult ( ocrypto_cp_p224 * r,
const ocrypto_cp_p224 * p,
const ocrypto_sc_p224 * s )

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

P224 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.