// // System.Security.Cryptography.RNGCryptoServiceProvider // // Author: Mark Crichton (crichton@gimp.org) // // (C) 2002 // // "In the beginning there was Chaos, // and within this Chaos was Power, // Great Power without form." // -- The Verrah Rubicon of Verena, Book One using System; using System.Runtime.CompilerServices; namespace System.Security.Cryptography { public class RNGCryptoServiceProvider : RandomNumberGenerator { [MonoTODO] public RNGCryptoServiceProvider () { // This will get some meaning when I figure out what the other // three constructors do. } [MonoTODO] public RNGCryptoServiceProvider (byte[] rgb) { // Ok, not called by app code... someone must call it, though. } [MonoTODO] public RNGCryptoServiceProvider (CspParameters cspParams) { // Why do I have this feeling this is the MS CryptAPI... } [MonoTODO] public RNGCryptoServiceProvider (string str) { // More !application code. Interesting... } [MethodImplAttribute(MethodImplOptions.InternalCall)] public extern override void GetBytes (byte[] data); [MethodImplAttribute(MethodImplOptions.InternalCall)] public extern override void GetNonZeroBytes (byte[] data); ~RNGCryptoServiceProvider () { // FIN? } } }