浏览代码

fixed decrytion test for ARC4 cipher

git-svn-id: https://svn.inf.ethz.ch/svn/lecturers/a2/trunk@7600 8c9fc860-2736-0410-a75d-ab315db34111
eth.guenter 7 年之前
父节点
当前提交
df527d5a67
共有 1 个文件被更改,包括 1 次插入0 次删除
  1. 1 0
      source/CryptoTestCiphers.Mod

+ 1 - 0
source/CryptoTestCiphers.Mod

@@ -24,6 +24,7 @@ IMPORT
 		cipher.Encrypt( bindata, 0, cipher.blockSize );
 		Out.Ln; Out.String( "Encrypted: " ); U.PrintHex( bindata, 0, cipher.blockSize );
 		(* decryption *)
+		cipher.InitKey( binkey, keybits );
 		cipher.Decrypt( bindata, 0, cipher.blockSize );
 		Out.Ln; Out.String( "Decrypted: " ); U.PrintHex( bindata, 0, cipher.blockSize );
 		bindata[cipher.blockSize] := 0X;