ParagonIE_Sodium_Core_Poly1305::onetimeauth_verify() –
You appear to be a bot. Output may be restricted
Description
Usage
$bool = ParagonIE_Sodium_Core_Poly1305::onetimeauth_verify( $mac, $m, $key );
Parameters
- $mac
- ( string ) required –
- $m
- ( string ) required –
- $key
- ( string ) required –
Returns
bool
Source
File name: wordpress/wp-includes/sodium_compat/src/Core/Poly1305.php
Lines:
1 to 15 of 15
public static function onetimeauth_verify($mac, $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) ); $calc = $state ->update($m) ->finish(); return self::verify_16($calc, $mac); }