Преглед на файлове

rebuilt release

git-svn-id: https://svn.inf.ethz.ch/svn/lecturers/a2/trunk@7389 8c9fc860-2736-0410-a75d-ab315db34111
felixf преди 7 години
родител
ревизия
a7ed3dd28d
променени са 100 файла, в които са добавени 35 реда и са изтрити 18 реда
  1. BIN
      WinAos/A2.exe
  2. BIN
      WinAos/oberon.exe
  3. BIN
      WinAos/obg/A2Sequencers.GofW
  4. BIN
      WinAos/obg/ADVAPI32.GofW
  5. BIN
      WinAos/obg/AFM.GofW
  6. BIN
      WinAos/obg/AMD64Decoder.GofW
  7. BIN
      WinAos/obg/ARMDecoder.GofW
  8. BIN
      WinAos/obg/ASMAMD64.GofW
  9. BIN
      WinAos/obg/ASN1.GofW
  10. BIN
      WinAos/obg/AVI.GofW
  11. BIN
      WinAos/obg/ActiveTimers.GofW
  12. BIN
      WinAos/obg/AlmSmtpReceiver.GofW
  13. BIN
      WinAos/obg/AnimationCodec.GofW
  14. BIN
      WinAos/obg/Archives.GofW
  15. BIN
      WinAos/obg/Array1dBytes.GofW
  16. BIN
      WinAos/obg/Array1dCplx.GofW
  17. BIN
      WinAos/obg/Array1dInt.GofW
  18. BIN
      WinAos/obg/Array1dRat.GofW
  19. BIN
      WinAos/obg/Array1dRe.GofW
  20. BIN
      WinAos/obg/Array2dCplx.GofW
  21. BIN
      WinAos/obg/Array2dInt.GofW
  22. BIN
      WinAos/obg/Array2dRat.GofW
  23. BIN
      WinAos/obg/Array2dRe.GofW
  24. BIN
      WinAos/obg/ArrayBase.GofW
  25. BIN
      WinAos/obg/ArrayBaseOptimized.GofW
  26. BIN
      WinAos/obg/ArrayXdBytes.GofW
  27. BIN
      WinAos/obg/ArrayXdCplx.GofW
  28. BIN
      WinAos/obg/ArrayXdInt.GofW
  29. BIN
      WinAos/obg/ArrayXdRat.GofW
  30. BIN
      WinAos/obg/ArrayXdRe.GofW
  31. BIN
      WinAos/obg/Attributes.GofW
  32. BIN
      WinAos/obg/Autostart.GofW
  33. BIN
      WinAos/obg/BIT.GofW
  34. BIN
      WinAos/obg/BMPCodec.GofW
  35. BIN
      WinAos/obg/Base64.GofW
  36. BIN
      WinAos/obg/Beep.GofW
  37. BIN
      WinAos/obg/BeepTest.GofW
  38. BIN
      WinAos/obg/BenchSyntaxHighlighter.GofW
  39. BIN
      WinAos/obg/BenchTCP.GofW
  40. BIN
      WinAos/obg/BenchXML.GofW
  41. BIN
      WinAos/obg/BimboMail.GofW
  42. BIN
      WinAos/obg/BimboScanner.GofW
  43. BIN
      WinAos/obg/Bimso.GofW
  44. BIN
      WinAos/obg/Bin2Hex.GofW
  45. BIN
      WinAos/obg/BinToCode.GofW
  46. BIN
      WinAos/obg/BitSets.GofW
  47. BIN
      WinAos/obg/BootConsole.GofW
  48. BIN
      WinAos/obg/BootManager.GofW
  49. BIN
      WinAos/obg/BootShell.GofW
  50. BIN
      WinAos/obg/CATServer.GofW
  51. BIN
      WinAos/obg/CLUTs.GofW
  52. BIN
      WinAos/obg/CPUID.GofW
  53. BIN
      WinAos/obg/CRC.GofW
  54. BIN
      WinAos/obg/CSS2.GofW
  55. BIN
      WinAos/obg/CSS2Parser.GofW
  56. BIN
      WinAos/obg/CSS2Properties.GofW
  57. BIN
      WinAos/obg/CSS2Scanner.GofW
  58. BIN
      WinAos/obg/CSV.GofW
  59. BIN
      WinAos/obg/Caches.GofW
  60. BIN
      WinAos/obg/CalcConvolution.GofW
  61. BIN
      WinAos/obg/CalcD1.GofW
  62. BIN
      WinAos/obg/CalcD2.GofW
  63. BIN
      WinAos/obg/CalcD3.GofW
  64. BIN
      WinAos/obg/CalcD4.GofW
  65. BIN
      WinAos/obg/CalcDiethelm.GofW
  66. BIN
      WinAos/obg/CalcFn.GofW
  67. BIN
      WinAos/obg/CalcGauss.GofW
  68. BIN
      WinAos/obg/CalcGrunwald.GofW
  69. BIN
      WinAos/obg/CharacterLineup.GofW
  70. BIN
      WinAos/obg/Checksum.GofW
  71. BIN
      WinAos/obg/Clipboard.GofW
  72. BIN
      WinAos/obg/Clock.GofW
  73. BIN
      WinAos/obg/Codecs.GofW
  74. BIN
      WinAos/obg/ColorModels.GofW
  75. BIN
      WinAos/obg/CommandLine.GofW
  76. BIN
      WinAos/obg/Commands.GofW
  77. BIN
      WinAos/obg/Compiler.GofW
  78. BIN
      WinAos/obg/CompilerInterface.GofW
  79. BIN
      WinAos/obg/ComplexNumbers.GofW
  80. BIN
      WinAos/obg/ComponentInfo.GofW
  81. BIN
      WinAos/obg/ComponentViewer.GofW
  82. 1 0
      WinAos/obg/ComponentViewer.SymW
  83. BIN
      WinAos/obg/Configuration.GofW
  84. BIN
      WinAos/obg/ContextualDependency.GofW
  85. BIN
      WinAos/obg/CryptoAES.GofW
  86. 34 18
      WinAos/obg/CryptoAES.SymW
  87. BIN
      WinAos/obg/CryptoARC4.GofW
  88. BIN
      WinAos/obg/CryptoBase64.GofW
  89. BIN
      WinAos/obg/CryptoBigNumbers.GofW
  90. BIN
      WinAos/obg/CryptoBlowfish.GofW
  91. BIN
      WinAos/obg/CryptoCAST.GofW
  92. BIN
      WinAos/obg/CryptoCSPRNG.GofW
  93. BIN
      WinAos/obg/CryptoCiphers.GofW
  94. BIN
      WinAos/obg/CryptoDES.GofW
  95. BIN
      WinAos/obg/CryptoDES3.GofW
  96. BIN
      WinAos/obg/CryptoDSA.GofW
  97. BIN
      WinAos/obg/CryptoDiffieHellman.GofW
  98. BIN
      WinAos/obg/CryptoHMAC.GofW
  99. BIN
      WinAos/obg/CryptoHashes.GofW
  100. BIN
      WinAos/obg/CryptoIDEA.GofW

