/usr/src/kernels/4.18.0-553.157.1.el8_10.x86_64/include/crypto
NameSizeModeActions
internal/-0755rm
acompress.h81200644editdlrm
aead.h187290644editdlrm
aes.h10580644editdlrm
akcipher.h119890644editdlrm
algapi.h121630644editdlrm
arc4.h4840644editdlrm
authenc.h8450644editdlrm
b128ops.h24710644editdlrm
blowfish.h4150644editdlrm
cast5.h5900644editdlrm
cast6.h6360644editdlrm
cast_common.h2320644editdlrm
cbc.h35620644editdlrm
chacha20.h6380644editdlrm
cryptd.h25620644editdlrm
crypto_wq.h1610644editdlrm
ctr.h16660644editdlrm
des.h14030644editdlrm
dh.h27840644editdlrm
drbg.h91600644editdlrm
ecdh.h27330644editdlrm
engine.h42020644editdlrm
gcm.h1400644editdlrm
gf128mul.h96470644editdlrm
ghash.h3810644editdlrm
hash.h333860644editdlrm
hash_info.h11530644editdlrm
hmac.h1730644editdlrm
if_alg.h71890644editdlrm
kpp.h99260644editdlrm
md5.h4970644editdlrm
morus640_glue.h45850644editdlrm
morus1280_glue.h46470644editdlrm
morus_common.h7200644editdlrm
null.h3460644editdlrm
padlock.h6490644editdlrm
pcrypt.h14350644editdlrm
pkcs7.h13880644editdlrm
poly1305.h9200644editdlrm
public_key.h21260644editdlrm
rng.h68200644editdlrm
scatterwalk.h37550644editdlrm
serpent.h7120644editdlrm
sha.h43500644editdlrm
sha1_base.h25320644editdlrm
sha3.h8790644editdlrm
sha256_base.h26290644editdlrm
sha512_base.h32710644editdlrm
skcipher.h233810644editdlrm
sm3.h8330644editdlrm
sm3_base.h30240644editdlrm
sm4.h7540644editdlrm
speck.h13570644editdlrm
twofish.h7550644editdlrm
xts.h13850644editdlrm
Edit: /usr/src/kernels/4.18.0-553.157.1.el8_10.x86_64/include/crypto/sm4.h (754B)
/* SPDX-License-Identifier: GPL-2.0 */ /* * Common values for the SM4 algorithm * Copyright (C) 2018 ARM Limited or its affiliates. */ #ifndef _CRYPTO_SM4_H #define _CRYPTO_SM4_H #include #include #define SM4_KEY_SIZE 16 #define SM4_BLOCK_SIZE 16 #define SM4_RKEY_WORDS 32 struct crypto_sm4_ctx { u32 rkey_enc[SM4_RKEY_WORDS]; u32 rkey_dec[SM4_RKEY_WORDS]; }; int crypto_sm4_set_key(struct crypto_tfm *tfm, const u8 *in_key, unsigned int key_len); int crypto_sm4_expand_key(struct crypto_sm4_ctx *ctx, const u8 *in_key, unsigned int key_len); void crypto_sm4_encrypt(struct crypto_tfm *tfm, u8 *out, const u8 *in); void crypto_sm4_decrypt(struct crypto_tfm *tfm, u8 *out, const u8 *in); #endif