/linux-4.1.27/crypto/ |
H A D | seqiv.c | 35 struct crypto_ablkcipher *geniv; seqiv_complete2() local 43 geniv = skcipher_givcrypt_reqtfm(req); seqiv_complete2() 44 memcpy(req->creq.info, subreq->info, crypto_ablkcipher_ivsize(geniv)); seqiv_complete2() 61 struct crypto_aead *geniv; seqiv_aead_complete2() local 69 geniv = aead_givcrypt_reqtfm(req); seqiv_aead_complete2() 70 memcpy(req->areq.iv, subreq->iv, crypto_aead_ivsize(geniv)); seqiv_aead_complete2() 100 struct crypto_ablkcipher *geniv = skcipher_givcrypt_reqtfm(req); seqiv_givencrypt() local 101 struct seqiv_ctx *ctx = crypto_ablkcipher_ctx(geniv); seqiv_givencrypt() 109 ablkcipher_request_set_tfm(subreq, skcipher_geniv_cipher(geniv)); seqiv_givencrypt() 115 ivsize = crypto_ablkcipher_ivsize(geniv); seqiv_givencrypt() 118 crypto_ablkcipher_alignmask(geniv) + 1))) { seqiv_givencrypt() 145 struct crypto_aead *geniv = aead_givcrypt_reqtfm(req); seqiv_aead_givencrypt() local 146 struct seqiv_ctx *ctx = crypto_aead_ctx(geniv); seqiv_aead_givencrypt() 155 aead_request_set_tfm(subreq, aead_geniv_base(geniv)); seqiv_aead_givencrypt() 161 ivsize = crypto_aead_ivsize(geniv); seqiv_aead_givencrypt() 164 crypto_aead_alignmask(geniv) + 1))) { seqiv_aead_givencrypt() 191 struct crypto_ablkcipher *geniv = skcipher_givcrypt_reqtfm(req); seqiv_givencrypt_first() local 192 struct seqiv_ctx *ctx = crypto_ablkcipher_ctx(geniv); seqiv_givencrypt_first() 196 if (crypto_ablkcipher_crt(geniv)->givencrypt != seqiv_givencrypt_first) seqiv_givencrypt_first() 199 crypto_ablkcipher_crt(geniv)->givencrypt = seqiv_givencrypt; seqiv_givencrypt_first() 201 crypto_ablkcipher_ivsize(geniv)); seqiv_givencrypt_first() 214 struct crypto_aead *geniv = aead_givcrypt_reqtfm(req); seqiv_aead_givencrypt_first() local 215 struct seqiv_ctx *ctx = crypto_aead_ctx(geniv); seqiv_aead_givencrypt_first() 219 if (crypto_aead_crt(geniv)->givencrypt != seqiv_aead_givencrypt_first) seqiv_aead_givencrypt_first() 222 crypto_aead_crt(geniv)->givencrypt = seqiv_aead_givencrypt; seqiv_aead_givencrypt_first() 224 crypto_aead_ivsize(geniv)); seqiv_aead_givencrypt_first() 237 struct crypto_ablkcipher *geniv = __crypto_ablkcipher_cast(tfm); seqiv_init() local 238 struct seqiv_ctx *ctx = crypto_ablkcipher_ctx(geniv); seqiv_init() 249 struct crypto_aead *geniv = __crypto_aead_cast(tfm); seqiv_aead_init() local 250 struct seqiv_ctx *ctx = crypto_aead_ctx(geniv); seqiv_aead_init()
|
H A D | chainiv.c | 50 struct crypto_ablkcipher *geniv = skcipher_givcrypt_reqtfm(req); chainiv_givencrypt() local 51 struct chainiv_ctx *ctx = crypto_ablkcipher_ctx(geniv); chainiv_givencrypt() 56 ablkcipher_request_set_tfm(subreq, skcipher_geniv_cipher(geniv)); chainiv_givencrypt() 66 ivsize = crypto_ablkcipher_ivsize(geniv); chainiv_givencrypt() 85 struct crypto_ablkcipher *geniv = skcipher_givcrypt_reqtfm(req); chainiv_givencrypt_first() local 86 struct chainiv_ctx *ctx = crypto_ablkcipher_ctx(geniv); chainiv_givencrypt_first() 90 if (crypto_ablkcipher_crt(geniv)->givencrypt != chainiv_givencrypt_first() 94 crypto_ablkcipher_crt(geniv)->givencrypt = chainiv_givencrypt; chainiv_givencrypt_first() 96 crypto_ablkcipher_ivsize(geniv)); chainiv_givencrypt_first() 146 struct crypto_ablkcipher *geniv = skcipher_givcrypt_reqtfm(req); async_chainiv_postpone_request() local 147 struct async_chainiv_ctx *ctx = crypto_ablkcipher_ctx(geniv); async_chainiv_postpone_request() 163 struct crypto_ablkcipher *geniv = skcipher_givcrypt_reqtfm(req); async_chainiv_givencrypt_tail() local 164 struct async_chainiv_ctx *ctx = crypto_ablkcipher_ctx(geniv); async_chainiv_givencrypt_tail() 166 unsigned int ivsize = crypto_ablkcipher_ivsize(geniv); async_chainiv_givencrypt_tail() 183 struct crypto_ablkcipher *geniv = skcipher_givcrypt_reqtfm(req); async_chainiv_givencrypt() local 184 struct async_chainiv_ctx *ctx = crypto_ablkcipher_ctx(geniv); async_chainiv_givencrypt() 187 ablkcipher_request_set_tfm(subreq, skcipher_geniv_cipher(geniv)); async_chainiv_givencrypt() 210 struct crypto_ablkcipher *geniv = skcipher_givcrypt_reqtfm(req); async_chainiv_givencrypt_first() local 211 struct async_chainiv_ctx *ctx = crypto_ablkcipher_ctx(geniv); async_chainiv_givencrypt_first() 217 if (crypto_ablkcipher_crt(geniv)->givencrypt != async_chainiv_givencrypt_first() 221 crypto_ablkcipher_crt(geniv)->givencrypt = async_chainiv_givencrypt; async_chainiv_givencrypt_first() 223 crypto_ablkcipher_ivsize(geniv)); async_chainiv_givencrypt_first()
|
H A D | eseqiv.c | 44 struct crypto_ablkcipher *geniv = skcipher_givcrypt_reqtfm(req); eseqiv_complete2() local 48 crypto_ablkcipher_alignmask(geniv) + 1), eseqiv_complete2() 49 crypto_ablkcipher_ivsize(geniv)); eseqiv_complete2() 67 struct crypto_ablkcipher *geniv = skcipher_givcrypt_reqtfm(req); eseqiv_givencrypt() local 68 struct eseqiv_ctx *ctx = crypto_ablkcipher_ctx(geniv); eseqiv_givencrypt() 86 ablkcipher_request_set_tfm(subreq, skcipher_geniv_cipher(geniv)); eseqiv_givencrypt() 99 ivsize = crypto_ablkcipher_ivsize(geniv); eseqiv_givencrypt() 103 crypto_ablkcipher_alignmask(geniv) + 1); eseqiv_givencrypt() 151 struct crypto_ablkcipher *geniv = skcipher_givcrypt_reqtfm(req); eseqiv_givencrypt_first() local 152 struct eseqiv_ctx *ctx = crypto_ablkcipher_ctx(geniv); eseqiv_givencrypt_first() 156 if (crypto_ablkcipher_crt(geniv)->givencrypt != eseqiv_givencrypt_first) eseqiv_givencrypt_first() 159 crypto_ablkcipher_crt(geniv)->givencrypt = eseqiv_givencrypt; eseqiv_givencrypt_first() 161 crypto_ablkcipher_ivsize(geniv)); eseqiv_givencrypt_first() 174 struct crypto_ablkcipher *geniv = __crypto_ablkcipher_cast(tfm); eseqiv_init() local 175 struct eseqiv_ctx *ctx = crypto_ablkcipher_ctx(geniv); eseqiv_init() 190 alignmask &= crypto_ablkcipher_alignmask(geniv); eseqiv_init() 193 reqsize += crypto_ablkcipher_ivsize(geniv); eseqiv_init()
|
H A D | ablkcipher.c | 390 strncpy(rblkcipher.geniv, alg->cra_ablkcipher.geniv ?: "<default>", crypto_ablkcipher_report() 391 sizeof(rblkcipher.geniv)); crypto_ablkcipher_report() 426 seq_printf(m, "geniv : %s\n", ablkcipher->geniv ?: "<default>"); crypto_ablkcipher_show() 471 strncpy(rblkcipher.geniv, alg->cra_ablkcipher.geniv ?: "<built-in>", crypto_givcipher_report() 472 sizeof(rblkcipher.geniv)); crypto_givcipher_report() 507 seq_printf(m, "geniv : %s\n", ablkcipher->geniv ?: "<built-in>"); crypto_givcipher_show() 545 const char *geniv; crypto_givcipher_default() local 563 /* GENIV tells the template that we're making a default geniv. */ crypto_givcipher_default() 577 geniv = alg->cra_blkcipher.geniv; crypto_givcipher_default() 579 geniv = alg->cra_ablkcipher.geniv; crypto_givcipher_default() 581 if (!geniv) crypto_givcipher_default() 582 geniv = crypto_default_geniv(alg); crypto_givcipher_default() 584 tmpl = crypto_lookup_template(geniv); crypto_givcipher_default()
|
H A D | aead.c | 121 strncpy(raead.geniv, aead->geniv ?: "<built-in>", sizeof(raead.geniv)); crypto_aead_report() 154 seq_printf(m, "geniv : %s\n", aead->geniv ?: "<built-in>"); crypto_aead_show() 206 strncpy(raead.geniv, aead->geniv, sizeof(raead.geniv)); crypto_nivaead_report() 240 seq_printf(m, "geniv : %s\n", aead->geniv); crypto_nivaead_show() 321 if (strcmp(tmpl->name, alg->cra_aead.geniv)) aead_geniv_alloc() 348 inst->alg.cra_aead.geniv = alg->cra_aead.geniv; aead_geniv_alloc() 410 const char *geniv; crypto_nivaead_default() local 427 /* GENIV tells the template that we're making a default geniv. */ crypto_nivaead_default() 439 geniv = alg->cra_aead.geniv; crypto_nivaead_default() 441 tmpl = crypto_lookup_template(geniv); crypto_nivaead_default()
|
H A D | blkcipher.c | 516 strncpy(rblkcipher.geniv, alg->cra_blkcipher.geniv ?: "<default>", crypto_blkcipher_report() 517 sizeof(rblkcipher.geniv)); crypto_blkcipher_report() 548 seq_printf(m, "geniv : %s\n", alg->cra_blkcipher.geniv ?: crypto_blkcipher_show() 594 const char *geniv; skcipher_geniv_alloc() member in struct:__anon3250 641 balg.geniv = alg->cra_blkcipher.geniv; skcipher_geniv_alloc() 651 balg.geniv = alg->cra_ablkcipher.geniv; skcipher_geniv_alloc() 664 if (!balg.geniv) skcipher_geniv_alloc() 665 balg.geniv = crypto_default_geniv(alg); skcipher_geniv_alloc() 667 if (strcmp(tmpl->name, balg.geniv)) skcipher_geniv_alloc() 695 inst->alg.cra_ablkcipher.geniv = balg.geniv; skcipher_geniv_alloc()
|
H A D | cryptd.c | 371 inst->alg.cra_ablkcipher.geniv = alg->cra_blkcipher.geniv; cryptd_create_blkcipher() 782 inst->alg.cra_aead.geniv = alg->cra_aead.geniv; cryptd_create_aead()
|
H A D | ctr.c | 228 inst->alg.cra_blkcipher.geniv = "chainiv"; crypto_ctr_alloc() 403 inst->alg.cra_ablkcipher.geniv = "seqiv"; crypto_rfc3686_alloc()
|
H A D | pcrypt.c | 365 inst->alg.cra_aead.geniv = alg->cra_aead.geniv; pcrypt_alloc_aead()
|
H A D | gcm.c | 1035 inst->alg.cra_aead.geniv = "seqiv"; crypto_rfc4106_alloc() 1360 inst->alg.cra_aead.geniv = "seqiv"; crypto_rfc4543_alloc()
|
H A D | ccm.c | 818 inst->alg.cra_aead.geniv = "seqiv"; crypto_rfc4309_alloc()
|
/linux-4.1.27/include/crypto/internal/ |
H A D | aead.h | 65 static inline struct crypto_aead *aead_geniv_base(struct crypto_aead *geniv) aead_geniv_base() argument 67 return crypto_aead_crt(geniv)->base; aead_geniv_base()
|
H A D | skcipher.h | 70 struct crypto_ablkcipher *geniv) skcipher_geniv_cipher() 72 return crypto_ablkcipher_crt(geniv)->base; skcipher_geniv_cipher() 69 skcipher_geniv_cipher( struct crypto_ablkcipher *geniv) skcipher_geniv_cipher() argument
|
/linux-4.1.27/include/linux/ |
H A D | cryptouser.h | 80 char geniv[CRYPTO_MAX_NAME]; member in struct:crypto_report_blkcipher 89 char geniv[CRYPTO_MAX_NAME]; member in struct:crypto_report_aead
|
H A D | crypto.h | 270 * @geniv: The transformation implementation may use an "IV generator" provided 278 * All fields except @givencrypt , @givdecrypt , @geniv and @ivsize are 289 const char *geniv; member in struct:ablkcipher_alg 316 * @geniv: see struct ablkcipher_alg 319 * All fields except @givencrypt , @givdecrypt , @geniv and @ivsize are 331 const char *geniv; member in struct:aead_alg 344 * @geniv: see struct ablkcipher_alg 347 * All fields except @geniv and @ivsize are mandatory and must be filled. 359 const char *geniv; member in struct:blkcipher_alg
|
/linux-4.1.27/drivers/crypto/caam/ |
H A D | caamalg.c | 458 u32 geniv, moveiv; aead_set_sh_desc() local 646 geniv = NFIFOENTRY_STYPE_PAD | NFIFOENTRY_DEST_DECO | aead_set_sh_desc() 649 append_load_imm_u32(desc, geniv, LDST_CLASS_IND_CCB | aead_set_sh_desc() 977 u32 geniv; rfc4106_set_sh_desc() local 1162 geniv = NFIFOENTRY_STYPE_PAD | NFIFOENTRY_DEST_DECO | rfc4106_set_sh_desc() 1165 append_load_imm_u32(desc, geniv, LDST_CLASS_IND_CCB | rfc4106_set_sh_desc() 1259 u32 geniv; rfc4543_set_sh_desc() local 1528 geniv = NFIFOENTRY_STYPE_PAD | NFIFOENTRY_DEST_DECO | rfc4543_set_sh_desc() 1531 append_load_imm_u32(desc, geniv, LDST_CLASS_IND_CCB | rfc4543_set_sh_desc() 1838 u32 geniv; ablkcipher_setkey() local 2024 geniv = NFIFOENTRY_STYPE_PAD | NFIFOENTRY_DEST_DECO | ablkcipher_setkey() 2027 append_load_imm_u32(desc, geniv, LDST_CLASS_IND_CCB | ablkcipher_setkey() 3406 .geniv = "<built-in>", 3425 .geniv = "<built-in>", 3444 .geniv = "<built-in>", 3464 .geniv = "<built-in>", 3484 .geniv = "<built-in>", 3504 .geniv = "<built-in>", 3524 .geniv = "<built-in>", 3543 .geniv = "<built-in>", 3562 .geniv = "<built-in>", 3582 .geniv = "<built-in>", 3602 .geniv = "<built-in>", 3623 .geniv = "<built-in>", 3643 .geniv = "<built-in>", 3662 .geniv = "<built-in>", 3681 .geniv = "<built-in>", 3701 .geniv = "<built-in>", 3721 .geniv = "<built-in>", 3741 .geniv = "<built-in>", 3761 .geniv = "<built-in>", 3780 .geniv = "<built-in>", 3799 .geniv = "<built-in>", 3819 .geniv = "<built-in>", 3839 .geniv = "<built-in>", 3859 .geniv = "<built-in>", 3879 .geniv = "<built-in>", 3898 .geniv = "<built-in>", 3917 .geniv = "<built-in>", 3937 .geniv = "<built-in>", 3957 .geniv = "<built-in>", 3977 .geniv = "<built-in>", 3997 .geniv = "<built-in>", 4014 .geniv = "<built-in>", 4032 .geniv = "<built-in>", 4049 .geniv = "<built-in>", 4066 .geniv = "<built-in>", 4083 .geniv = "<built-in>", 4099 .geniv = "chainiv", 4116 .geniv = "<built-in>",
|
/linux-4.1.27/drivers/crypto/nx/ |
H A D | nx-aes-ctr.c | 183 .geniv = "seqiv",
|
H A D | nx-aes-ccm.c | 604 .geniv = "seqiv",
|
H A D | nx-aes-gcm.c | 522 .geniv = "seqiv",
|
/linux-4.1.27/drivers/crypto/ |
H A D | ixp4xx_crypto.c | 1220 .geniv = "eseqiv", 1247 .geniv = "eseqiv", 1273 .geniv = "eseqiv", 1299 .geniv = "eseqiv", 1313 .geniv = "eseqiv",
|
H A D | omap-aes.c | 898 .geniv = "eseqiv",
|
H A D | talitos.c | 2524 alg->cra_ablkcipher.geniv = "eseqiv"; talitos_alg_alloc() 2535 alg->cra_aead.geniv = "<built-in>"; talitos_alg_alloc()
|
/linux-4.1.27/arch/x86/crypto/ |
H A D | camellia_aesni_avx_glue.c | 503 .geniv = "chainiv",
|
H A D | cast5_avx_glue.c | 464 .geniv = "chainiv",
|
H A D | serpent_avx2_glue.c | 485 .geniv = "chainiv",
|
H A D | camellia_aesni_avx2_glue.c | 511 .geniv = "chainiv",
|
H A D | cast6_avx_glue.c | 540 .geniv = "chainiv",
|
H A D | serpent_avx_glue.c | 546 .geniv = "chainiv",
|
H A D | serpent_sse2_glue.c | 555 .geniv = "chainiv",
|
H A D | twofish_avx_glue.c | 508 .geniv = "chainiv",
|
H A D | aesni-intel_glue.c | 1410 .geniv = "chainiv", 1453 .geniv = "seqiv",
|