Function nrfxlib_sys::ocrypto_curve25519_scalarmult_ctx
source · pub unsafe extern "C" fn ocrypto_curve25519_scalarmult_ctx(
ctx: *mut ocrypto_curve25519_ctx,
r: *mut u8,
n: *const u8,
p: *const u8
)
Expand description
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.r
- Resulting curve point.n
- Scalar factor.p
- Point factor.
@remark * r
- may be same as * n
- .