ParagonIE_Sodium_Crypto::scalarmult_base

Advertisement

Summery Summery

ECDH over Curve25519, using the basepoint.

Syntax Syntax

ParagonIE_Sodium_Crypto::scalarmult_base( string $secret )

Description Description

Used to get a secret key from a public key.

Parameters Parameters

$secret

(string) (Required)

Return Return

(string)

Source Source

File: wp-includes/sodium_compat/src/Crypto.php

    public static function scalarmult_base($secret)
    {
        $q = ParagonIE_Sodium_Core_X25519::crypto_scalarmult_curve25519_ref10_base($secret);
        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.