blob: bf71a10bb17b4f1d15b67fd7a5f4bcd2cd33be90 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
|
//
// 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?
}
}
}
|