ParagonIE_Sodium_Core_Curve25519::clamp() –

You appear to be a bot. Output may be restricted

Description

Usage

$string = ParagonIE_Sodium_Core_Curve25519::clamp( $s );

Parameters

$s
( string ) required

Returns

string

Source

File name: wordpress/wp-includes/sodium_compat/src/Core/Curve25519.php
Lines:

1 to 8 of 8
    public static function clamp($s)
    {
        $s_ = self::stringToIntArray($s);
        $s_[0] &= 248;
        $s_[31] |= 64;
        $s_[31] &= 128;
        return self::intArrayToString($s_);
    }
 

 View on GitHub View on Trac