Home
last modified time | relevance | path

Searched refs:crypto_tfm (Results 1 – 25 of 76) sorted by relevance

1234

/linux-4.19.296/include/linux/
Dcrypto.h158 struct crypto_tfm;
175 struct crypto_tfm *tfm;
200 struct crypto_tfm *tfm;
201 void (*crfn)(struct crypto_tfm *tfm, u8 *dst, const u8 *src);
293 int (*setkey)(struct crypto_tfm *tfm, const u8 *key,
359 int (*cia_setkey)(struct crypto_tfm *tfm, const u8 *key,
361 void (*cia_encrypt)(struct crypto_tfm *tfm, u8 *dst, const u8 *src);
362 void (*cia_decrypt)(struct crypto_tfm *tfm, u8 *dst, const u8 *src);
366 int (*coa_compress)(struct crypto_tfm *tfm, const u8 *src,
368 int (*coa_decompress)(struct crypto_tfm *tfm, const u8 *src,
[all …]
/linux-4.19.296/crypto/
Dcipher.c24 static int setkey_unaligned(struct crypto_tfm *tfm, const u8 *key, in setkey_unaligned()
47 static int setkey(struct crypto_tfm *tfm, const u8 *key, unsigned int keylen) in setkey()
64 static void cipher_crypt_unaligned(void (*fn)(struct crypto_tfm *, u8 *, in cipher_crypt_unaligned() argument
66 struct crypto_tfm *tfm, in cipher_crypt_unaligned()
79 static void cipher_encrypt_unaligned(struct crypto_tfm *tfm, in cipher_encrypt_unaligned()
93 static void cipher_decrypt_unaligned(struct crypto_tfm *tfm, in cipher_decrypt_unaligned()
107 int crypto_init_cipher_ops(struct crypto_tfm *tfm) in crypto_init_cipher_ops()
Dcompress.c20 static int crypto_compress(struct crypto_tfm *tfm, in crypto_compress()
28 static int crypto_decompress(struct crypto_tfm *tfm, in crypto_decompress()
36 int crypto_init_compress_ops(struct crypto_tfm *tfm) in crypto_init_compress_ops()
D842.c51 static int crypto842_init(struct crypto_tfm *tfm) in crypto842_init()
67 static void crypto842_exit(struct crypto_tfm *tfm) in crypto842_exit()
74 static int crypto842_compress(struct crypto_tfm *tfm, in crypto842_compress()
90 static int crypto842_decompress(struct crypto_tfm *tfm, in crypto842_decompress()
Dtea.c47 static int tea_setkey(struct crypto_tfm *tfm, const u8 *in_key, in tea_setkey()
62 static void tea_encrypt(struct crypto_tfm *tfm, u8 *dst, const u8 *src) in tea_encrypt()
90 static void tea_decrypt(struct crypto_tfm *tfm, u8 *dst, const u8 *src) in tea_decrypt()
120 static int xtea_setkey(struct crypto_tfm *tfm, const u8 *in_key, in xtea_setkey()
135 static void xtea_encrypt(struct crypto_tfm *tfm, u8 *dst, const u8 *src) in xtea_encrypt()
156 static void xtea_decrypt(struct crypto_tfm *tfm, u8 *dst, const u8 *src) in xtea_decrypt()
179 static void xeta_encrypt(struct crypto_tfm *tfm, u8 *dst, const u8 *src) in xeta_encrypt()
200 static void xeta_decrypt(struct crypto_tfm *tfm, u8 *dst, const u8 *src) in xeta_decrypt()
Dlz4hc.c42 static int lz4hc_init(struct crypto_tfm *tfm) in lz4hc_init()
58 static void lz4hc_exit(struct crypto_tfm *tfm) in lz4hc_exit()
85 static int lz4hc_compress_crypto(struct crypto_tfm *tfm, const u8 *src, in lz4hc_compress_crypto()
114 static int lz4hc_decompress_crypto(struct crypto_tfm *tfm, const u8 *src, in lz4hc_decompress_crypto()
Dlzo.c42 static int lzo_init(struct crypto_tfm *tfm) in lzo_init()
58 static void lzo_exit(struct crypto_tfm *tfm) in lzo_exit()
80 static int lzo_compress(struct crypto_tfm *tfm, const u8 *src, in lzo_compress()
110 static int lzo_decompress(struct crypto_tfm *tfm, const u8 *src, in lzo_decompress()
Dlz4.c43 static int lz4_init(struct crypto_tfm *tfm) in lz4_init()
59 static void lz4_exit(struct crypto_tfm *tfm) in lz4_exit()
86 static int lz4_compress_crypto(struct crypto_tfm *tfm, const u8 *src, in lz4_compress_crypto()
113 static int lz4_decompress_crypto(struct crypto_tfm *tfm, const u8 *src, in lz4_decompress_crypto()
Dacompress.c61 static void crypto_acomp_exit_tfm(struct crypto_tfm *tfm) in crypto_acomp_exit_tfm()
69 static int crypto_acomp_init_tfm(struct crypto_tfm *tfm) in crypto_acomp_init_tfm()
123 struct crypto_tfm *tfm = crypto_acomp_tfm(acomp); in acomp_request_alloc()
137 struct crypto_tfm *tfm = crypto_acomp_tfm(acomp); in acomp_request_free()
Dapi.c297 static int crypto_init_ops(struct crypto_tfm *tfm, u32 type, u32 mask) in crypto_init_ops()
319 static void crypto_exit_ops(struct crypto_tfm *tfm) in crypto_exit_ops()
359 struct crypto_tfm *__crypto_alloc_tfm(struct crypto_alg *alg, u32 type, in __crypto_alloc_tfm()
362 struct crypto_tfm *tfm = NULL; in __crypto_alloc_tfm()
417 struct crypto_tfm *crypto_alloc_base(const char *alg_name, u32 type, u32 mask) in crypto_alloc_base()
419 struct crypto_tfm *tfm; in crypto_alloc_base()
455 struct crypto_tfm *tfm = NULL; in crypto_create_tfm()
467 tfm = (struct crypto_tfm *)(mem + tfmsize); in crypto_create_tfm()
570 void crypto_destroy_tfm(void *mem, struct crypto_tfm *tfm) in crypto_destroy_tfm()
Dinternal.h72 int crypto_init_cipher_ops(struct crypto_tfm *tfm);
73 int crypto_init_compress_ops(struct crypto_tfm *tfm);
82 struct crypto_tfm *__crypto_alloc_tfm(struct crypto_alg *alg, u32 type,
Decb.c25 static int crypto_ecb_setkey(struct crypto_tfm *parent, const u8 *key, in crypto_ecb_setkey()
44 void (*fn)(struct crypto_tfm *, u8 *, const u8 *)) in crypto_ecb_crypt() argument
97 static int crypto_ecb_init_tfm(struct crypto_tfm *tfm) in crypto_ecb_init_tfm()
112 static void crypto_ecb_exit_tfm(struct crypto_tfm *tfm) in crypto_ecb_exit_tfm()
Dscompress.c132 static int crypto_scomp_init_tfm(struct crypto_tfm *tfm) in crypto_scomp_init_tfm()
198 static void crypto_exit_scomp_ops_async(struct crypto_tfm *tfm) in crypto_exit_scomp_ops_async()
209 int crypto_init_scomp_ops_async(struct crypto_tfm *tfm) in crypto_init_scomp_ops_async()
239 struct crypto_tfm *tfm = crypto_acomp_tfm(acomp); in crypto_acomp_scomp_alloc_ctx()
258 struct crypto_tfm *tfm = crypto_acomp_tfm(acomp); in crypto_acomp_scomp_free_ctx()
Dzstd.c132 static int zstd_init(struct crypto_tfm *tfm) in zstd_init()
151 static void zstd_exit(struct crypto_tfm *tfm) in zstd_exit()
172 static int zstd_compress(struct crypto_tfm *tfm, const u8 *src, in zstd_compress()
200 static int zstd_decompress(struct crypto_tfm *tfm, const u8 *src, in zstd_decompress()
Dcrypto_null.c32 static int null_compress(struct crypto_tfm *tfm, const u8 *src, in null_compress()
68 static int null_setkey(struct crypto_tfm *tfm, const u8 *key, in null_setkey()
72 static void null_crypt(struct crypto_tfm *tfm, u8 *dst, const u8 *src) in null_crypt()
Dkhazad.c756 static int khazad_setkey(struct crypto_tfm *tfm, const u8 *in_key, in khazad_setkey()
837 static void khazad_encrypt(struct crypto_tfm *tfm, u8 *dst, const u8 *src) in khazad_encrypt()
843 static void khazad_decrypt(struct crypto_tfm *tfm, u8 *dst, const u8 *src) in khazad_decrypt()
Dsm4_generic.c156 int crypto_sm4_set_key(struct crypto_tfm *tfm, const u8 *in_key, in crypto_sm4_set_key()
193 void crypto_sm4_encrypt(struct crypto_tfm *tfm, u8 *out, const u8 *in) in crypto_sm4_encrypt()
203 void crypto_sm4_decrypt(struct crypto_tfm *tfm, u8 *out, const u8 *in) in crypto_sm4_decrypt()
/linux-4.19.296/include/crypto/
Dsm4.h23 int crypto_sm4_set_key(struct crypto_tfm *tfm, const u8 *in_key,
28 void crypto_sm4_encrypt(struct crypto_tfm *tfm, u8 *out, const u8 *in);
29 void crypto_sm4_decrypt(struct crypto_tfm *tfm, u8 *out, const u8 *in);
Dtwofish.h11 struct crypto_tfm;
23 int twofish_setkey(struct crypto_tfm *tfm, const u8 *key, unsigned int key_len);
Dacompress.h57 struct crypto_tfm base;
115 static inline struct crypto_tfm *crypto_acomp_tfm(struct crypto_acomp *tfm) in crypto_acomp_tfm()
125 static inline struct crypto_acomp *__crypto_acomp_tfm(struct crypto_tfm *tfm) in __crypto_acomp_tfm()
Dalgapi.h37 int (*init)(struct crypto_tfm *tfm, u32 type, u32 mask);
38 int (*init_tfm)(struct crypto_tfm *tfm);
160 struct crypto_tfm *crypto_spawn_tfm(struct crypto_spawn *spawn, u32 type,
195 int crypto_tfm_in_queue(struct crypto_queue *queue, struct crypto_tfm *tfm);
260 static inline void *crypto_tfm_ctx_aligned(struct crypto_tfm *tfm) in crypto_tfm_ctx_aligned()
267 struct crypto_tfm *tfm) in crypto_tfm_alg_instance()
Drng.h60 struct crypto_tfm base;
97 static inline struct crypto_tfm *crypto_rng_tfm(struct crypto_rng *tfm) in crypto_rng_tfm()
Dkpp.h48 struct crypto_tfm base;
112 static inline struct crypto_tfm *crypto_kpp_tfm(struct crypto_kpp *tfm) in crypto_kpp_tfm()
122 static inline struct crypto_kpp *__crypto_kpp_tfm(struct crypto_tfm *tfm) in __crypto_kpp_tfm()
Dakcipher.h48 struct crypto_tfm base;
133 static inline struct crypto_tfm *crypto_akcipher_tfm( in crypto_akcipher_tfm()
145 struct crypto_tfm *tfm) in __crypto_akcipher_tfm()
/linux-4.19.296/include/crypto/internal/
Dscompress.h21 struct crypto_tfm base;
50 static inline struct crypto_scomp *__crypto_scomp_tfm(struct crypto_tfm *tfm) in __crypto_scomp_tfm()
55 static inline struct crypto_tfm *crypto_scomp_tfm(struct crypto_scomp *tfm) in crypto_scomp_tfm()
97 int crypto_init_scomp_ops_async(struct crypto_tfm *tfm);

1234