Linux tsuru-no-tsurugi 5.15.0-186-generic #196-Ubuntu SMP Sat Jun 20 16:09:34 UTC 2026 x86_64
Apache/2.4.52 (Ubuntu)
Server IP : 192.168.0.18 & Your IP : 216.73.216.68
Domains :
Cant Read [ /etc/named.conf ]
User : www-data
Terminal
Auto Root
Create File
Create Folder
Localroot Suggester
Backdoor Destroyer
Readme
/
usr /
src /
linux-headers-5.15.0-185 /
include /
crypto /
Delete
Unzip
Name
Size
Permission
Date
Action
internal
[ DIR ]
drwxr-xr-x
2026-06-27 06:50
acompress.h
8.86
KB
-rw-r--r--
2021-11-01 05:53
aead.h
18.39
KB
-rw-r--r--
2021-11-01 05:53
aes.h
2.5
KB
-rw-r--r--
2021-11-01 05:53
akcipher.h
12.92
KB
-rw-r--r--
2021-11-01 05:53
algapi.h
7.37
KB
-rw-r--r--
2026-06-20 00:54
arc4.h
484
B
-rw-r--r--
2021-11-01 05:53
asym_tpm_subtype.h
521
B
-rw-r--r--
2021-11-01 05:53
authenc.h
635
B
-rw-r--r--
2021-11-01 05:53
b128ops.h
2.41
KB
-rw-r--r--
2021-11-01 05:53
blake2b.h
1.6
KB
-rw-r--r--
2021-11-01 05:53
blake2s.h
2.62
KB
-rw-r--r--
2026-06-20 00:54
blowfish.h
415
B
-rw-r--r--
2021-11-01 05:53
cast5.h
590
B
-rw-r--r--
2021-11-01 05:53
cast6.h
607
B
-rw-r--r--
2021-11-01 05:53
cast_common.h
232
B
-rw-r--r--
2021-11-01 05:53
chacha.h
3.32
KB
-rw-r--r--
2026-06-20 00:54
chacha20poly1305.h
1.66
KB
-rw-r--r--
2021-11-01 05:53
cryptd.h
2
KB
-rw-r--r--
2021-11-01 05:53
ctr.h
1.42
KB
-rw-r--r--
2021-11-01 05:53
curve25519.h
2.02
KB
-rw-r--r--
2021-11-01 05:53
des.h
1.68
KB
-rw-r--r--
2021-11-01 05:53
dh.h
2.51
KB
-rw-r--r--
2021-11-01 05:53
drbg.h
8.99
KB
-rw-r--r--
2026-06-20 00:54
ecc_curve.h
1.31
KB
-rw-r--r--
2021-11-01 05:53
ecdh.h
2.43
KB
-rw-r--r--
2021-11-01 05:53
engine.h
4.11
KB
-rw-r--r--
2021-11-01 05:53
gcm.h
867
B
-rw-r--r--
2021-11-01 05:53
gf128mul.h
9.42
KB
-rw-r--r--
2021-11-01 05:53
ghash.h
388
B
-rw-r--r--
2021-11-01 05:53
hash.h
34.04
KB
-rw-r--r--
2021-11-01 05:53
hash_info.h
998
B
-rw-r--r--
2021-11-01 05:53
hmac.h
173
B
-rw-r--r--
2021-11-01 05:53
if_alg.h
6.68
KB
-rw-r--r--
2026-06-20 00:54
kpp.h
9.91
KB
-rw-r--r--
2021-11-01 05:53
md5.h
497
B
-rw-r--r--
2021-11-01 05:53
nhpoly1305.h
2.18
KB
-rw-r--r--
2021-11-01 05:53
null.h
346
B
-rw-r--r--
2021-11-01 05:53
padlock.h
438
B
-rw-r--r--
2021-11-01 05:53
pcrypt.h
815
B
-rw-r--r--
2021-11-01 05:53
pkcs7.h
1.15
KB
-rw-r--r--
2021-11-01 05:53
poly1305.h
2.44
KB
-rw-r--r--
2021-11-01 05:53
public_key.h
2.38
KB
-rw-r--r--
2021-11-01 05:53
rng.h
6.59
KB
-rw-r--r--
2021-11-01 05:53
scatterwalk.h
3.9
KB
-rw-r--r--
2026-06-20 00:54
serpent.h
696
B
-rw-r--r--
2021-11-01 05:53
sha1.h
1.18
KB
-rw-r--r--
2021-11-01 05:53
sha1_base.h
2.45
KB
-rw-r--r--
2021-11-01 05:53
sha2.h
3.76
KB
-rw-r--r--
2021-11-01 05:53
sha256_base.h
2.56
KB
-rw-r--r--
2021-11-01 05:53
sha3.h
879
B
-rw-r--r--
2021-11-01 05:53
sha512_base.h
3.18
KB
-rw-r--r--
2021-11-01 05:53
skcipher.h
19.95
KB
-rw-r--r--
2021-11-01 05:53
sm2.h
749
B
-rw-r--r--
2021-11-01 05:53
sm3.h
897
B
-rw-r--r--
2021-11-01 05:53
sm3_base.h
2.55
KB
-rw-r--r--
2021-11-01 05:53
sm4.h
1.12
KB
-rw-r--r--
2021-11-01 05:53
streebog.h
949
B
-rw-r--r--
2021-11-01 05:53
twofish.h
743
B
-rw-r--r--
2021-11-01 05:53
xts.h
1.1
KB
-rw-r--r--
2021-11-01 05:53
Save
Rename
/* SPDX-License-Identifier: GPL-2.0 */ /* * Common values and helper functions for the ChaCha and XChaCha stream ciphers. * * XChaCha extends ChaCha's nonce to 192 bits, while provably retaining ChaCha's * security. Here they share the same key size, tfm context, and setkey * function; only their IV size and encrypt/decrypt function differ. * * The ChaCha paper specifies 20, 12, and 8-round variants. In general, it is * recommended to use the 20-round variant ChaCha20. However, the other * variants can be needed in some performance-sensitive scenarios. The generic * ChaCha code currently allows only the 20 and 12-round variants. */ #ifndef _CRYPTO_CHACHA_H #define _CRYPTO_CHACHA_H #include <asm/unaligned.h> #include <linux/types.h> /* 32-bit stream position, then 96-bit nonce (RFC7539 convention) */ #define CHACHA_IV_SIZE 16 #define CHACHA_KEY_SIZE 32 #define CHACHA_BLOCK_SIZE 64 #define CHACHAPOLY_IV_SIZE 12 #define CHACHA_STATE_WORDS (CHACHA_BLOCK_SIZE / sizeof(u32)) /* 192-bit nonce, then 64-bit stream position */ #define XCHACHA_IV_SIZE 32 void chacha_block_generic(u32 *state, u8 *stream, int nrounds); static inline void chacha20_block(u32 *state, u8 *stream) { chacha_block_generic(state, stream, 20); } void hchacha_block_arch(const u32 *state, u32 *out, int nrounds); void hchacha_block_generic(const u32 *state, u32 *out, int nrounds); static inline void hchacha_block(const u32 *state, u32 *out, int nrounds) { if (IS_ENABLED(CONFIG_CRYPTO_ARCH_HAVE_LIB_CHACHA)) hchacha_block_arch(state, out, nrounds); else hchacha_block_generic(state, out, nrounds); } enum chacha_constants { /* expand 32-byte k */ CHACHA_CONSTANT_EXPA = 0x61707865U, CHACHA_CONSTANT_ND_3 = 0x3320646eU, CHACHA_CONSTANT_2_BY = 0x79622d32U, CHACHA_CONSTANT_TE_K = 0x6b206574U }; static inline void chacha_init_consts(u32 *state) { state[0] = CHACHA_CONSTANT_EXPA; state[1] = CHACHA_CONSTANT_ND_3; state[2] = CHACHA_CONSTANT_2_BY; state[3] = CHACHA_CONSTANT_TE_K; } void chacha_init_arch(u32 *state, const u32 *key, const u8 *iv); static inline void chacha_init_generic(u32 *state, const u32 *key, const u8 *iv) { chacha_init_consts(state); state[4] = key[0]; state[5] = key[1]; state[6] = key[2]; state[7] = key[3]; state[8] = key[4]; state[9] = key[5]; state[10] = key[6]; state[11] = key[7]; state[12] = get_unaligned_le32(iv + 0); state[13] = get_unaligned_le32(iv + 4); state[14] = get_unaligned_le32(iv + 8); state[15] = get_unaligned_le32(iv + 12); } static inline void chacha_init(u32 *state, const u32 *key, const u8 *iv) { if (IS_ENABLED(CONFIG_CRYPTO_ARCH_HAVE_LIB_CHACHA)) chacha_init_arch(state, key, iv); else chacha_init_generic(state, key, iv); } void chacha_crypt_arch(u32 *state, u8 *dst, const u8 *src, unsigned int bytes, int nrounds); void chacha_crypt_generic(u32 *state, u8 *dst, const u8 *src, unsigned int bytes, int nrounds); static inline void chacha_crypt(u32 *state, u8 *dst, const u8 *src, unsigned int bytes, int nrounds) { if (IS_ENABLED(CONFIG_CRYPTO_ARCH_HAVE_LIB_CHACHA)) chacha_crypt_arch(state, dst, src, bytes, nrounds); else chacha_crypt_generic(state, dst, src, bytes, nrounds); } static inline void chacha20_crypt(u32 *state, u8 *dst, const u8 *src, unsigned int bytes) { chacha_crypt(state, dst, src, bytes, 20); } #endif /* _CRYPTO_CHACHA_H */