From 9f5d2b58a785fc49db669bc351e83c2ee38a6141 Mon Sep 17 00:00:00 2001 From: Markus Humm Date: Sun, 21 Nov 2021 19:38:08 +0100 Subject: [PATCH] Fixed bug in decrypt part --- Demos/Cipher_Console_KDF/Cipher_Console_KDF.dpr | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Demos/Cipher_Console_KDF/Cipher_Console_KDF.dpr b/Demos/Cipher_Console_KDF/Cipher_Console_KDF.dpr index 409118aa..ee82bfcb 100644 --- a/Demos/Cipher_Console_KDF/Cipher_Console_KDF.dpr +++ b/Demos/Cipher_Console_KDF/Cipher_Console_KDF.dpr @@ -81,7 +81,7 @@ begin WriteLn; // Decrypt - Cipher.Init(CipherKey, IV, 0); + Cipher.Init(RawByteString(StringOf(KeyKDF)), IV, 0); Output := Cipher.DecodeBytes(Output); // clean up inside the cipher instance, which also removes the key from RAM Cipher.Done;