Searched refs:encrypt (Results 1 - 25 of 218) sorted by relevance

123456789

/linux-master/drivers/crypto/
H A Dpadlock-aes.c66 struct cword encrypt; member in struct:aes_ctx::__anon229
134 ctx->cword.encrypt.rounds = 10 + (key_len - 16) / 4;
135 ctx->cword.decrypt.rounds = ctx->cword.encrypt.rounds;
136 ctx->cword.encrypt.ksize = (key_len - 16) / 8;
137 ctx->cword.decrypt.ksize = ctx->cword.encrypt.ksize;
144 ctx->cword.encrypt.keygen = 1;
155 if (&ctx->cword.encrypt == per_cpu(paes_last_cword, cpu) ||
310 padlock_reset_key(&ctx->cword.encrypt);
311 ecb_crypt(in, out, ctx->E, &ctx->cword.encrypt, 1);
312 padlock_store_cword(&ctx->cword.encrypt);
[all...]
/linux-master/arch/sparc/crypto/
H A Ddes_glue.c95 static int __ecb_crypt(struct skcipher_request *req, bool encrypt) argument
107 if (encrypt)
136 static int __cbc_crypt(struct skcipher_request *req, bool encrypt) argument
148 if (encrypt)
153 if (encrypt)
244 static int __ecb3_crypt(struct skcipher_request *req, bool encrypt) argument
257 if (encrypt)
290 static int __cbc3_crypt(struct skcipher_request *req, bool encrypt) argument
303 if (encrypt)
309 if (encrypt)
[all...]
/linux-master/arch/x86/crypto/
H A Dsm4_aesni_avx2_glue.c63 .encrypt = sm4_avx_ecb_encrypt,
80 .encrypt = sm4_cbc_encrypt,
98 .encrypt = ctr_crypt,
H A Dcamellia_aesni_avx_glue.c82 .encrypt = ecb_encrypt,
96 .encrypt = cbc_encrypt,
H A Dcamellia_aesni_avx2_glue.c82 .encrypt = ecb_encrypt,
96 .encrypt = cbc_encrypt,
H A Dtwofish_avx_glue.c87 .encrypt = ecb_encrypt,
101 .encrypt = cbc_encrypt,
H A Dserpent_avx_glue.c84 .encrypt = ecb_encrypt,
98 .encrypt = cbc_encrypt,
H A Dserpent_sse2_glue.c87 .encrypt = ecb_encrypt,
101 .encrypt = cbc_encrypt,
H A Dcast6_avx_glue.c77 .encrypt = ecb_encrypt,
91 .encrypt = cbc_encrypt,
H A Dcast5_avx_glue.c77 .encrypt = ecb_encrypt,
91 .encrypt = cbc_encrypt,
H A Dtwofish_glue_3way.c87 .encrypt = ecb_encrypt,
100 .encrypt = cbc_encrypt,
H A Dserpent_avx2_glue.c78 .encrypt = ecb_encrypt,
92 .encrypt = cbc_encrypt,
/linux-master/net/ceph/
H A Dcrypto.h30 int ceph_crypt(const struct ceph_crypto_key *key, bool encrypt,
H A Dcrypto.c151 * Currently these are encrypt out-buffer (ceph_buffer) and decrypt
219 static int ceph_aes_crypt(const struct ceph_crypto_key *key, bool encrypt, argument
227 int crypt_len = encrypt ? in_len + pad_byte : in_len;
231 if (encrypt)
248 if (encrypt)
255 encrypt ? "en" : "de", ret);
263 if (encrypt) {
283 int ceph_crypt(const struct ceph_crypto_key *key, bool encrypt, argument
291 return ceph_aes_crypt(key, encrypt, buf, buf_len, in_len,
/linux-master/drivers/net/ethernet/intel/ixgbevf/
H A Dipsec.h40 bool encrypt; member in struct:tx_sa
/linux-master/drivers/crypto/caam/
H A Dcaamalg.c345 * AES GCM encrypt shared descriptor
410 * RFC4106 encrypt shared descriptor
478 * RFC4543 encrypt shared descriptor
1073 bool all_contig, bool encrypt)
1085 sh_desc = encrypt ? ctx->sh_desc_enc : ctx->sh_desc_dec;
1086 ptr = encrypt ? ctx->sh_desc_enc_dma : ctx->sh_desc_dec_dma;
1122 if (encrypt)
1134 bool all_contig, bool encrypt)
1143 init_aead_job(req, edesc, all_contig, encrypt);
1148 if (encrypt
1071 init_aead_job(struct aead_request *req, struct aead_edesc *edesc, bool all_contig, bool encrypt) argument
1132 init_gcm_job(struct aead_request *req, struct aead_edesc *edesc, bool all_contig, bool encrypt) argument
1162 init_chachapoly_job(struct aead_request *req, struct aead_edesc *edesc, bool all_contig, bool encrypt) argument
1196 init_authenc_job(struct aead_request *req, struct aead_edesc *edesc, bool all_contig, bool encrypt) argument
1249 init_skcipher_job(struct skcipher_request *req, struct skcipher_edesc *edesc, const bool encrypt) argument
1305 aead_edesc_alloc(struct aead_request *req, int desc_bytes, bool *all_contig_ptr, bool encrypt) argument
1472 chachapoly_crypt(struct aead_request *req, bool encrypt) argument
1506 aead_crypt(struct aead_request *req, bool encrypt) argument
1565 gcm_crypt(struct aead_request *req, bool encrypt) argument
1810 skcipher_crypt(struct skcipher_request *req, bool encrypt) argument
[all...]
H A Dcaamalg_qi.c641 /* skcipher encrypt, decrypt shared descriptors */
764 /* xts skcipher encrypt, decrypt shared descriptors */
942 bool encrypt)
962 drv_ctx = get_drv_ctx(ctx, encrypt ? ENCRYPT : DECRYPT);
975 (encrypt ? authsize : 0);
994 dst_len = src_len + (encrypt ? authsize : (-authsize));
1040 if ((alg->caam.rfc3686 && encrypt) || !alg->caam.geniv)
1136 (encrypt ? ctx->authsize : (-ctx->authsize));
1161 static inline int aead_crypt(struct aead_request *req, bool encrypt) argument
1172 edesc = aead_edesc_alloc(req, encrypt);
941 aead_edesc_alloc(struct aead_request *req, bool encrypt) argument
1254 skcipher_edesc_alloc(struct skcipher_request *req, bool encrypt) argument
1420 skcipher_crypt(struct skcipher_request *req, bool encrypt) argument
[all...]
/linux-master/drivers/crypto/intel/ixp4xx/
H A Dixp4xx_crypto.c153 bool encrypt; member in struct:ablk_ctx
163 int encrypt; member in struct:aead_ctx
179 struct ix_sa_dir encrypt; member in struct:ixp_ctx
359 if (req_ctx->encrypt) {
399 if (req_ctx->encrypt) {
620 ret = init_sa_dir(&ctx->encrypt);
625 free_sa_dir(&ctx->encrypt);
662 free_sa_dir(&ctx->encrypt);
736 static int setup_auth(struct crypto_tfm *tfm, int encrypt, unsigned int authsize, argument
747 dir = encrypt
811 setup_cipher(struct crypto_tfm *tfm, int encrypt, const u8 *key, int key_len) argument
954 ixp4xx_cipher_fallback(struct skcipher_request *areq, int encrypt) argument
973 ablk_perform(struct skcipher_request *req, int encrypt) argument
1088 aead_perform(struct aead_request *req, int encrypt, int cryptoffset, int eff_cryptlen, u8 *iv) argument
[all...]
/linux-master/crypto/
H A Dchacha_generic.c83 .encrypt = crypto_chacha_crypt,
98 .encrypt = crypto_xchacha_crypt,
113 .encrypt = crypto_xchacha_crypt,
/linux-master/arch/mips/crypto/
H A Dchacha-glue.c94 .encrypt = chacha_mips,
109 .encrypt = xchacha_mips,
124 .encrypt = xchacha_mips,
/linux-master/drivers/crypto/virtio/
H A Dvirtio_crypto_skcipher_algs.c35 bool encrypt; member in struct:virtio_crypto_sym_request
63 /* Finish the encrypt or decrypt process */
115 int encrypt)
119 int op = encrypt ? VIRTIO_CRYPTO_OP_ENCRYPT : VIRTIO_CRYPTO_OP_DECRYPT;
180 if (encrypt)
194 int encrypt)
219 if (encrypt)
371 if (vc_sym_req->encrypt) {
425 if (!vc_sym_req->encrypt)
486 vc_sym_req->encrypt
111 virtio_crypto_alg_skcipher_init_session( struct virtio_crypto_skcipher_ctx *ctx, uint32_t alg, const uint8_t *key, unsigned int keylen, int encrypt) argument
192 virtio_crypto_alg_skcipher_close_session( struct virtio_crypto_skcipher_ctx *ctx, int encrypt) argument
[all...]
/linux-master/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,
/linux-master/drivers/crypto/ccp/
H A Dccp-crypto-aes.c66 static int ccp_aes_crypt(struct skcipher_request *req, bool encrypt) argument
98 (encrypt) ? CCP_AES_ACTION_ENCRYPT : CCP_AES_ACTION_DECRYPT;
158 static int ccp_aes_rfc3686_crypt(struct skcipher_request *req, bool encrypt) argument
179 return ccp_aes_crypt(req, encrypt);
206 .encrypt = ccp_aes_encrypt,
224 .encrypt = ccp_aes_rfc3686_encrypt,
/linux-master/drivers/fpga/
H A Dsocfpga-a10.c170 bool encrypt, bool compress)
188 if (!compress && !encrypt)
209 int encrypt, compress; local
211 encrypt = socfpga_a10_fpga_encrypted((u32 *)buf, count / 4);
212 if (encrypt < 0)
219 cd_ratio = socfpga_a10_fpga_get_cd_ratio(cfg_width, encrypt, compress);
169 socfpga_a10_fpga_get_cd_ratio(unsigned int cfg_width, bool encrypt, bool compress) argument
/linux-master/drivers/crypto/ccree/
H A Dcc_cipher.c1016 .encrypt = cc_cipher_encrypt,
1034 .encrypt = cc_cipher_encrypt,
1052 .encrypt = cc_cipher_encrypt,
1070 .encrypt = cc_cipher_encrypt,
1088 .encrypt = cc_cipher_encrypt,
1106 .encrypt = cc_cipher_encrypt,
1128 .encrypt = cc_cipher_encrypt,
1145 .encrypt = cc_cipher_encrypt,
1162 .encrypt = cc_cipher_encrypt,
1179 .encrypt
[all...]

Completed in 219 milliseconds

123456789