Home
last modified time | relevance | path

Searched refs:encrypt (Results 1 – 25 of 182) sorted by relevance

12345678

/linux/drivers/crypto/
H A Dpadlock-aes.c66 struct cword encrypt; member
134 ctx->cword.encrypt.rounds = 10 + (key_len - 16) / 4; in aes_set_key()
135 ctx->cword.decrypt.rounds = ctx->cword.encrypt.rounds; in aes_set_key()
136 ctx->cword.encrypt.ksize = (key_len - 16) / 8; in aes_set_key()
137 ctx->cword.decrypt.ksize = ctx->cword.encrypt.ksize; in aes_set_key()
144 ctx->cword.encrypt.keygen = 1; in aes_set_key()
155 if (&ctx->cword.encrypt == per_cpu(paes_last_cword, cpu) || in aes_set_key()
310 padlock_reset_key(&ctx->cword.encrypt); in padlock_aes_encrypt()
311 ecb_crypt(in, out, ctx->E, &ctx->cword.encrypt, 1); in padlock_aes_encrypt()
312 padlock_store_cword(&ctx->cword.encrypt); in padlock_aes_encrypt()
[all …]
/linux/drivers/crypto/caam/
H A Dcaamalg.c1073 bool all_contig, bool encrypt) in init_aead_job() argument
1085 sh_desc = encrypt ? ctx->sh_desc_enc : ctx->sh_desc_dec; in init_aead_job()
1086 ptr = encrypt ? ctx->sh_desc_enc_dma : ctx->sh_desc_dec_dma; in init_aead_job()
1122 if (encrypt) in init_aead_job()
1134 bool all_contig, bool encrypt) in init_gcm_job() argument
1143 init_aead_job(req, edesc, all_contig, encrypt); in init_gcm_job()
1148 if (encrypt && generic_gcm && !(req->assoclen + req->cryptlen)) in init_gcm_job()
1164 bool encrypt) in init_chachapoly_job() argument
1172 init_aead_job(req, edesc, all_contig, encrypt); in init_chachapoly_job()
1198 bool all_contig, bool encrypt) in init_authenc_job() argument
[all …]
H A Dcaamalg_qi.c942 bool encrypt) in aead_edesc_alloc() argument
962 drv_ctx = get_drv_ctx(ctx, encrypt ? ENCRYPT : DECRYPT); in aead_edesc_alloc()
975 (encrypt ? authsize : 0); in aead_edesc_alloc()
994 dst_len = src_len + (encrypt ? authsize : (-authsize)); in aead_edesc_alloc()
1040 if ((alg->caam.rfc3686 && encrypt) || !alg->caam.geniv) in aead_edesc_alloc()
1136 (encrypt ? ctx->authsize : (-ctx->authsize)); in aead_edesc_alloc()
1161 static inline int aead_crypt(struct aead_request *req, bool encrypt) in aead_crypt() argument
1172 edesc = aead_edesc_alloc(req, encrypt); in aead_crypt()
1255 bool encrypt) in skcipher_edesc_alloc() argument
1272 drv_ctx = get_drv_ctx(ctx, encrypt ? ENCRYPT : DECRYPT); in skcipher_edesc_alloc()
[all …]
H A Dcaamalg_qi2.c352 bool encrypt) in aead_edesc_alloc() argument
383 dst_len = src_len + (encrypt ? authsize : (-authsize)); in aead_edesc_alloc()
428 (encrypt ? authsize : 0); in aead_edesc_alloc()
447 if ((alg->caam.rfc3686 && encrypt) || !alg->caam.geniv) in aead_edesc_alloc()
549 (encrypt ? ctx->authsize : (-ctx->authsize)); in aead_edesc_alloc()
1683 .encrypt = skcipher_encrypt,
1699 .encrypt = skcipher_encrypt,
1715 .encrypt = skcipher_encrypt,
1731 .encrypt = skcipher_encrypt,
1749 .encrypt = skcipher_encrypt,
[all …]
/linux/arch/sparc/crypto/
H A Ddes_glue.c95 static int __ecb_crypt(struct skcipher_request *req, bool encrypt) in __ecb_crypt() argument
107 if (encrypt) in __ecb_crypt()
136 static int __cbc_crypt(struct skcipher_request *req, bool encrypt) in __cbc_crypt() argument
148 if (encrypt) in __cbc_crypt()
153 if (encrypt) in __cbc_crypt()
244 static int __ecb3_crypt(struct skcipher_request *req, bool encrypt) in __ecb3_crypt() argument
257 if (encrypt) in __ecb3_crypt()
290 static int __cbc3_crypt(struct skcipher_request *req, bool encrypt) in __cbc3_crypt() argument
303 if (encrypt) in __cbc3_crypt()
309 if (encrypt) in __cbc3_crypt()
[all …]
H A Daes_glue.c36 void (*encrypt)(const u64 *key, const u32 *input, u32 *output); member
130 .encrypt = aes_sparc64_encrypt_128,
142 .encrypt = aes_sparc64_encrypt_192,
154 .encrypt = aes_sparc64_encrypt_256,
209 ctx->ops->encrypt(&ctx->key[0], (const u32 *) src, (u32 *) dst); in crypto_aes_encrypt()
394 .encrypt = ecb_encrypt,
408 .encrypt = cbc_encrypt,
422 .encrypt = ctr_crypt,
H A Dcamellia_glue.c88 static int __ecb_crypt(struct skcipher_request *req, bool encrypt) in __ecb_crypt() argument
106 if (encrypt) in __ecb_crypt()
228 .encrypt = ecb_encrypt,
242 .encrypt = cbc_encrypt,
/linux/net/ceph/
H A Dcrypto.c207 static int ceph_aes_crypt(const struct ceph_crypto_key *key, bool encrypt, in ceph_aes_crypt() argument
215 int crypt_len = encrypt ? in_len + pad_byte : in_len; in ceph_aes_crypt()
219 if (encrypt) in ceph_aes_crypt()
236 if (encrypt) in ceph_aes_crypt()
243 encrypt ? "en" : "de", ret); in ceph_aes_crypt()
251 if (encrypt) { in ceph_aes_crypt()
271 int ceph_crypt(const struct ceph_crypto_key *key, bool encrypt, in ceph_crypt() argument
279 return ceph_aes_crypt(key, encrypt, buf, buf_len, in_len, in ceph_crypt()
/linux/drivers/crypto/virtio/
H A Dvirtio_crypto_skcipher_algs.c35 bool encrypt; member
115 int encrypt) in virtio_crypto_alg_skcipher_init_session() argument
119 int op = encrypt ? VIRTIO_CRYPTO_OP_ENCRYPT : VIRTIO_CRYPTO_OP_DECRYPT; in virtio_crypto_alg_skcipher_init_session()
180 if (encrypt) in virtio_crypto_alg_skcipher_init_session()
194 int encrypt) in virtio_crypto_alg_skcipher_close_session() argument
219 if (encrypt) in virtio_crypto_alg_skcipher_close_session()
371 if (vc_sym_req->encrypt) { in __virtio_crypto_skcipher_do_req()
425 if (!vc_sym_req->encrypt) in __virtio_crypto_skcipher_do_req()
486 vc_sym_req->encrypt = true; in virtio_crypto_skcipher_encrypt()
511 vc_sym_req->encrypt = false; in virtio_crypto_skcipher_decrypt()
[all …]
/linux/arch/arm64/crypto/
H A Dsm4-ce-glue.c155 struct sm4_ctx *ctx, bool encrypt) in sm4_cbc_crypt() argument
174 if (encrypt) in sm4_cbc_crypt()
206 static int sm4_cbc_cts_crypt(struct skcipher_request *req, bool encrypt) in sm4_cbc_cts_crypt() argument
222 return sm4_cbc_crypt(req, ctx, encrypt); in sm4_cbc_cts_crypt()
235 err = sm4_cbc_crypt(&subreq, ctx, encrypt); in sm4_cbc_cts_crypt()
256 if (encrypt) in sm4_cbc_cts_crypt()
321 static int sm4_xts_crypt(struct skcipher_request *req, bool encrypt) in sm4_xts_crypt() argument
366 if (encrypt) in sm4_xts_crypt()
402 if (encrypt) in sm4_xts_crypt()
439 .encrypt = sm4_ecb_encrypt,
[all …]
H A Daes-neonbs-glue.c277 static int __xts_crypt(struct skcipher_request *req, bool encrypt, in __xts_crypt() argument
338 if (encrypt) in __xts_crypt()
372 if (encrypt) in __xts_crypt()
405 .encrypt = ecb_encrypt,
420 .encrypt = cbc_encrypt,
436 .encrypt = ctr_encrypt,
451 .encrypt = xts_encrypt,
/linux/drivers/crypto/inside-secure/
H A Dsafexcel_cipher.c1296 .encrypt = safexcel_encrypt,
1333 .encrypt = safexcel_encrypt,
1407 .encrypt = safexcel_encrypt,
1469 .encrypt = safexcel_encrypt,
1508 .encrypt = safexcel_encrypt,
1568 .encrypt = safexcel_encrypt,
1607 .encrypt = safexcel_encrypt,
1680 .encrypt = safexcel_aead_encrypt,
1716 .encrypt = safexcel_aead_encrypt,
1752 .encrypt = safexcel_aead_encrypt,
[all …]
/linux/lib/crypto/
H A Dchacha20poly1305.c213 int encrypt) in chacha20poly1305_crypt_sg_inplace() argument
262 if (!encrypt) in chacha20poly1305_crypt_sg_inplace()
292 if (encrypt) in chacha20poly1305_crypt_sg_inplace()
305 if (encrypt) { in chacha20poly1305_crypt_sg_inplace()
321 scatterwalk_map_and_copy(b.mac[encrypt], src, src_len, in chacha20poly1305_crypt_sg_inplace()
322 sizeof(b.mac[1]), encrypt); in chacha20poly1305_crypt_sg_inplace()
323 ret = encrypt || in chacha20poly1305_crypt_sg_inplace()
/linux/arch/x86/crypto/
H A Dsm4_aesni_avx2_glue.c63 .encrypt = sm4_avx_ecb_encrypt,
80 .encrypt = sm4_cbc_encrypt,
98 .encrypt = ctr_crypt,
/linux/arch/arm/crypto/
H A Dchacha-glue.c209 .encrypt = chacha_arm,
224 .encrypt = xchacha_arm,
239 .encrypt = xchacha_arm,
259 .encrypt = chacha_neon,
275 .encrypt = xchacha_neon,
291 .encrypt = xchacha_neon,
H A Daes-neonbs-glue.c293 static int __xts_crypt(struct skcipher_request *req, bool encrypt, in __xts_crypt() argument
327 int reorder_last_tweak = !encrypt && tail > 0; in __xts_crypt()
354 if (encrypt) in __xts_crypt()
389 .encrypt = ecb_encrypt,
405 .encrypt = cbc_encrypt,
422 .encrypt = ctr_encrypt,
438 .encrypt = ctr_encrypt_sync,
454 .encrypt = xts_encrypt,
/linux/drivers/crypto/ccp/
H A Dccp-crypto-aes.c66 static int ccp_aes_crypt(struct skcipher_request *req, bool encrypt) in ccp_aes_crypt() argument
98 (encrypt) ? CCP_AES_ACTION_ENCRYPT : CCP_AES_ACTION_DECRYPT; in ccp_aes_crypt()
158 static int ccp_aes_rfc3686_crypt(struct skcipher_request *req, bool encrypt) in ccp_aes_rfc3686_crypt() argument
179 return ccp_aes_crypt(req, encrypt); in ccp_aes_rfc3686_crypt()
206 .encrypt = ccp_aes_encrypt,
224 .encrypt = ccp_aes_rfc3686_encrypt,
H A Dccp-crypto-aes-xts.c105 unsigned int encrypt) in ccp_aes_xts_crypt() argument
159 ret = encrypt ? crypto_skcipher_encrypt(&rctx->fallback_req) : in ccp_aes_xts_crypt()
171 rctx->cmd.u.xts.action = (encrypt) ? CCP_AES_ACTION_ENCRYPT in ccp_aes_xts_crypt()
256 alg->encrypt = ccp_aes_xts_encrypt; in ccp_register_aes_xts_alg()
/linux/crypto/
H A Dchacha_generic.c83 .encrypt = crypto_chacha_crypt,
98 .encrypt = crypto_xchacha_crypt,
113 .encrypt = crypto_xchacha_crypt,
/linux/drivers/crypto/cavium/nitrox/
H A Dnitrox_skcipher.c399 .encrypt = nitrox_aes_encrypt,
418 .encrypt = nitrox_aes_encrypt,
437 .encrypt = nitrox_aes_encrypt,
458 .encrypt = nitrox_aes_encrypt,
475 .encrypt = nitrox_aes_encrypt,
494 .encrypt = nitrox_3des_encrypt,
513 .encrypt = nitrox_3des_encrypt,
/linux/drivers/crypto/hisilicon/sec/
H A Dsec_algs.c630 *sec_alg_alloc_and_fill_el(struct sec_bd_info *template, int encrypt, in sec_alg_alloc_and_fill_el() argument
648 if (encrypt) in sec_alg_alloc_and_fill_el()
708 bool encrypt) in sec_alg_skcipher_crypto() argument
774 encrypt ? 1 : 0, in sec_alg_skcipher_crypto()
948 .encrypt = sec_alg_skcipher_encrypt,
968 .encrypt = sec_alg_skcipher_encrypt,
988 .encrypt = sec_alg_skcipher_encrypt,
1008 .encrypt = sec_alg_skcipher_encrypt,
1029 .encrypt = sec_alg_skcipher_encrypt,
1049 .encrypt = sec_alg_skcipher_encrypt,
[all …]
/linux/arch/mips/crypto/
H A Dchacha-glue.c94 .encrypt = chacha_mips,
109 .encrypt = xchacha_mips,
124 .encrypt = xchacha_mips,
/linux/arch/s390/crypto/
H A Ddes_s390.c156 .encrypt = ecb_des_encrypt,
181 .encrypt = cbc_des_encrypt,
274 .encrypt = ecb_des3_encrypt,
299 .encrypt = cbc_des3_encrypt,
372 .encrypt = ctr_des_crypt,
393 .encrypt = ctr_des3_crypt,
/linux/net/sunrpc/auth_gss/
H A Dgss_krb5_mech.c46 .encrypt = gss_krb5_aes_encrypt,
75 .encrypt = gss_krb5_aes_encrypt,
114 .encrypt = gss_krb5_aes_encrypt,
140 .encrypt = gss_krb5_aes_encrypt,
169 .encrypt = krb5_etm_encrypt,
195 .encrypt = krb5_etm_encrypt,
/linux/arch/powerpc/crypto/
H A Dchacha-p10-glue.c163 .encrypt = chacha_p10,
178 .encrypt = xchacha_p10,
193 .encrypt = xchacha_p10,

12345678