Lines Matching refs:child
71 struct crypto_skcipher *child; member
81 struct crypto_shash *child; member
91 struct crypto_aead *child; member
231 struct crypto_skcipher *child = ctx->child; in cryptd_skcipher_setkey() local
233 crypto_skcipher_clear_flags(child, CRYPTO_TFM_REQ_MASK); in cryptd_skcipher_setkey()
234 crypto_skcipher_set_flags(child, in cryptd_skcipher_setkey()
237 return crypto_skcipher_setkey(child, key, keylen); in cryptd_skcipher_setkey()
263 struct crypto_skcipher *child = ctx->child; in cryptd_skcipher_encrypt() local
268 skcipher_request_set_tfm(subreq, child); in cryptd_skcipher_encrypt()
291 struct crypto_skcipher *child = ctx->child; in cryptd_skcipher_decrypt() local
296 skcipher_request_set_tfm(subreq, child); in cryptd_skcipher_decrypt()
347 ctx->child = cipher; in cryptd_skcipher_init_tfm()
358 crypto_free_skcipher(ctx->child); in cryptd_skcipher_exit_tfm()
438 ctx->child = hash; in cryptd_hash_init_tfm()
449 crypto_free_shash(ctx->child); in cryptd_hash_exit_tfm()
456 struct crypto_shash *child = ctx->child; in cryptd_hash_setkey() local
458 crypto_shash_clear_flags(child, CRYPTO_TFM_REQ_MASK); in cryptd_hash_setkey()
459 crypto_shash_set_flags(child, crypto_ahash_get_flags(parent) & in cryptd_hash_setkey()
461 return crypto_shash_setkey(child, key, keylen); in cryptd_hash_setkey()
496 struct crypto_shash *child = ctx->child; in cryptd_hash_init() local
504 desc->tfm = child; in cryptd_hash_init()
587 struct crypto_shash *child = ctx->child; in cryptd_hash_digest() local
595 desc->tfm = child; in cryptd_hash_digest()
623 desc->tfm = ctx->child; in cryptd_hash_import()
700 struct crypto_aead *child = ctx->child; in cryptd_aead_setkey() local
702 return crypto_aead_setkey(child, key, keylen); in cryptd_aead_setkey()
709 struct crypto_aead *child = ctx->child; in cryptd_aead_setauthsize() local
711 return crypto_aead_setauthsize(child, authsize); in cryptd_aead_setauthsize()
715 struct crypto_aead *child, in cryptd_aead_crypt() argument
732 aead_request_set_tfm(req, child); in cryptd_aead_crypt()
750 struct crypto_aead *child = ctx->child; in cryptd_aead_encrypt() local
754 cryptd_aead_crypt(req, child, err, crypto_aead_alg(child)->encrypt); in cryptd_aead_encrypt()
760 struct crypto_aead *child = ctx->child; in cryptd_aead_decrypt() local
764 cryptd_aead_crypt(req, child, err, crypto_aead_alg(child)->decrypt); in cryptd_aead_decrypt()
801 ctx->child = cipher; in cryptd_aead_init_tfm()
811 crypto_free_aead(ctx->child); in cryptd_aead_exit_tfm()
936 return ctx->child; in cryptd_skcipher_child()
986 return ctx->child; in cryptd_ahash_child()
1043 return ctx->child; in cryptd_aead_child()