Home
last modified time | relevance | path

Searched refs:crypto_skcipher (Results 1 – 25 of 41) sorted by relevance

12

/linux-4.19.296/include/crypto/
Dskcipher.h55 struct crypto_skcipher { struct
56 int (*setkey)(struct crypto_skcipher *tfm, const u8 *key, argument
126 int (*setkey)(struct crypto_skcipher *tfm, const u8 *key,
130 int (*init)(struct crypto_skcipher *tfm);
131 void (*exit)(struct crypto_skcipher *tfm);
177 static inline struct crypto_skcipher *__crypto_skcipher_cast( in __crypto_skcipher_cast()
180 return container_of(tfm, struct crypto_skcipher, base); in __crypto_skcipher_cast()
197 struct crypto_skcipher *crypto_alloc_skcipher(const char *alg_name,
201 struct crypto_skcipher *tfm) in crypto_skcipher_tfm()
212 static inline void crypto_free_skcipher(struct crypto_skcipher *tfm) in crypto_free_skcipher()
[all …]
Dcbc.h21 struct skcipher_walk *walk, struct crypto_skcipher *tfm, in crypto_cbc_encrypt_segment()
22 void (*fn)(struct crypto_skcipher *, const u8 *, u8 *)) in crypto_cbc_encrypt_segment() argument
43 struct skcipher_walk *walk, struct crypto_skcipher *tfm, in crypto_cbc_encrypt_inplace()
44 void (*fn)(struct crypto_skcipher *, const u8 *, u8 *)) in crypto_cbc_encrypt_inplace() argument
65 void (*fn)(struct crypto_skcipher *, in crypto_cbc_encrypt_walk() argument
68 struct crypto_skcipher *tfm = crypto_skcipher_reqtfm(req); in crypto_cbc_encrypt_walk()
86 struct skcipher_walk *walk, struct crypto_skcipher *tfm, in crypto_cbc_decrypt_segment()
87 void (*fn)(struct crypto_skcipher *, const u8 *, u8 *)) in crypto_cbc_decrypt_segment() argument
110 struct skcipher_walk *walk, struct crypto_skcipher *tfm, in crypto_cbc_decrypt_inplace()
111 void (*fn)(struct crypto_skcipher *, const u8 *, u8 *)) in crypto_cbc_decrypt_inplace() argument
[all …]
Dcryptd.h39 struct crypto_skcipher base;
44 struct crypto_skcipher *cryptd_skcipher_child(struct cryptd_skcipher *tfm);
Dnull.h12 struct crypto_skcipher *crypto_get_default_null_skcipher(void);
Dchacha20.h23 int crypto_chacha20_setkey(struct crypto_skcipher *tfm, const u8 *key,
Dxts.h37 static inline int xts_verify_key(struct crypto_skcipher *tfm, in xts_verify_key()
/linux-4.19.296/include/linux/sunrpc/
Dgss_krb5.h74 u32 (*encrypt) (struct crypto_skcipher *tfm,
77 u32 (*decrypt) (struct crypto_skcipher *tfm,
101 struct crypto_skcipher *enc;
102 struct crypto_skcipher *seq;
103 struct crypto_skcipher *acceptor_enc;
104 struct crypto_skcipher *initiator_enc;
105 struct crypto_skcipher *acceptor_enc_aux;
106 struct crypto_skcipher *initiator_enc_aux;
265 krb5_encrypt(struct crypto_skcipher *key,
269 krb5_decrypt(struct crypto_skcipher *key,
[all …]
/linux-4.19.296/crypto/
Dcfb.c36 static unsigned int crypto_cfb_bsize(struct crypto_skcipher *tfm) in crypto_cfb_bsize()
44 static void crypto_cfb_encrypt_one(struct crypto_skcipher *tfm, in crypto_cfb_encrypt_one()
54 struct crypto_skcipher *tfm) in crypto_cfb_final()
69 struct crypto_skcipher *tfm) in crypto_cfb_encrypt_segment()
92 struct crypto_skcipher *tfm) in crypto_cfb_encrypt_inplace()
115 struct crypto_skcipher *tfm = crypto_skcipher_reqtfm(req); in crypto_cfb_encrypt()
139 struct crypto_skcipher *tfm) in crypto_cfb_decrypt_segment()
162 struct crypto_skcipher *tfm) in crypto_cfb_decrypt_inplace()
181 struct crypto_skcipher *tfm) in crypto_cfb_decrypt_blocks()
189 static int crypto_cfb_setkey(struct crypto_skcipher *parent, const u8 *key, in crypto_cfb_setkey()
[all …]
Dsimd.c43 static int simd_skcipher_setkey(struct crypto_skcipher *tfm, const u8 *key, in simd_skcipher_setkey()
47 struct crypto_skcipher *child = &ctx->cryptd_tfm->base; in simd_skcipher_setkey()
61 struct crypto_skcipher *tfm = crypto_skcipher_reqtfm(req); in simd_skcipher_encrypt()
64 struct crypto_skcipher *child; in simd_skcipher_encrypt()
82 struct crypto_skcipher *tfm = crypto_skcipher_reqtfm(req); in simd_skcipher_decrypt()
85 struct crypto_skcipher *child; in simd_skcipher_decrypt()
101 static void simd_skcipher_exit(struct crypto_skcipher *tfm) in simd_skcipher_exit()
108 static int simd_skcipher_init(struct crypto_skcipher *tfm) in simd_skcipher_init()
141 struct crypto_skcipher *tfm; in simd_skcipher_create_compat()
Dcts.c56 struct crypto_skcipher *child;
68 struct crypto_skcipher *tfm = crypto_skcipher_reqtfm(req); in crypto_cts_reqctx_space()
70 struct crypto_skcipher *child = ctx->child; in crypto_cts_reqctx_space()
76 static int crypto_cts_setkey(struct crypto_skcipher *parent, const u8 *key, in crypto_cts_setkey()
80 struct crypto_skcipher *child = ctx->child; in crypto_cts_setkey()
105 struct crypto_skcipher *tfm = crypto_skcipher_reqtfm(req); in cts_cbc_encrypt()
149 struct crypto_skcipher *tfm = crypto_skcipher_reqtfm(req); in crypto_cts_encrypt()
184 struct crypto_skcipher *tfm = crypto_skcipher_reqtfm(req); in cts_cbc_decrypt()
241 struct crypto_skcipher *tfm = crypto_skcipher_reqtfm(req); in crypto_cts_decrypt()
283 static int crypto_cts_init_tfm(struct crypto_skcipher *tfm) in crypto_cts_init_tfm()
[all …]
Dcbc.c27 static int crypto_cbc_setkey(struct crypto_skcipher *parent, const u8 *key, in crypto_cbc_setkey()
43 static inline void crypto_cbc_encrypt_one(struct crypto_skcipher *tfm, in crypto_cbc_encrypt_one()
56 static inline void crypto_cbc_decrypt_one(struct crypto_skcipher *tfm, in crypto_cbc_decrypt_one()
66 struct crypto_skcipher *tfm = crypto_skcipher_reqtfm(req); in crypto_cbc_decrypt()
81 static int crypto_cbc_init_tfm(struct crypto_skcipher *tfm) in crypto_cbc_init_tfm()
96 static void crypto_cbc_exit_tfm(struct crypto_skcipher *tfm) in crypto_cbc_exit_tfm()
Dskcipher.c456 struct crypto_skcipher *tfm = crypto_skcipher_reqtfm(req); in skcipher_walk_skcipher()
596 static void skcipher_set_needkey(struct crypto_skcipher *tfm) in skcipher_set_needkey()
602 static int skcipher_setkey_blkcipher(struct crypto_skcipher *tfm, in skcipher_setkey_blkcipher()
630 struct crypto_skcipher *tfm = crypto_skcipher_reqtfm(req); in skcipher_crypt_blkcipher()
644 struct crypto_skcipher *skcipher = crypto_skcipher_reqtfm(req); in skcipher_encrypt_blkcipher()
653 struct crypto_skcipher *skcipher = crypto_skcipher_reqtfm(req); in skcipher_decrypt_blkcipher()
670 struct crypto_skcipher *skcipher = __crypto_skcipher_cast(tfm); in crypto_init_skcipher_ops_blkcipher()
701 static int skcipher_setkey_ablkcipher(struct crypto_skcipher *tfm, in skcipher_setkey_ablkcipher()
728 struct crypto_skcipher *tfm = crypto_skcipher_reqtfm(req); in skcipher_crypt_ablkcipher()
743 struct crypto_skcipher *skcipher = crypto_skcipher_reqtfm(req); in skcipher_encrypt_ablkcipher()
[all …]
Dctr.c29 struct crypto_skcipher *child;
260 static int crypto_rfc3686_setkey(struct crypto_skcipher *parent, in crypto_rfc3686_setkey()
264 struct crypto_skcipher *child = ctx->child; in crypto_rfc3686_setkey()
288 struct crypto_skcipher *tfm = crypto_skcipher_reqtfm(req); in crypto_rfc3686_crypt()
290 struct crypto_skcipher *child = ctx->child; in crypto_rfc3686_crypt()
314 static int crypto_rfc3686_init_tfm(struct crypto_skcipher *tfm) in crypto_rfc3686_init_tfm()
319 struct crypto_skcipher *cipher; in crypto_rfc3686_init_tfm()
338 static void crypto_rfc3686_exit_tfm(struct crypto_skcipher *tfm) in crypto_rfc3686_exit_tfm()
Dalgif_skcipher.c48 struct crypto_skcipher *tfm = pask->private; in skcipher_sendmsg()
62 struct crypto_skcipher *tfm = pask->private; in _skcipher_recvmsg()
213 struct crypto_skcipher *tfm; in skcipher_check_key()
322 struct crypto_skcipher *tfm = pask->private; in skcipher_sock_destruct()
334 struct crypto_skcipher *tfm = private; in skcipher_accept_parent_nokey()
368 struct crypto_skcipher *tfm = private; in skcipher_accept_parent()
Dpcbc.c30 static int crypto_pcbc_setkey(struct crypto_skcipher *parent, const u8 *key, in crypto_pcbc_setkey()
92 struct crypto_skcipher *tfm = crypto_skcipher_reqtfm(req); in crypto_pcbc_encrypt()
160 struct crypto_skcipher *tfm = crypto_skcipher_reqtfm(req); in crypto_pcbc_decrypt()
182 static int crypto_pcbc_init_tfm(struct crypto_skcipher *tfm) in crypto_pcbc_init_tfm()
197 static void crypto_pcbc_exit_tfm(struct crypto_skcipher *tfm) in crypto_pcbc_exit_tfm()
Dcrypto_null.c29 static struct crypto_skcipher *crypto_default_null_skcipher;
155 struct crypto_skcipher *crypto_get_default_null_skcipher(void) in crypto_get_default_null_skcipher()
157 struct crypto_skcipher *tfm; in crypto_get_default_null_skcipher()
Dlrw.c37 struct crypto_skcipher *child;
86 static int setkey(struct crypto_skcipher *parent, const u8 *key, in setkey()
90 struct crypto_skcipher *child = ctx->child; in setkey()
207 struct crypto_skcipher *tfm = crypto_skcipher_reqtfm(req); in pre_crypt()
428 static int init_tfm(struct crypto_skcipher *tfm) in init_tfm()
433 struct crypto_skcipher *cipher; in init_tfm()
447 static void exit_tfm(struct crypto_skcipher *tfm) in exit_tfm()
Dcryptd.c79 struct crypto_skcipher *child;
448 static int cryptd_skcipher_setkey(struct crypto_skcipher *parent, in cryptd_skcipher_setkey()
452 struct crypto_skcipher *child = ctx->child; in cryptd_skcipher_setkey()
466 struct crypto_skcipher *tfm = crypto_skcipher_reqtfm(req); in cryptd_skcipher_complete()
484 struct crypto_skcipher *tfm = crypto_skcipher_reqtfm(req); in cryptd_skcipher_encrypt()
486 struct crypto_skcipher *child = ctx->child; in cryptd_skcipher_encrypt()
512 struct crypto_skcipher *tfm = crypto_skcipher_reqtfm(req); in cryptd_skcipher_decrypt()
514 struct crypto_skcipher *child = ctx->child; in cryptd_skcipher_decrypt()
539 struct crypto_skcipher *tfm = crypto_skcipher_reqtfm(req); in cryptd_skcipher_enqueue()
559 static int cryptd_skcipher_init_tfm(struct crypto_skcipher *tfm) in cryptd_skcipher_init_tfm()
[all …]
Dxts.c32 struct crypto_skcipher *child;
58 static int setkey(struct crypto_skcipher *parent, const u8 *key, in setkey()
62 struct crypto_skcipher *child; in setkey()
360 static int init_tfm(struct crypto_skcipher *tfm) in init_tfm()
365 struct crypto_skcipher *child; in init_tfm()
388 static void exit_tfm(struct crypto_skcipher *tfm) in exit_tfm()
Dauthenc.c35 struct crypto_skcipher *enc;
36 struct crypto_skcipher *null;
94 struct crypto_skcipher *enc = ctx->enc; in crypto_authenc_setkey()
214 struct crypto_skcipher *enc = ctx->enc; in crypto_authenc_encrypt()
328 struct crypto_skcipher *enc; in crypto_authenc_init_tfm()
329 struct crypto_skcipher *null; in crypto_authenc_init_tfm()
Dauthencesn.c38 struct crypto_skcipher *enc;
39 struct crypto_skcipher *null;
68 struct crypto_skcipher *enc = ctx->enc; in crypto_authenc_esn_setkey()
203 struct crypto_skcipher *enc = ctx->enc; in crypto_authenc_esn_encrypt()
343 struct crypto_skcipher *enc; in crypto_authenc_esn_init_tfm()
344 struct crypto_skcipher *null; in crypto_authenc_esn_init_tfm()
Dchacha20_generic.c60 int crypto_chacha20_setkey(struct crypto_skcipher *tfm, const u8 *key, in crypto_chacha20_setkey()
78 struct crypto_skcipher *tfm = crypto_skcipher_reqtfm(req); in crypto_chacha20_crypt()
Dalgif_aead.c45 struct crypto_skcipher *null_tfm;
78 static int crypto_aead_copy_sgl(struct crypto_skcipher *null_tfm, in crypto_aead_copy_sgl()
102 struct crypto_skcipher *null_tfm = aeadc->null_tfm; in _aead_recvmsg()
479 struct crypto_skcipher *null_tfm; in aead_bind()
/linux-4.19.296/include/crypto/internal/
Dskcipher.h82 struct crypto_skcipher *skcipher) in skcipher_alg_instance()
124 static inline struct crypto_skcipher *crypto_spawn_skcipher( in crypto_spawn_skcipher()
131 struct crypto_skcipher *skcipher, unsigned int reqsize) in crypto_skcipher_set_reqsize()
169 static inline void *crypto_skcipher_ctx(struct crypto_skcipher *tfm) in crypto_skcipher_ctx()
Dgeniv.h23 struct crypto_skcipher *sknull;

12