Lines Matching defs:assoclen
490 static int gcm_encrypt(struct aead_request *req, const u8 *iv, u32 assoclen)
510 if (assoclen)
511 gcm_calculate_auth_mac(req, dg, assoclen);
543 lengths.a = cpu_to_be64(assoclen * 8);
574 scatterwalk_map_and_copy(tag, req->dst, req->assoclen + req->cryptlen,
580 static int gcm_decrypt(struct aead_request *req, const u8 *iv, u32 assoclen)
599 req->assoclen + req->cryptlen - authsize,
606 if (assoclen)
607 gcm_calculate_auth_mac(req, dg, assoclen);
638 lengths.a = cpu_to_be64(assoclen * 8);
665 return gcm_encrypt(req, req->iv, req->assoclen);
670 return gcm_decrypt(req, req->iv, req->assoclen);
702 return crypto_ipsec_check_assoclen(req->assoclen) ?:
703 gcm_encrypt(req, iv, req->assoclen - GCM_RFC4106_IV_SIZE);
715 return crypto_ipsec_check_assoclen(req->assoclen) ?:
716 gcm_decrypt(req, iv, req->assoclen - GCM_RFC4106_IV_SIZE);