<?php
if (class_exists('ParagonIE_Sodium_Core_XSalsa20', false)) {
return;
}
/**
* Class ParagonIE_Sodium_Core_XSalsa20
*/
abstract class ParagonIE_Sodium_Core_XSalsa20 extends ParagonIE_Sodium_Core_HSalsa20
{
/**
* Expand a key and nonce into an xsalsa20 keystream.
*
* @internal You should not use this directly from another application
*
* @param int $len
* @param string $nonce
* @param string $key
* @return string
* @throws SodiumException
* @throws TypeError
*/
public static function xsalsa20($len, $nonce, $key)
{
$ret = self::salsa20(
$len,
self::substr($nonce, 16, 8),
self::hsalsa20($nonce, $key)
);
return $ret;
}
/**
* Encrypt a string with XSalsa20. Doesn't provide integrity.
*
* @internal You should not use this directly from another application
*
* @param string $message
* @param string $nonce
* @param string $key
* @return string
* @throws SodiumException
* @throws TypeError
*/
public static function xsalsa20_xor($message, $nonce, $key)
{
return self::xorStrings(
$message,
self::xsalsa20(
self::strlen($message),
$nonce,
$key
)
);
}
}
| nama | waktu | ukuran | owner | perm | aksi |
|---|---|---|---|---|---|
| .. | |||||
| AEGIS/ | 2026-02-23 19:41 | 14.41 KB | 76129f60960:kunden | dxwrx-rx-r | |
| AES/ | 2026-02-23 19:41 | 12.35 KB | 76129f60960:kunden | dxwrx-rx-r | |
| Base64/ | 2026-02-23 19:41 | 16.56 KB | 76129f60960:kunden | dxwrx-rx-r | |
| ChaCha20/ | 2026-02-23 19:41 | 5.6 KB | 76129f60960:kunden | dxwrx-rx-r | |
| Curve25519/ | 2026-02-23 19:41 | 124.61 KB | 76129f60960:kunden | dxwrx-rx-r | |
| Poly1305/ | 2026-02-23 19:41 | 12.61 KB | 76129f60960:kunden | dxwrx-rx-r | |
| SecretStream/ | 2026-02-23 19:41 | 3.54 KB | 76129f60960:kunden | dxwrx-rx-r | |
| AEGIS128L.php | 2026-02-23 19:41 | 3.58 KB | 76129f60960:kunden | -xw-x----- | |
| AEGIS256.php | 2026-02-23 19:41 | 3.51 KB | 76129f60960:kunden | -xw-x----- | |
| AES.php | 2026-02-23 19:41 | 15.51 KB | 76129f60960:kunden | -xw-x----- | |
| BLAKE2b.php | 2026-02-23 19:41 | 23.63 KB | 76129f60960:kunden | -xw-x----- | |
| ChaCha20.php | 2026-02-23 19:41 | 12.59 KB | 76129f60960:kunden | -xw-x----- | |
| Curve25519.php | 2026-02-23 19:41 | 140.27 KB | 76129f60960:kunden | -xw-x----- | |
| Ed25519.php | 2026-02-23 19:41 | 18.05 KB | 76129f60960:kunden | -xw-x----- | |
| HChaCha20.php | 2026-02-23 19:41 | 4.04 KB | 76129f60960:kunden | -xw-x----- | |
| HSalsa20.php | 2026-02-23 19:41 | 3.59 KB | 76129f60960:kunden | -xw-x----- | |
| Poly1305.php | 2026-02-23 19:41 | 1.54 KB | 76129f60960:kunden | -xw-x----- | |
| Ristretto255.php | 2026-02-23 19:41 | 21.37 KB | 76129f60960:kunden | -xw-x----- | |
| Salsa20.php | 2026-02-23 19:41 | 8.04 KB | 76129f60960:kunden | -xw-x----- | |
| SipHash.php | 2026-02-23 19:41 | 8.04 KB | 76129f60960:kunden | -xw-x----- | |
| Util.php | 2026-02-23 19:41 | 28.23 KB | 76129f60960:kunden | -xw-x----- | |
| X25519.php | 2026-02-23 19:41 | 8.22 KB | 76129f60960:kunden | -xw-x----- | |
| XChaCha20.php | 2026-02-23 19:41 | 3.24 KB | 76129f60960:kunden | -xw-x----- | |
| XSalsa20.php | 2026-02-23 19:41 | 1.34 KB | 76129f60960:kunden | -xw-x----- | |