ParagonIE_Sodium_Core_Poly1305::onetimeauth() –

You appear to be a bot. Output may be restricted

Description

Usage

$string = ParagonIE_Sodium_Core_Poly1305::onetimeauth( $m, $key );

Parameters

$m
( string ) required
$key
( string ) required

Returns

string

Source

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

1 to 14 of 14
    public static function onetimeauth($m, $key)
    {
        if (self::strlen($key) < 32) {
            throw new InvalidArgumentException(
                'Key must be 32 bytes long.'
            );
        }
        $state = new ParagonIE_Sodium_Core_Poly1305_State(
            self::substr($key, 0, 32)
        );
        return $state
            ->update($m)
            ->finish();
    }
 

 View on GitHub View on Trac