![]() |
nrfxlib API 3.3.99
|
| 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
| [out] | r | Output point. |
| p | Input point. | |
| s | Scalar. |
| -1 | If r = [0,0]. |
| 0 | If 0 < s < q. |
| 1 | If s > q. |