/
usr
/
src
/
kernels
/
4.18.0-553.121.1.el8_10.x86_64
/
include
/
crypto
/
/usr/src/kernels/4.18.0-553.121.1.el8_10.x86_64/include/crypto
mkdir
upload
Name
Size
Mode
Actions
internal/
-
0755
rm
acompress.h
8120
0644
edit
dl
rm
aead.h
18729
0644
edit
dl
rm
aes.h
1058
0644
edit
dl
rm
akcipher.h
11989
0644
edit
dl
rm
algapi.h
12163
0644
edit
dl
rm
arc4.h
484
0644
edit
dl
rm
authenc.h
845
0644
edit
dl
rm
b128ops.h
2471
0644
edit
dl
rm
blowfish.h
415
0644
edit
dl
rm
cast5.h
590
0644
edit
dl
rm
cast6.h
636
0644
edit
dl
rm
cast_common.h
232
0644
edit
dl
rm
cbc.h
3562
0644
edit
dl
rm
chacha20.h
638
0644
edit
dl
rm
cryptd.h
2562
0644
edit
dl
rm
crypto_wq.h
161
0644
edit
dl
rm
ctr.h
1666
0644
edit
dl
rm
des.h
1403
0644
edit
dl
rm
dh.h
2784
0644
edit
dl
rm
drbg.h
9160
0644
edit
dl
rm
ecdh.h
2733
0644
edit
dl
rm
engine.h
4202
0644
edit
dl
rm
gcm.h
140
0644
edit
dl
rm
gf128mul.h
9647
0644
edit
dl
rm
ghash.h
381
0644
edit
dl
rm
hash.h
33386
0644
edit
dl
rm
hash_info.h
1153
0644
edit
dl
rm
hmac.h
173
0644
edit
dl
rm
if_alg.h
7128
0644
edit
dl
rm
kpp.h
9926
0644
edit
dl
rm
md5.h
497
0644
edit
dl
rm
morus640_glue.h
4585
0644
edit
dl
rm
morus1280_glue.h
4647
0644
edit
dl
rm
morus_common.h
720
0644
edit
dl
rm
null.h
341
0644
edit
dl
rm
padlock.h
649
0644
edit
dl
rm
pcrypt.h
1435
0644
edit
dl
rm
pkcs7.h
1388
0644
edit
dl
rm
poly1305.h
920
0644
edit
dl
rm
public_key.h
2126
0644
edit
dl
rm
rng.h
6820
0644
edit
dl
rm
scatterwalk.h
4732
0644
edit
dl
rm
serpent.h
712
0644
edit
dl
rm
sha.h
4350
0644
edit
dl
rm
sha1_base.h
2532
0644
edit
dl
rm
sha3.h
879
0644
edit
dl
rm
sha256_base.h
2629
0644
edit
dl
rm
sha512_base.h
3271
0644
edit
dl
rm
skcipher.h
23381
0644
edit
dl
rm
sm3.h
833
0644
edit
dl
rm
sm3_base.h
3024
0644
edit
dl
rm
sm4.h
754
0644
edit
dl
rm
speck.h
1357
0644
edit
dl
rm
twofish.h
755
0644
edit
dl
rm
xts.h
1385
0644
edit
dl
rm
Edit:
/usr/src/kernels/4.18.0-553.121.1.el8_10.x86_64/include/crypto/speck.h
(1357B)
// SPDX-License-Identifier: GPL-2.0 /* * Common values for the Speck algorithm */ #ifndef _CRYPTO_SPECK_H #define _CRYPTO_SPECK_H #include <linux/types.h> /* Speck128 */ #define SPECK128_BLOCK_SIZE 16 #define SPECK128_128_KEY_SIZE 16 #define SPECK128_128_NROUNDS 32 #define SPECK128_192_KEY_SIZE 24 #define SPECK128_192_NROUNDS 33 #define SPECK128_256_KEY_SIZE 32 #define SPECK128_256_NROUNDS 34 struct speck128_tfm_ctx { u64 round_keys[SPECK128_256_NROUNDS]; int nrounds; }; void crypto_speck128_encrypt(const struct speck128_tfm_ctx *ctx, u8 *out, const u8 *in); void crypto_speck128_decrypt(const struct speck128_tfm_ctx *ctx, u8 *out, const u8 *in); int crypto_speck128_setkey(struct speck128_tfm_ctx *ctx, const u8 *key, unsigned int keysize); /* Speck64 */ #define SPECK64_BLOCK_SIZE 8 #define SPECK64_96_KEY_SIZE 12 #define SPECK64_96_NROUNDS 26 #define SPECK64_128_KEY_SIZE 16 #define SPECK64_128_NROUNDS 27 struct speck64_tfm_ctx { u32 round_keys[SPECK64_128_NROUNDS]; int nrounds; }; void crypto_speck64_encrypt(const struct speck64_tfm_ctx *ctx, u8 *out, const u8 *in); void crypto_speck64_decrypt(const struct speck64_tfm_ctx *ctx, u8 *out, const u8 *in); int crypto_speck64_setkey(struct speck64_tfm_ctx *ctx, const u8 *key, unsigned int keysize); #endif /* _CRYPTO_SPECK_H */
Save
cmd:
run