Skip to content

Commit 9f5d2b5

Browse files
committed
Fixed bug in decrypt part
1 parent 4e38f57 commit 9f5d2b5

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

Demos/Cipher_Console_KDF/Cipher_Console_KDF.dpr

+1-1
Original file line numberDiff line numberDiff line change
@@ -81,7 +81,7 @@ begin
8181
WriteLn;
8282

8383
// Decrypt
84-
Cipher.Init(CipherKey, IV, 0);
84+
Cipher.Init(RawByteString(StringOf(KeyKDF)), IV, 0);
8585
Output := Cipher.DecodeBytes(Output);
8686
// clean up inside the cipher instance, which also removes the key from RAM
8787
Cipher.Done;

0 commit comments

Comments
 (0)