Lines Matching refs:child
25 struct crypto_cipher *child; member
29 struct crypto_ablkcipher *child; member
42 struct crypto_cipher *child = ctx->child; in crypto_ctr_setkey() local
45 crypto_cipher_clear_flags(child, CRYPTO_TFM_REQ_MASK); in crypto_ctr_setkey()
46 crypto_cipher_set_flags(child, crypto_tfm_get_flags(parent) & in crypto_ctr_setkey()
48 err = crypto_cipher_setkey(child, key, keylen); in crypto_ctr_setkey()
49 crypto_tfm_set_flags(parent, crypto_cipher_get_flags(child) & in crypto_ctr_setkey()
134 struct crypto_cipher *child = ctx->child; in crypto_ctr_crypt() local
135 unsigned int bsize = crypto_cipher_blocksize(child); in crypto_ctr_crypt()
143 nbytes = crypto_ctr_crypt_inplace(&walk, child); in crypto_ctr_crypt()
145 nbytes = crypto_ctr_crypt_segment(&walk, child); in crypto_ctr_crypt()
151 crypto_ctr_crypt_final(&walk, child); in crypto_ctr_crypt()
169 ctx->child = cipher; in crypto_ctr_init_tfm()
178 crypto_free_cipher(ctx->child); in crypto_ctr_exit_tfm()
256 struct crypto_ablkcipher *child = ctx->child; in crypto_rfc3686_setkey() local
268 crypto_ablkcipher_clear_flags(child, CRYPTO_TFM_REQ_MASK); in crypto_rfc3686_setkey()
269 crypto_ablkcipher_set_flags(child, crypto_ablkcipher_get_flags(parent) & in crypto_rfc3686_setkey()
271 err = crypto_ablkcipher_setkey(child, key, keylen); in crypto_rfc3686_setkey()
272 crypto_ablkcipher_set_flags(parent, crypto_ablkcipher_get_flags(child) & in crypto_rfc3686_setkey()
282 struct crypto_ablkcipher *child = ctx->child; in crypto_rfc3686_crypt() local
297 ablkcipher_request_set_tfm(subreq, child); in crypto_rfc3686_crypt()
318 ctx->child = cipher; in crypto_rfc3686_init_tfm()
333 crypto_free_ablkcipher(ctx->child); in crypto_rfc3686_exit_tfm()