| 12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152 |
- //
- // System.Security.Cryptography.RNGCryptoServiceProvider
- //
- // Author: Mark Crichton ([email protected])
- //
- // (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?
- }
- }
- }
|