Lines Matching refs:assoclen
335 static int gcm_encrypt(struct aead_request *req, char *iv, int assoclen)
347 lengths.a = cpu_to_be64(assoclen * 8);
350 if (assoclen)
351 gcm_calculate_auth_mac(req, dg, assoclen);
392 scatterwalk_map_and_copy(tag, req->dst, req->assoclen + req->cryptlen,
398 static int gcm_decrypt(struct aead_request *req, char *iv, int assoclen)
413 lengths.a = cpu_to_be64(assoclen * 8);
416 if (assoclen)
417 gcm_calculate_auth_mac(req, dg, assoclen);
422 req->assoclen + req->cryptlen - authsize,
469 return gcm_encrypt(req, iv, req->assoclen);
477 return gcm_decrypt(req, iv, req->assoclen);
509 return crypto_ipsec_check_assoclen(req->assoclen) ?:
510 gcm_encrypt(req, iv, req->assoclen - GCM_RFC4106_IV_SIZE);
522 return crypto_ipsec_check_assoclen(req->assoclen) ?:
523 gcm_decrypt(req, iv, req->assoclen - GCM_RFC4106_IV_SIZE);