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