From fa19117dfec31b266c28cddffc14d583e1c088fd Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Olivier=20Ch=C3=A9ron?= Date: Sun, 19 Jul 2020 15:44:10 +0200 Subject: [PATCH] Avoid thunk leak with AEAD state --- Crypto/Cipher/Types/AEAD.hs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Crypto/Cipher/Types/AEAD.hs b/Crypto/Cipher/Types/AEAD.hs index 4a4f613..ef306b0 100644 --- a/Crypto/Cipher/Types/AEAD.hs +++ b/Crypto/Cipher/Types/AEAD.hs @@ -27,7 +27,7 @@ data AEADModeImpl st = AEADModeImpl -- | Authenticated Encryption with Associated Data algorithms data AEAD cipher = forall st . AEAD { aeadModeImpl :: AEADModeImpl st - , aeadState :: st + , aeadState :: !st } -- | Append some header information to an AEAD context