![]() |
nrfxlib API 3.3.99
|
| void ocrypto_curve25519_scalarmult_ctx | ( | ocrypto_curve25519_ctx * | ctx, |
| 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 with context.
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.
| ctx | Context. | |
| [out] | r | Resulting curve point. |
| [in] | n | Scalar factor. |
| [in] | p | Point factor. |
r may be same as n.