mirror of
https://github.com/AuxXxilium/linux_dsm_epyc7002.git
synced 2024-11-24 18:30:54 +07:00
xfrm: Add SHA384 and SHA512 HMAC authentication algorithms to XFRM
These algorithms use a truncation of 192/256 bits, as specified in RFC4868. Signed-off-by: Martin Willi <martin@strongswan.org> Acked-by: Herbert Xu <herbert@gondor.apana.org.au> Signed-off-by: David S. Miller <davem@davemloft.net>
This commit is contained in:
parent
8f8a088c21
commit
bc74b0c8af
@ -199,6 +199,40 @@ static struct xfrm_algo_desc aalg_list[] = {
|
||||
.sadb_alg_maxbits = 256
|
||||
}
|
||||
},
|
||||
{
|
||||
.name = "hmac(sha384)",
|
||||
|
||||
.uinfo = {
|
||||
.auth = {
|
||||
.icv_truncbits = 192,
|
||||
.icv_fullbits = 384,
|
||||
}
|
||||
},
|
||||
|
||||
.desc = {
|
||||
.sadb_alg_id = SADB_X_AALG_SHA2_384HMAC,
|
||||
.sadb_alg_ivlen = 0,
|
||||
.sadb_alg_minbits = 384,
|
||||
.sadb_alg_maxbits = 384
|
||||
}
|
||||
},
|
||||
{
|
||||
.name = "hmac(sha512)",
|
||||
|
||||
.uinfo = {
|
||||
.auth = {
|
||||
.icv_truncbits = 256,
|
||||
.icv_fullbits = 512,
|
||||
}
|
||||
},
|
||||
|
||||
.desc = {
|
||||
.sadb_alg_id = SADB_X_AALG_SHA2_512HMAC,
|
||||
.sadb_alg_ivlen = 0,
|
||||
.sadb_alg_minbits = 512,
|
||||
.sadb_alg_maxbits = 512
|
||||
}
|
||||
},
|
||||
{
|
||||
.name = "hmac(rmd160)",
|
||||
.compat = "rmd160",
|
||||
|
Loading…
Reference in New Issue
Block a user