xfrm: Use the user specified truncation length in ESP and AH
Instead of using the hardcoded truncation for authentication algorithms, use the truncation length specified on xfrm_state. Signed-off-by: Martin Willi <martin@strongswan.org> Signed-off-by: David S. Miller <davem@davemloft.net>
This commit is contained in:
parent
4447bb33f0
commit
8f8a088c21
4 changed files with 4 additions and 4 deletions
|
@ -473,7 +473,7 @@ static int esp_init_authenc(struct xfrm_state *x)
|
|||
}
|
||||
|
||||
err = crypto_aead_setauthsize(
|
||||
aead, aalg_desc->uinfo.auth.icv_truncbits / 8);
|
||||
aead, x->aalg->alg_trunc_len / 8);
|
||||
if (err)
|
||||
goto free_key;
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue