Lines Matching refs:authsize

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()
668 append_math_sub_imm_u32(desc, REG3, SEQOUTLEN, IMM, ctx->authsize); in aead_set_sh_desc()
709 append_seq_store(desc, ctx->authsize, LDST_CLASS_2_CCB | in aead_set_sh_desc()
729 unsigned int authsize) in aead_setauthsize() argument
733 ctx->authsize = authsize; in aead_setauthsize()
749 if (!ctx->enckeylen || !ctx->authsize) in gcm_set_sh_desc()
781 append_math_sub_imm_u32(desc, REG3, SEQOUTLEN, IMM, ctx->authsize); in gcm_set_sh_desc()
844 append_seq_store(desc, ctx->authsize, LDST_CLASS_1_CCB | in gcm_set_sh_desc()
891 ctx->authsize + tfm->ivsize); in gcm_set_sh_desc()
940 append_seq_fifo_load(desc, ctx->authsize, FIFOLD_CLASS_CLASS1 | in gcm_set_sh_desc()
959 static int gcm_setauthsize(struct crypto_aead *authenc, unsigned int authsize) in gcm_setauthsize() argument
963 ctx->authsize = authsize; in gcm_setauthsize()
979 if (!ctx->enckeylen || !ctx->authsize) in rfc4106_set_sh_desc()
1011 append_math_sub_imm_u32(desc, REG3, SEQOUTLEN, IMM, ctx->authsize); in rfc4106_set_sh_desc()
1042 append_seq_store(desc, ctx->authsize, LDST_CLASS_1_CCB | in rfc4106_set_sh_desc()
1088 ctx->authsize + tfm->ivsize); in rfc4106_set_sh_desc()
1119 append_seq_fifo_load(desc, ctx->authsize, FIFOLD_CLASS_CLASS1 | in rfc4106_set_sh_desc()
1181 append_math_sub_imm_u32(desc, REG3, SEQOUTLEN, IMM, ctx->authsize); in rfc4106_set_sh_desc()
1219 append_seq_store(desc, ctx->authsize, LDST_CLASS_1_CCB | in rfc4106_set_sh_desc()
1240 unsigned int authsize) in rfc4106_setauthsize() argument
1244 ctx->authsize = authsize; in rfc4106_setauthsize()
1261 if (!ctx->enckeylen || !ctx->authsize) in rfc4543_set_sh_desc()
1309 append_math_sub_imm_u32(desc, REG3, SEQOUTLEN, IMM, ctx->authsize); in rfc4543_set_sh_desc()
1364 append_seq_store(desc, ctx->authsize, LDST_CLASS_1_CCB | in rfc4543_set_sh_desc()
1417 append_math_sub_imm_u32(desc, REG3, SEQINLEN, IMM, ctx->authsize); in rfc4543_set_sh_desc()
1486 append_seq_fifo_load(desc, ctx->authsize, FIFOLD_CLASS_CLASS1 | in rfc4543_set_sh_desc()
1556 append_math_sub_imm_u32(desc, REG3, SEQOUTLEN, IMM, ctx->authsize); in rfc4543_set_sh_desc()
1614 append_seq_store(desc, ctx->authsize, LDST_CLASS_1_CCB | in rfc4543_set_sh_desc()
1635 unsigned int authsize) in rfc4543_setauthsize() argument
1639 ctx->authsize = authsize; in rfc4543_setauthsize()
2213 ctx->authsize + 4, 1); in aead_encrypt_done()
2243 req->cryptlen - ctx->authsize, 1); in aead_decrypt_done()
2263 ctx->authsize + 36, 1); in aead_decrypt_done()
2268 sg->length + ctx->authsize + 16, 1); in aead_decrypt_done()
2353 int authsize = ctx->authsize; in init_aead_job() local
2362 req->assoclen, req->cryptlen, authsize); in init_aead_job()
2420 append_seq_out_ptr(desc, dst_dma, req->cryptlen + authsize, in init_aead_job()
2423 append_seq_out_ptr(desc, dst_dma, req->cryptlen - authsize, in init_aead_job()
2438 int authsize = ctx->authsize; in init_aead_giv_job() local
2447 req->assoclen, req->cryptlen, authsize); in init_aead_giv_job()
2499 append_seq_out_ptr(desc, dst_dma, ivsize + req->cryptlen + authsize, in init_aead_giv_job()
2628 unsigned int authsize = ctx->authsize; in aead_edesc_alloc() local
2637 (encrypt ? authsize : (-authsize)), in aead_edesc_alloc()
2642 (encrypt ? authsize : 0), in aead_edesc_alloc()
2862 dst_nents = sg_count(req->dst, req->cryptlen + ctx->authsize, in aead_giv_edesc_alloc()