/crypto/ |
D | simd.c | 54 struct crypto_skcipher *child = &ctx->cryptd_tfm->base; in simd_skcipher_setkey() local 56 crypto_skcipher_clear_flags(child, CRYPTO_TFM_REQ_MASK); in simd_skcipher_setkey() 57 crypto_skcipher_set_flags(child, crypto_skcipher_get_flags(tfm) & in simd_skcipher_setkey() 59 return crypto_skcipher_setkey(child, key, key_len); in simd_skcipher_setkey() 67 struct crypto_skcipher *child; in simd_skcipher_encrypt() local 74 child = &ctx->cryptd_tfm->base; in simd_skcipher_encrypt() 76 child = cryptd_skcipher_child(ctx->cryptd_tfm); 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() [all …]
|
D | cryptd.c | 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 [all …]
|
D | geniv.c | 24 return crypto_aead_setkey(ctx->child, key, keylen); in aead_geniv_setkey() 32 return crypto_aead_setauthsize(ctx->child, authsize); in aead_geniv_setauthsize() 113 struct crypto_aead *child; in aead_init_geniv() local 133 child = crypto_spawn_aead(aead_instance_ctx(inst)); in aead_init_geniv() 134 err = PTR_ERR(child); in aead_init_geniv() 135 if (IS_ERR(child)) in aead_init_geniv() 138 ctx->child = child; in aead_init_geniv() 139 crypto_aead_set_reqsize(aead, crypto_aead_reqsize(child) + in aead_init_geniv() 157 crypto_free_aead(ctx->child); in aead_exit_geniv()
|
D | xts.c | 25 struct crypto_skcipher *child; member 45 struct crypto_skcipher *child; in xts_setkey() local 69 child = ctx->child; in xts_setkey() 70 crypto_skcipher_clear_flags(child, CRYPTO_TFM_REQ_MASK); in xts_setkey() 71 crypto_skcipher_set_flags(child, crypto_skcipher_get_flags(parent) & in xts_setkey() 73 return crypto_skcipher_setkey(child, key, keylen); in xts_setkey() 182 skcipher_request_set_tfm(subreq, ctx->child); in xts_cts_final() 250 skcipher_request_set_tfm(subreq, ctx->child); in xts_init_crypt() 300 struct crypto_skcipher *child; in xts_init_tfm() local 303 child = crypto_spawn_skcipher(&ictx->spawn); in xts_init_tfm() [all …]
|
D | cts.c | 56 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 …]
|
D | xcbc.c | 29 struct crypto_cipher *child; member 61 if ((err = crypto_cipher_setkey(ctx->child, inkey, keylen))) in crypto_xcbc_digest_setkey() 64 crypto_cipher_encrypt_one(ctx->child, consts, (u8 *)ks + bs); in crypto_xcbc_digest_setkey() 65 crypto_cipher_encrypt_one(ctx->child, consts + bs, (u8 *)ks + bs * 2); in crypto_xcbc_digest_setkey() 66 crypto_cipher_encrypt_one(ctx->child, key1, (u8 *)ks); in crypto_xcbc_digest_setkey() 68 return crypto_cipher_setkey(ctx->child, key1, bs); in crypto_xcbc_digest_setkey() 92 struct crypto_cipher *tfm = tctx->child; in crypto_xcbc_digest_update() 138 struct crypto_cipher *tfm = tctx->child; in crypto_xcbc_digest_final() 178 ctx->child = cipher; in xcbc_init_tfm() 186 crypto_free_cipher(ctx->child); in xcbc_exit_tfm()
|
D | ctr.c | 19 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()
|
D | gcm.c | 33 struct crypto_aead *child; member 48 struct crypto_aead *child; member 695 struct crypto_aead *child = ctx->child; in crypto_rfc4106_setkey() local 703 crypto_aead_clear_flags(child, CRYPTO_TFM_REQ_MASK); in crypto_rfc4106_setkey() 704 crypto_aead_set_flags(child, crypto_aead_get_flags(parent) & in crypto_rfc4106_setkey() 706 return crypto_aead_setkey(child, key, keylen); in crypto_rfc4106_setkey() 719 return crypto_aead_setauthsize(ctx->child, authsize); in crypto_rfc4106_setauthsize() 728 struct crypto_aead *child = ctx->child; in crypto_rfc4106_crypt() local 730 u8 *iv = PTR_ALIGN((u8 *)(subreq + 1) + crypto_aead_reqsize(child), in crypto_rfc4106_crypt() 731 crypto_aead_alignmask(child) + 1); in crypto_rfc4106_crypt() [all …]
|
D | lrw.c | 31 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()
|
D | ccm.c | 30 struct crypto_aead *child; member 54 struct crypto_cipher *child; member 573 struct crypto_aead *child = ctx->child; in crypto_rfc4309_setkey() local 581 crypto_aead_clear_flags(child, CRYPTO_TFM_REQ_MASK); in crypto_rfc4309_setkey() 582 crypto_aead_set_flags(child, crypto_aead_get_flags(parent) & in crypto_rfc4309_setkey() 584 return crypto_aead_setkey(child, key, keylen); in crypto_rfc4309_setkey() 601 return crypto_aead_setauthsize(ctx->child, authsize); in crypto_rfc4309_setauthsize() 610 struct crypto_aead *child = ctx->child; in crypto_rfc4309_crypt() local 612 u8 *iv = PTR_ALIGN((u8 *)(subreq + 1) + crypto_aead_reqsize(child), in crypto_rfc4309_crypt() 613 crypto_aead_alignmask(child) + 1); in crypto_rfc4309_crypt() [all …]
|
D | cmac.c | 30 struct crypto_cipher *child; member 62 err = crypto_cipher_setkey(ctx->child, inkey, keylen); in crypto_cmac_digest_setkey() 68 crypto_cipher_encrypt_one(ctx->child, (u8 *)consts, (u8 *)consts); in crypto_cmac_digest_setkey() 125 struct crypto_cipher *tfm = tctx->child; in crypto_cmac_digest_update() 171 struct crypto_cipher *tfm = tctx->child; in crypto_cmac_digest_final() 212 ctx->child = cipher; in cmac_init_tfm() 220 crypto_free_cipher(ctx->child); in cmac_exit_tfm()
|
D | rsa-pkcs1pad.c | 92 struct crypto_akcipher *child; member 115 err = crypto_akcipher_set_pub_key(ctx->child, key, keylen); in pkcs1pad_set_pub_key() 120 err = crypto_akcipher_maxsize(ctx->child); in pkcs1pad_set_pub_key() 136 err = crypto_akcipher_set_priv_key(ctx->child, key, keylen); in pkcs1pad_set_priv_key() 141 err = crypto_akcipher_maxsize(ctx->child); in pkcs1pad_set_priv_key() 260 akcipher_request_set_tfm(&req_ctx->child_req, ctx->child); in pkcs1pad_encrypt() 360 akcipher_request_set_tfm(&req_ctx->child_req, ctx->child); in pkcs1pad_decrypt() 418 akcipher_request_set_tfm(&req_ctx->child_req, ctx->child); in pkcs1pad_sign() 549 akcipher_request_set_tfm(&req_ctx->child_req, ctx->child); in pkcs1pad_verify() 576 ctx->child = child_tfm; in pkcs1pad_init_tfm() [all …]
|
D | pcrypt.c | 32 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() 159 aead_request_set_tfm(creq, ctx->child); in pcrypt_aead_decrypt() 195 ctx->child = cipher; in pcrypt_aead_init_tfm() 207 crypto_free_aead(ctx->child); in pcrypt_aead_exit_tfm()
|
D | echainiv.c | 40 aead_request_set_tfm(subreq, ctx->child); in echainiv_encrypt() 97 aead_request_set_tfm(subreq, ctx->child); in echainiv_decrypt()
|
D | seqiv.c | 62 aead_request_set_tfm(subreq, ctx->child); in seqiv_aead_encrypt() 121 aead_request_set_tfm(subreq, ctx->child); in seqiv_aead_decrypt()
|
D | fips.c | 48 .child = crypto_sysctl_table
|