/linux-4.19.296/crypto/ |
D | cipher.c | 83 struct cipher_alg *cipher = &tfm->__crt_alg->cra_cipher; in cipher_encrypt_unaligned() local 86 cipher_crypt_unaligned(cipher->cia_encrypt, tfm, dst, src); in cipher_encrypt_unaligned() 90 cipher->cia_encrypt(tfm, dst, src); in cipher_encrypt_unaligned() 97 struct cipher_alg *cipher = &tfm->__crt_alg->cra_cipher; in cipher_decrypt_unaligned() local 100 cipher_crypt_unaligned(cipher->cia_decrypt, tfm, dst, src); in cipher_decrypt_unaligned() 104 cipher->cia_decrypt(tfm, dst, src); in cipher_decrypt_unaligned() 110 struct cipher_alg *cipher = &tfm->__crt_alg->cra_cipher; in crypto_init_cipher_ops() local 114 cipher_encrypt_unaligned : cipher->cia_encrypt; in crypto_init_cipher_ops() 116 cipher_decrypt_unaligned : cipher->cia_decrypt; in crypto_init_cipher_ops()
|
D | Kconfig | 177 cipher mode. Only select this option by hand if you expect to load 288 Support for the AEAD wrapper using the ChaCha20 stream cipher combined 422 This block cipher algorithm is required for IPSec. 430 This block cipher algorithm is required for TPM2 Cryptography. 439 This block cipher algorithm is required for IPSec. 458 This is the simplest block cipher algorithm. It simply encrypts 468 narrow block cipher mode for dm-crypt. Use it with cipher 471 rest is used to tie each cipher block to its logical position. 479 This block cipher algorithm is required for RxRPC. 487 XTS: IEEE1619/D16 narrow block cipher use with aes-xts-plain, [all …]
|
D | ctr.c | 162 struct crypto_cipher *cipher; in crypto_ctr_init_tfm() local 164 cipher = crypto_spawn_cipher(spawn); in crypto_ctr_init_tfm() 165 if (IS_ERR(cipher)) in crypto_ctr_init_tfm() 166 return PTR_ERR(cipher); in crypto_ctr_init_tfm() 168 ctx->child = cipher; in crypto_ctr_init_tfm() 319 struct crypto_skcipher *cipher; in crypto_rfc3686_init_tfm() local 323 cipher = crypto_spawn_skcipher(spawn); in crypto_rfc3686_init_tfm() 324 if (IS_ERR(cipher)) in crypto_rfc3686_init_tfm() 325 return PTR_ERR(cipher); in crypto_rfc3686_init_tfm() 327 ctx->child = cipher; in crypto_rfc3686_init_tfm() [all …]
|
D | ecb.c | 102 struct crypto_cipher *cipher; in crypto_ecb_init_tfm() local 104 cipher = crypto_spawn_cipher(spawn); in crypto_ecb_init_tfm() 105 if (IS_ERR(cipher)) in crypto_ecb_init_tfm() 106 return PTR_ERR(cipher); in crypto_ecb_init_tfm() 108 ctx->child = cipher; in crypto_ecb_init_tfm()
|
D | cbc.c | 86 struct crypto_cipher *cipher; in crypto_cbc_init_tfm() local 88 cipher = crypto_spawn_cipher(spawn); in crypto_cbc_init_tfm() 89 if (IS_ERR(cipher)) in crypto_cbc_init_tfm() 90 return PTR_ERR(cipher); in crypto_cbc_init_tfm() 92 ctx->child = cipher; in crypto_cbc_init_tfm()
|
D | testmgr.c | 131 struct cipher_test_suite cipher; member 1748 const struct cipher_test_suite *suite = &desc->suite.cipher; in alg_test_cipher() 1770 const struct cipher_test_suite *suite = &desc->suite.cipher; in alg_test_skcipher() 2612 .cipher = __VECS(aes_cbc_tv_template) 2618 .cipher = __VECS(anubis_cbc_tv_template) 2624 .cipher = __VECS(bf_cbc_tv_template) 2630 .cipher = __VECS(camellia_cbc_tv_template) 2636 .cipher = __VECS(cast5_cbc_tv_template) 2642 .cipher = __VECS(cast6_cbc_tv_template) 2648 .cipher = __VECS(des_cbc_tv_template) [all …]
|
D | xcbc.c | 178 struct crypto_cipher *cipher; in xcbc_init_tfm() local 183 cipher = crypto_spawn_cipher(spawn); in xcbc_init_tfm() 184 if (IS_ERR(cipher)) in xcbc_init_tfm() 185 return PTR_ERR(cipher); in xcbc_init_tfm() 187 ctx->child = cipher; in xcbc_init_tfm()
|
D | keywrap.c | 294 struct crypto_cipher *cipher; in crypto_kw_init_tfm() local 296 cipher = crypto_spawn_cipher(spawn); in crypto_kw_init_tfm() 297 if (IS_ERR(cipher)) in crypto_kw_init_tfm() 298 return PTR_ERR(cipher); in crypto_kw_init_tfm() 300 ctx->child = cipher; in crypto_kw_init_tfm()
|
D | cts.c | 288 struct crypto_skcipher *cipher; in crypto_cts_init_tfm() local 293 cipher = crypto_spawn_skcipher(spawn); in crypto_cts_init_tfm() 294 if (IS_ERR(cipher)) in crypto_cts_init_tfm() 295 return PTR_ERR(cipher); in crypto_cts_init_tfm() 297 ctx->child = cipher; in crypto_cts_init_tfm() 300 bsize = crypto_skcipher_blocksize(cipher); in crypto_cts_init_tfm() 302 crypto_skcipher_reqsize(cipher), in crypto_cts_init_tfm()
|
D | vmac.c | 52 struct crypto_cipher *cipher; member 443 err = crypto_cipher_setkey(tctx->cipher, key, keylen); in vmac_setkey() 450 crypto_cipher_encrypt_one(tctx->cipher, (u8 *)out, in); in vmac_setkey() 460 crypto_cipher_encrypt_one(tctx->cipher, (u8 *)out, in); in vmac_setkey() 471 crypto_cipher_encrypt_one(tctx->cipher, (u8 *)out, in); in vmac_setkey() 589 crypto_cipher_encrypt_one(tctx->cipher, dctx->nonce.bytes, in vmac_final() 603 struct crypto_cipher *cipher; in vmac_init_tfm() local 605 cipher = crypto_spawn_cipher(spawn); in vmac_init_tfm() 606 if (IS_ERR(cipher)) in vmac_init_tfm() 607 return PTR_ERR(cipher); in vmac_init_tfm() [all …]
|
D | blkcipher.c | 376 struct blkcipher_alg *cipher = &tfm->__crt_alg->cra_blkcipher; in setkey_unaligned() local 389 ret = cipher->setkey(tfm, alignbuffer, keylen); in setkey_unaligned() 397 struct blkcipher_alg *cipher = &tfm->__crt_alg->cra_blkcipher; in setkey() local 400 if (keylen < cipher->min_keysize || keylen > cipher->max_keysize) { in setkey() 408 return cipher->setkey(tfm, key, keylen); in setkey() 447 struct blkcipher_alg *cipher = &alg->cra_blkcipher; in crypto_blkcipher_ctxsize() local 451 cipher->ivsize) { in crypto_blkcipher_ctxsize() 453 len += cipher->ivsize; in crypto_blkcipher_ctxsize()
|
D | cmac.c | 207 struct crypto_cipher *cipher; in cmac_init_tfm() local 212 cipher = crypto_spawn_cipher(spawn); in cmac_init_tfm() 213 if (IS_ERR(cipher)) in cmac_init_tfm() 214 return PTR_ERR(cipher); in cmac_init_tfm() 216 ctx->child = cipher; in cmac_init_tfm()
|
D | pcbc.c | 187 struct crypto_cipher *cipher; in crypto_pcbc_init_tfm() local 189 cipher = crypto_spawn_cipher(spawn); in crypto_pcbc_init_tfm() 190 if (IS_ERR(cipher)) in crypto_pcbc_init_tfm() 191 return PTR_ERR(cipher); in crypto_pcbc_init_tfm() 193 ctx->child = cipher; in crypto_pcbc_init_tfm()
|
D | cfb.c | 232 struct crypto_cipher *cipher; in crypto_cfb_init_tfm() local 234 cipher = crypto_spawn_cipher(spawn); in crypto_cfb_init_tfm() 235 if (IS_ERR(cipher)) in crypto_cfb_init_tfm() 236 return PTR_ERR(cipher); in crypto_cfb_init_tfm() 238 ctx->child = cipher; in crypto_cfb_init_tfm()
|
D | cryptd.c | 323 struct crypto_blkcipher *cipher; in cryptd_blkcipher_init_tfm() local 325 cipher = crypto_spawn_blkcipher(spawn); in cryptd_blkcipher_init_tfm() 326 if (IS_ERR(cipher)) in cryptd_blkcipher_init_tfm() 327 return PTR_ERR(cipher); in cryptd_blkcipher_init_tfm() 329 ctx->child = cipher; in cryptd_blkcipher_init_tfm() 565 struct crypto_skcipher *cipher; in cryptd_skcipher_init_tfm() local 567 cipher = crypto_spawn_skcipher(spawn); in cryptd_skcipher_init_tfm() 568 if (IS_ERR(cipher)) in cryptd_skcipher_init_tfm() 569 return PTR_ERR(cipher); in cryptd_skcipher_init_tfm() 571 ctx->child = cipher; in cryptd_skcipher_init_tfm() [all …]
|
D | pcrypt.c | 231 struct crypto_aead *cipher; in pcrypt_aead_init_tfm() local 240 cipher = crypto_spawn_aead(&ictx->spawn); in pcrypt_aead_init_tfm() 242 if (IS_ERR(cipher)) in pcrypt_aead_init_tfm() 243 return PTR_ERR(cipher); in pcrypt_aead_init_tfm() 245 ctx->child = cipher; in pcrypt_aead_init_tfm() 248 crypto_aead_reqsize(cipher)); in pcrypt_aead_init_tfm()
|
D | lrw.c | 433 struct crypto_skcipher *cipher; in init_tfm() local 435 cipher = crypto_spawn_skcipher(spawn); in init_tfm() 436 if (IS_ERR(cipher)) in init_tfm() 437 return PTR_ERR(cipher); in init_tfm() 439 ctx->child = cipher; in init_tfm() 441 crypto_skcipher_set_reqsize(tfm, crypto_skcipher_reqsize(cipher) + in init_tfm()
|
D | ablkcipher.c | 303 struct ablkcipher_alg *cipher = crypto_ablkcipher_alg(tfm); in setkey_unaligned() local 316 ret = cipher->setkey(tfm, alignbuffer, keylen); in setkey_unaligned() 325 struct ablkcipher_alg *cipher = crypto_ablkcipher_alg(tfm); in setkey() local 328 if (keylen < cipher->min_keysize || keylen > cipher->max_keysize) { in setkey() 336 return cipher->setkey(tfm, key, keylen); in setkey()
|
D | tea.c | 229 .cra_u = { .cipher = { 242 .cra_u = { .cipher = { 255 .cra_u = { .cipher = {
|
D | skcipher.c | 805 struct skcipher_alg *cipher = crypto_skcipher_alg(tfm); in skcipher_setkey_unaligned() local 817 ret = cipher->setkey(tfm, alignbuffer, keylen); in skcipher_setkey_unaligned() 825 struct skcipher_alg *cipher = crypto_skcipher_alg(tfm); in skcipher_setkey() local 829 if (keylen < cipher->min_keysize || keylen > cipher->max_keysize) { in skcipher_setkey() 837 err = cipher->setkey(tfm, key, keylen); in skcipher_setkey()
|
/linux-4.19.296/include/linux/sunrpc/ |
D | gss_krb5.h | 323 struct crypto_skcipher *cipher, 328 struct crypto_skcipher *cipher,
|
/linux-4.19.296/include/uapi/linux/ |
D | virtio_crypto.h | 211 struct virtio_crypto_cipher_session_req cipher; member 377 struct virtio_crypto_cipher_data_req cipher; member
|
/linux-4.19.296/fs/ecryptfs/ |
D | keystore.c | 1186 rc = ecryptfs_cipher_code_to_string(crypt_stat->cipher, cipher_code); in decrypt_pki_encrypted_session_key() 1451 rc = ecryptfs_cipher_code_to_string(crypt_stat->cipher, in parse_tag_3_packet() 1678 crypt_stat->cipher); in decrypt_passphrase_encrypted_session_key() 1682 crypt_stat->cipher, rc); in decrypt_passphrase_encrypted_session_key() 1965 crypt_stat->cipher, rc); in ecryptfs_parse_packet_set() 1987 crypt_stat->cipher, in pki_encrypt_session_key() 2211 crypt_stat->cipher); in write_tag_3_packet() 2215 crypt_stat->cipher, rc); in write_tag_3_packet() 2232 && strcmp("aes", crypt_stat->cipher) == 0) { in write_tag_3_packet() 2368 cipher_code = ecryptfs_code_for_cipher_string(crypt_stat->cipher, in write_tag_3_packet() [all …]
|
D | crypto.c | 593 crypt_stat->cipher, (int)strlen(crypt_stat->cipher), in ecryptfs_init_crypt_ctx() 601 crypt_stat->cipher, "cbc"); in ecryptfs_init_crypt_ctx() 772 strcpy(crypt_stat->cipher, ECRYPTFS_DEFAULT_CIPHER); in ecryptfs_set_default_crypt_stat_vals() 821 memcpy(crypt_stat->cipher, in ecryptfs_new_file_context() 824 crypt_stat->cipher[cipher_name_len] = '\0'; in ecryptfs_new_file_context() 832 crypt_stat->cipher, rc); in ecryptfs_new_file_context()
|
/linux-4.19.296/include/linux/ |
D | crypto.h | 375 #define cra_cipher cra_u.cipher 481 struct cipher_alg cipher; member 590 #define crt_cipher crt_u.cipher 600 struct cipher_tfm cipher; member
|