/linux-4.1.27/drivers/crypto/nx/ |
D | nx-aes-ccm.c | 82 unsigned int authsize) in ccm_aes_nx_setauthsize() argument 84 switch (authsize) { in ccm_aes_nx_setauthsize() 97 crypto_aead_crt(tfm)->authsize = authsize; in ccm_aes_nx_setauthsize() 103 unsigned int authsize) in ccm4309_aes_nx_setauthsize() argument 105 switch (authsize) { in ccm4309_aes_nx_setauthsize() 114 crypto_aead_crt(tfm)->authsize = authsize; in ccm4309_aes_nx_setauthsize() 149 static int generate_b0(u8 *iv, unsigned int assoclen, unsigned int authsize, in generate_b0() argument 152 unsigned int l, lp, m = authsize; in generate_b0() 175 unsigned int authsize, in generate_pat() argument 226 rc = generate_b0(iv, req->assoclen, authsize, nbytes, b0); in generate_pat() [all …]
|
D | nx-aes-gcm.c | 97 unsigned int authsize) in gcm_aes_nx_setauthsize() argument 99 if (authsize > crypto_aead_alg(tfm)->maxauthsize) in gcm_aes_nx_setauthsize() 102 crypto_aead_crt(tfm)->authsize = authsize; in gcm_aes_nx_setauthsize() 108 unsigned int authsize) in gcm4106_aes_nx_setauthsize() argument 110 switch (authsize) { in gcm4106_aes_nx_setauthsize() 119 crypto_aead_crt(tfm)->authsize = authsize; in gcm4106_aes_nx_setauthsize()
|
/linux-4.1.27/crypto/ |
D | authencesn.c | 192 unsigned int authsize; in authenc_esn_verify_ahash_update_done() local 226 authsize = crypto_aead_authsize(authenc_esn); in authenc_esn_verify_ahash_update_done() 227 cryptlen -= authsize; in authenc_esn_verify_ahash_update_done() 228 ihash = ahreq->result + authsize; in authenc_esn_verify_ahash_update_done() 230 authsize, 0); in authenc_esn_verify_ahash_update_done() 232 err = crypto_memneq(ihash, ahreq->result, authsize) ? -EBADMSG : 0; in authenc_esn_verify_ahash_update_done() 253 unsigned int authsize; in authenc_esn_verify_ahash_update_done2() local 275 authsize = crypto_aead_authsize(authenc_esn); in authenc_esn_verify_ahash_update_done2() 276 cryptlen -= authsize; in authenc_esn_verify_ahash_update_done2() 277 ihash = ahreq->result + authsize; in authenc_esn_verify_ahash_update_done2() [all …]
|
D | authenc.c | 175 unsigned int authsize; in authenc_verify_ahash_update_done() local 197 authsize = crypto_aead_authsize(authenc); in authenc_verify_ahash_update_done() 198 cryptlen -= authsize; in authenc_verify_ahash_update_done() 199 ihash = ahreq->result + authsize; in authenc_verify_ahash_update_done() 201 authsize, 0); in authenc_verify_ahash_update_done() 203 err = crypto_memneq(ihash, ahreq->result, authsize) ? -EBADMSG : 0; in authenc_verify_ahash_update_done() 224 unsigned int authsize; in authenc_verify_ahash_done() local 236 authsize = crypto_aead_authsize(authenc); in authenc_verify_ahash_done() 237 cryptlen -= authsize; in authenc_verify_ahash_done() 238 ihash = ahreq->result + authsize; in authenc_verify_ahash_done() [all …]
|
D | gcm.c | 171 unsigned int authsize) in crypto_gcm_setauthsize() argument 173 switch (authsize) { in crypto_gcm_setauthsize() 580 unsigned int authsize = crypto_aead_authsize(aead); in crypto_gcm_verify() local 581 unsigned int cryptlen = req->cryptlen - authsize; in crypto_gcm_verify() 584 scatterwalk_map_and_copy(iauth_tag, req->src, cryptlen, authsize, 0); in crypto_gcm_verify() 585 return crypto_memneq(iauth_tag, auth_tag, authsize) ? -EBADMSG : 0; in crypto_gcm_verify() 625 unsigned int authsize = crypto_aead_authsize(aead); in crypto_gcm_decrypt() local 629 if (cryptlen < authsize) in crypto_gcm_decrypt() 631 cryptlen -= authsize; in crypto_gcm_decrypt() 882 unsigned int authsize) in crypto_rfc4106_setauthsize() argument [all …]
|
D | ccm.c | 105 unsigned int authsize) in crypto_ccm_setauthsize() argument 107 switch (authsize) { in crypto_ccm_setauthsize() 362 unsigned int authsize = crypto_aead_authsize(aead); in crypto_ccm_decrypt_done() local 363 unsigned int cryptlen = req->cryptlen - authsize; in crypto_ccm_decrypt_done() 367 if (!err && crypto_memneq(pctx->auth_tag, pctx->odata, authsize)) in crypto_ccm_decrypt_done() 380 unsigned int authsize = crypto_aead_authsize(aead); in crypto_ccm_decrypt() local 387 if (cryptlen < authsize) in crypto_ccm_decrypt() 389 cryptlen -= authsize; in crypto_ccm_decrypt() 397 scatterwalk_map_and_copy(authtag, req->src, cryptlen, authsize, 0); in crypto_ccm_decrypt() 426 if (crypto_memneq(authtag, odata, authsize)) in crypto_ccm_decrypt() [all …]
|
D | aead.c | 62 int crypto_aead_setauthsize(struct crypto_aead *tfm, unsigned int authsize) in crypto_aead_setauthsize() argument 67 if (authsize > crypto_aead_alg(tfm)->maxauthsize) in crypto_aead_setauthsize() 71 err = crypto_aead_alg(tfm)->setauthsize(crt->base, authsize); in crypto_aead_setauthsize() 76 crypto_aead_crt(crt->base)->authsize = authsize; in crypto_aead_setauthsize() 77 crt->authsize = authsize; in crypto_aead_setauthsize() 109 crt->authsize = alg->maxauthsize; in crypto_init_aead_ops() 194 crt->authsize = alg->maxauthsize; in crypto_init_nivaead_ops()
|
D | testmgr.c | 432 unsigned int authsize, iv_len; in __test_aead() local 530 authsize = abs(template[i].rlen - template[i].ilen); in __test_aead() 531 ret = crypto_aead_setauthsize(tfm, authsize); in __test_aead() 534 d, authsize, j, algo); in __test_aead() 545 template[i].ilen + (enc ? authsize : 0)); in __test_aead() 631 authsize = abs(template[i].rlen - template[i].ilen); in __test_aead() 657 n += authsize; in __test_aead() 664 ret = crypto_aead_setauthsize(tfm, authsize); in __test_aead() 667 d, authsize, j, algo); in __test_aead() 673 sg[k - 1].length + authsize > in __test_aead() [all …]
|
D | pcrypt.c | 110 unsigned int authsize) in pcrypt_aead_setauthsize() argument 114 return crypto_aead_setauthsize(ctx->child, authsize); in pcrypt_aead_setauthsize()
|
D | algif_aead.c | 574 static int aead_setauthsize(void *private, unsigned int authsize) in aead_setauthsize() argument 576 return crypto_aead_setauthsize(private, authsize); in aead_setauthsize()
|
D | tcrypt.c | 270 unsigned int tcount, u8 authsize, in test_aead_speed() argument 358 ret = crypto_aead_setauthsize(tfm, authsize); in test_aead_speed() 378 *b_size + (enc ? authsize : 0)); in test_aead_speed() 381 *b_size + (enc ? authsize : 0)); in test_aead_speed()
|
/linux-4.1.27/arch/arm64/crypto/ |
D | aes-ce-ccm-glue.c | 61 static int ccm_setauthsize(struct crypto_aead *tfm, unsigned int authsize) in ccm_setauthsize() argument 63 if ((authsize & 1) || authsize < 4) in ccm_setauthsize() 207 unsigned int authsize = crypto_aead_authsize(aead); in ccm_decrypt() local 212 u32 len = req->cryptlen - authsize; in ccm_decrypt() 253 scatterwalk_map_and_copy(buf, req->src, req->cryptlen - authsize, in ccm_decrypt() 254 authsize, 0); in ccm_decrypt() 256 if (memcmp(mac, buf, authsize)) in ccm_decrypt()
|
/linux-4.1.27/drivers/crypto/caam/ |
D | caamalg.c | 197 unsigned int authsize; member 294 append_math_sub_imm_u32(desc, REG3, SEQOUTLEN, IMM, ctx->authsize); in aead_null_set_sh_desc() 337 append_seq_store(desc, ctx->authsize, LDST_CLASS_2_CCB | in aead_null_set_sh_desc() 386 ctx->authsize + tfm->ivsize); in aead_null_set_sh_desc() 430 append_seq_fifo_load(desc, ctx->authsize, FIFOLD_CLASS_CLASS2 | in aead_null_set_sh_desc() 466 if (!ctx->authsize) in aead_set_sh_desc() 510 append_math_sub_imm_u32(desc, REG3, SEQOUTLEN, IMM, ctx->authsize); in aead_set_sh_desc() 541 append_seq_store(desc, ctx->authsize, LDST_CLASS_2_CCB | in aead_set_sh_desc() 580 ctx->authsize + tfm->ivsize); in aead_set_sh_desc() 612 append_seq_fifo_load(desc, ctx->authsize, FIFOLD_CLASS_CLASS2 | in aead_set_sh_desc() [all …]
|
/linux-4.1.27/drivers/crypto/ |
D | ixp4xx_crypto.c | 341 int authsize = crypto_aead_authsize(tfm); in finish_scattered_hmac() local 342 int decryptlen = req->cryptlen - authsize; in finish_scattered_hmac() 346 req->src, decryptlen, authsize, 1); in finish_scattered_hmac() 645 static int setup_auth(struct crypto_tfm *tfm, int encrypt, unsigned authsize, in setup_auth() argument 661 cfgword = algo->cfgword | ( authsize << 6); /* (authsize/4) << 8 */ in setup_auth() 995 unsigned authsize = crypto_aead_authsize(tfm); in aead_perform() local 1016 cryptlen = req->cryptlen -authsize; in aead_perform() 1017 eff_cryptlen -= authsize; in aead_perform() 1054 if (unlikely(hmac_inconsistent(req->src, cryptlen, authsize))) { in aead_perform() 1063 req->src, cryptlen, authsize, 0); in aead_perform() [all …]
|
D | talitos.c | 649 unsigned int authsize; member 670 unsigned int authsize) in aead_setauthsize() argument 674 ctx->authsize = authsize; in aead_setauthsize() 837 memcpy((char *)sg_virt(sg) + sg->length - ctx->authsize, in ipsec_esp_encrypt_done() 838 icvdata, ctx->authsize); in ipsec_esp_encrypt_done() 872 ctx->authsize, ctx->authsize) ? -EBADMSG : 0; in ipsec_esp_decrypt_swauth_done() 950 unsigned int authsize = ctx->authsize; in ipsec_esp() local 1011 desc->ptr[4].j_extent = authsize; in ipsec_esp() 1024 sg_link_tbl_len = cryptlen + authsize; in ipsec_esp() 1043 desc->ptr[5].j_extent = authsize; in ipsec_esp() [all …]
|
D | picoxcell_crypto.c | 530 unsigned int authsize) in spacc_aead_setauthsize() argument 534 ctx->auth_size = authsize; in spacc_aead_setauthsize()
|
/linux-4.1.27/include/crypto/ |
D | if_alg.h | 57 int (*setauthsize)(void *private, unsigned int authsize);
|
/linux-4.1.27/arch/x86/crypto/ |
D | aesni-intel_glue.c | 968 unsigned int authsize) in common_rfc4106_set_authsize() argument 970 switch (authsize) { in common_rfc4106_set_authsize() 978 crypto_aead_crt(aead)->authsize = authsize; in common_rfc4106_set_authsize() 985 unsigned int authsize) in rfc4106_set_authsize() argument 991 ret = crypto_aead_setauthsize(child, authsize); in rfc4106_set_authsize() 993 crypto_aead_crt(parent)->authsize = authsize; in rfc4106_set_authsize()
|
/linux-4.1.27/include/linux/ |
D | crypto.h | 325 int (*setauthsize)(struct crypto_aead *tfm, unsigned int authsize); 616 unsigned int authsize; member 1294 return crypto_aead_crt(tfm)->authsize; in crypto_aead_authsize() 1366 int crypto_aead_setauthsize(struct crypto_aead *tfm, unsigned int authsize);
|
/linux-4.1.27/drivers/crypto/qat/qat_common/ |
D | qat_algs.c | 286 unsigned int digestsize = crypto_aead_crt(aead_tfm)->authsize; in qat_alg_aead_init_enc_session() 366 unsigned int digestsize = crypto_aead_crt(aead_tfm)->authsize; in qat_alg_aead_init_dec_session() 846 int digst_size = crypto_aead_crt(aead_tfm)->authsize; in qat_alg_aead_dec()
|