OXIESEC PANEL
- Current Dir:
/
/
usr
/
src
/
linux-headers-4.15.0-197
/
include
/
crypto
Server IP: 139.59.38.164
Upload:
Create Dir:
Name
Size
Modified
Perms
📁
..
-
11/17/2022 06:42:18 AM
rwxr-xr-x
📄
ablk_helper.h
773 bytes
01/28/2018 09:20:33 PM
rw-r--r--
📄
acompress.h
7.89 KB
11/01/2022 04:52:05 PM
rw-r--r--
📄
aead.h
18.1 KB
11/01/2022 04:52:05 PM
rw-r--r--
📄
aes.h
1.03 KB
01/28/2018 09:20:33 PM
rw-r--r--
📄
akcipher.h
11.7 KB
11/01/2022 04:52:05 PM
rw-r--r--
📄
algapi.h
11.12 KB
01/28/2018 09:20:33 PM
rw-r--r--
📄
authenc.h
845 bytes
01/28/2018 09:20:33 PM
rw-r--r--
📄
b128ops.h
2.41 KB
01/28/2018 09:20:33 PM
rw-r--r--
📄
blake2s.h
2.37 KB
11/01/2022 04:52:05 PM
rw-r--r--
📄
blowfish.h
415 bytes
01/28/2018 09:20:33 PM
rw-r--r--
📄
cast5.h
590 bytes
01/28/2018 09:20:33 PM
rw-r--r--
📄
cast6.h
636 bytes
01/28/2018 09:20:33 PM
rw-r--r--
📄
cast_common.h
232 bytes
01/28/2018 09:20:33 PM
rw-r--r--
📄
cbc.h
3.48 KB
01/28/2018 09:20:33 PM
rw-r--r--
📄
chacha20.h
1.01 KB
11/01/2022 04:52:05 PM
rw-r--r--
📄
cryptd.h
2.5 KB
01/28/2018 09:20:33 PM
rw-r--r--
📄
crypto_wq.h
161 bytes
01/28/2018 09:20:33 PM
rw-r--r--
📄
ctr.h
524 bytes
01/28/2018 09:20:33 PM
rw-r--r--
📄
des.h
542 bytes
01/28/2018 09:20:33 PM
rw-r--r--
📄
dh.h
2.62 KB
01/28/2018 09:20:33 PM
rw-r--r--
📄
drbg.h
9.05 KB
11/01/2022 04:52:05 PM
rw-r--r--
📄
ecdh.h
2.67 KB
01/28/2018 09:20:33 PM
rw-r--r--
📄
engine.h
4 KB
01/28/2018 09:20:33 PM
rw-r--r--
📄
gcm.h
140 bytes
01/28/2018 09:20:33 PM
rw-r--r--
📄
gf128mul.h
9.41 KB
01/28/2018 09:20:33 PM
rw-r--r--
📄
ghash.h
381 bytes
01/28/2018 09:20:33 PM
rw-r--r--
📄
hash.h
31.48 KB
11/01/2022 04:52:05 PM
rw-r--r--
📄
hash_info.h
1.13 KB
01/28/2018 09:20:33 PM
rw-r--r--
📄
hmac.h
173 bytes
01/28/2018 09:20:33 PM
rw-r--r--
📄
if_alg.h
7 KB
11/01/2022 04:52:05 PM
rw-r--r--
📁
internal
-
11/17/2022 06:42:23 AM
rwxr-xr-x
📄
kpp.h
9.68 KB
11/01/2022 04:52:05 PM
rw-r--r--
📄
lrw.h
1.22 KB
01/28/2018 09:20:33 PM
rw-r--r--
📄
mcryptd.h
2.37 KB
01/28/2018 09:20:33 PM
rw-r--r--
📄
md5.h
497 bytes
01/28/2018 09:20:33 PM
rw-r--r--
📄
null.h
569 bytes
01/28/2018 09:20:33 PM
rw-r--r--
📄
padlock.h
649 bytes
01/28/2018 09:20:33 PM
rw-r--r--
📄
pcrypt.h
1.4 KB
01/28/2018 09:20:33 PM
rw-r--r--
📄
pkcs7.h
1.21 KB
01/28/2018 09:20:33 PM
rw-r--r--
📄
poly1305.h
920 bytes
11/01/2022 04:52:05 PM
rw-r--r--
📄
public_key.h
2.08 KB
11/01/2022 04:52:05 PM
rw-r--r--
📄
rng.h
6.66 KB
11/01/2022 04:52:05 PM
rw-r--r--
📄
scatterwalk.h
3.67 KB
01/28/2018 09:20:33 PM
rw-r--r--
📄
serpent.h
712 bytes
01/28/2018 09:20:33 PM
rw-r--r--
📄
sha.h
2.88 KB
01/28/2018 09:20:33 PM
rw-r--r--
📄
sha1_base.h
2.47 KB
01/28/2018 09:20:33 PM
rw-r--r--
📄
sha256_base.h
3.03 KB
01/28/2018 09:20:33 PM
rw-r--r--
📄
sha3.h
704 bytes
01/28/2018 09:20:33 PM
rw-r--r--
📄
sha512_base.h
3.19 KB
01/28/2018 09:20:33 PM
rw-r--r--
📄
skcipher.h
20.7 KB
11/01/2022 04:52:05 PM
rw-r--r--
📄
sm3.h
833 bytes
01/28/2018 09:20:33 PM
rw-r--r--
📄
sm3_base.h
2.95 KB
01/28/2018 09:20:33 PM
rw-r--r--
📄
twofish.h
755 bytes
01/28/2018 09:20:33 PM
rw-r--r--
📄
xts.h
1.81 KB
01/28/2018 09:20:33 PM
rw-r--r--
Editing: blake2s.h
Close
/* SPDX-License-Identifier: GPL-2.0 OR MIT */ /* * Copyright (C) 2015-2019 Jason A. Donenfeld <Jason@zx2c4.com>. All Rights Reserved. */ #ifndef _CRYPTO_BLAKE2S_H #define _CRYPTO_BLAKE2S_H #include <linux/bug.h> #include <linux/types.h> #include <linux/kernel.h> #include <linux/string.h> enum blake2s_lengths { BLAKE2S_BLOCK_SIZE = 64, BLAKE2S_HASH_SIZE = 32, BLAKE2S_KEY_SIZE = 32, BLAKE2S_128_HASH_SIZE = 16, BLAKE2S_160_HASH_SIZE = 20, BLAKE2S_224_HASH_SIZE = 28, BLAKE2S_256_HASH_SIZE = 32, }; struct blake2s_state { u32 h[8]; u32 t[2]; u32 f[2]; u8 buf[BLAKE2S_BLOCK_SIZE]; unsigned int buflen; unsigned int outlen; }; enum blake2s_iv { BLAKE2S_IV0 = 0x6A09E667UL, BLAKE2S_IV1 = 0xBB67AE85UL, BLAKE2S_IV2 = 0x3C6EF372UL, BLAKE2S_IV3 = 0xA54FF53AUL, BLAKE2S_IV4 = 0x510E527FUL, BLAKE2S_IV5 = 0x9B05688CUL, BLAKE2S_IV6 = 0x1F83D9ABUL, BLAKE2S_IV7 = 0x5BE0CD19UL, }; void blake2s_update(struct blake2s_state *state, const u8 *in, size_t inlen); void blake2s_final(struct blake2s_state *state, u8 *out); static inline void blake2s_init_param(struct blake2s_state *state, const u32 param) { *state = (struct blake2s_state){{ BLAKE2S_IV0 ^ param, BLAKE2S_IV1, BLAKE2S_IV2, BLAKE2S_IV3, BLAKE2S_IV4, BLAKE2S_IV5, BLAKE2S_IV6, BLAKE2S_IV7, }}; } static inline void blake2s_init(struct blake2s_state *state, const size_t outlen) { blake2s_init_param(state, 0x01010000 | outlen); state->outlen = outlen; } static inline void blake2s_init_key(struct blake2s_state *state, const size_t outlen, const void *key, const size_t keylen) { WARN_ON(IS_ENABLED(DEBUG) && (!outlen || outlen > BLAKE2S_HASH_SIZE || !key || !keylen || keylen > BLAKE2S_KEY_SIZE)); blake2s_init_param(state, 0x01010000 | keylen << 8 | outlen); memcpy(state->buf, key, keylen); state->buflen = BLAKE2S_BLOCK_SIZE; state->outlen = outlen; } static inline void blake2s(u8 *out, const u8 *in, const u8 *key, const size_t outlen, const size_t inlen, const size_t keylen) { struct blake2s_state state; WARN_ON(IS_ENABLED(DEBUG) && ((!in && inlen > 0) || !out || !outlen || outlen > BLAKE2S_HASH_SIZE || keylen > BLAKE2S_KEY_SIZE || (!key && keylen))); if (keylen) blake2s_init_key(&state, outlen, key, keylen); else blake2s_init(&state, outlen); blake2s_update(&state, in, inlen); blake2s_final(&state, out); } #endif /* _CRYPTO_BLAKE2S_H */