Ver Fonte

fixed ARC4 testing

git-svn-id: https://svn.inf.ethz.ch/svn/lecturers/a2/trunk@7579 8c9fc860-2736-0410-a75d-ab315db34111
eth.guenter há 7 anos atrás
pai
commit
0e727ac908
1 ficheiros alterados com 1 adições e 0 exclusões
  1. 1 0
      source/CryptoTestCiphers.Mod

+ 1 - 0
source/CryptoTestCiphers.Mod

@@ -87,6 +87,7 @@ IMPORT
 		cipher.Encrypt( bindata, 0, 16 );
 		Out.Ln; Out.String( "Encrypted: " ); U.PrintHex( bindata, 0, 16 );
 		(* decryption *)
+		cipher.InitKey( binkey, keybits );
 		cipher.SetIV( iv, Ciphers.CTR );
 		cipher.Decrypt( bindata, 0, 16 );
 		Out.Ln; Out.String( "Decrypted: " ); U.PrintHex( bindata, 0, 16 );