pub unsafe extern "C" fn ocrypto_curve25519_scalarmult(
    r: *mut u8,
    n: *const u8,
    p: *const u8
)
Expand description

Curve25519 scalar multiplication r = n * p.

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.

  • r - Resulting curve point.
  • n - Scalar factor.
  • p - Point factor.

@remark * r - may be same as * n - .