save-keys: Fix length of AES-GCM with 12-byte ICV
authorTobias Brunner <tobias@strongswan.org>
Tue, 23 Feb 2021 14:28:36 +0000 (15:28 +0100)
committerTobias Brunner <tobias@strongswan.org>
Tue, 23 Feb 2021 16:28:46 +0000 (17:28 +0100)
src/libcharon/plugins/save_keys/save_keys_listener.c

index 60b75fd..1c949b6 100644 (file)
@@ -264,7 +264,7 @@ static inline void esp_names(proposal_t *proposal, const char **enc,
                                len = 64;
                                break;
                        case ENCR_AES_GCM_ICV12:
-                               len = 64;
+                               len = 96;
                                break;
                        case ENCR_AES_GCM_ICV16:
                                len = 128;