| /kernel/linux/linux-6.6/crypto/ |
| D | tcrypt.c | 49 #define ENCRYPT 1 macro 156 if (enc == ENCRYPT) in do_mult_aead_op() 268 if (enc == ENCRYPT) in test_mb_aead_speed() 549 if (enc == ENCRYPT) in test_aead_speed() 973 if (enc == ENCRYPT) in do_mult_acipher_op() 1073 if (enc == ENCRYPT) in test_mb_skcipher_speed() 1306 if (enc == ENCRYPT) in test_skcipher_speed() 1859 test_cipher_speed("ecb(aes)", ENCRYPT, sec, NULL, 0, in do_test() 1863 test_cipher_speed("cbc(aes)", ENCRYPT, sec, NULL, 0, in do_test() 1867 test_cipher_speed("lrw(aes)", ENCRYPT, sec, NULL, 0, in do_test() [all …]
|
| /kernel/linux/linux-5.10/crypto/ |
| D | tcrypt.c | 46 #define ENCRYPT 1 macro 164 if (enc == ENCRYPT) in do_mult_aead_op() 276 if (enc == ENCRYPT) in test_mb_aead_speed() 550 if (enc == ENCRYPT) in test_aead_speed() 1162 if (enc == ENCRYPT) in do_mult_acipher_op() 1262 if (enc == ENCRYPT) in test_mb_skcipher_speed() 1494 if (enc == ENCRYPT) in test_skcipher_speed() 2045 test_cipher_speed("ecb(aes)", ENCRYPT, sec, NULL, 0, in do_test() 2049 test_cipher_speed("cbc(aes)", ENCRYPT, sec, NULL, 0, in do_test() 2053 test_cipher_speed("lrw(aes)", ENCRYPT, sec, NULL, 0, in do_test() [all …]
|
| /kernel/linux/linux-5.10/drivers/crypto/ |
| D | padlock-aes.c | 66 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 …]
|
| D | ixp4xx_crypto.c | 153 bool encrypt; member 162 int encrypt; member 178 struct ix_sa_dir encrypt; member 352 if (req_ctx->encrypt) { in finish_scattered_hmac() 392 if (req_ctx->encrypt) { in one_packet() 581 ret = init_sa_dir(&ctx->encrypt); in init_tfm() 586 free_sa_dir(&ctx->encrypt); in init_tfm() 606 free_sa_dir(&ctx->encrypt); in exit_tfm() 676 static int setup_auth(struct crypto_tfm *tfm, int encrypt, unsigned authsize, in setup_auth() argument 687 dir = encrypt ? &ctx->encrypt : &ctx->decrypt; in setup_auth() [all …]
|
| /kernel/linux/linux-6.6/drivers/crypto/ |
| D | padlock-aes.c | 66 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 …]
|
| /kernel/linux/linux-5.10/drivers/crypto/caam/ |
| D | caamalg.c | 336 * AES GCM encrypt shared descriptor in gcm_set_sh_desc() 401 * RFC4106 encrypt shared descriptor in rfc4106_set_sh_desc() 469 * RFC4543 encrypt shared descriptor in rfc4543_set_sh_desc() 1058 bool all_contig, bool encrypt) in init_aead_job() argument 1070 sh_desc = encrypt ? ctx->sh_desc_enc : ctx->sh_desc_dec; in init_aead_job() 1071 ptr = encrypt ? ctx->sh_desc_enc_dma : ctx->sh_desc_dec_dma; in init_aead_job() 1107 if (encrypt) in init_aead_job() 1119 bool all_contig, bool encrypt) in init_gcm_job() argument 1128 init_aead_job(req, edesc, all_contig, encrypt); in init_gcm_job() 1133 if (encrypt && generic_gcm && !(req->assoclen + req->cryptlen)) in init_gcm_job() [all …]
|
| D | caamalg_qi.c | 258 if (ctx->drv_ctx[ENCRYPT]) { in aead_setkey() 259 ret = caam_drv_ctx_update(ctx->drv_ctx[ENCRYPT], in aead_setkey() 382 if (ctx->drv_ctx[ENCRYPT]) { in gcm_setkey() 383 ret = caam_drv_ctx_update(ctx->drv_ctx[ENCRYPT], in gcm_setkey() 490 if (ctx->drv_ctx[ENCRYPT]) { in rfc4106_setkey() 491 ret = caam_drv_ctx_update(ctx->drv_ctx[ENCRYPT], in rfc4106_setkey() 596 if (ctx->drv_ctx[ENCRYPT]) { in rfc4543_setkey() 597 ret = caam_drv_ctx_update(ctx->drv_ctx[ENCRYPT], in rfc4543_setkey() 636 /* skcipher encrypt, decrypt shared descriptors */ in skcipher_setkey() 643 if (ctx->drv_ctx[ENCRYPT]) { in skcipher_setkey() [all …]
|
| /kernel/linux/linux-6.6/drivers/crypto/caam/ |
| D | caamalg.c | 345 * AES GCM encrypt shared descriptor in gcm_set_sh_desc() 410 * RFC4106 encrypt shared descriptor in rfc4106_set_sh_desc() 478 * RFC4543 encrypt shared descriptor in rfc4543_set_sh_desc() 1073 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() [all …]
|
| D | caamalg_qi.c | 263 if (ctx->drv_ctx[ENCRYPT]) { in aead_setkey() 264 ret = caam_drv_ctx_update(ctx->drv_ctx[ENCRYPT], in aead_setkey() 387 if (ctx->drv_ctx[ENCRYPT]) { in gcm_setkey() 388 ret = caam_drv_ctx_update(ctx->drv_ctx[ENCRYPT], in gcm_setkey() 495 if (ctx->drv_ctx[ENCRYPT]) { in rfc4106_setkey() 496 ret = caam_drv_ctx_update(ctx->drv_ctx[ENCRYPT], in rfc4106_setkey() 601 if (ctx->drv_ctx[ENCRYPT]) { in rfc4543_setkey() 602 ret = caam_drv_ctx_update(ctx->drv_ctx[ENCRYPT], in rfc4543_setkey() 641 /* skcipher encrypt, decrypt shared descriptors */ in skcipher_setkey() 648 if (ctx->drv_ctx[ENCRYPT]) { in skcipher_setkey() [all …]
|
| D | caamalg_qi2.c | 237 flc = &ctx->flc[ENCRYPT]; in aead_set_sh_desc() 251 dma_sync_single_for_device(dev, ctx->flc_dma[ENCRYPT], in aead_set_sh_desc() 352 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() 508 * to skip it when we authenticate or encrypt... in aead_edesc_alloc() 549 (encrypt ? ctx->authsize : (-ctx->authsize)); in aead_edesc_alloc() 601 flc = &ctx->flc[ENCRYPT]; in chachapoly_set_sh_desc() 606 dma_sync_single_for_device(dev, ctx->flc_dma[ENCRYPT], in chachapoly_set_sh_desc() [all …]
|
| /kernel/linux/linux-5.10/arch/sparc/crypto/ |
| D | des_glue.c | 95 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 …]
|
| /kernel/linux/linux-6.6/arch/sparc/crypto/ |
| D | des_glue.c | 95 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 …]
|
| /kernel/linux/linux-6.6/drivers/crypto/intel/ixp4xx/ |
| D | ixp4xx_crypto.c | 153 bool encrypt; member 163 int encrypt; member 179 struct ix_sa_dir encrypt; member 359 if (req_ctx->encrypt) { in finish_scattered_hmac() 399 if (req_ctx->encrypt) { in one_packet() 623 ret = init_sa_dir(&ctx->encrypt); in init_tfm() 628 free_sa_dir(&ctx->encrypt); in init_tfm() 665 free_sa_dir(&ctx->encrypt); in exit_tfm() 739 static int setup_auth(struct crypto_tfm *tfm, int encrypt, unsigned int authsize, in setup_auth() argument 750 dir = encrypt ? &ctx->encrypt : &ctx->decrypt; in setup_auth() [all …]
|
| /kernel/linux/linux-6.6/tools/perf/pmu-events/arch/s390/cf_z16/ |
| D | pai_crypto.json | 1014 "BriefDescription": "PCKMO ENCRYPT DEA KEY", 1015 "PublicDescription": "PCKMO-Encrypt-DEA-key function" 1021 "BriefDescription": "PCKMO ENCRYPT TDEA 128 KEY", 1022 "PublicDescription": "PCKMO-Encrypt-TDEA-128-key function" 1028 "BriefDescription": "PCKMO ENCRYPT TDEA 192 KEY", 1029 "PublicDescription": "PCKMO-Encrypt-TDEA-192-key function" 1035 "BriefDescription": "PCKMO ENCRYPT AES 128 KEY", 1036 "PublicDescription": "PCKMO-Encrypt-AES-128-key function" 1042 "BriefDescription": "PCKMO ENCRYPT AES 192 KEY", 1043 "PublicDescription": "PCKMO-Encrypt-AES-192-key function" [all …]
|
| /kernel/linux/linux-5.10/net/ceph/ |
| D | crypto.c | 150 * Currently these are encrypt out-buffer (ceph_buffer) and decrypt 218 static int ceph_aes_crypt(const struct ceph_crypto_key *key, bool encrypt, in ceph_aes_crypt() argument 226 int crypt_len = encrypt ? in_len + pad_byte : in_len; in ceph_aes_crypt() 230 if (encrypt) in ceph_aes_crypt() 247 if (encrypt) in ceph_aes_crypt() 254 encrypt ? "en" : "de", ret); in ceph_aes_crypt() 262 if (encrypt) { in ceph_aes_crypt() 282 int ceph_crypt(const struct ceph_crypto_key *key, bool encrypt, in ceph_crypt() argument 290 return ceph_aes_crypt(key, encrypt, buf, buf_len, in_len, in ceph_crypt()
|
| /kernel/linux/linux-6.6/net/ceph/ |
| D | crypto.c | 151 * Currently these are encrypt out-buffer (ceph_buffer) and decrypt 219 static int ceph_aes_crypt(const struct ceph_crypto_key *key, bool encrypt, in ceph_aes_crypt() argument 227 int crypt_len = encrypt ? in_len + pad_byte : in_len; in ceph_aes_crypt() 231 if (encrypt) in ceph_aes_crypt() 248 if (encrypt) in ceph_aes_crypt() 255 encrypt ? "en" : "de", ret); in ceph_aes_crypt() 263 if (encrypt) { in ceph_aes_crypt() 283 int ceph_crypt(const struct ceph_crypto_key *key, bool encrypt, in ceph_crypt() argument 291 return ceph_aes_crypt(key, encrypt, buf, buf_len, in_len, in ceph_crypt()
|
| /kernel/linux/linux-5.10/drivers/crypto/virtio/ |
| D | virtio_crypto_algs.c | 38 bool encrypt; member 66 /* Finish the encrypt or decrypt process */ in virtio_crypto_dataq_sym_callback() 118 int encrypt) in virtio_crypto_alg_skcipher_init_session() argument 122 int op = encrypt ? VIRTIO_CRYPTO_OP_ENCRYPT : VIRTIO_CRYPTO_OP_DECRYPT; in virtio_crypto_alg_skcipher_init_session() 183 if (encrypt) in virtio_crypto_alg_skcipher_init_session() 197 int encrypt) in virtio_crypto_alg_skcipher_close_session() argument 222 if (encrypt) in virtio_crypto_alg_skcipher_close_session() 374 if (vc_sym_req->encrypt) { in __virtio_crypto_skcipher_do_req() 428 if (!vc_sym_req->encrypt) in __virtio_crypto_skcipher_do_req() 489 vc_sym_req->encrypt = true; in virtio_crypto_skcipher_encrypt() [all …]
|
| /kernel/linux/linux-6.6/drivers/crypto/virtio/ |
| D | virtio_crypto_skcipher_algs.c | 35 bool encrypt; member 63 /* Finish the encrypt or decrypt process */ in virtio_crypto_dataq_sym_callback() 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() [all …]
|
| /kernel/linux/linux-6.6/fs/crypto/ |
| D | crypto.c | 100 /* Encrypt or decrypt a single filesystem block of file contents */ 148 * fscrypt_encrypt_pagecache_blocks() - Encrypt filesystem blocks from a 150 * @page: The locked pagecache page containing the block(s) to encrypt 151 * @len: Total size of the block(s) to encrypt. Must be a nonzero 153 * @offs: Byte offset within @page of the first block to encrypt. Must be 213 * fscrypt_encrypt_block_inplace() - Encrypt a filesystem block in-place 215 * @page: The page containing the block to encrypt 216 * @len: Size of block to encrypt. This must be a multiple of 218 * @offs: Byte offset within @page at which the block to encrypt begins 223 * Encrypt a possibly-compressed filesystem block that is located in an
|
| /kernel/linux/linux-5.10/fs/crypto/ |
| D | crypto.c | 92 /* Encrypt or decrypt a single filesystem block of file contents */ 140 * fscrypt_encrypt_pagecache_blocks() - Encrypt filesystem blocks from a 142 * @page: The locked pagecache page containing the block(s) to encrypt 143 * @len: Total size of the block(s) to encrypt. Must be a nonzero 145 * @offs: Byte offset within @page of the first block to encrypt. Must be 205 * fscrypt_encrypt_block_inplace() - Encrypt a filesystem block in-place 207 * @page: The page containing the block to encrypt 208 * @len: Size of block to encrypt. Doesn't need to be a multiple of the 210 * @offs: Byte offset within @page at which the block to encrypt begins 215 * Encrypt a possibly-compressed filesystem block that is located in an
|
| /kernel/linux/linux-5.10/drivers/crypto/cavium/nitrox/ |
| D | nitrox_skcipher.c | 92 if (nkreq->creq.ctrl.s.arg == ENCRYPT) { in nitrox_cbc_cipher_callback() 264 creq->ctrl.s.arg = (enc ? ENCRYPT : DECRYPT); in nitrox_skcipher_crypt() 401 .encrypt = nitrox_aes_encrypt, 420 .encrypt = nitrox_aes_encrypt, 439 .encrypt = nitrox_aes_encrypt, 458 .encrypt = nitrox_aes_encrypt, 479 .encrypt = nitrox_aes_encrypt, 496 .encrypt = nitrox_aes_encrypt, 515 .encrypt = nitrox_3des_encrypt, 534 .encrypt = nitrox_3des_encrypt,
|
| /kernel/linux/linux-6.6/drivers/crypto/cavium/nitrox/ |
| D | nitrox_skcipher.c | 92 if (nkreq->creq.ctrl.s.arg == ENCRYPT) { in nitrox_cbc_cipher_callback() 264 creq->ctrl.s.arg = (enc ? ENCRYPT : DECRYPT); in nitrox_skcipher_crypt() 399 .encrypt = nitrox_aes_encrypt, 418 .encrypt = nitrox_aes_encrypt, 437 .encrypt = nitrox_aes_encrypt, 456 .encrypt = nitrox_aes_encrypt, 477 .encrypt = nitrox_aes_encrypt, 494 .encrypt = nitrox_aes_encrypt, 513 .encrypt = nitrox_3des_encrypt, 532 .encrypt = nitrox_3des_encrypt,
|
| /kernel/linux/linux-6.6/arch/arm64/crypto/ |
| D | sm4-ce-glue.c | 160 struct sm4_ctx *ctx, bool encrypt) in sm4_cbc_crypt() argument 179 if (encrypt) in sm4_cbc_crypt() 211 static int sm4_cbc_cts_crypt(struct skcipher_request *req, bool encrypt) in sm4_cbc_cts_crypt() argument 227 return sm4_cbc_crypt(req, ctx, encrypt); in sm4_cbc_cts_crypt() 240 err = sm4_cbc_crypt(&subreq, ctx, encrypt); in sm4_cbc_cts_crypt() 261 if (encrypt) in sm4_cbc_cts_crypt() 410 static int sm4_xts_crypt(struct skcipher_request *req, bool encrypt) in sm4_xts_crypt() argument 455 if (encrypt) in sm4_xts_crypt() 491 if (encrypt) in sm4_xts_crypt() 528 .encrypt = sm4_ecb_encrypt, [all …]
|
| /kernel/linux/linux-5.10/drivers/crypto/ccree/ |
| D | cc_cipher.c | 895 "Encrypt" : "Decrypt"), req, iv, nbytes); in cc_cipher_process() 1013 .encrypt = cc_cipher_encrypt, 1031 .encrypt = cc_cipher_encrypt, 1049 .encrypt = cc_cipher_encrypt, 1067 .encrypt = cc_cipher_encrypt, 1085 .encrypt = cc_cipher_encrypt, 1103 .encrypt = cc_cipher_encrypt, 1121 .encrypt = cc_cipher_encrypt, 1143 .encrypt = cc_cipher_encrypt, 1160 .encrypt = cc_cipher_encrypt, [all …]
|
| /kernel/linux/linux-6.6/drivers/crypto/ccree/ |
| D | cc_cipher.c | 898 "Encrypt" : "Decrypt"), req, iv, nbytes); in cc_cipher_process() 1016 .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, 1124 .encrypt = cc_cipher_encrypt, 1146 .encrypt = cc_cipher_encrypt, 1163 .encrypt = cc_cipher_encrypt, [all …]
|