BIN
WinAos/A2.exe


BIN
WinAos/oberon.exe


BIN
WinAos/obg/A2Sequencers.GofW


BIN
WinAos/obg/ADVAPI32.GofW


BIN
WinAos/obg/AFM.GofW


BIN
WinAos/obg/AMD64Decoder.GofW


BIN
WinAos/obg/ARMDecoder.GofW


BIN
WinAos/obg/ASMAMD64.GofW


BIN
WinAos/obg/ASN1.GofW


BIN
WinAos/obg/AVI.GofW


BIN
WinAos/obg/ActiveTimers.GofW


BIN
WinAos/obg/AlmSmtpReceiver.GofW


BIN
WinAos/obg/AnimationCodec.GofW


BIN
WinAos/obg/Archives.GofW


BIN
WinAos/obg/Array1dBytes.GofW


BIN
WinAos/obg/Array1dCplx.GofW


BIN
WinAos/obg/Array1dInt.GofW


BIN
WinAos/obg/Array1dRat.GofW


BIN
WinAos/obg/Array1dRe.GofW


BIN
WinAos/obg/Array2dCplx.GofW


BIN
WinAos/obg/Array2dInt.GofW


BIN
WinAos/obg/Array2dRat.GofW


BIN
WinAos/obg/Array2dRe.GofW


BIN
WinAos/obg/ArrayBase.GofW


BIN
WinAos/obg/ArrayBaseOptimized.GofW


BIN
WinAos/obg/ArrayXdBytes.GofW


BIN
WinAos/obg/ArrayXdCplx.GofW


BIN
WinAos/obg/ArrayXdInt.GofW


BIN
WinAos/obg/ArrayXdRat.GofW


BIN
WinAos/obg/ArrayXdRe.GofW


BIN
WinAos/obg/Attributes.GofW


BIN
WinAos/obg/Autostart.GofW


BIN
WinAos/obg/BIT.GofW


BIN
WinAos/obg/BMPCodec.GofW


BIN
WinAos/obg/Base64.GofW


BIN
WinAos/obg/Beep.GofW


BIN
WinAos/obg/BeepTest.GofW


