[Mono-bugs] [Bug 32179][Blo] Changed - RNGCryptoServiceProvider doesn't work on Windows

bugzilla-daemon@rocky.ximian.com bugzilla-daemon@rocky.ximian.com
Fri, 28 Feb 2003 21:27:51 -0500 (EST)


Please do not reply to this email- if you want to comment on the bug, go to the
URL shown below and enter your comments there.

Changed by spouliot@videotron.ca.

http://bugzilla.ximian.com/show_bug.cgi?id=32179

--- shadow/32179	Fri Jan 17 08:57:14 2003
+++ shadow/32179.tmp.10320	Fri Feb 28 21:27:51 2003
@@ -1,14 +1,14 @@
 Bug#: 32179
 Product: Mono/Class Libraries
 Version: unspecified
-OS: 
+OS: unknown
 OS Details: 
 Status: NEW   
 Resolution: 
-Severity: 
+Severity: Unknown
 Priority: Blocker
 Component: CORLIB
 AssignedTo: mono-bugs@ximian.com                            
 ReportedBy: spouliot@videotron.ca               
 QAContact: mono-bugs@ximian.com
 TargetMilestone: ---
@@ -39,6 +39,41 @@
 
 random data
 
 How often does this happen? 
 
 Always
+
+------- Additional Comments From spouliot@videotron.ca  2003-02-28 21:27 -------
+It's possible to register an alternative RNG using CryptoConfig and 
+the machine.config file. The assembly Mono.Security.Win32.dll has a 
+RNGCryptoServiceProvider class that works (exclusively) on Windows.
+
+This is the configuration required to use the Mono.Security.Win32.dll 
+assembly for Windows users.
+
+</configuration>
+
+	... other config stuff ...
+
+	<mscorlib>
+		<cryptographySettings>
+			<cryptoNameMapping>
+				<cryptoClasses>
+					<cryptoClass 
+CapiRNG="Mono.Security.Cryptography.RNGCryptoServiceProvider, 
+Mono.Security.Win32, Version=0.0.0.0, Culture=neutral, 
+PublicKeyToken=null"/>
+				</cryptoClasses>
+				<nameEntry 
+name="RandomNumberGenerator" class="CapiRNG" />
+				<nameEntry 
+name="System.Security.Cryptography.RandomNumberGenerator" 
+class="CapiRNG" />
+				<nameEntry 
+name="System.Security.Cryptography.RNGCryptoServiceProvider" 
+class="CapiRNG"/>
+			</cryptoNameMapping>
+		</cryptographySettings>
+	</mscorlib>
+</configuration>
+