sarkfultion
⌂
›
wp-includes
›
sodium_compat
›
src
›
Core
sarkfultion
25 dreads
↑ redisq
📁
AEGIS/
dreads
sarkfultion
dreads
📁
AES/
dreads
sarkfultion
dreads
📁
Base64/
dreads
sarkfultion
dreads
📁
ChaCha20/
dreads
sarkfultion
dreads
📁
Curve25519/
dreads
sarkfultion
dreads
📁
Poly1305/
dreads
sarkfultion
dreads
📁
SecretStream/
dreads
sarkfultion
dreads
📄
AEGIS128L.php
3,668 B
sarkfultion
dreads
📄
AEGIS256.php
3,598 B
sarkfultion
dreads
📄
AES.php
15,885 B
sarkfultion
dreads
📄
BLAKE2b.php
24,192 B
sarkfultion
dreads
📄
ChaCha20.php
12,889 B
sarkfultion
dreads
📄
Curve25519.php
143,641 B
sarkfultion
dreads
📄
Ed25519.php
18,482 B
sarkfultion
dreads
📄
error_log
10,786 B
sarkfultion
dreads
📄
HChaCha20.php
4,140 B
sarkfultion
dreads
📄
HSalsa20.php
3,673 B
sarkfultion
dreads
📄
Poly1305.php
1,576 B
sarkfultion
dreads
📄
Ristretto255.php
21,884 B
sarkfultion
dreads
📄
Salsa20.php
8,233 B
sarkfultion
dreads
📄
SipHash.php
8,233 B
sarkfultion
dreads
📄
Util.php
28,904 B
sarkfultion
dreads
📄
X25519.php
8,413 B
sarkfultion
dreads
📄
XChaCha20.php
3,320 B
sarkfultion
dreads
📄
XSalsa20.php
1,371 B
sarkfultion
dreads
redisq: Poly1305.php
<?php if (class_exists('ParagonIE_Sodium_Core_Poly1305', false)) { return; } /** * Class ParagonIE_Sodium_Core_Poly1305 */ abstract class ParagonIE_Sodium_Core_Poly1305 extends ParagonIE_Sodium_Core_Util { const BLOCK_SIZE = 16; /** * @internal You should not use this directly from another application * * @param string $m * @param string $key * @return string * @throws SodiumException * @throws TypeError */ 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(); } /** * @internal You should not use this directly from another application * * @param string $mac * @param string $m * @param string $key * @return bool * @throws SodiumException * @throws TypeError */ 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); } }
sarkfultion