[Mono-bugs] [Bug 50918][Nor] New - P/Invoke? RNGCryptoServiceProvider / Mono.Security.Win32

bugzilla-daemon@bugzilla.ximian.com bugzilla-daemon@bugzilla.ximian.com
Wed, 12 Nov 2003 23:15:18 -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=50918

--- shadow/50918	2003-11-12 23:15:18.000000000 -0500
+++ shadow/50918.tmp.29887	2003-11-12 23:15:18.000000000 -0500
@@ -0,0 +1,53 @@
+Bug#: 50918
+Product: Mono/Runtime
+Version: unspecified
+OS: 
+OS Details: 
+Status: NEW   
+Resolution: 
+Severity: 
+Priority: Normal
+Component: misc
+AssignedTo: mono-bugs@ximian.com                            
+ReportedBy: spouliot@videotron.ca               
+QAContact: mono-bugs@ximian.com
+TargetMilestone: ---
+URL: 
+Cc: 
+Summary: P/Invoke? RNGCryptoServiceProvider / Mono.Security.Win32
+
+Description of Problem:
+There seems to be a problem when PInvoking into windows on Mono 0.28.
+
+Steps to reproduce the problem:
+1. Compile the sample program (either csc or mcs will do) and link it 
+with Mono.Security.Win32
+2. Run the sample
+
+using System;
+using Mono.Security.Cryptography;
+
+class RngTest {
+	[STAThread]
+	static void Main(string[] args) {
+		RNGCryptoServiceProvider rng = new 
+RNGCryptoServiceProvider ();
+		byte[] random = new byte [16];
+		rng.GetBytes (random);
+		Console.WriteLine (BitConverter.ToString (random));
+	}
+}
+
+
+Actual Results:
+Nothing is displayed at the console.
+
+Expected Results:
+16 bytes are displayed on the console (using MS runtime).
+
+How often does this happen? 
+Always
+
+Additional Information:
+This worked in previous release of Mono. I didn't install 0.26 so the 
+last known working version is 0.25.