WordPress at a glance
function is not described

ParagonIE_Sodium_Crypto::scalarmult() public WP 1.0

ECDH over Curve25519

{} It's a method of the class: ParagonIE_Sodium_Crypto{}

No Hooks.

Return

String. Null. Nothing.

Usage

$result = ParagonIE_Sodium_Crypto::scalarmult( $sKey, $pKey );
$sKey(string) (required)
-
$pKey(string) (required)
-

Code of ParagonIE_Sodium_Crypto::scalarmult() WP 5.7

<?php
public static function scalarmult($sKey, $pKey)
{
    $q = ParagonIE_Sodium_Core_X25519::crypto_scalarmult_curve25519_ref10($sKey, $pKey);
    self::scalarmult_throw_if_zero($q);
    return $q;
}