mirror of
https://github.com/BepInEx/mono.git
synced 2026-11-19 01:31:17 -10:00
* DES.cs: Create() using CryptoConfig, fix #30256 * DESCryptoServiceProvider.cs: fix #30256 * RandomNumberGenerator.cs: uncomment in Create(rng) for CryptoConfig svn path=/trunk/mcs/; revision=8195
36 lines
741 B
C#
Executable File
36 lines
741 B
C#
Executable File
//
|
|
// System.Security.Cryptography.RandomNumberGenerator
|
|
//
|
|
// author:
|
|
// Duco Fijma ([email protected])
|
|
//
|
|
// (C) 2002 Duco Fijma
|
|
//
|
|
|
|
using System.Globalization;
|
|
|
|
namespace System.Security.Cryptography {
|
|
|
|
public abstract class RandomNumberGenerator {
|
|
|
|
public RandomNumberGenerator () {}
|
|
|
|
public static RandomNumberGenerator Create ()
|
|
{
|
|
// create the default random number generator
|
|
return Create ("System.Security.Cryptography.RandomNumberGenerator");
|
|
}
|
|
|
|
public static RandomNumberGenerator Create (string rngName)
|
|
{
|
|
return (RandomNumberGenerator) (CryptoConfig.CreateFromName (rngName));
|
|
}
|
|
|
|
public abstract void GetBytes (byte[] data);
|
|
|
|
public abstract void GetNonZeroBytes (byte[] data);
|
|
|
|
}
|
|
|
|
}
|