Lines Matching refs:child

61 	struct crypto_blkcipher *child;  member
69 struct crypto_shash *child; member
78 struct crypto_aead *child; member
188 struct crypto_blkcipher *child = ctx->child; in cryptd_blkcipher_setkey() local
191 crypto_blkcipher_clear_flags(child, CRYPTO_TFM_REQ_MASK); in cryptd_blkcipher_setkey()
192 crypto_blkcipher_set_flags(child, crypto_ablkcipher_get_flags(parent) & in cryptd_blkcipher_setkey()
194 err = crypto_blkcipher_setkey(child, key, keylen); in cryptd_blkcipher_setkey()
195 crypto_ablkcipher_set_flags(parent, crypto_blkcipher_get_flags(child) & in cryptd_blkcipher_setkey()
201 struct crypto_blkcipher *child, in cryptd_blkcipher_crypt() argument
216 desc.tfm = child; in cryptd_blkcipher_crypt()
233 struct crypto_blkcipher *child = ctx->child; in cryptd_blkcipher_encrypt() local
235 cryptd_blkcipher_crypt(ablkcipher_request_cast(req), child, err, in cryptd_blkcipher_encrypt()
236 crypto_blkcipher_crt(child)->encrypt); in cryptd_blkcipher_encrypt()
242 struct crypto_blkcipher *child = ctx->child; in cryptd_blkcipher_decrypt() local
244 cryptd_blkcipher_crypt(ablkcipher_request_cast(req), child, err, in cryptd_blkcipher_decrypt()
245 crypto_blkcipher_crt(child)->decrypt); in cryptd_blkcipher_decrypt()
284 ctx->child = cipher; in cryptd_blkcipher_init_tfm()
294 crypto_free_blkcipher(ctx->child); in cryptd_blkcipher_exit_tfm()
415 ctx->child = hash; in cryptd_hash_init_tfm()
426 crypto_free_shash(ctx->child); in cryptd_hash_exit_tfm()
433 struct crypto_shash *child = ctx->child; in cryptd_hash_setkey() local
436 crypto_shash_clear_flags(child, CRYPTO_TFM_REQ_MASK); in cryptd_hash_setkey()
437 crypto_shash_set_flags(child, crypto_ahash_get_flags(parent) & in cryptd_hash_setkey()
439 err = crypto_shash_setkey(child, key, keylen); in cryptd_hash_setkey()
440 crypto_ahash_set_flags(parent, crypto_shash_get_flags(child) & in cryptd_hash_setkey()
462 struct crypto_shash *child = ctx->child; in cryptd_hash_init() local
470 desc->tfm = child; in cryptd_hash_init()
562 struct crypto_shash *child = ctx->child; in cryptd_hash_digest() local
570 desc->tfm = child; in cryptd_hash_digest()
670 struct crypto_aead *child = ctx->child; in cryptd_aead_setkey() local
672 return crypto_aead_setkey(child, key, keylen); in cryptd_aead_setkey()
679 struct crypto_aead *child = ctx->child; in cryptd_aead_setauthsize() local
681 return crypto_aead_setauthsize(child, authsize); in cryptd_aead_setauthsize()
685 struct crypto_aead *child, in cryptd_aead_crypt() argument
697 aead_request_set_tfm(req, child); in cryptd_aead_crypt()
708 struct crypto_aead *child = ctx->child; in cryptd_aead_encrypt() local
712 cryptd_aead_crypt(req, child, err, crypto_aead_alg(child)->encrypt); in cryptd_aead_encrypt()
718 struct crypto_aead *child = ctx->child; in cryptd_aead_decrypt() local
722 cryptd_aead_crypt(req, child, err, crypto_aead_alg(child)->decrypt); in cryptd_aead_decrypt()
759 ctx->child = cipher; in cryptd_aead_init_tfm()
769 crypto_free_aead(ctx->child); in cryptd_aead_exit_tfm()
909 return ctx->child; in cryptd_ablkcipher_child()
944 return ctx->child; in cryptd_ahash_child()
985 return ctx->child; in cryptd_aead_child()