strongswan: handle chacha20poly1305 as AEAD

chacha20policy1305 is also an AEAD cipher, and hence does not
permit a hash algorithm.

Fixes issue #15397.

Signed-off-by: Philip Prindeville <philipp@redfish-solutions.com>
This commit is contained in:
Philip Prindeville 2021-04-12 21:59:30 -06:00
parent c95fd69973
commit ff33f4ccd3

View file

@ -141,6 +141,8 @@ is_aead() {
case "$cipher" in case "$cipher" in
aes*gcm*|aes*ccm*|aes*gmac*) aes*gcm*|aes*ccm*|aes*gmac*)
return 0 ;; return 0 ;;
chacha20poly1305)
return 0 ;;
esac esac
return 1 return 1