using System;
using System.IO;
using System.Runtime.InteropServices;
using Cpp2IlInjected;
using Mono.Security.Cryptography;
namespace System.Security.Cryptography
{
/// Defines a wrapper object to access the cryptographic service provider (CSP) implementation of the algorithm. This class cannot be inherited.
// Token: 0x0200043F RID: 1087
[Token(Token = "0x200043F")]
[ComVisible(true)]
public sealed class DSACryptoServiceProvider : DSA, ICspAsymmetricAlgorithm
{
/// Initializes a new instance of the class.
// Token: 0x060025C2 RID: 9666 RVA: 0x00002050 File Offset: 0x00000250
[Token(Token = "0x60025C2")]
[Address(RVA = "0xC07990", Offset = "0xC06990", VA = "0x180C07990")]
public DSACryptoServiceProvider()
{
}
/// Initializes a new instance of the class with the specified parameters for the cryptographic service provider (CSP).
/// The parameters for the CSP.
// Token: 0x060025C3 RID: 9667 RVA: 0x00002050 File Offset: 0x00000250
[Token(Token = "0x60025C3")]
[Address(RVA = "0xC078B0", Offset = "0xC068B0", VA = "0x180C078B0")]
public DSACryptoServiceProvider(CspParameters parameters)
{
}
/// Initializes a new instance of the class with the specified key size.
/// The size of the key for the asymmetric algorithm in bits.
// Token: 0x060025C4 RID: 9668 RVA: 0x00002050 File Offset: 0x00000250
[Token(Token = "0x60025C4")]
[Address(RVA = "0xC07870", Offset = "0xC06870", VA = "0x180C07870")]
public DSACryptoServiceProvider(int dwKeySize)
{
}
/// Initializes a new instance of the class with the specified key size and parameters for the cryptographic service provider (CSP).
/// The size of the key for the cryptographic algorithm in bits.
/// The parameters for the CSP.
/// The CSP cannot be acquired.
/// -or-
/// The key cannot be created.
///
/// is out of range.
// Token: 0x060025C5 RID: 9669 RVA: 0x00002050 File Offset: 0x00000250
[Token(Token = "0x60025C5")]
[Address(RVA = "0xC07790", Offset = "0xC06790", VA = "0x180C07790")]
public DSACryptoServiceProvider(int dwKeySize, CspParameters parameters)
{
}
// Token: 0x060025C6 RID: 9670 RVA: 0x00002050 File Offset: 0x00000250
[Token(Token = "0x60025C6")]
[Address(RVA = "0xC069A0", Offset = "0xC059A0", VA = "0x180C069A0")]
private void Common(int dwKeySize, bool parameters)
{
}
// Token: 0x060025C7 RID: 9671 RVA: 0x00002050 File Offset: 0x00000250
[Token(Token = "0x60025C7")]
[Address(RVA = "0xC06BA0", Offset = "0xC05BA0", VA = "0x180C06BA0")]
private void Common(CspParameters parameters)
{
}
// Token: 0x060025C8 RID: 9672 RVA: 0x00002050 File Offset: 0x00000250
[Token(Token = "0x60025C8")]
[Address(RVA = "0xC06DE0", Offset = "0xC05DE0", VA = "0x180C06DE0", Slot = "1")]
protected override void Finalize()
{
}
/// Gets the name of the key exchange algorithm.
/// The name of the key exchange algorithm.
// Token: 0x1700056D RID: 1389
// (get) Token: 0x060025C9 RID: 9673 RVA: 0x00002082 File Offset: 0x00000282
[Token(Token = "0x1700056D")]
public override string KeyExchangeAlgorithm
{
[Token(Token = "0x60025C9")]
[Address(RVA = "0x4242C0", Offset = "0x4232C0", VA = "0x1804242C0", Slot = "10")]
get
{
return null;
}
}
/// Gets the size of the key used by the asymmetric algorithm in bits.
/// The size of the key used by the asymmetric algorithm.
// Token: 0x1700056E RID: 1390
// (get) Token: 0x060025CA RID: 9674 RVA: 0x00017838 File Offset: 0x00015A38
[Token(Token = "0x1700056E")]
public override int KeySize
{
[Token(Token = "0x60025CA")]
[Address(RVA = "0xC079C0", Offset = "0xC069C0", VA = "0x180C079C0", Slot = "6")]
get
{
return 0;
}
}
/// Gets or sets a value indicating whether the key should be persisted in the cryptographic service provider (CSP).
///
/// if the key should be persisted in the CSP; otherwise, .
// Token: 0x1700056F RID: 1391
// (get) Token: 0x060025CB RID: 9675 RVA: 0x00017850 File Offset: 0x00015A50
// (set) Token: 0x060025CC RID: 9676 RVA: 0x00002050 File Offset: 0x00000250
[Token(Token = "0x1700056F")]
public bool PersistKeyInCsp
{
[Token(Token = "0x60025CB")]
[Address(RVA = "0x51F260", Offset = "0x51E260", VA = "0x18051F260")]
get
{
return default(bool);
}
[Token(Token = "0x60025CC")]
[Address(RVA = "0x51F2B0", Offset = "0x51E2B0", VA = "0x18051F2B0")]
set
{
}
}
/// Gets a value that indicates whether the object contains only a public key.
///
/// if the object contains only a public key; otherwise, .
// Token: 0x17000570 RID: 1392
// (get) Token: 0x060025CD RID: 9677 RVA: 0x00017868 File Offset: 0x00015A68
[Token(Token = "0x17000570")]
[ComVisible(false)]
public bool PublicOnly
{
[Token(Token = "0x60025CD")]
[Address(RVA = "0xC079F0", Offset = "0xC069F0", VA = "0x180C079F0")]
get
{
return default(bool);
}
}
/// Gets the name of the signature algorithm.
/// The name of the signature algorithm.
// Token: 0x17000571 RID: 1393
// (get) Token: 0x060025CE RID: 9678 RVA: 0x00002082 File Offset: 0x00000282
[Token(Token = "0x17000571")]
public override string SignatureAlgorithm
{
[Token(Token = "0x60025CE")]
[Address(RVA = "0xC07A10", Offset = "0xC06A10", VA = "0x180C07A10", Slot = "9")]
get
{
return null;
}
}
/// Gets or sets a value indicating whether the key should be persisted in the computer's key store instead of the user profile store.
///
/// if the key should be persisted in the computer key store; otherwise, .
// Token: 0x17000572 RID: 1394
// (get) Token: 0x060025CF RID: 9679 RVA: 0x00017880 File Offset: 0x00015A80
// (set) Token: 0x060025D0 RID: 9680 RVA: 0x00002050 File Offset: 0x00000250
[Token(Token = "0x17000572")]
public static bool UseMachineKeyStore
{
[Token(Token = "0x60025CF")]
[Address(RVA = "0xC07A40", Offset = "0xC06A40", VA = "0x180C07A40")]
get
{
return default(bool);
}
[Token(Token = "0x60025D0")]
[Address(RVA = "0xC07A80", Offset = "0xC06A80", VA = "0x180C07A80")]
set
{
}
}
/// Exports the .
///
/// to include private parameters; otherwise, .
/// The parameters for .
/// The key cannot be exported.
// Token: 0x060025D1 RID: 9681 RVA: 0x00017898 File Offset: 0x00015A98
[Token(Token = "0x60025D1")]
[Address(RVA = "0xC06D00", Offset = "0xC05D00", VA = "0x180C06D00", Slot = "21")]
public override DSAParameters ExportParameters(bool includePrivateParameters)
{
return default(DSAParameters);
}
/// Imports the specified .
/// The parameters for .
/// The cryptographic service provider (CSP) cannot be acquired.
/// -or-
/// The parameter has missing fields.
// Token: 0x060025D2 RID: 9682 RVA: 0x00002050 File Offset: 0x00000250
[Token(Token = "0x60025D2")]
[Address(RVA = "0xC072E0", Offset = "0xC062E0", VA = "0x180C072E0", Slot = "22")]
public override void ImportParameters(DSAParameters parameters)
{
}
/// Creates the signature for the specified data.
/// The data to be signed.
/// The digital signature for the specified data.
// Token: 0x060025D3 RID: 9683 RVA: 0x00002082 File Offset: 0x00000282
[Token(Token = "0x60025D3")]
[Address(RVA = "0xC06C60", Offset = "0xC05C60", VA = "0x180C06C60", Slot = "13")]
public override byte[] CreateSignature(byte[] rgbHash)
{
return null;
}
/// Computes the hash value of the specified byte array and signs the resulting hash value.
/// The input data for which to compute the hash.
/// The signature for the specified data.
// Token: 0x060025D4 RID: 9684 RVA: 0x00002082 File Offset: 0x00000282
[Token(Token = "0x60025D4")]
[Address(RVA = "0xC07490", Offset = "0xC06490", VA = "0x180C07490")]
public byte[] SignData(byte[] buffer)
{
return null;
}
/// Signs a byte array from the specified start point to the specified end point.
/// The input data to sign.
/// The offset into the array from which to begin using data.
/// The number of bytes in the array to use as data.
/// The signature for the specified data.
// Token: 0x060025D5 RID: 9685 RVA: 0x00002082 File Offset: 0x00000282
[Token(Token = "0x60025D5")]
[Address(RVA = "0xC07410", Offset = "0xC06410", VA = "0x180C07410")]
public byte[] SignData(byte[] buffer, int offset, int count)
{
return null;
}
/// Computes the hash value of the specified input stream and signs the resulting hash value.
/// The input data for which to compute the hash.
/// The signature for the specified data.
// Token: 0x060025D6 RID: 9686 RVA: 0x00002082 File Offset: 0x00000282
[Token(Token = "0x60025D6")]
[Address(RVA = "0xC073B0", Offset = "0xC063B0", VA = "0x180C073B0")]
public byte[] SignData(Stream inputStream)
{
return null;
}
/// Computes the signature for the specified hash value by encrypting it with the private key.
/// The hash value of the data to be signed.
/// The name of the hash algorithm used to create the hash value of the data.
/// The signature for the specified hash value.
/// The parameter is .
/// The cryptographic service provider (CSP) cannot be acquired.
/// -or-
/// There is no private key.
// Token: 0x060025D7 RID: 9687 RVA: 0x00002082 File Offset: 0x00000282
[Token(Token = "0x60025D7")]
[Address(RVA = "0xC074F0", Offset = "0xC064F0", VA = "0x180C074F0")]
public byte[] SignHash(byte[] rgbHash, string str)
{
return null;
}
/// Verifies the specified signature data by comparing it to the signature computed for the specified data.
/// The data that was signed.
/// The signature data to be verified.
///
/// if the signature verifies as valid; otherwise, .
// Token: 0x060025D8 RID: 9688 RVA: 0x000178B0 File Offset: 0x00015AB0
[Token(Token = "0x60025D8")]
[Address(RVA = "0xC075E0", Offset = "0xC065E0", VA = "0x180C075E0")]
public bool VerifyData(byte[] rgbData, byte[] rgbSignature)
{
return default(bool);
}
/// Verifies the specified signature data by comparing it to the signature computed for the specified hash value.
/// The hash value of the data to be signed.
/// The name of the hash algorithm used to create the hash value of the data.
/// The signature data to be verified.
///
/// if the signature verifies as valid; otherwise, .
/// The parameter is .
/// -or-
/// The parameter is .
/// The cryptographic service provider (CSP) cannot be acquired.
/// -or-
/// The signature cannot be verified.
// Token: 0x060025D9 RID: 9689 RVA: 0x000178C8 File Offset: 0x00015AC8
[Token(Token = "0x60025D9")]
[Address(RVA = "0xC07650", Offset = "0xC06650", VA = "0x180C07650")]
public bool VerifyHash(byte[] rgbHash, string str, byte[] rgbSignature)
{
return default(bool);
}
/// Verifies the signature for the specified data.
/// The data signed with .
/// The signature to be verified for .
///
/// if matches the signature computed using the specified hash algorithm and key on ; otherwise, .
// Token: 0x060025DA RID: 9690 RVA: 0x000178E0 File Offset: 0x00015AE0
[Token(Token = "0x60025DA")]
[Address(RVA = "0xC07760", Offset = "0xC06760", VA = "0x180C07760", Slot = "14")]
public override bool VerifySignature(byte[] rgbHash, byte[] rgbSignature)
{
return default(bool);
}
// Token: 0x060025DB RID: 9691 RVA: 0x00002082 File Offset: 0x00000282
[Token(Token = "0x60025DB")]
[Address(RVA = "0xC06E60", Offset = "0xC05E60", VA = "0x180C06E60", Slot = "15")]
protected override byte[] HashData(byte[] data, int offset, int count, HashAlgorithmName hashAlgorithm)
{
return null;
}
// Token: 0x060025DC RID: 9692 RVA: 0x00002082 File Offset: 0x00000282
[Token(Token = "0x60025DC")]
[Address(RVA = "0xC06FA0", Offset = "0xC05FA0", VA = "0x180C06FA0", Slot = "16")]
protected override byte[] HashData(Stream data, HashAlgorithmName hashAlgorithm)
{
return null;
}
// Token: 0x060025DD RID: 9693 RVA: 0x00002050 File Offset: 0x00000250
[Token(Token = "0x60025DD")]
[Address(RVA = "0xC06C90", Offset = "0xC05C90", VA = "0x180C06C90", Slot = "5")]
protected override void Dispose(bool disposing)
{
}
// Token: 0x060025DE RID: 9694 RVA: 0x00002050 File Offset: 0x00000250
[Token(Token = "0x60025DE")]
[Address(RVA = "0xC07330", Offset = "0xC06330", VA = "0x180C07330")]
private void OnKeyGenerated(object sender, EventArgs e)
{
}
/// Gets a object that describes additional information about a cryptographic key pair.
/// A object that describes additional information about a cryptographic key pair.
// Token: 0x17000573 RID: 1395
// (get) Token: 0x060025DF RID: 9695 RVA: 0x00002082 File Offset: 0x00000282
[Token(Token = "0x17000573")]
[MonoTODO]
[ComVisible(false)]
[MonoTODO("call into KeyPairPersistence to get details")]
public CspKeyContainerInfo CspKeyContainerInfo
{
[Token(Token = "0x60025DF")]
[Address(RVA = "0x4242C0", Offset = "0x4232C0", VA = "0x1804242C0", Slot = "25")]
get
{
return null;
}
}
/// Exports a blob containing the key information associated with a object.
///
/// to include the private key; otherwise, .
/// A byte array containing the key information associated with a object.
// Token: 0x060025E0 RID: 9696 RVA: 0x00002082 File Offset: 0x00000282
[Token(Token = "0x60025E0")]
[Address(RVA = "0xC06CE0", Offset = "0xC05CE0", VA = "0x180C06CE0", Slot = "23")]
[ComVisible(false)]
public byte[] ExportCspBlob(bool includePrivateParameters)
{
return null;
}
/// Imports a blob that represents DSA key information.
/// A byte array that represents a DSA key blob.
// Token: 0x060025E1 RID: 9697 RVA: 0x00002050 File Offset: 0x00000250
[Token(Token = "0x60025E1")]
[Address(RVA = "0xC070C0", Offset = "0xC060C0", VA = "0x180C070C0", Slot = "24")]
[ComVisible(false)]
public void ImportCspBlob(byte[] keyBlob)
{
}
// Token: 0x04001505 RID: 5381
[Token(Token = "0x4001505")]
private const int PROV_DSS_DH = 13;
// Token: 0x04001506 RID: 5382
[global::Cpp2IlInjected.FieldOffset(Offset = "0x20")]
[Token(Token = "0x4001506")]
private KeyPairPersistence store;
// Token: 0x04001507 RID: 5383
[global::Cpp2IlInjected.FieldOffset(Offset = "0x28")]
[Token(Token = "0x4001507")]
private bool persistKey;
// Token: 0x04001508 RID: 5384
[global::Cpp2IlInjected.FieldOffset(Offset = "0x29")]
[Token(Token = "0x4001508")]
private bool persisted;
// Token: 0x04001509 RID: 5385
[global::Cpp2IlInjected.FieldOffset(Offset = "0x2A")]
[Token(Token = "0x4001509")]
private bool privateKeyExportable;
// Token: 0x0400150A RID: 5386
[global::Cpp2IlInjected.FieldOffset(Offset = "0x2B")]
[Token(Token = "0x400150A")]
private bool m_disposed;
// Token: 0x0400150B RID: 5387
[global::Cpp2IlInjected.FieldOffset(Offset = "0x30")]
[Token(Token = "0x400150B")]
private DSAManaged dsa;
// Token: 0x0400150C RID: 5388
[Token(Token = "0x400150C")]
private static bool useMachineKeyStore;
}
}