Skip to content

Commit

Permalink
Fixed bug in decrypt part
Browse files Browse the repository at this point in the history
  • Loading branch information
MHumm committed Nov 21, 2021
1 parent 4e38f57 commit 9f5d2b5
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion Demos/Cipher_Console_KDF/Cipher_Console_KDF.dpr
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand Down

0 comments on commit 9f5d2b5

Please sign in to comment.