diff options
author | Janne Peltonen <janne.peltonen@nokia.com> | 2021-06-21 13:53:53 +0300 |
---|---|---|
committer | Petri Savolainen <petri.savolainen@nokia.com> | 2021-07-05 10:34:40 +0300 |
commit | f1c3efe143d352ce3e1100b57024b6dc5b25e779 (patch) | |
tree | fb6c9ad017bb4c9c96d84b1ef3b0f2eeaf132f4d /helper | |
parent | 8ce2ed8a315d9ed2d11ff04e68fa0e3ba740020b (diff) |
helper: ipsec: add AES-CMAC in capability checking helper
AES-CMAC authentication algorithm is supported in ODP IPsec API
but was not recognized by the IPsec algorithm capability checking
helper function. Add AES-CMAC in the helper.
Signed-off-by: Janne Peltonen <janne.peltonen@nokia.com>
Reviewed-by: Jere Leppänen <jere.leppanen@nokia.com>
Diffstat (limited to 'helper')
-rw-r--r-- | helper/ipsec.c | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/helper/ipsec.c b/helper/ipsec.c index 41daefbfb..3d9e9fed8 100644 --- a/helper/ipsec.c +++ b/helper/ipsec.c @@ -98,6 +98,10 @@ int odph_ipsec_alg_check(odp_ipsec_capability_t capa, if (!capa.auths.bit.aes_ccm) return -1; break; + case ODP_AUTH_ALG_AES_CMAC: + if (!capa.auths.bit.aes_cmac) + return -1; + break; case ODP_AUTH_ALG_CHACHA20_POLY1305: if (!capa.auths.bit.chacha20_poly1305) return -1; |