Lines Matching refs:child
61 struct crypto_blkcipher *child; member
69 struct crypto_shash *child; member
78 struct crypto_aead *child; member
189 struct crypto_blkcipher *child = ctx->child; in cryptd_blkcipher_setkey() local
192 crypto_blkcipher_clear_flags(child, CRYPTO_TFM_REQ_MASK); in cryptd_blkcipher_setkey()
193 crypto_blkcipher_set_flags(child, crypto_ablkcipher_get_flags(parent) & in cryptd_blkcipher_setkey()
195 err = crypto_blkcipher_setkey(child, key, keylen); in cryptd_blkcipher_setkey()
196 crypto_ablkcipher_set_flags(parent, crypto_blkcipher_get_flags(child) & in cryptd_blkcipher_setkey()
202 struct crypto_blkcipher *child, in cryptd_blkcipher_crypt() argument
217 desc.tfm = child; in cryptd_blkcipher_crypt()
234 struct crypto_blkcipher *child = ctx->child; in cryptd_blkcipher_encrypt() local
236 cryptd_blkcipher_crypt(ablkcipher_request_cast(req), child, err, in cryptd_blkcipher_encrypt()
237 crypto_blkcipher_crt(child)->encrypt); in cryptd_blkcipher_encrypt()
243 struct crypto_blkcipher *child = ctx->child; in cryptd_blkcipher_decrypt() local
245 cryptd_blkcipher_crypt(ablkcipher_request_cast(req), child, err, in cryptd_blkcipher_decrypt()
246 crypto_blkcipher_crt(child)->decrypt); in cryptd_blkcipher_decrypt()
285 ctx->child = cipher; in cryptd_blkcipher_init_tfm()
295 crypto_free_blkcipher(ctx->child); in cryptd_blkcipher_exit_tfm()
406 ctx->child = hash; in cryptd_hash_init_tfm()
417 crypto_free_shash(ctx->child); in cryptd_hash_exit_tfm()
424 struct crypto_shash *child = ctx->child; in cryptd_hash_setkey() local
427 crypto_shash_clear_flags(child, CRYPTO_TFM_REQ_MASK); in cryptd_hash_setkey()
428 crypto_shash_set_flags(child, crypto_ahash_get_flags(parent) & in cryptd_hash_setkey()
430 err = crypto_shash_setkey(child, key, keylen); in cryptd_hash_setkey()
431 crypto_ahash_set_flags(parent, crypto_shash_get_flags(child) & in cryptd_hash_setkey()
453 struct crypto_shash *child = ctx->child; in cryptd_hash_init() local
461 desc->tfm = child; in cryptd_hash_init()
553 struct crypto_shash *child = ctx->child; in cryptd_hash_digest() local
561 desc->tfm = child; in cryptd_hash_digest()
658 struct crypto_aead *child, in cryptd_aead_crypt() argument
667 aead_request_set_tfm(req, child); in cryptd_aead_crypt()
679 struct crypto_aead *child = ctx->child; in cryptd_aead_encrypt() local
683 cryptd_aead_crypt(req, child, err, crypto_aead_crt(child)->encrypt); in cryptd_aead_encrypt()
689 struct crypto_aead *child = ctx->child; in cryptd_aead_decrypt() local
693 cryptd_aead_crypt(req, child, err, crypto_aead_crt(child)->decrypt); in cryptd_aead_decrypt()
731 ctx->child = cipher; in cryptd_aead_init_tfm()
739 crypto_free_aead(ctx->child); in cryptd_aead_exit_tfm()
879 return ctx->child; in cryptd_ablkcipher_child()
914 return ctx->child; in cryptd_ahash_child()
955 return ctx->child; in cryptd_aead_child()