瀏覽代碼

fixed decryption test

git-svn-id: https://svn.inf.ethz.ch/svn/lecturers/a2/trunk@7626 8c9fc860-2736-0410-a75d-ab315db34111
eth.guenter 7 年之前
父節點
當前提交
b55fb96304
共有 1 個文件被更改,包括 1 次插入1 次删除
  1. 1 1
      source/CryptoTestCiphers.Mod

+ 1 - 1
source/CryptoTestCiphers.Mod

@@ -168,7 +168,7 @@ IMPORT
 		Out.Ln; Out.String( "Key: " ); U.PrintHex( temp1, 0, keybits DIV 8 );
 		U.Hex2Bin( input, 0, temp1, 0, datalen );
 		Out.Ln; Out.String( "ciphertext: " ); U.PrintHex( temp1, 0, datalen );
-		cipher.Encrypt( temp1, 0, datalen ); 
+		cipher.Decrypt( temp1, 0, datalen ); 
 		Out.Ln; Out.String( "decryption: " ); U.PrintHex( temp1, 0, datalen );
 		U.Hex2Bin( output, 0, temp2, 0, datalen );
 		Out.Ln; Out.String( "correct decryption: " ); U.PrintHex( temp2, 0, datalen );