Home
last modified time | relevance | path

Searched refs:tfm (Results 1 – 25 of 390) sorted by relevance

12345678910>>...16

/Linux-v4.19/include/linux/
Dcrypto.h175 struct crypto_tfm *tfm; member
194 struct crypto_blkcipher *tfm; member
200 struct crypto_tfm *tfm; member
201 void (*crfn)(struct crypto_tfm *tfm, u8 *dst, const u8 *src);
266 int (*setkey)(struct crypto_ablkcipher *tfm, const u8 *key,
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,
[all …]
/Linux-v4.19/include/crypto/
Dhash.h141 int (*setkey)(struct crypto_ahash *tfm, const u8 *key,
148 struct crypto_shash *tfm; member
187 int (*setkey)(struct crypto_shash *tfm, const u8 *key,
208 int (*setkey)(struct crypto_ahash *tfm, const u8 *key,
230 static inline struct crypto_ahash *__crypto_ahash_cast(struct crypto_tfm *tfm) in __crypto_ahash_cast() argument
232 return container_of(tfm, struct crypto_ahash, base); in __crypto_ahash_cast()
252 static inline struct crypto_tfm *crypto_ahash_tfm(struct crypto_ahash *tfm) in crypto_ahash_tfm() argument
254 return &tfm->base; in crypto_ahash_tfm()
261 static inline void crypto_free_ahash(struct crypto_ahash *tfm) in crypto_free_ahash() argument
263 crypto_destroy_tfm(tfm, crypto_ahash_tfm(tfm)); in crypto_free_ahash()
[all …]
Dskcipher.h56 int (*setkey)(struct crypto_skcipher *tfm, const u8 *key,
126 int (*setkey)(struct crypto_skcipher *tfm, const u8 *key,
130 int (*init)(struct crypto_skcipher *tfm);
131 void (*exit)(struct crypto_skcipher *tfm);
142 #define SKCIPHER_REQUEST_ON_STACK(name, tfm) \ argument
144 crypto_skcipher_reqsize(tfm)] CRYPTO_MINALIGN_ATTR; \
178 struct crypto_tfm *tfm) in __crypto_skcipher_cast() argument
180 return container_of(tfm, struct crypto_skcipher, base); in __crypto_skcipher_cast()
201 struct crypto_skcipher *tfm) in crypto_skcipher_tfm() argument
203 return &tfm->base; in crypto_skcipher_tfm()
[all …]
Dakcipher.h97 int (*set_pub_key)(struct crypto_akcipher *tfm, const void *key,
99 int (*set_priv_key)(struct crypto_akcipher *tfm, const void *key,
101 unsigned int (*max_size)(struct crypto_akcipher *tfm);
102 int (*init)(struct crypto_akcipher *tfm);
103 void (*exit)(struct crypto_akcipher *tfm);
134 struct crypto_akcipher *tfm) in crypto_akcipher_tfm() argument
136 return &tfm->base; in crypto_akcipher_tfm()
145 struct crypto_tfm *tfm) in __crypto_akcipher_tfm() argument
147 return container_of(tfm, struct crypto_akcipher, base); in __crypto_akcipher_tfm()
151 struct crypto_akcipher *tfm) in crypto_akcipher_alg() argument
[all …]
Dkpp.h77 int (*set_secret)(struct crypto_kpp *tfm, const void *buffer,
82 unsigned int (*max_size)(struct crypto_kpp *tfm);
84 int (*init)(struct crypto_kpp *tfm);
85 void (*exit)(struct crypto_kpp *tfm);
112 static inline struct crypto_tfm *crypto_kpp_tfm(struct crypto_kpp *tfm) in crypto_kpp_tfm() argument
114 return &tfm->base; in crypto_kpp_tfm()
122 static inline struct crypto_kpp *__crypto_kpp_tfm(struct crypto_tfm *tfm) in __crypto_kpp_tfm() argument
124 return container_of(tfm, struct crypto_kpp, base); in __crypto_kpp_tfm()
127 static inline struct kpp_alg *crypto_kpp_alg(struct crypto_kpp *tfm) in crypto_kpp_alg() argument
129 return __crypto_kpp_alg(crypto_kpp_tfm(tfm)->__crt_alg); in crypto_kpp_alg()
[all …]
Daead.h137 int (*setkey)(struct crypto_aead *tfm, const u8 *key,
139 int (*setauthsize)(struct crypto_aead *tfm, unsigned int authsize);
142 int (*init)(struct crypto_aead *tfm);
143 void (*exit)(struct crypto_aead *tfm);
161 static inline struct crypto_aead *__crypto_aead_cast(struct crypto_tfm *tfm) in __crypto_aead_cast() argument
163 return container_of(tfm, struct crypto_aead, base); in __crypto_aead_cast()
182 static inline struct crypto_tfm *crypto_aead_tfm(struct crypto_aead *tfm) in crypto_aead_tfm() argument
184 return &tfm->base; in crypto_aead_tfm()
191 static inline void crypto_free_aead(struct crypto_aead *tfm) in crypto_free_aead() argument
193 crypto_destroy_tfm(tfm, crypto_aead_tfm(tfm)); in crypto_free_aead()
[all …]
Dcryptd.h26 struct crypto_ablkcipher *tfm) in __cryptd_ablkcipher_cast() argument
28 return (struct cryptd_ablkcipher *)tfm; in __cryptd_ablkcipher_cast()
34 struct crypto_blkcipher *cryptd_ablkcipher_child(struct cryptd_ablkcipher *tfm);
35 bool cryptd_ablkcipher_queued(struct cryptd_ablkcipher *tfm);
36 void cryptd_free_ablkcipher(struct cryptd_ablkcipher *tfm);
44 struct crypto_skcipher *cryptd_skcipher_child(struct cryptd_skcipher *tfm);
46 bool cryptd_skcipher_queued(struct cryptd_skcipher *tfm);
47 void cryptd_free_skcipher(struct cryptd_skcipher *tfm);
54 struct crypto_ahash *tfm) in __cryptd_ahash_cast() argument
56 return (struct cryptd_ahash *)tfm; in __cryptd_ahash_cast()
[all …]
Drng.h47 int (*generate)(struct crypto_rng *tfm,
50 int (*seed)(struct crypto_rng *tfm, const u8 *seed, unsigned int slen);
51 void (*set_ent)(struct crypto_rng *tfm, const u8 *data,
97 static inline struct crypto_tfm *crypto_rng_tfm(struct crypto_rng *tfm) in crypto_rng_tfm() argument
99 return &tfm->base; in crypto_rng_tfm()
110 static inline struct rng_alg *crypto_rng_alg(struct crypto_rng *tfm) in crypto_rng_alg() argument
112 return container_of(crypto_rng_tfm(tfm)->__crt_alg, in crypto_rng_alg()
120 static inline void crypto_free_rng(struct crypto_rng *tfm) in crypto_free_rng() argument
122 crypto_destroy_tfm(tfm, crypto_rng_tfm(tfm)); in crypto_free_rng()
139 static inline int crypto_rng_generate(struct crypto_rng *tfm, in crypto_rng_generate() argument
[all …]
Dacompress.h85 int (*init)(struct crypto_acomp *tfm);
86 void (*exit)(struct crypto_acomp *tfm);
115 static inline struct crypto_tfm *crypto_acomp_tfm(struct crypto_acomp *tfm) in crypto_acomp_tfm() argument
117 return &tfm->base; in crypto_acomp_tfm()
125 static inline struct crypto_acomp *__crypto_acomp_tfm(struct crypto_tfm *tfm) in __crypto_acomp_tfm() argument
127 return container_of(tfm, struct crypto_acomp, base); in __crypto_acomp_tfm()
130 static inline struct acomp_alg *crypto_acomp_alg(struct crypto_acomp *tfm) in crypto_acomp_alg() argument
132 return __crypto_acomp_alg(crypto_acomp_tfm(tfm)->__crt_alg); in crypto_acomp_alg()
135 static inline unsigned int crypto_acomp_reqsize(struct crypto_acomp *tfm) in crypto_acomp_reqsize() argument
137 return tfm->reqsize; in crypto_acomp_reqsize()
[all …]
Dcbc.h21 struct skcipher_walk *walk, struct crypto_skcipher *tfm, in crypto_cbc_encrypt_segment() argument
24 unsigned int bsize = crypto_skcipher_blocksize(tfm); in crypto_cbc_encrypt_segment()
32 fn(tfm, iv, dst); in crypto_cbc_encrypt_segment()
43 struct skcipher_walk *walk, struct crypto_skcipher *tfm, in crypto_cbc_encrypt_inplace() argument
46 unsigned int bsize = crypto_skcipher_blocksize(tfm); in crypto_cbc_encrypt_inplace()
53 fn(tfm, src, src); in crypto_cbc_encrypt_inplace()
68 struct crypto_skcipher *tfm = crypto_skcipher_reqtfm(req); in crypto_cbc_encrypt_walk() local
76 err = crypto_cbc_encrypt_inplace(&walk, tfm, fn); in crypto_cbc_encrypt_walk()
78 err = crypto_cbc_encrypt_segment(&walk, tfm, fn); in crypto_cbc_encrypt_walk()
86 struct skcipher_walk *walk, struct crypto_skcipher *tfm, in crypto_cbc_decrypt_segment() argument
[all …]
/Linux-v4.19/include/crypto/internal/
Dscompress.h34 void *(*alloc_ctx)(struct crypto_scomp *tfm);
35 void (*free_ctx)(struct crypto_scomp *tfm, void *ctx);
36 int (*compress)(struct crypto_scomp *tfm, const u8 *src,
39 int (*decompress)(struct crypto_scomp *tfm, const u8 *src,
50 static inline struct crypto_scomp *__crypto_scomp_tfm(struct crypto_tfm *tfm) in __crypto_scomp_tfm() argument
52 return container_of(tfm, struct crypto_scomp, base); in __crypto_scomp_tfm()
55 static inline struct crypto_tfm *crypto_scomp_tfm(struct crypto_scomp *tfm) in crypto_scomp_tfm() argument
57 return &tfm->base; in crypto_scomp_tfm()
60 static inline void crypto_free_scomp(struct crypto_scomp *tfm) in crypto_free_scomp() argument
62 crypto_destroy_tfm(tfm, crypto_scomp_tfm(tfm)); in crypto_free_scomp()
[all …]
/Linux-v4.19/crypto/
Dcipher.c24 static int setkey_unaligned(struct crypto_tfm *tfm, const u8 *key, in setkey_unaligned() argument
27 struct cipher_alg *cia = &tfm->__crt_alg->cra_cipher; in setkey_unaligned()
28 unsigned long alignmask = crypto_tfm_alg_alignmask(tfm); in setkey_unaligned()
40 ret = cia->cia_setkey(tfm, alignbuffer, keylen); in setkey_unaligned()
47 static int setkey(struct crypto_tfm *tfm, const u8 *key, unsigned int keylen) in setkey() argument
49 struct cipher_alg *cia = &tfm->__crt_alg->cra_cipher; in setkey()
50 unsigned long alignmask = crypto_tfm_alg_alignmask(tfm); in setkey()
52 tfm->crt_flags &= ~CRYPTO_TFM_RES_MASK; in setkey()
54 tfm->crt_flags |= CRYPTO_TFM_RES_BAD_KEY_LEN; in setkey()
59 return setkey_unaligned(tfm, key, keylen); in setkey()
[all …]
Dcryptd.c148 refcnt = crypto_tfm_ctx(request->tfm); in cryptd_enqueue_request()
199 static inline struct cryptd_queue *cryptd_get_queue(struct crypto_tfm *tfm) in cryptd_get_queue() argument
201 struct crypto_instance *inst = crypto_tfm_alg_instance(tfm); in cryptd_get_queue()
245 struct crypto_ablkcipher *tfm; in cryptd_blkcipher_crypt() local
254 desc.tfm = child; in cryptd_blkcipher_crypt()
263 tfm = crypto_ablkcipher_reqtfm(req); in cryptd_blkcipher_crypt()
264 ctx = crypto_ablkcipher_ctx(tfm); in cryptd_blkcipher_crypt()
272 crypto_free_ablkcipher(tfm); in cryptd_blkcipher_crypt()
277 struct cryptd_blkcipher_ctx *ctx = crypto_tfm_ctx(req->tfm); in cryptd_blkcipher_encrypt()
286 struct cryptd_blkcipher_ctx *ctx = crypto_tfm_ctx(req->tfm); in cryptd_blkcipher_decrypt()
[all …]
Dcfb.c36 static unsigned int crypto_cfb_bsize(struct crypto_skcipher *tfm) in crypto_cfb_bsize() argument
38 struct crypto_cfb_ctx *ctx = crypto_skcipher_ctx(tfm); in crypto_cfb_bsize()
44 static void crypto_cfb_encrypt_one(struct crypto_skcipher *tfm, in crypto_cfb_encrypt_one() argument
47 struct crypto_cfb_ctx *ctx = crypto_skcipher_ctx(tfm); in crypto_cfb_encrypt_one()
54 struct crypto_skcipher *tfm) in crypto_cfb_final() argument
56 const unsigned long alignmask = crypto_skcipher_alignmask(tfm); in crypto_cfb_final()
64 crypto_cfb_encrypt_one(tfm, iv, stream); in crypto_cfb_final()
69 struct crypto_skcipher *tfm) in crypto_cfb_encrypt_segment() argument
71 const unsigned int bsize = crypto_cfb_bsize(tfm); in crypto_cfb_encrypt_segment()
78 crypto_cfb_encrypt_one(tfm, iv, dst); in crypto_cfb_encrypt_segment()
[all …]
Dapi.c297 static int crypto_init_ops(struct crypto_tfm *tfm, u32 type, u32 mask) in crypto_init_ops() argument
299 const struct crypto_type *type_obj = tfm->__crt_alg->cra_type; in crypto_init_ops()
302 return type_obj->init(tfm, type, mask); in crypto_init_ops()
304 switch (crypto_tfm_alg_type(tfm)) { in crypto_init_ops()
306 return crypto_init_cipher_ops(tfm); in crypto_init_ops()
309 return crypto_init_compress_ops(tfm); in crypto_init_ops()
319 static void crypto_exit_ops(struct crypto_tfm *tfm) in crypto_exit_ops() argument
321 const struct crypto_type *type = tfm->__crt_alg->cra_type; in crypto_exit_ops()
323 if (type && tfm->exit) in crypto_exit_ops()
324 tfm->exit(tfm); in crypto_exit_ops()
[all …]
Dshash.c28 int shash_no_setkey(struct crypto_shash *tfm, const u8 *key, in shash_no_setkey() argument
35 static int shash_setkey_unaligned(struct crypto_shash *tfm, const u8 *key, in shash_setkey_unaligned() argument
38 struct shash_alg *shash = crypto_shash_alg(tfm); in shash_setkey_unaligned()
39 unsigned long alignmask = crypto_shash_alignmask(tfm); in shash_setkey_unaligned()
51 err = shash->setkey(tfm, alignbuffer, keylen); in shash_setkey_unaligned()
56 int crypto_shash_setkey(struct crypto_shash *tfm, const u8 *key, in crypto_shash_setkey() argument
59 struct shash_alg *shash = crypto_shash_alg(tfm); in crypto_shash_setkey()
60 unsigned long alignmask = crypto_shash_alignmask(tfm); in crypto_shash_setkey()
64 err = shash_setkey_unaligned(tfm, key, keylen); in crypto_shash_setkey()
66 err = shash->setkey(tfm, key, keylen); in crypto_shash_setkey()
[all …]
Dblkcipher.c301 walk->walk_blocksize = crypto_blkcipher_blocksize(desc->tfm); in blkcipher_walk_virt()
303 walk->ivsize = crypto_blkcipher_ivsize(desc->tfm); in blkcipher_walk_virt()
304 walk->alignmask = crypto_blkcipher_alignmask(desc->tfm); in blkcipher_walk_virt()
313 walk->walk_blocksize = crypto_blkcipher_blocksize(desc->tfm); in blkcipher_walk_phys()
315 walk->ivsize = crypto_blkcipher_ivsize(desc->tfm); in blkcipher_walk_phys()
316 walk->alignmask = crypto_blkcipher_alignmask(desc->tfm); in blkcipher_walk_phys()
352 walk->cipher_blocksize = crypto_blkcipher_blocksize(desc->tfm); in blkcipher_walk_virt_block()
353 walk->ivsize = crypto_blkcipher_ivsize(desc->tfm); in blkcipher_walk_virt_block()
354 walk->alignmask = crypto_blkcipher_alignmask(desc->tfm); in blkcipher_walk_virt_block()
361 struct crypto_aead *tfm, in blkcipher_aead_walk_virt_block() argument
[all …]
/Linux-v4.19/security/integrity/ima/
Dima_crypto.c83 struct crypto_shash *tfm = ima_shash_tfm; in ima_alloc_tfm() local
90 tfm = crypto_alloc_shash(hash_algo_name[algo], 0, 0); in ima_alloc_tfm()
91 if (IS_ERR(tfm)) { in ima_alloc_tfm()
92 rc = PTR_ERR(tfm); in ima_alloc_tfm()
97 return tfm; in ima_alloc_tfm()
100 static void ima_free_tfm(struct crypto_shash *tfm) in ima_free_tfm() argument
102 if (tfm != ima_shash_tfm) in ima_free_tfm()
103 crypto_free_shash(tfm); in ima_free_tfm()
170 struct crypto_ahash *tfm = ima_ahash_tfm; in ima_alloc_atfm() local
176 if (algo != ima_hash_algo || !tfm) { in ima_alloc_atfm()
[all …]
/Linux-v4.19/net/mac80211/
Daes_cmac.c27 void ieee80211_aes_cmac(struct crypto_shash *tfm, const u8 *aad, in ieee80211_aes_cmac() argument
30 SHASH_DESC_ON_STACK(desc, tfm); in ieee80211_aes_cmac()
33 desc->tfm = tfm; in ieee80211_aes_cmac()
43 void ieee80211_aes_cmac_256(struct crypto_shash *tfm, const u8 *aad, in ieee80211_aes_cmac_256() argument
46 SHASH_DESC_ON_STACK(desc, tfm); in ieee80211_aes_cmac_256()
48 desc->tfm = tfm; in ieee80211_aes_cmac_256()
59 struct crypto_shash *tfm; in ieee80211_aes_cmac_key_setup() local
61 tfm = crypto_alloc_shash("cmac(aes)", 0, 0); in ieee80211_aes_cmac_key_setup()
62 if (!IS_ERR(tfm)) in ieee80211_aes_cmac_key_setup()
63 crypto_shash_setkey(tfm, key, key_len); in ieee80211_aes_cmac_key_setup()
[all …]
Daead_api.c21 int aead_encrypt(struct crypto_aead *tfm, u8 *b_0, u8 *aad, size_t aad_len, in aead_encrypt() argument
24 size_t mic_len = crypto_aead_authsize(tfm); in aead_encrypt()
27 int reqsize = sizeof(*aead_req) + crypto_aead_reqsize(tfm); in aead_encrypt()
42 aead_request_set_tfm(aead_req, tfm); in aead_encrypt()
52 int aead_decrypt(struct crypto_aead *tfm, u8 *b_0, u8 *aad, size_t aad_len, in aead_decrypt() argument
55 size_t mic_len = crypto_aead_authsize(tfm); in aead_decrypt()
58 int reqsize = sizeof(*aead_req) + crypto_aead_reqsize(tfm); in aead_decrypt()
77 aead_request_set_tfm(aead_req, tfm); in aead_decrypt()
91 struct crypto_aead *tfm; in aead_key_setup_encrypt() local
94 tfm = crypto_alloc_aead(alg, 0, CRYPTO_ALG_ASYNC); in aead_key_setup_encrypt()
[all …]
Daes_gmac.c20 int ieee80211_aes_gmac(struct crypto_aead *tfm, const u8 *aad, u8 *nonce, in ieee80211_aes_gmac() argument
26 int reqsize = sizeof(*aead_req) + crypto_aead_reqsize(tfm); in ieee80211_aes_gmac()
49 aead_request_set_tfm(aead_req, tfm); in ieee80211_aes_gmac()
62 struct crypto_aead *tfm; in ieee80211_aes_gmac_key_setup() local
65 tfm = crypto_alloc_aead("gcm(aes)", 0, CRYPTO_ALG_ASYNC); in ieee80211_aes_gmac_key_setup()
66 if (IS_ERR(tfm)) in ieee80211_aes_gmac_key_setup()
67 return tfm; in ieee80211_aes_gmac_key_setup()
69 err = crypto_aead_setkey(tfm, key, key_len); in ieee80211_aes_gmac_key_setup()
71 err = crypto_aead_setauthsize(tfm, GMAC_MIC_LEN); in ieee80211_aes_gmac_key_setup()
73 return tfm; in ieee80211_aes_gmac_key_setup()
[all …]
/Linux-v4.19/drivers/crypto/
Dgeode-aes.c118 static int geode_setkey_cip(struct crypto_tfm *tfm, const u8 *key, in geode_setkey_cip() argument
121 struct geode_aes_op *op = crypto_tfm_ctx(tfm); in geode_setkey_cip()
133 tfm->crt_flags |= CRYPTO_TFM_RES_BAD_KEY_LEN; in geode_setkey_cip()
141 op->fallback.cip->base.crt_flags |= (tfm->crt_flags & CRYPTO_TFM_REQ_MASK); in geode_setkey_cip()
145 tfm->crt_flags &= ~CRYPTO_TFM_RES_MASK; in geode_setkey_cip()
146 tfm->crt_flags |= (op->fallback.cip->base.crt_flags & CRYPTO_TFM_RES_MASK); in geode_setkey_cip()
151 static int geode_setkey_blk(struct crypto_tfm *tfm, const u8 *key, in geode_setkey_blk() argument
154 struct geode_aes_op *op = crypto_tfm_ctx(tfm); in geode_setkey_blk()
166 tfm->crt_flags |= CRYPTO_TFM_RES_BAD_KEY_LEN; in geode_setkey_blk()
174 op->fallback.blk->base.crt_flags |= (tfm->crt_flags & CRYPTO_TFM_REQ_MASK); in geode_setkey_blk()
[all …]
/Linux-v4.19/drivers/crypto/cavium/zip/
Dzip_crypto.h60 int zip_alloc_comp_ctx_deflate(struct crypto_tfm *tfm);
61 int zip_alloc_comp_ctx_lzs(struct crypto_tfm *tfm);
62 void zip_free_comp_ctx(struct crypto_tfm *tfm);
63 int zip_comp_compress(struct crypto_tfm *tfm,
66 int zip_comp_decompress(struct crypto_tfm *tfm,
70 void *zip_alloc_scomp_ctx_deflate(struct crypto_scomp *tfm);
71 void *zip_alloc_scomp_ctx_lzs(struct crypto_scomp *tfm);
72 void zip_free_scomp_ctx(struct crypto_scomp *tfm, void *zip_ctx);
73 int zip_scomp_compress(struct crypto_scomp *tfm,
76 int zip_scomp_decompress(struct crypto_scomp *tfm,
/Linux-v4.19/arch/arm/crypto/
Dghash-ce-glue.c74 struct ghash_key *key = crypto_shash_ctx(desc->tfm); in ghash_update()
106 struct ghash_key *key = crypto_shash_ctx(desc->tfm); in ghash_final()
120 static int ghash_setkey(struct crypto_shash *tfm, in ghash_setkey() argument
123 struct ghash_key *key = crypto_shash_ctx(tfm); in ghash_setkey()
127 crypto_shash_set_flags(tfm, CRYPTO_TFM_RES_BAD_KEY_LEN); in ghash_setkey()
164 struct crypto_ahash *tfm = crypto_ahash_reqtfm(req); in ghash_async_init() local
165 struct ghash_async_ctx *ctx = crypto_ahash_ctx(tfm); in ghash_async_init()
171 desc->tfm = child; in ghash_async_init()
179 struct crypto_ahash *tfm = crypto_ahash_reqtfm(req); in ghash_async_update() local
180 struct ghash_async_ctx *ctx = crypto_ahash_ctx(tfm); in ghash_async_update()
[all …]
/Linux-v4.19/arch/s390/crypto/
Daes_s390.c71 static int setkey_fallback_cip(struct crypto_tfm *tfm, const u8 *in_key, in setkey_fallback_cip() argument
74 struct s390_aes_ctx *sctx = crypto_tfm_ctx(tfm); in setkey_fallback_cip()
78 sctx->fallback.cip->base.crt_flags |= (tfm->crt_flags & in setkey_fallback_cip()
83 tfm->crt_flags &= ~CRYPTO_TFM_RES_MASK; in setkey_fallback_cip()
84 tfm->crt_flags |= (sctx->fallback.cip->base.crt_flags & in setkey_fallback_cip()
90 static int aes_set_key(struct crypto_tfm *tfm, const u8 *in_key, in aes_set_key() argument
93 struct s390_aes_ctx *sctx = crypto_tfm_ctx(tfm); in aes_set_key()
104 return setkey_fallback_cip(tfm, in_key, key_len); in aes_set_key()
111 static void aes_encrypt(struct crypto_tfm *tfm, u8 *out, const u8 *in) in aes_encrypt() argument
113 struct s390_aes_ctx *sctx = crypto_tfm_ctx(tfm); in aes_encrypt()
[all …]

12345678910>>...16