]> git.ipfire.org Git - thirdparty/strongswan.git/blobdiff - src/libstrongswan/crypto/proposal/proposal.c
proposal: Don't specify key length for ChaCha20/Poly1305
[thirdparty/strongswan.git] / src / libstrongswan / crypto / proposal / proposal.c
index 52520640cd3b69e21f077c596fe3725792c48f28..d671879c084590fc4154b8ebea1e3d42354f21c8 100644 (file)
@@ -956,7 +956,7 @@ static bool proposal_add_supported_ike(private_proposal_t *this, bool aead)
                                        add_algorithm(this, ENCRYPTION_ALGORITHM, encryption, 256);
                                        break;
                                case ENCR_CHACHA20_POLY1305:
-                                       add_algorithm(this, ENCRYPTION_ALGORITHM, encryption, 256);
+                                       add_algorithm(this, ENCRYPTION_ALGORITHM, encryption, 0);
                                        break;
                                default:
                                        break;