[][openwrt][mt7988][crypto][Add check for algorithm used in xfrm_state]

[Description]
Add check for algorithm used in xfrm_state.
There are two types of algorithms in IPSec. One type is AEAD, which
performs encryption and authentication simultaneously using a single
algorithm such as AES-GCM. The other type combines an encryption
algorithm and an authentication algorithm to perform encryption and
authentication seperately, such as AES128-HMAC-SHA1. Currently, inline
mode only supports the latter type. If the xfrm_state contains the
former algorithm, then return -EINVAL.

[Release-log]
N/A


Change-Id: I71c8e995ac25903de651d1a2076a7cacec32fb44
Reviewed-on: https://gerrit.mediatek.inc/c/openwrt/feeds/mtk_openwrt_feeds/+/8385337
1 file changed