php8.5
Home/ Manual/ sodium / functions/ sodium_crypto_scalarmult_ristretto255

sodium_crypto_scalarmult_ristretto255

PHP function Edit on GitHub ✎

(PHP 8 >= 8.1.1)

Computes a shared secret

Description

sodium_crypto_scalarmult_ristretto255(string $n, string $p): string

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

Func

Parameters

n

A scalar, which is typically a secret key.

p

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

Return Values

Returns a 32-byte random String.

See Also

Source: reference/sodium/functions/sodium-crypto-scalarmult-ristretto255.xml · from the official PHP manual (php/doc-en)