sodium_crypto_scalarmult_ristretto255

Computes a shared secret

&reftitle.description; `string` `sodium_crypto_scalarmult_ristretto255` `string` `n` `string` `p`

Calculates scalar `n` times point `p`. Available as of libsodium 1.0.18.

&warn.undocumented.func;
&reftitle.parameters;

`n`

- A scalar, which is typically a secret key.

`p`

- A point (x-coordinate), which is typically a public key.

&reftitle.returnvalues;

Returns a 32-byte random &string;.

&reftitle.seealso;

- `sodium_crypto_scalarmult_ristretto255_base`