Home
last modified time | relevance | path

Searched refs:child (Results 1 – 22 of 22) sorted by relevance

/crypto/
Decb.c22 struct crypto_cipher *child; member
29 struct crypto_cipher *child = ctx->child; in crypto_ecb_setkey() local
32 crypto_cipher_clear_flags(child, CRYPTO_TFM_REQ_MASK); in crypto_ecb_setkey()
33 crypto_cipher_set_flags(child, crypto_tfm_get_flags(parent) & in crypto_ecb_setkey()
35 err = crypto_cipher_setkey(child, key, keylen); in crypto_ecb_setkey()
36 crypto_tfm_set_flags(parent, crypto_cipher_get_flags(child) & in crypto_ecb_setkey()
76 struct crypto_cipher *child = ctx->child; in crypto_ecb_encrypt() local
79 return crypto_ecb_crypt(desc, &walk, child, in crypto_ecb_encrypt()
80 crypto_cipher_alg(child)->cia_encrypt); in crypto_ecb_encrypt()
90 struct crypto_cipher *child = ctx->child; in crypto_ecb_decrypt() local
[all …]
Dcryptd.c63 struct crypto_blkcipher *child; member
72 struct crypto_shash *child; member
82 struct crypto_aead *child; member
210 struct crypto_blkcipher *child = ctx->child; in cryptd_blkcipher_setkey() local
213 crypto_blkcipher_clear_flags(child, CRYPTO_TFM_REQ_MASK); in cryptd_blkcipher_setkey()
214 crypto_blkcipher_set_flags(child, crypto_ablkcipher_get_flags(parent) & in cryptd_blkcipher_setkey()
216 err = crypto_blkcipher_setkey(child, key, keylen); in cryptd_blkcipher_setkey()
217 crypto_ablkcipher_set_flags(parent, crypto_blkcipher_get_flags(child) & in cryptd_blkcipher_setkey()
223 struct crypto_blkcipher *child, in cryptd_blkcipher_crypt() argument
241 desc.tfm = child; in cryptd_blkcipher_crypt()
[all …]
Dctr.c25 struct crypto_cipher *child; member
29 struct crypto_skcipher *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()
[all …]
Dkeywrap.c91 struct crypto_cipher *child; member
141 struct crypto_cipher *child = ctx->child; in crypto_kw_decrypt() local
144 crypto_cipher_alignmask(child)); in crypto_kw_decrypt()
193 crypto_cipher_decrypt_one(child, (u8*)block, in crypto_kw_decrypt()
226 struct crypto_cipher *child = ctx->child; in crypto_kw_encrypt() local
229 crypto_cipher_alignmask(child)); in crypto_kw_encrypt()
277 crypto_cipher_encrypt_one(child, (u8 *)block, in crypto_kw_encrypt()
309 struct crypto_cipher *child = ctx->child; in crypto_kw_setkey() local
312 crypto_cipher_clear_flags(child, CRYPTO_TFM_REQ_MASK); in crypto_kw_setkey()
313 crypto_cipher_set_flags(child, crypto_tfm_get_flags(parent) & in crypto_kw_setkey()
[all …]
Dxts.c29 struct crypto_cipher *child; member
37 struct crypto_cipher *child = ctx->tweak; in setkey() local
49 crypto_cipher_clear_flags(child, CRYPTO_TFM_REQ_MASK); in setkey()
50 crypto_cipher_set_flags(child, crypto_tfm_get_flags(parent) & in setkey()
52 err = crypto_cipher_setkey(child, key + keylen/2, keylen/2); in setkey()
56 crypto_tfm_set_flags(parent, crypto_cipher_get_flags(child) & in setkey()
59 child = ctx->child; in setkey()
62 crypto_cipher_clear_flags(child, CRYPTO_TFM_REQ_MASK); in setkey()
63 crypto_cipher_set_flags(child, crypto_tfm_get_flags(parent) & in setkey()
65 err = crypto_cipher_setkey(child, key, keylen/2); in setkey()
[all …]
Dcbc.c23 struct crypto_cipher *child; member
30 struct crypto_cipher *child = ctx->child; in crypto_cbc_setkey() local
33 crypto_cipher_clear_flags(child, CRYPTO_TFM_REQ_MASK); in crypto_cbc_setkey()
34 crypto_cipher_set_flags(child, crypto_tfm_get_flags(parent) & in crypto_cbc_setkey()
36 err = crypto_cipher_setkey(child, key, keylen); in crypto_cbc_setkey()
37 crypto_tfm_set_flags(parent, crypto_cipher_get_flags(child) & in crypto_cbc_setkey()
97 struct crypto_cipher *child = ctx->child; in crypto_cbc_encrypt() local
105 nbytes = crypto_cbc_encrypt_inplace(desc, &walk, child); in crypto_cbc_encrypt()
107 nbytes = crypto_cbc_encrypt_segment(desc, &walk, child); in crypto_cbc_encrypt()
176 struct crypto_cipher *child = ctx->child; in crypto_cbc_decrypt() local
[all …]
Dpcbc.c26 struct crypto_cipher *child; member
33 struct crypto_cipher *child = ctx->child; in crypto_pcbc_setkey() local
36 crypto_cipher_clear_flags(child, CRYPTO_TFM_REQ_MASK); in crypto_pcbc_setkey()
37 crypto_cipher_set_flags(child, crypto_tfm_get_flags(parent) & in crypto_pcbc_setkey()
39 err = crypto_cipher_setkey(child, key, keylen); in crypto_pcbc_setkey()
40 crypto_tfm_set_flags(parent, crypto_cipher_get_flags(child) & in crypto_pcbc_setkey()
104 struct crypto_cipher *child = ctx->child; in crypto_pcbc_encrypt() local
113 child); in crypto_pcbc_encrypt()
116 child); in crypto_pcbc_encrypt()
184 struct crypto_cipher *child = ctx->child; in crypto_pcbc_decrypt() local
[all …]
Dxcbc.c41 struct crypto_cipher *child; member
71 if ((err = crypto_cipher_setkey(ctx->child, inkey, keylen))) in crypto_xcbc_digest_setkey()
74 crypto_cipher_encrypt_one(ctx->child, consts, (u8 *)ks + bs); in crypto_xcbc_digest_setkey()
75 crypto_cipher_encrypt_one(ctx->child, consts + bs, (u8 *)ks + bs * 2); in crypto_xcbc_digest_setkey()
76 crypto_cipher_encrypt_one(ctx->child, key1, (u8 *)ks); in crypto_xcbc_digest_setkey()
78 return crypto_cipher_setkey(ctx->child, key1, bs); in crypto_xcbc_digest_setkey()
102 struct crypto_cipher *tfm = tctx->child; in crypto_xcbc_digest_update()
148 struct crypto_cipher *tfm = tctx->child; in crypto_xcbc_digest_final()
188 ctx->child = cipher; in xcbc_init_tfm()
196 crypto_free_cipher(ctx->child); in xcbc_exit_tfm()
Dcts.c54 struct crypto_skcipher *child; member
68 struct crypto_skcipher *child = ctx->child; in crypto_cts_reqctx_space() local
70 return PTR_ALIGN((u8 *)(rctx + 1) + crypto_skcipher_reqsize(child), in crypto_cts_reqctx_space()
78 struct crypto_skcipher *child = ctx->child; in crypto_cts_setkey() local
81 crypto_skcipher_clear_flags(child, CRYPTO_TFM_REQ_MASK); in crypto_cts_setkey()
82 crypto_skcipher_set_flags(child, crypto_skcipher_get_flags(parent) & in crypto_cts_setkey()
84 err = crypto_skcipher_setkey(child, key, keylen); in crypto_cts_setkey()
85 crypto_skcipher_set_flags(parent, crypto_skcipher_get_flags(child) & in crypto_cts_setkey()
157 skcipher_request_set_tfm(subreq, ctx->child); in crypto_cts_encrypt()
251 skcipher_request_set_tfm(subreq, ctx->child); in crypto_cts_decrypt()
[all …]
Dlrw.c33 struct crypto_cipher *child; member
83 struct crypto_cipher *child = ctx->child; in setkey() local
87 crypto_cipher_clear_flags(child, CRYPTO_TFM_REQ_MASK); in setkey()
88 crypto_cipher_set_flags(child, crypto_tfm_get_flags(parent) & in setkey()
90 err = crypto_cipher_setkey(child, key, keylen - bsize); in setkey()
93 crypto_tfm_set_flags(parent, crypto_cipher_get_flags(child) & in setkey()
146 .tfm = crypto_cipher_tfm(ctx->child), in crypt()
203 crypto_cipher_alg(ctx->child)->cia_encrypt); in encrypt()
214 crypto_cipher_alg(ctx->child)->cia_decrypt); in decrypt()
314 ctx->child = cipher; in init_tfm()
[all …]
Dmcryptd.c284 ctx->child = hash; in mcryptd_hash_init_tfm()
295 crypto_free_ahash(ctx->child); in mcryptd_hash_exit_tfm()
302 struct crypto_ahash *child = ctx->child; in mcryptd_hash_setkey() local
305 crypto_ahash_clear_flags(child, CRYPTO_TFM_REQ_MASK); in mcryptd_hash_setkey()
306 crypto_ahash_set_flags(child, crypto_ahash_get_flags(parent) & in mcryptd_hash_setkey()
308 err = crypto_ahash_setkey(child, key, keylen); in mcryptd_hash_setkey()
309 crypto_ahash_set_flags(parent, crypto_ahash_get_flags(child) & in mcryptd_hash_setkey()
335 struct crypto_ahash *child = ctx->child; in mcryptd_hash_init() local
343 ahash_request_set_tfm(desc, child); in mcryptd_hash_init()
445 struct crypto_ahash *child = ctx->child; in mcryptd_hash_digest() local
[all …]
Daead.c180 return crypto_aead_setkey(ctx->child, key, keylen); in aead_geniv_setkey()
188 return crypto_aead_setauthsize(ctx->child, authsize); in aead_geniv_setauthsize()
282 struct crypto_aead *child; in aead_init_geniv() local
302 child = crypto_spawn_aead(aead_instance_ctx(inst)); in aead_init_geniv()
303 err = PTR_ERR(child); in aead_init_geniv()
304 if (IS_ERR(child)) in aead_init_geniv()
307 ctx->child = child; in aead_init_geniv()
308 crypto_aead_set_reqsize(aead, crypto_aead_reqsize(child) + in aead_init_geniv()
326 crypto_free_aead(ctx->child); in aead_exit_geniv()
Dablk_helper.c41 struct crypto_ablkcipher *child = &ctx->cryptd_tfm->base; in ablk_set_key() local
44 crypto_ablkcipher_clear_flags(child, CRYPTO_TFM_REQ_MASK); in ablk_set_key()
45 crypto_ablkcipher_set_flags(child, crypto_ablkcipher_get_flags(tfm) in ablk_set_key()
47 err = crypto_ablkcipher_setkey(child, key, key_len); in ablk_set_key()
48 crypto_ablkcipher_set_flags(tfm, crypto_ablkcipher_get_flags(child) in ablk_set_key()
Dgcm.c37 struct crypto_aead *child; member
52 struct crypto_aead *child; member
788 struct crypto_aead *child = ctx->child; in crypto_rfc4106_setkey() local
797 crypto_aead_clear_flags(child, CRYPTO_TFM_REQ_MASK); in crypto_rfc4106_setkey()
798 crypto_aead_set_flags(child, crypto_aead_get_flags(parent) & in crypto_rfc4106_setkey()
800 err = crypto_aead_setkey(child, key, keylen); in crypto_rfc4106_setkey()
801 crypto_aead_set_flags(parent, crypto_aead_get_flags(child) & in crypto_rfc4106_setkey()
821 return crypto_aead_setauthsize(ctx->child, authsize); in crypto_rfc4106_setauthsize()
830 struct crypto_aead *child = ctx->child; in crypto_rfc4106_crypt() local
832 u8 *iv = PTR_ALIGN((u8 *)(subreq + 1) + crypto_aead_reqsize(child), in crypto_rfc4106_crypt()
[all …]
Dcmac.c34 struct crypto_cipher *child; member
65 err = crypto_cipher_setkey(ctx->child, inkey, keylen); in crypto_cmac_digest_setkey()
71 crypto_cipher_encrypt_one(ctx->child, (u8 *)consts, (u8 *)consts); in crypto_cmac_digest_setkey()
128 struct crypto_cipher *tfm = tctx->child; in crypto_cmac_digest_update()
174 struct crypto_cipher *tfm = tctx->child; in crypto_cmac_digest_final()
214 ctx->child = cipher; in cmac_init_tfm()
222 crypto_free_cipher(ctx->child); in cmac_exit_tfm()
Dccm.c35 struct crypto_aead *child; member
672 struct crypto_aead *child = ctx->child; in crypto_rfc4309_setkey() local
681 crypto_aead_clear_flags(child, CRYPTO_TFM_REQ_MASK); in crypto_rfc4309_setkey()
682 crypto_aead_set_flags(child, crypto_aead_get_flags(parent) & in crypto_rfc4309_setkey()
684 err = crypto_aead_setkey(child, key, keylen); in crypto_rfc4309_setkey()
685 crypto_aead_set_flags(parent, crypto_aead_get_flags(child) & in crypto_rfc4309_setkey()
705 return crypto_aead_setauthsize(ctx->child, authsize); in crypto_rfc4309_setauthsize()
714 struct crypto_aead *child = ctx->child; in crypto_rfc4309_crypt() local
716 u8 *iv = PTR_ALIGN((u8 *)(subreq + 1) + crypto_aead_reqsize(child), in crypto_rfc4309_crypt()
717 crypto_aead_alignmask(child) + 1); in crypto_rfc4309_crypt()
[all …]
Drsa-pkcs1pad.c94 struct crypto_akcipher *child; member
117 err = crypto_akcipher_set_pub_key(ctx->child, key, keylen); in pkcs1pad_set_pub_key()
122 err = crypto_akcipher_maxsize(ctx->child); in pkcs1pad_set_pub_key()
141 err = crypto_akcipher_set_priv_key(ctx->child, key, keylen); in pkcs1pad_set_priv_key()
146 err = crypto_akcipher_maxsize(ctx->child); in pkcs1pad_set_priv_key()
279 akcipher_request_set_tfm(&req_ctx->child_req, ctx->child); in pkcs1pad_encrypt()
382 akcipher_request_set_tfm(&req_ctx->child_req, ctx->child); in pkcs1pad_decrypt()
440 akcipher_request_set_tfm(&req_ctx->child_req, ctx->child); in pkcs1pad_sign()
560 akcipher_request_set_tfm(&req_ctx->child_req, ctx->child); in pkcs1pad_verify()
589 ctx->child = child_tfm; in pkcs1pad_init_tfm()
[all …]
Dpcrypt.c69 struct crypto_aead *child; member
107 return crypto_aead_setkey(ctx->child, key, keylen); in pcrypt_aead_setkey()
115 return crypto_aead_setauthsize(ctx->child, authsize); in pcrypt_aead_setauthsize()
166 aead_request_set_tfm(creq, ctx->child); in pcrypt_aead_encrypt()
208 aead_request_set_tfm(creq, ctx->child); in pcrypt_aead_decrypt()
242 ctx->child = cipher; in pcrypt_aead_init_tfm()
254 crypto_free_aead(ctx->child); in pcrypt_aead_exit_tfm()
Dvmac.c477 crypto_cipher_encrypt_one(ctx->child, in vmac()
493 err = crypto_cipher_setkey(ctx->child, user_key, VMAC_KEY_LEN); in vmac_set_key()
500 crypto_cipher_encrypt_one(ctx->child, in vmac_set_key()
511 crypto_cipher_encrypt_one(ctx->child, in vmac_set_key()
527 crypto_cipher_encrypt_one(ctx->child, in vmac_set_key()
633 ctx->child = cipher; in vmac_init_tfm()
640 crypto_free_cipher(ctx->child); in vmac_exit_tfm()
Dechainiv.c45 aead_request_set_tfm(subreq, ctx->child); in echainiv_encrypt()
102 aead_request_set_tfm(subreq, ctx->child); in echainiv_decrypt()
Dfips.c49 .child = crypto_sysctl_table
Dseqiv.c69 aead_request_set_tfm(subreq, ctx->child); in seqiv_aead_encrypt()
129 aead_request_set_tfm(subreq, ctx->child); in seqiv_aead_decrypt()