Home
last modified time | relevance | path

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

/crypto/
A Dsimd.c67 struct crypto_skcipher *child; in simd_skcipher_encrypt() local
74 child = &ctx->cryptd_tfm->base; in simd_skcipher_encrypt()
78 skcipher_request_set_tfm(subreq, child); in simd_skcipher_encrypt()
88 struct crypto_skcipher *child; in simd_skcipher_decrypt() local
95 child = &ctx->cryptd_tfm->base; in simd_skcipher_decrypt()
293 struct crypto_aead *child; in simd_aead_encrypt() local
300 child = &ctx->cryptd_tfm->base; in simd_aead_encrypt()
304 aead_request_set_tfm(subreq, child); in simd_aead_encrypt()
314 struct crypto_aead *child; in simd_aead_decrypt() local
321 child = &ctx->cryptd_tfm->base; in simd_aead_decrypt()
[all …]
A Dcryptd.c237 struct crypto_skcipher *child = ctx->child; in cryptd_skcipher_setkey() local
261 child = ctx->child; in cryptd_skcipher_prepare()
448 ctx->child = hash; in cryptd_hash_init_tfm()
481 struct crypto_shash *child = ctx->child; in cryptd_hash_setkey() local
542 struct crypto_shash *child = ctx->child; in cryptd_hash_init() local
618 struct crypto_shash *child = ctx->child; in cryptd_hash_digest() local
729 struct crypto_aead *child = ctx->child; in cryptd_aead_setkey() local
738 struct crypto_aead *child = ctx->child; in cryptd_aead_setauthsize() local
797 child = ctx->child; in cryptd_aead_encrypt()
798 cryptd_aead_crypt(req, child, err, crypto_aead_alg(child)->encrypt, in cryptd_aead_encrypt()
[all …]
A Dgeniv.c23 return crypto_aead_setkey(ctx->child, key, keylen); in aead_geniv_setkey()
31 return crypto_aead_setauthsize(ctx->child, authsize); in aead_geniv_setauthsize()
112 struct crypto_aead *child; in aead_init_geniv() local
127 child = crypto_spawn_aead(aead_instance_ctx(inst)); in aead_init_geniv()
128 err = PTR_ERR(child); in aead_init_geniv()
129 if (IS_ERR(child)) in aead_init_geniv()
132 ctx->child = child; in aead_init_geniv()
133 crypto_aead_set_reqsize(aead, crypto_aead_reqsize(child) + in aead_init_geniv()
147 crypto_free_aead(ctx->child); in aead_exit_geniv()
A Decdsa-p1363.c16 struct crypto_sig *child; member
24 unsigned int keylen = DIV_ROUND_UP_POW2(crypto_sig_keysize(ctx->child), in ecdsa_p1363_verify()
35 return crypto_sig_verify(ctx->child, &sig, sizeof(sig), digest, dlen); in ecdsa_p1363_verify()
42 return crypto_sig_keysize(ctx->child); in ecdsa_p1363_key_size()
49 return 2 * DIV_ROUND_UP_POW2(crypto_sig_keysize(ctx->child), in ecdsa_p1363_max_size()
57 return crypto_sig_digestsize(ctx->child); in ecdsa_p1363_digest_size()
65 return crypto_sig_set_pubkey(ctx->child, key, keylen); in ecdsa_p1363_set_pub_key()
79 ctx->child = child_tfm; in ecdsa_p1363_init_tfm()
88 crypto_free_sig(ctx->child); in ecdsa_p1363_exit_tfm()
A Decdsa-x962.c20 struct crypto_sig *child; member
84 sig_ctx.ndigits = DIV_ROUND_UP_POW2(crypto_sig_keysize(ctx->child), in ecdsa_x962_verify()
91 return crypto_sig_verify(ctx->child, &sig_ctx.sig, sizeof(sig_ctx.sig), in ecdsa_x962_verify()
99 return crypto_sig_keysize(ctx->child); in ecdsa_x962_key_size()
105 struct sig_alg *alg = crypto_sig_alg(ctx->child); in ecdsa_x962_max_size()
106 int slen = DIV_ROUND_UP_POW2(crypto_sig_keysize(ctx->child), in ecdsa_x962_max_size()
134 return crypto_sig_digestsize(ctx->child); in ecdsa_x962_digest_size()
142 return crypto_sig_set_pubkey(ctx->child, key, keylen); in ecdsa_x962_set_pub_key()
156 ctx->child = child_tfm; in ecdsa_x962_init_tfm()
165 crypto_free_sig(ctx->child); in ecdsa_x962_exit_tfm()
A Dxcbc.c32 struct crypto_cipher *child; member
47 if ((err = crypto_cipher_setkey(ctx->child, inkey, keylen))) in crypto_xcbc_digest_setkey()
50 crypto_cipher_encrypt_one(ctx->child, consts, (u8 *)ks + bs); in crypto_xcbc_digest_setkey()
51 crypto_cipher_encrypt_one(ctx->child, consts + bs, (u8 *)ks + bs * 2); in crypto_xcbc_digest_setkey()
52 crypto_cipher_encrypt_one(ctx->child, key1, (u8 *)ks); in crypto_xcbc_digest_setkey()
54 return crypto_cipher_setkey(ctx->child, key1, bs); in crypto_xcbc_digest_setkey()
72 struct crypto_cipher *tfm = tctx->child; in crypto_xcbc_digest_update()
90 struct crypto_cipher *tfm = tctx->child; in crypto_xcbc_digest_finup()
116 ctx->child = cipher; in xcbc_init_tfm()
124 crypto_free_cipher(ctx->child); in xcbc_exit_tfm()
A Dxts.c25 struct crypto_skcipher *child; member
45 struct crypto_skcipher *child; in xts_setkey() local
69 child = ctx->child; in xts_setkey()
182 skcipher_request_set_tfm(subreq, ctx->child); in xts_cts_final()
300 struct crypto_skcipher *child; in xts_init_tfm() local
303 child = crypto_spawn_skcipher(&ictx->spawn); in xts_init_tfm()
304 if (IS_ERR(child)) in xts_init_tfm()
305 return PTR_ERR(child); in xts_init_tfm()
307 ctx->child = child; in xts_init_tfm()
311 crypto_free_skcipher(ctx->child); in xts_init_tfm()
[all …]
A Dcts.c56 struct crypto_skcipher *child; member
70 struct crypto_skcipher *child = ctx->child; in crypto_cts_reqctx_space() local
72 return PTR_ALIGN((u8 *)(rctx + 1) + crypto_skcipher_reqsize(child), in crypto_cts_reqctx_space()
80 struct crypto_skcipher *child = ctx->child; in crypto_cts_setkey() local
82 crypto_skcipher_clear_flags(child, CRYPTO_TFM_REQ_MASK); in crypto_cts_setkey()
83 crypto_skcipher_set_flags(child, crypto_skcipher_get_flags(parent) & in crypto_cts_setkey()
85 return crypto_skcipher_setkey(child, key, keylen); in crypto_cts_setkey()
153 skcipher_request_set_tfm(subreq, ctx->child); in crypto_cts_encrypt()
248 skcipher_request_set_tfm(subreq, ctx->child); in crypto_cts_decrypt()
297 ctx->child = cipher; in crypto_cts_init_tfm()
[all …]
A Dcmac.c33 struct crypto_cipher *child; member
47 err = crypto_cipher_setkey(ctx->child, inkey, keylen); in crypto_cmac_digest_setkey()
53 crypto_cipher_encrypt_one(ctx->child, (u8 *)consts, (u8 *)consts); in crypto_cmac_digest_setkey()
104 struct crypto_cipher *tfm = tctx->child; in crypto_cmac_digest_update()
122 struct crypto_cipher *tfm = tctx->child; in crypto_cmac_digest_finup()
149 ctx->child = cipher; in cmac_init_tfm()
160 cipher = crypto_clone_cipher(octx->child); in cmac_clone_tfm()
164 ctx->child = cipher; in cmac_clone_tfm()
172 crypto_free_cipher(ctx->child); in cmac_exit_tfm()
A Dctr.c19 struct crypto_skcipher *child; member
173 struct crypto_skcipher *child = ctx->child; in crypto_rfc3686_setkey() local
184 crypto_skcipher_clear_flags(child, CRYPTO_TFM_REQ_MASK); in crypto_rfc3686_setkey()
185 crypto_skcipher_set_flags(child, crypto_skcipher_get_flags(parent) & in crypto_rfc3686_setkey()
187 return crypto_skcipher_setkey(child, key, keylen); in crypto_rfc3686_setkey()
194 struct crypto_skcipher *child = ctx->child; in crypto_rfc3686_crypt() local
209 skcipher_request_set_tfm(subreq, child); in crypto_rfc3686_crypt()
231 ctx->child = cipher; in crypto_rfc3686_init_tfm()
246 crypto_free_skcipher(ctx->child); in crypto_rfc3686_exit_tfm()
A Dgcm.c32 struct crypto_aead *child; member
47 struct crypto_aead *child; member
687 struct crypto_aead *child = ctx->child; in crypto_rfc4106_setkey() local
720 struct crypto_aead *child = ctx->child; in crypto_rfc4106_crypt() local
723 crypto_aead_alignmask(child) + 1); in crypto_rfc4106_crypt()
744 aead_request_set_tfm(subreq, child); in crypto_rfc4106_crypt()
793 ctx->child = aead; in crypto_rfc4106_init_tfm()
810 crypto_free_aead(ctx->child); in crypto_rfc4106_exit_tfm()
895 struct crypto_aead *child = ctx->child; in crypto_rfc4543_setkey() local
976 ctx->child = aead; in crypto_rfc4543_init_tfm()
[all …]
A Dlrw.c31 struct crypto_skcipher *child; member
72 struct crypto_skcipher *child = ctx->child; in lrw_setkey() local
78 crypto_skcipher_clear_flags(child, CRYPTO_TFM_REQ_MASK); in lrw_setkey()
79 crypto_skcipher_set_flags(child, crypto_skcipher_get_flags(parent) & in lrw_setkey()
81 err = crypto_skcipher_setkey(child, key, keylen - bsize); in lrw_setkey()
229 skcipher_request_set_tfm(subreq, ctx->child); in lrw_init_crypt()
276 ctx->child = cipher; in lrw_init_tfm()
290 crypto_free_skcipher(ctx->child); in lrw_exit_tfm()
A Dccm.c31 struct crypto_aead *child; member
55 struct crypto_cipher *child; member
567 struct crypto_aead *child = ctx->child; in crypto_rfc4309_setkey() local
604 struct crypto_aead *child = ctx->child; in crypto_rfc4309_crypt() local
607 crypto_aead_alignmask(child) + 1); in crypto_rfc4309_crypt()
631 aead_request_set_tfm(subreq, child); in crypto_rfc4309_crypt()
674 ctx->child = aead; in crypto_rfc4309_init_tfm()
691 crypto_free_aead(ctx->child); in crypto_rfc4309_exit_tfm()
794 struct crypto_cipher *tfm = tctx->child; in crypto_cbcmac_digest_update()
836 ctx->child = cipher; in cbcmac_init_tfm()
[all …]
A Drsassa-pkcs1.c149 struct crypto_akcipher *child; member
198 err = crypto_akcipher_sync_decrypt(ctx->child, in_buf, in rsassa_pkcs1_sign()
224 unsigned int child_reqsize = crypto_akcipher_reqsize(ctx->child); in rsassa_pkcs1_verify()
250 akcipher_request_set_tfm(child_req, ctx->child); in rsassa_pkcs1_verify()
312 return rsa_set_key(ctx->child, &ctx->key_size, RSA_PUB, key, keylen); in rsassa_pkcs1_set_pub_key()
320 return rsa_set_key(ctx->child, &ctx->key_size, RSA_PRIV, key, keylen); in rsassa_pkcs1_set_priv_key()
334 ctx->child = child_tfm; in rsassa_pkcs1_init_tfm()
343 crypto_free_akcipher(ctx->child); in rsassa_pkcs1_exit_tfm()
A Dpcrypt.c32 struct crypto_aead *child; member
47 return crypto_aead_setkey(ctx->child, key, keylen); in pcrypt_aead_setkey()
55 return crypto_aead_setauthsize(ctx->child, authsize); in pcrypt_aead_setauthsize()
110 aead_request_set_tfm(creq, ctx->child); in pcrypt_aead_encrypt()
161 aead_request_set_tfm(creq, ctx->child); in pcrypt_aead_decrypt()
196 ctx->child = cipher; in pcrypt_aead_init_tfm()
208 crypto_free_aead(ctx->child); in pcrypt_aead_exit_tfm()
A Drsa-pkcs1pad.c20 struct crypto_akcipher *child; member
39 return rsa_set_key(ctx->child, &ctx->key_size, RSA_PUB, key, keylen); in pkcs1pad_set_pub_key()
47 return rsa_set_key(ctx->child, &ctx->key_size, RSA_PRIV, key, keylen); in pkcs1pad_set_priv_key()
160 akcipher_request_set_tfm(&req_ctx->child_req, ctx->child); in pkcs1pad_encrypt()
259 akcipher_request_set_tfm(&req_ctx->child_req, ctx->child); in pkcs1pad_decrypt()
286 ctx->child = child_tfm; in pkcs1pad_init_tfm()
298 crypto_free_akcipher(ctx->child); in pkcs1pad_exit_tfm()
A Dechainiv.c39 aead_request_set_tfm(subreq, ctx->child); in echainiv_encrypt()
85 aead_request_set_tfm(subreq, ctx->child); in echainiv_decrypt()
A Dseqiv.c61 aead_request_set_tfm(subreq, ctx->child); in seqiv_aead_encrypt()
109 aead_request_set_tfm(subreq, ctx->child); in seqiv_aead_decrypt()

Completed in 30 milliseconds