Home
last modified time | relevance | path

Searched refs:spawn (Results 1 – 7 of 7) sorted by relevance

/include/crypto/internal/
Dcipher.h185 static inline int crypto_grab_cipher(struct crypto_cipher_spawn *spawn, in crypto_grab_cipher() argument
192 return crypto_grab_spawn(&spawn->base, inst, name, type, mask); in crypto_grab_cipher()
195 static inline void crypto_drop_cipher(struct crypto_cipher_spawn *spawn) in crypto_drop_cipher() argument
197 crypto_drop_spawn(&spawn->base); in crypto_drop_cipher()
201 struct crypto_cipher_spawn *spawn) in crypto_spawn_cipher_alg() argument
203 return spawn->base.alg; in crypto_spawn_cipher_alg()
207 struct crypto_cipher_spawn *spawn) in crypto_spawn_cipher() argument
212 return __crypto_cipher_cast(crypto_spawn_tfm(&spawn->base, type, mask)); in crypto_spawn_cipher()
Dkpp.h196 int crypto_grab_kpp(struct crypto_kpp_spawn *spawn,
204 static inline void crypto_drop_kpp(struct crypto_kpp_spawn *spawn) in crypto_drop_kpp() argument
206 crypto_drop_spawn(&spawn->base); in crypto_drop_kpp()
222 struct crypto_kpp_spawn *spawn) in crypto_spawn_kpp_alg() argument
224 return container_of(spawn->base.alg, struct kpp_alg, base); in crypto_spawn_kpp_alg()
240 struct crypto_kpp_spawn *spawn) in crypto_spawn_kpp() argument
242 return crypto_spawn_tfm2(&spawn->base); in crypto_spawn_kpp()
Dakcipher.h103 int crypto_grab_akcipher(struct crypto_akcipher_spawn *spawn,
108 struct crypto_akcipher_spawn *spawn) in crypto_spawn_akcipher() argument
110 return crypto_spawn_tfm2(&spawn->base); in crypto_spawn_akcipher()
113 static inline void crypto_drop_akcipher(struct crypto_akcipher_spawn *spawn) in crypto_drop_akcipher() argument
115 crypto_drop_spawn(&spawn->base); in crypto_drop_akcipher()
119 struct crypto_akcipher_spawn *spawn) in crypto_spawn_akcipher_alg() argument
121 return container_of(spawn->base.alg, struct akcipher_alg, base); in crypto_spawn_akcipher_alg()
Dskcipher.h100 int crypto_grab_skcipher(struct crypto_skcipher_spawn *spawn,
104 static inline void crypto_drop_skcipher(struct crypto_skcipher_spawn *spawn) in crypto_drop_skcipher() argument
106 crypto_drop_spawn(&spawn->base); in crypto_drop_skcipher()
110 struct crypto_skcipher_spawn *spawn) in crypto_skcipher_spawn_alg() argument
112 return container_of(spawn->base.alg, struct skcipher_alg, base); in crypto_skcipher_spawn_alg()
116 struct crypto_skcipher_spawn *spawn) in crypto_spawn_skcipher_alg() argument
118 return crypto_skcipher_spawn_alg(spawn); in crypto_spawn_skcipher_alg()
122 struct crypto_skcipher_spawn *spawn) in crypto_spawn_skcipher() argument
124 return crypto_spawn_tfm2(&spawn->base); in crypto_spawn_skcipher()
247 struct crypto_cipher_spawn *spawn = skcipher_instance_ctx(inst); in skcipher_ialg_simple() local
[all …]
Dhash.h94 int crypto_grab_ahash(struct crypto_ahash_spawn *spawn,
98 static inline void crypto_drop_ahash(struct crypto_ahash_spawn *spawn) in crypto_drop_ahash() argument
100 crypto_drop_spawn(&spawn->base); in crypto_drop_ahash()
104 struct crypto_ahash_spawn *spawn) in crypto_spawn_ahash_alg() argument
106 return __crypto_hash_alg_common(spawn->base.alg); in crypto_spawn_ahash_alg()
117 int crypto_grab_shash(struct crypto_shash_spawn *spawn,
121 static inline void crypto_drop_shash(struct crypto_shash_spawn *spawn) in crypto_drop_shash() argument
123 crypto_drop_spawn(&spawn->base); in crypto_drop_shash()
127 struct crypto_shash_spawn *spawn) in crypto_spawn_shash_alg() argument
129 return __crypto_shash_alg(spawn->base.alg); in crypto_spawn_shash_alg()
[all …]
Daead.h99 int crypto_grab_aead(struct crypto_aead_spawn *spawn,
103 static inline void crypto_drop_aead(struct crypto_aead_spawn *spawn) in crypto_drop_aead() argument
105 crypto_drop_spawn(&spawn->base); in crypto_drop_aead()
109 struct crypto_aead_spawn *spawn) in crypto_spawn_aead_alg() argument
111 return container_of(spawn->base.alg, struct aead_alg, base); in crypto_spawn_aead_alg()
115 struct crypto_aead_spawn *spawn) in crypto_spawn_aead() argument
117 return crypto_spawn_tfm2(&spawn->base); in crypto_spawn_aead()
/include/crypto/
Dalgapi.h158 int crypto_grab_spawn(struct crypto_spawn *spawn, struct crypto_instance *inst,
160 void crypto_drop_spawn(struct crypto_spawn *spawn);
161 struct crypto_tfm *crypto_spawn_tfm(struct crypto_spawn *spawn, u32 type,
163 void *crypto_spawn_tfm2(struct crypto_spawn *spawn);