WordPress at Your Fingertips
function is not described

ParagonIE_Sodium_Core_Curve25519::clamp() public WP 1.0

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

No Hooks.

Return

String.

Usage

$result = ParagonIE_Sodium_Core_Curve25519::clamp( $s );
$s(string) (required)
-

Code of ParagonIE_Sodium_Core_Curve25519::clamp() WP 5.8.2

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