Files
niko c12fbe3fc6 m
2026-04-12 16:51:38 +02:00

426 lines
19 KiB
C#

using System;
using System.IO;
using System.Runtime.InteropServices;
using Cpp2IlInjected;
using Mono.Security.Cryptography;
namespace System.Security.Cryptography
{
/// <summary>Defines a wrapper object to access the cryptographic service provider (CSP) implementation of the <see cref="T:System.Security.Cryptography.DSA" /> algorithm. This class cannot be inherited.</summary>
// Token: 0x0200043F RID: 1087
[Token(Token = "0x200043F")]
[ComVisible(true)]
public sealed class DSACryptoServiceProvider : DSA, ICspAsymmetricAlgorithm
{
/// <summary>Initializes a new instance of the <see cref="T:System.Security.Cryptography.DSACryptoServiceProvider" /> class.</summary>
// Token: 0x060025C2 RID: 9666 RVA: 0x00002050 File Offset: 0x00000250
[Token(Token = "0x60025C2")]
[Address(RVA = "0xC07990", Offset = "0xC06990", VA = "0x180C07990")]
public DSACryptoServiceProvider()
{
}
/// <summary>Initializes a new instance of the <see cref="T:System.Security.Cryptography.DSACryptoServiceProvider" /> class with the specified parameters for the cryptographic service provider (CSP).</summary>
/// <param name="parameters">The parameters for the CSP.</param>
// Token: 0x060025C3 RID: 9667 RVA: 0x00002050 File Offset: 0x00000250
[Token(Token = "0x60025C3")]
[Address(RVA = "0xC078B0", Offset = "0xC068B0", VA = "0x180C078B0")]
public DSACryptoServiceProvider(CspParameters parameters)
{
}
/// <summary>Initializes a new instance of the <see cref="T:System.Security.Cryptography.DSACryptoServiceProvider" /> class with the specified key size.</summary>
/// <param name="dwKeySize">The size of the key for the asymmetric algorithm in bits.</param>
// Token: 0x060025C4 RID: 9668 RVA: 0x00002050 File Offset: 0x00000250
[Token(Token = "0x60025C4")]
[Address(RVA = "0xC07870", Offset = "0xC06870", VA = "0x180C07870")]
public DSACryptoServiceProvider(int dwKeySize)
{
}
/// <summary>Initializes a new instance of the <see cref="T:System.Security.Cryptography.DSACryptoServiceProvider" /> class with the specified key size and parameters for the cryptographic service provider (CSP).</summary>
/// <param name="dwKeySize">The size of the key for the cryptographic algorithm in bits.</param>
/// <param name="parameters">The parameters for the CSP.</param>
/// <exception cref="T:System.Security.Cryptography.CryptographicException">The CSP cannot be acquired.
/// -or-
/// The key cannot be created.</exception>
/// <exception cref="T:System.ArgumentOutOfRangeException">
/// <paramref name="dwKeySize" /> is out of range.</exception>
// 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()
{
}
/// <summary>Gets the name of the key exchange algorithm.</summary>
/// <returns>The name of the key exchange algorithm.</returns>
// 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;
}
}
/// <summary>Gets the size of the key used by the asymmetric algorithm in bits.</summary>
/// <returns>The size of the key used by the asymmetric algorithm.</returns>
// 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;
}
}
/// <summary>Gets or sets a value indicating whether the key should be persisted in the cryptographic service provider (CSP).</summary>
/// <returns>
/// <see langword="true" /> if the key should be persisted in the CSP; otherwise, <see langword="false" />.</returns>
// 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
{
}
}
/// <summary>Gets a value that indicates whether the <see cref="T:System.Security.Cryptography.DSACryptoServiceProvider" /> object contains only a public key.</summary>
/// <returns>
/// <see langword="true" /> if the <see cref="T:System.Security.Cryptography.DSACryptoServiceProvider" /> object contains only a public key; otherwise, <see langword="false" />.</returns>
// 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);
}
}
/// <summary>Gets the name of the signature algorithm.</summary>
/// <returns>The name of the signature algorithm.</returns>
// 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;
}
}
/// <summary>Gets or sets a value indicating whether the key should be persisted in the computer's key store instead of the user profile store.</summary>
/// <returns>
/// <see langword="true" /> if the key should be persisted in the computer key store; otherwise, <see langword="false" />.</returns>
// 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
{
}
}
/// <summary>Exports the <see cref="T:System.Security.Cryptography.DSAParameters" />.</summary>
/// <param name="includePrivateParameters">
/// <see langword="true" /> to include private parameters; otherwise, <see langword="false" />.</param>
/// <returns>The parameters for <see cref="T:System.Security.Cryptography.DSA" />.</returns>
/// <exception cref="T:System.Security.Cryptography.CryptographicException">The key cannot be exported.</exception>
// 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);
}
/// <summary>Imports the specified <see cref="T:System.Security.Cryptography.DSAParameters" />.</summary>
/// <param name="parameters">The parameters for <see cref="T:System.Security.Cryptography.DSA" />.</param>
/// <exception cref="T:System.Security.Cryptography.CryptographicException">The cryptographic service provider (CSP) cannot be acquired.
/// -or-
/// The <paramref name="parameters" /> parameter has missing fields.</exception>
// 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)
{
}
/// <summary>Creates the <see cref="T:System.Security.Cryptography.DSA" /> signature for the specified data.</summary>
/// <param name="rgbHash">The data to be signed.</param>
/// <returns>The digital signature for the specified data.</returns>
// 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;
}
/// <summary>Computes the hash value of the specified byte array and signs the resulting hash value.</summary>
/// <param name="buffer">The input data for which to compute the hash.</param>
/// <returns>The <see cref="T:System.Security.Cryptography.DSA" /> signature for the specified data.</returns>
// 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;
}
/// <summary>Signs a byte array from the specified start point to the specified end point.</summary>
/// <param name="buffer">The input data to sign.</param>
/// <param name="offset">The offset into the array from which to begin using data.</param>
/// <param name="count">The number of bytes in the array to use as data.</param>
/// <returns>The <see cref="T:System.Security.Cryptography.DSA" /> signature for the specified data.</returns>
// 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;
}
/// <summary>Computes the hash value of the specified input stream and signs the resulting hash value.</summary>
/// <param name="inputStream">The input data for which to compute the hash.</param>
/// <returns>The <see cref="T:System.Security.Cryptography.DSA" /> signature for the specified data.</returns>
// 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;
}
/// <summary>Computes the signature for the specified hash value by encrypting it with the private key.</summary>
/// <param name="rgbHash">The hash value of the data to be signed.</param>
/// <param name="str">The name of the hash algorithm used to create the hash value of the data.</param>
/// <returns>The <see cref="T:System.Security.Cryptography.DSA" /> signature for the specified hash value.</returns>
/// <exception cref="T:System.ArgumentNullException">The <paramref name="rgbHash" /> parameter is <see langword="null" />.</exception>
/// <exception cref="T:System.Security.Cryptography.CryptographicException">The cryptographic service provider (CSP) cannot be acquired.
/// -or-
/// There is no private key.</exception>
// 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;
}
/// <summary>Verifies the specified signature data by comparing it to the signature computed for the specified data.</summary>
/// <param name="rgbData">The data that was signed.</param>
/// <param name="rgbSignature">The signature data to be verified.</param>
/// <returns>
/// <see langword="true" /> if the signature verifies as valid; otherwise, <see langword="false" />.</returns>
// 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);
}
/// <summary>Verifies the specified signature data by comparing it to the signature computed for the specified hash value.</summary>
/// <param name="rgbHash">The hash value of the data to be signed.</param>
/// <param name="str">The name of the hash algorithm used to create the hash value of the data.</param>
/// <param name="rgbSignature">The signature data to be verified.</param>
/// <returns>
/// <see langword="true" /> if the signature verifies as valid; otherwise, <see langword="false" />.</returns>
/// <exception cref="T:System.ArgumentNullException">The <paramref name="rgbHash" /> parameter is <see langword="null" />.
/// -or-
/// The <paramref name="rgbSignature" /> parameter is <see langword="null" />.</exception>
/// <exception cref="T:System.Security.Cryptography.CryptographicException">The cryptographic service provider (CSP) cannot be acquired.
/// -or-
/// The signature cannot be verified.</exception>
// 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);
}
/// <summary>Verifies the <see cref="T:System.Security.Cryptography.DSA" /> signature for the specified data.</summary>
/// <param name="rgbHash">The data signed with <paramref name="rgbSignature" />.</param>
/// <param name="rgbSignature">The signature to be verified for <paramref name="rgbData" />.</param>
/// <returns>
/// <see langword="true" /> if <paramref name="rgbSignature" /> matches the signature computed using the specified hash algorithm and key on <paramref name="rgbHash" />; otherwise, <see langword="false" />.</returns>
// 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)
{
}
/// <summary>Gets a <see cref="T:System.Security.Cryptography.CspKeyContainerInfo" /> object that describes additional information about a cryptographic key pair.</summary>
/// <returns>A <see cref="T:System.Security.Cryptography.CspKeyContainerInfo" /> object that describes additional information about a cryptographic key pair.</returns>
// 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;
}
}
/// <summary>Exports a blob containing the key information associated with a <see cref="T:System.Security.Cryptography.DSACryptoServiceProvider" /> object.</summary>
/// <param name="includePrivateParameters">
/// <see langword="true" /> to include the private key; otherwise, <see langword="false" />.</param>
/// <returns>A byte array containing the key information associated with a <see cref="T:System.Security.Cryptography.DSACryptoServiceProvider" /> object.</returns>
// 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;
}
/// <summary>Imports a blob that represents DSA key information.</summary>
/// <param name="keyBlob">A byte array that represents a DSA key blob.</param>
// 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;
}
}