BIN
WinAos/obg/BenchSyntaxHighlighter.GofW


BIN
WinAos/obg/BenchTCP.GofW


BIN
WinAos/obg/BenchXML.GofW


BIN
WinAos/obg/BimboMail.GofW


BIN
WinAos/obg/BimboScanner.GofW


BIN
WinAos/obg/Bimso.GofW


BIN
WinAos/obg/Bin2Hex.GofW


BIN
WinAos/obg/BinToCode.GofW


BIN
WinAos/obg/BitSets.GofW


BIN
WinAos/obg/BootConsole.GofW


BIN
WinAos/obg/BootManager.GofW


BIN
WinAos/obg/BootShell.GofW


BIN
WinAos/obg/CATServer.GofW


BIN
WinAos/obg/CLUTs.GofW


BIN
WinAos/obg/CPUID.GofW


BIN
WinAos/obg/CRC.GofW


BIN
WinAos/obg/CSS2.GofW


BIN
WinAos/obg/CSS2Parser.GofW


BIN
WinAos/obg/CSS2Properties.GofW


BIN
WinAos/obg/CSS2Scanner.GofW


BIN
WinAos/obg/CSV.GofW


BIN
WinAos/obg/Caches.GofW


BIN
WinAos/obg/CalcConvolution.GofW


BIN
WinAos/obg/CalcD1.GofW


BIN
WinAos/obg/CalcD2.GofW


BIN
WinAos/obg/CalcD3.GofW


BIN
WinAos/obg/CalcD4.GofW


BIN
WinAos/obg/CalcDiethelm.GofW


BIN
WinAos/obg/CalcFn.GofW


BIN
WinAos/obg/CalcGauss.GofW


BIN
WinAos/obg/CalcGrunwald.GofW


BIN
WinAos/obg/CharacterLineup.GofW


BIN
WinAos/obg/Checksum.GofW


BIN
WinAos/obg/Clipboard.GofW


BIN
WinAos/obg/Clock.GofW


BIN
WinAos/obg/Codecs.GofW


BIN
WinAos/obg/ColorModels.GofW


BIN
WinAos/obg/CommandLine.GofW


BIN
WinAos/obg/Commands.GofW


BIN
WinAos/obg/Compiler.GofW


BIN
WinAos/obg/CompilerInterface.GofW


BIN
WinAos/obg/ComplexNumbers.GofW


BIN
WinAos/obg/ComponentInfo.GofW


BIN
WinAos/obg/ComponentViewer.GofW


+ 1 - 0
WinAos/obg/ComponentViewer.SymW

@@ -29,6 +29,7 @@ VAR
 	PROCEDURE ^ DoShow*(vc: WMComponents.VisualComponent; VAR window: Window; x, y, width, height: LONGINT; client, alpha, fullscreen: BOOLEAN; flags: SET); 
 	PROCEDURE ^ DoLoad*(CONST filename: ARRAY OF CHAR; error: Streams.Writer): WMComponents.VisualComponent; 
 	PROCEDURE ^ DoOpen*(CONST filename: ARRAY OF CHAR; error: Streams.Writer; x, y, width, height: LONGINT; client, alpha, fullscreen: BOOLEAN; flags: SET): WMComponents.VisualComponent; 
+	PROCEDURE ^ SetProperties(c: WMComponents.Component; CONST attr: ARRAY OF CHAR); 
 	PROCEDURE ^ Open*(context: Commands.Context); 
 	PROCEDURE ^ Store*(context: Commands.Context); 
 	PROCEDURE ^ Restore*(context: WMRestorable.Context); 

BIN
WinAos/obg/Configuration.GofW


BIN
WinAos/obg/ContextualDependency.GofW


BIN
WinAos/obg/CryptoAES.GofW


+ 34 - 18
WinAos/obg/CryptoAES.SymW

@@ -1,7 +1,7 @@
 MODULE CryptoAES;
 	IMPORT S := SYSTEM, Ciphers := CryptoCiphers, U := CryptoUtils;
 CONST 
-	MaxR = 14; 
+	MaxRounds = 14; 
 	ECB = Ciphers.ECB; 
 	CBC = Ciphers.CBC; 
 	CTR = Ciphers.CTR; 
@@ -12,18 +12,18 @@ CONST
 TYPE 
 	RTable = ARRAY 256 OF SET; 
 
-	Ind4 = RECORD 
-		a, b, c, d: LONGINT; 
-	END; 
-
-	RKeys = ARRAY (4 * (MaxR + 1)) OF SET; 
+	Cipher* = OBJECT (Ciphers.Cipher)
+	TYPE 
+		Key = ARRAY (4 * (MaxRounds + 1)) OF SET; 
 
