ParagonIE_Sodium_Crypto::scalarmult

Advertisement

Summery Summery

ECDH over Curve25519

Syntax Syntax

ParagonIE_Sodium_Crypto::scalarmult( string $sKey, string $pKey )

Parameters Parameters

$sKey

(string) (Required)

$pKey

(string) (Required)

Return Return

(string)

Source Source

File: wp-includes/sodium_compat/src/Crypto.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;
    }

Advertisement

Advertisement

Leave a Reply

This site uses Akismet to reduce spam. Learn how your comment data is processed.