Lines Matching refs:alg

26 		struct skcipher_alg alg;  member
78 struct skcipher_instance, alg); in skcipher_alg_instance()
108 return container_of(spawn->base.alg, struct skcipher_alg, base); in crypto_skcipher_spawn_alg()
129 int crypto_register_skcipher(struct skcipher_alg *alg);
130 void crypto_unregister_skcipher(struct skcipher_alg *alg);
183 struct skcipher_alg *alg) in crypto_skcipher_alg_min_keysize() argument
185 if ((alg->base.cra_flags & CRYPTO_ALG_TYPE_MASK) == in crypto_skcipher_alg_min_keysize()
187 return alg->base.cra_blkcipher.min_keysize; in crypto_skcipher_alg_min_keysize()
189 if (alg->base.cra_ablkcipher.encrypt) in crypto_skcipher_alg_min_keysize()
190 return alg->base.cra_ablkcipher.min_keysize; in crypto_skcipher_alg_min_keysize()
192 return alg->min_keysize; in crypto_skcipher_alg_min_keysize()
196 struct skcipher_alg *alg) in crypto_skcipher_alg_max_keysize() argument
198 if ((alg->base.cra_flags & CRYPTO_ALG_TYPE_MASK) == in crypto_skcipher_alg_max_keysize()
200 return alg->base.cra_blkcipher.max_keysize; in crypto_skcipher_alg_max_keysize()
202 if (alg->base.cra_ablkcipher.encrypt) in crypto_skcipher_alg_max_keysize()
203 return alg->base.cra_ablkcipher.max_keysize; in crypto_skcipher_alg_max_keysize()
205 return alg->max_keysize; in crypto_skcipher_alg_max_keysize()
209 struct skcipher_alg *alg) in crypto_skcipher_alg_chunksize() argument
211 if ((alg->base.cra_flags & CRYPTO_ALG_TYPE_MASK) == in crypto_skcipher_alg_chunksize()
213 return alg->base.cra_blocksize; in crypto_skcipher_alg_chunksize()
215 if (alg->base.cra_ablkcipher.encrypt) in crypto_skcipher_alg_chunksize()
216 return alg->base.cra_blocksize; in crypto_skcipher_alg_chunksize()
218 return alg->chunksize; in crypto_skcipher_alg_chunksize()
222 struct skcipher_alg *alg) in crypto_skcipher_alg_walksize() argument
224 if ((alg->base.cra_flags & CRYPTO_ALG_TYPE_MASK) == in crypto_skcipher_alg_walksize()
226 return alg->base.cra_blocksize; in crypto_skcipher_alg_walksize()
228 if (alg->base.cra_ablkcipher.encrypt) in crypto_skcipher_alg_walksize()
229 return alg->base.cra_blocksize; in crypto_skcipher_alg_walksize()
231 return alg->walksize; in crypto_skcipher_alg_walksize()