ParagonIE_Sodium_Core32_Ed25519::sign_open() –

You appear to be a bot. Output may be restricted

Description

Usage

$string = ParagonIE_Sodium_Core32_Ed25519::sign_open( $message, $pk );

Parameters

$message
( string ) required – A signed message
$pk
( string ) required – Public key

Returns

string Message (without signature)

Source

File name: wordpress/wp-includes/sodium_compat/src/Core32/Ed25519.php
Lines:

1 to 13 of 13
    public static function sign_open($message, $pk)
    {
        
/** @var string $signature */
        $signature = self::substr($message, 0, 64);

        
/** @var string $message */
        $message = self::substr($message, 64);

        if (self::verify_detached($signature, $message, $pk)) {
            return $message;
        }
        throw new SodiumException('Invalid signature');
    }
 

 View on GitHub View on Trac