/crypto/ |
D | Kconfig | 98 cipher mode. Only select this option by hand if you expect to load 171 This block cipher algorithm is required for IPSec. 180 This block cipher algorithm is required for IPSec. 199 This is the simplest block cipher algorithm. It simply encrypts 210 narrow block cipher mode for dm-crypt. Use it with cipher 213 rest is used to tie each cipher block to its logical position. 221 This block cipher algorithm is required for RxRPC. 230 XTS: IEEE1619/D16 narrow block cipher use with aes-xts-plain, 410 tristate "AES cipher algorithms" 413 AES cipher algorithms (FIPS-197). AES uses the Rijndael [all …]
|
D | cipher.c | 82 struct cipher_alg *cipher = &tfm->__crt_alg->cra_cipher; in cipher_encrypt_unaligned() local 85 cipher_crypt_unaligned(cipher->cia_encrypt, tfm, dst, src); in cipher_encrypt_unaligned() 89 cipher->cia_encrypt(tfm, dst, src); in cipher_encrypt_unaligned() 96 struct cipher_alg *cipher = &tfm->__crt_alg->cra_cipher; in cipher_decrypt_unaligned() local 99 cipher_crypt_unaligned(cipher->cia_decrypt, tfm, dst, src); in cipher_decrypt_unaligned() 103 cipher->cia_decrypt(tfm, dst, src); in cipher_decrypt_unaligned() 109 struct cipher_alg *cipher = &tfm->__crt_alg->cra_cipher; in crypto_init_cipher_ops() local 113 cipher_encrypt_unaligned : cipher->cia_encrypt; in crypto_init_cipher_ops() 115 cipher_decrypt_unaligned : cipher->cia_decrypt; in crypto_init_cipher_ops()
|
D | xts.c | 170 struct crypto_cipher *cipher; in init_tfm() local 176 cipher = crypto_spawn_cipher(spawn); in init_tfm() 177 if (IS_ERR(cipher)) in init_tfm() 178 return PTR_ERR(cipher); in init_tfm() 180 if (crypto_cipher_blocksize(cipher) != 16) { in init_tfm() 182 crypto_free_cipher(cipher); in init_tfm() 186 ctx->child = cipher; in init_tfm() 188 cipher = crypto_spawn_cipher(spawn); in init_tfm() 189 if (IS_ERR(cipher)) { in init_tfm() 191 return PTR_ERR(cipher); in init_tfm() [all …]
|
D | ccm.c | 26 struct crypto_spawn cipher; member 30 struct crypto_cipher *cipher; member 81 struct crypto_cipher *tfm = ctx->cipher; in crypto_ccm_setkey() 251 struct crypto_cipher *cipher = ctx->cipher; in crypto_ccm_auth() local 263 crypto_cipher_encrypt_one(cipher, odata, odata); in crypto_ccm_auth() 268 get_data_to_compute(cipher, pctx, req->assoc, req->assoclen); in crypto_ccm_auth() 274 get_data_to_compute(cipher, pctx, plain, cryptlen); in crypto_ccm_auth() 436 struct crypto_cipher *cipher; in crypto_ccm_init_tfm() local 441 cipher = crypto_spawn_cipher(&ictx->cipher); in crypto_ccm_init_tfm() 442 if (IS_ERR(cipher)) in crypto_ccm_init_tfm() [all …]
|
D | testmgr.c | 87 struct cipher_test_suite cipher; member 943 if (desc->suite.cipher.enc.vecs) { in alg_test_cipher() 944 err = test_cipher(tfm, ENCRYPT, desc->suite.cipher.enc.vecs, in alg_test_cipher() 945 desc->suite.cipher.enc.count); in alg_test_cipher() 950 if (desc->suite.cipher.dec.vecs) in alg_test_cipher() 951 err = test_cipher(tfm, DECRYPT, desc->suite.cipher.dec.vecs, in alg_test_cipher() 952 desc->suite.cipher.dec.count); in alg_test_cipher() 972 if (desc->suite.cipher.enc.vecs) { in alg_test_skcipher() 973 err = test_skcipher(tfm, ENCRYPT, desc->suite.cipher.enc.vecs, in alg_test_skcipher() 974 desc->suite.cipher.enc.count); in alg_test_skcipher() [all …]
|
D | authenc.c | 107 struct scatterlist *cipher, in crypto_authenc_hash() argument 132 err = crypto_hash_update(&desc, cipher, cryptlen); in crypto_authenc_hash() 151 struct scatterlist cipher[2]; in crypto_authenc_genicv() local 162 sg_init_table(cipher, 2); in crypto_authenc_genicv() 163 sg_set_buf(cipher, iv, ivsize); in crypto_authenc_genicv() 164 authenc_chain(cipher, dst, vdst == iv + ivsize); in crypto_authenc_genicv() 165 dst = cipher; in crypto_authenc_genicv() 259 struct scatterlist *cipher, in crypto_authenc_verify() argument 267 ohash = crypto_authenc_hash(req, CRYPTO_TFM_REQ_MAY_SLEEP, cipher, in crypto_authenc_verify() 274 scatterwalk_map_and_copy(ihash, cipher, cryptlen, authsize, 0); in crypto_authenc_verify() [all …]
|
D | ctr.c | 157 struct crypto_cipher *cipher; in crypto_ctr_init_tfm() local 159 cipher = crypto_spawn_cipher(spawn); in crypto_ctr_init_tfm() 160 if (IS_ERR(cipher)) in crypto_ctr_init_tfm() 161 return PTR_ERR(cipher); in crypto_ctr_init_tfm() 163 ctx->child = cipher; in crypto_ctr_init_tfm() 305 struct crypto_blkcipher *cipher; in crypto_rfc3686_init_tfm() local 307 cipher = crypto_spawn_blkcipher(spawn); in crypto_rfc3686_init_tfm() 308 if (IS_ERR(cipher)) in crypto_rfc3686_init_tfm() 309 return PTR_ERR(cipher); in crypto_rfc3686_init_tfm() 311 ctx->child = cipher; in crypto_rfc3686_init_tfm()
|
D | blkcipher.c | 362 struct blkcipher_alg *cipher = &tfm->__crt_alg->cra_blkcipher; in setkey_unaligned() local 375 ret = cipher->setkey(tfm, alignbuffer, keylen); in setkey_unaligned() 383 struct blkcipher_alg *cipher = &tfm->__crt_alg->cra_blkcipher; in setkey() local 386 if (keylen < cipher->min_keysize || keylen > cipher->max_keysize) { in setkey() 394 return cipher->setkey(tfm, key, keylen); in setkey() 433 struct blkcipher_alg *cipher = &alg->cra_blkcipher; in crypto_blkcipher_ctxsize() local 437 cipher->ivsize) { in crypto_blkcipher_ctxsize() 439 len += cipher->ivsize; in crypto_blkcipher_ctxsize() 680 struct crypto_ablkcipher *cipher; in skcipher_geniv_init() local 682 cipher = crypto_spawn_skcipher(crypto_instance_ctx(inst)); in skcipher_geniv_init() [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 | lrw.c | 211 struct crypto_cipher *cipher; in init_tfm() local 217 cipher = crypto_spawn_cipher(spawn); in init_tfm() 218 if (IS_ERR(cipher)) in init_tfm() 219 return PTR_ERR(cipher); in init_tfm() 221 if (crypto_cipher_blocksize(cipher) != 16) { in init_tfm() 226 ctx->child = cipher; in init_tfm()
|
D | cryptd.c | 164 struct crypto_blkcipher *cipher; in cryptd_blkcipher_init_tfm() local 166 cipher = crypto_spawn_blkcipher(spawn); in cryptd_blkcipher_init_tfm() 167 if (IS_ERR(cipher)) in cryptd_blkcipher_init_tfm() 168 return PTR_ERR(cipher); in cryptd_blkcipher_init_tfm() 170 ctx->child = cipher; in cryptd_blkcipher_init_tfm() 277 struct crypto_hash *cipher; in cryptd_hash_init_tfm() local 279 cipher = crypto_spawn_hash(spawn); in cryptd_hash_init_tfm() 280 if (IS_ERR(cipher)) in cryptd_hash_init_tfm() 281 return PTR_ERR(cipher); in cryptd_hash_init_tfm() 283 ctx->child = cipher; in cryptd_hash_init_tfm()
|
D | ablkcipher.c | 31 struct ablkcipher_alg *cipher = crypto_ablkcipher_alg(tfm); in setkey_unaligned() local 44 ret = cipher->setkey(tfm, alignbuffer, keylen); in setkey_unaligned() 53 struct ablkcipher_alg *cipher = crypto_ablkcipher_alg(tfm); in setkey() local 56 if (keylen < cipher->min_keysize || keylen > cipher->max_keysize) { in setkey() 64 return cipher->setkey(tfm, key, keylen); in setkey()
|
D | pcbc.c | 208 struct crypto_cipher *cipher; in crypto_pcbc_init_tfm() local 210 cipher = crypto_spawn_cipher(spawn); in crypto_pcbc_init_tfm() 211 if (IS_ERR(cipher)) in crypto_pcbc_init_tfm() 212 return PTR_ERR(cipher); in crypto_pcbc_init_tfm() 214 ctx->child = cipher; in crypto_pcbc_init_tfm()
|
D | cbc.c | 198 struct crypto_cipher *cipher; in crypto_cbc_init_tfm() local 200 cipher = crypto_spawn_cipher(spawn); in crypto_cbc_init_tfm() 201 if (IS_ERR(cipher)) in crypto_cbc_init_tfm() 202 return PTR_ERR(cipher); in crypto_cbc_init_tfm() 204 ctx->child = cipher; in crypto_cbc_init_tfm()
|
D | cts.c | 257 struct crypto_blkcipher *cipher; in crypto_cts_init_tfm() local 259 cipher = crypto_spawn_blkcipher(spawn); in crypto_cts_init_tfm() 260 if (IS_ERR(cipher)) in crypto_cts_init_tfm() 261 return PTR_ERR(cipher); in crypto_cts_init_tfm() 263 ctx->child = cipher; in crypto_cts_init_tfm()
|
D | xcbc.c | 264 struct crypto_cipher *cipher; in xcbc_init_tfm() local 270 cipher = crypto_spawn_cipher(spawn); in xcbc_init_tfm() 271 if (IS_ERR(cipher)) in xcbc_init_tfm() 272 return PTR_ERR(cipher); in xcbc_init_tfm() 282 ctx->child = cipher; in xcbc_init_tfm()
|
D | tea.c | 230 .cra_u = { .cipher = { 246 .cra_u = { .cipher = { 262 .cra_u = { .cipher = {
|
D | arc4.c | 80 .cra_u = { .cipher = {
|
D | crypto_null.c | 132 .cra_u = { .cipher = {
|
D | Makefile | 6 crypto-objs := api.o cipher.o digest.o compress.o
|
D | khazad.c | 857 .cra_u = { .cipher = {
|
D | twofish.c | 192 .cra_u = { .cipher = {
|
D | blowfish.c | 460 .cra_u = { .cipher = {
|
D | anubis.c | 682 .cra_u = { .cipher = {
|
D | seed.c | 454 .cipher = {
|