WordPress at Your Fingertips
function is not described

ParagonIE_Sodium_Core_Ed25519::scalar_complement() public WP 1.0

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

No Hooks.

Return

String.

Usage

$result = ParagonIE_Sodium_Core_Ed25519::scalar_complement( $s );
$s(string) (required)
-

Code of ParagonIE_Sodium_Core_Ed25519::scalar_complement() WP 5.8.2

public static function scalar_complement($s)
{
    $t_ = self::L . str_repeat("\x00", 32);
    sodium_increment($t_);
    $s_ = $s . str_repeat("\x00", 32);
    ParagonIE_Sodium_Compat::sub($t_, $s_);
    return self::sc_reduce($t_);
}