-	Block = ARRAY 4 OF SET; 
+		Block = ARRAY 4 OF SET; 
 
-	Cipher* = OBJECT (Ciphers.Cipher)
+		Ind4 = RECORD 
+			a, b, c, d: LONGINT; 
+		END; 
 	VAR 
 		rounds: SHORTINT; 
-		erkeys, drkeys: RKeys; 
+		key, dkey: Key; 
 		iv: Block; 
 
 		PROCEDURE ^ InitKey*(CONST src: ARRAY OF CHAR; keybits: LONGINT); 
@@ -31,21 +31,37 @@ TYPE
 		PROCEDURE ^ IncIV; 
 		PROCEDURE ^ Encrypt*(VAR buf: ARRAY OF CHAR; ofs, len: LONGINT); 
 		PROCEDURE ^ Decrypt*(VAR buf: ARRAY OF CHAR; ofs, len: LONGINT); 
+		PROCEDURE ^ RoundE(VAR b: Block); 
+		PROCEDURE ^ RoundD(VAR b: Block); 
+		PROCEDURE  - split(s: SET; VAR b: Ind4);
+		BEGIN
+			b.a := (S.VAL(LONGINT, s) MOD 256); 
+			b.b := ((S.VAL(LONGINT, s) DIV 256) MOD 256); 
+			b.c := ((S.VAL(LONGINT, s) DIV 65536) MOD 256); 
+			b.d := ((S.VAL(LONGINT, s) DIV 16777216) MOD 256)
+		END split; 
+		PROCEDURE ^ Init128(CONST src: ARRAY OF CHAR): SHORTINT; 
+		PROCEDURE ^ Init192(CONST src: ARRAY OF CHAR): SHORTINT; 
+		PROCEDURE ^ Init256(CONST src: ARRAY OF CHAR): SHORTINT; 
+		PROCEDURE ^ InvertKey; 
 		PROCEDURE ^  & Init*; 
 	END Cipher; 
+
+	ConstBuffer = OBJECT 
+	VAR 
+		buf: ARRAY 2048 OF CHAR; 
+		ib: LONGINT; 
+
+		PROCEDURE ^  & Initialize; 
+		PROCEDURE ^ Append(CONST str: ARRAY OF CHAR); 
+		PROCEDURE ^ GetInt(): LONGINT; 
+	END ConstBuffer; 
 VAR 
-	e0, e1, e2, e3, e4, d0, d1, d2, d3, d4: RTable; 
+	e0, e1, e2, e3, e4: RTable; 
+	d0, d1, d2, d3, d4: RTable; 
 	rcon: ARRAY 10 OF SET; 
 
 	PROCEDURE ^ NewCipher*(): Ciphers.Cipher; 
 	PROCEDURE ^ Initialize; 
-	PROCEDURE ^ ind(s: SET): LONGINT; 
-	PROCEDURE ^ split(s: SET; VAR b: Ind4); 
-	PROCEDURE ^ Init128(VAR rk: RKeys; CONST src: ARRAY OF CHAR): SHORTINT; 
-	PROCEDURE ^ Init192(VAR rk: RKeys; CONST src: ARRAY OF CHAR): SHORTINT; 
-	PROCEDURE ^ Init256(VAR rk: RKeys; CONST src: ARRAY OF CHAR): SHORTINT; 
-	PROCEDURE ^ Invert(VAR rk: RKeys; rounds: SHORTINT); 
-	PROCEDURE ^ RoundE(CONST rk: RKeys; VAR b: Block; rounds: SHORTINT); 
-	PROCEDURE ^ RoundD(CONST rk: RKeys; VAR b: Block; rounds: SHORTINT); 
 BEGIN
 END CryptoAES.

BIN
WinAos/obg/CryptoARC4.GofW


BIN
WinAos/obg/CryptoBase64.GofW


BIN
WinAos/obg/CryptoBigNumbers.GofW


BIN
WinAos/obg/CryptoBlowfish.GofW


BIN
WinAos/obg/CryptoCAST.GofW


BIN
WinAos/obg/CryptoCSPRNG.GofW


BIN
WinAos/obg/CryptoCiphers.GofW


BIN
WinAos/obg/CryptoDES.GofW


BIN
WinAos/obg/CryptoDES3.GofW


BIN
WinAos/obg/CryptoDSA.GofW


BIN
WinAos/obg/CryptoDiffieHellman.GofW


BIN
WinAos/obg/CryptoHMAC.GofW


BIN
WinAos/obg/CryptoHashes.GofW


BIN
WinAos/obg/CryptoIDEA.GofW


Някои файлове не бяха показани, защото твърде много файлове са промени