nrfxlib API 2.8.99
|
int ocrypto_curve_p256_scalarmult_base | ( | ocrypto_cp_p256 * | r, |
const ocrypto_sc_p256 * | s ) |
#include <crypto/nrf_oberon/include/ocrypto_curve_p256.h>
P256 scalar base multiplication.
r = basePoint * s r = [0,0] if s mod q = 0
[out] | r | Output point. |
s | Scalar. |
-1 | If r = [0,0]. |
0 | If 0 < s < q. |
1 | If s > q. |