Home
last modified time | relevance | path

Searched refs:authsize (Results 1 – 7 of 7) sorted by relevance

/drivers/crypto/nx/
Dnx-aes-ccm.c82 unsigned int authsize) in ccm_aes_nx_setauthsize() argument
84 switch (authsize) { in ccm_aes_nx_setauthsize()
101 unsigned int authsize) in ccm4309_aes_nx_setauthsize() argument
103 switch (authsize) { in ccm4309_aes_nx_setauthsize()
145 static int generate_b0(u8 *iv, unsigned int assoclen, unsigned int authsize, in generate_b0() argument
148 unsigned int l, lp, m = authsize; in generate_b0()
171 unsigned int authsize, in generate_pat() argument
223 rc = generate_b0(iv, assoclen, authsize, nbytes, b0); in generate_pat()
348 unsigned int authsize = crypto_aead_authsize(crypto_aead_reqtfm(req)); in ccm_nx_decrypt() local
356 nbytes -= authsize; in ccm_nx_decrypt()
[all …]
Dnx-aes-gcm.c96 unsigned int authsize) in gcm4106_aes_nx_setauthsize() argument
98 switch (authsize) { in gcm4106_aes_nx_setauthsize()
/drivers/crypto/
Dixp4xx_crypto.c351 int authsize = crypto_aead_authsize(tfm); in finish_scattered_hmac() local
352 int decryptlen = req->assoclen + req->cryptlen - authsize; in finish_scattered_hmac()
356 req->dst, decryptlen, authsize, 1); in finish_scattered_hmac()
660 static int setup_auth(struct crypto_tfm *tfm, int encrypt, unsigned authsize, in setup_auth() argument
676 cfgword = algo->cfgword | ( authsize << 6); /* (authsize/4) << 8 */ in setup_auth()
992 unsigned authsize = crypto_aead_authsize(tfm); in aead_perform() local
1015 cryptlen = req->cryptlen -authsize; in aead_perform()
1016 eff_cryptlen -= authsize; in aead_perform()
1043 if (lastlen >= authsize) in aead_perform()
1045 buf->buf_len - authsize; in aead_perform()
[all …]
Dtalitos.c985 unsigned int authsize = crypto_aead_authsize(authenc); in ipsec_esp_encrypt_done() local
1002 memcpy((char *)sg_virt(sg) + sg->length - authsize, in ipsec_esp_encrypt_done()
1003 icvdata, authsize); in ipsec_esp_encrypt_done()
1017 unsigned int authsize = crypto_aead_authsize(authenc); in ipsec_esp_decrypt_swauth_done() local
1031 icv = (char *)sg_virt(sg) + sg->length - authsize; in ipsec_esp_decrypt_swauth_done()
1042 icv = oicv + authsize; in ipsec_esp_decrypt_swauth_done()
1046 err = crypto_memneq(oicv, icv, authsize) ? -EBADMSG : 0; in ipsec_esp_decrypt_swauth_done()
1166 unsigned int authsize = crypto_aead_authsize(aead); in ipsec_esp() local
1234 to_talitos_ptr_ext_set(&desc->ptr[4], authsize, is_sec1); in ipsec_esp()
1237 sg_link_tbl_len += authsize; in ipsec_esp()
[all …]
Datmel-aes.c1493 u32 authsize; in atmel_aes_gcm_process() local
1496 authsize = crypto_aead_authsize(tfm); in atmel_aes_gcm_process()
1497 ctx->textlen = req->cryptlen - (enc ? 0 : authsize); in atmel_aes_gcm_process()
1644 u32 offset, authsize, itag[4], *otag = ctx->tag; in atmel_aes_gcm_finalize() local
1654 authsize = crypto_aead_authsize(tfm); in atmel_aes_gcm_finalize()
1656 scatterwalk_map_and_copy(otag, req->dst, offset, authsize, 1); in atmel_aes_gcm_finalize()
1659 scatterwalk_map_and_copy(itag, req->src, offset, authsize, 0); in atmel_aes_gcm_finalize()
1660 err = crypto_memneq(itag, otag, authsize) ? -EBADMSG : 0; in atmel_aes_gcm_finalize()
1705 unsigned int authsize) in atmel_aes_gcm_setauthsize() argument
1708 switch (authsize) { in atmel_aes_gcm_setauthsize()
Dpicoxcell_crypto.c510 unsigned int authsize) in spacc_aead_setauthsize() argument
514 return crypto_aead_setauthsize(ctx->sw_cipher, authsize); in spacc_aead_setauthsize()
571 unsigned int authsize = crypto_aead_authsize(aead); in spacc_aead_submit() local
596 proc_len -= authsize; in spacc_aead_submit()
600 writel(authsize, engine->regs + SPA_ICV_LEN_REG_OFFSET); in spacc_aead_submit()
/drivers/crypto/caam/
Dcaamalg.c231 unsigned int authsize; member
361 append_seq_store(desc, ctx->authsize, LDST_CLASS_2_CCB | in aead_null_set_sh_desc()
446 append_seq_fifo_load(desc, ctx->authsize, FIFOLD_CLASS_CLASS2 | in aead_null_set_sh_desc()
481 if (!ctx->authsize) in aead_set_sh_desc()
555 append_seq_store(desc, ctx->authsize, LDST_CLASS_2_CCB | in aead_set_sh_desc()
635 append_seq_fifo_load(desc, ctx->authsize, FIFOLD_CLASS_CLASS2 | in aead_set_sh_desc()
702 append_math_sub_imm_u32(desc, REG3, SEQOUTLEN, IMM, ctx->authsize); in aead_set_sh_desc()
744 append_seq_store(desc, ctx->authsize, LDST_CLASS_2_CCB | in aead_set_sh_desc()
765 unsigned int authsize) in aead_setauthsize() argument
769 ctx->authsize = authsize; in aead_setauthsize()
[all …]