80 lines
3.9 KiB
C#
80 lines
3.9 KiB
C#
using System;
|
|
using System.Runtime.InteropServices;
|
|
using Cpp2IlInjected;
|
|
|
|
namespace System.Security.Cryptography
|
|
{
|
|
/// <summary>Creates a Digital Signature Algorithm (<see cref="T:System.Security.Cryptography.DSA" />) signature.</summary>
|
|
// Token: 0x02000404 RID: 1028
|
|
[Token(Token = "0x2000404")]
|
|
[ComVisible(true)]
|
|
public class DSASignatureFormatter : AsymmetricSignatureFormatter
|
|
{
|
|
/// <summary>Initializes a new instance of the <see cref="T:System.Security.Cryptography.DSASignatureFormatter" /> class.</summary>
|
|
// Token: 0x060023AF RID: 9135 RVA: 0x00002050 File Offset: 0x00000250
|
|
[Token(Token = "0x60023AF")]
|
|
[Address(RVA = "0xC08190", Offset = "0xC07190", VA = "0x180C08190")]
|
|
public DSASignatureFormatter()
|
|
{
|
|
}
|
|
|
|
/// <summary>Initializes a new instance of the <see cref="T:System.Security.Cryptography.DSASignatureFormatter" /> class with the specified key.</summary>
|
|
/// <param name="key">The instance of the Digital Signature Algorithm (<see cref="T:System.Security.Cryptography.DSA" />) that holds the key.</param>
|
|
/// <exception cref="T:System.ArgumentNullException">
|
|
/// <paramref name="key" /> is <see langword="null" />.</exception>
|
|
// Token: 0x060023B0 RID: 9136 RVA: 0x00002050 File Offset: 0x00000250
|
|
[Token(Token = "0x60023B0")]
|
|
[Address(RVA = "0xC081F0", Offset = "0xC071F0", VA = "0x180C081F0")]
|
|
public DSASignatureFormatter(AsymmetricAlgorithm key)
|
|
{
|
|
}
|
|
|
|
/// <summary>Specifies the key to be used for the Digital Signature Algorithm (<see cref="T:System.Security.Cryptography.DSA" />) signature formatter.</summary>
|
|
/// <param name="key">The instance of <see cref="T:System.Security.Cryptography.DSA" /> that holds the key.</param>
|
|
/// <exception cref="T:System.ArgumentNullException">
|
|
/// <paramref name="key" /> is <see langword="null" />.</exception>
|
|
// Token: 0x060023B1 RID: 9137 RVA: 0x00002050 File Offset: 0x00000250
|
|
[Token(Token = "0x60023B1")]
|
|
[Address(RVA = "0xC080D0", Offset = "0xC070D0", VA = "0x180C080D0", Slot = "4")]
|
|
public override void SetKey(AsymmetricAlgorithm key)
|
|
{
|
|
}
|
|
|
|
/// <summary>Specifies the hash algorithm for the Digital Signature Algorithm (<see cref="T:System.Security.Cryptography.DSA" />) signature formatter.</summary>
|
|
/// <param name="strName">The name of the hash algorithm to use for the signature formatter.</param>
|
|
/// <exception cref="T:System.Security.Cryptography.CryptographicUnexpectedOperationException">The <paramref name="strName" /> parameter does not map to the <see cref="T:System.Security.Cryptography.SHA1" /> hash algorithm.</exception>
|
|
// Token: 0x060023B2 RID: 9138 RVA: 0x00002050 File Offset: 0x00000250
|
|
[Token(Token = "0x60023B2")]
|
|
[Address(RVA = "0xC08020", Offset = "0xC07020", VA = "0x180C08020", Slot = "5")]
|
|
public override void SetHashAlgorithm(string strName)
|
|
{
|
|
}
|
|
|
|
/// <summary>Creates the Digital Signature Algorithm (<see cref="T:System.Security.Cryptography.DSA" />) PKCS #1 signature for the specified data.</summary>
|
|
/// <param name="rgbHash">The data to be signed.</param>
|
|
/// <returns>The digital signature for the specified data.</returns>
|
|
/// <exception cref="T:System.ArgumentNullException">
|
|
/// <paramref name="rgbHash" /> is <see langword="null" />.</exception>
|
|
/// <exception cref="T:System.Security.Cryptography.CryptographicUnexpectedOperationException">The OID is <see langword="null" />.
|
|
/// -or-
|
|
/// The DSA key is <see langword="null" />.</exception>
|
|
// Token: 0x060023B3 RID: 9139 RVA: 0x00002082 File Offset: 0x00000282
|
|
[Token(Token = "0x60023B3")]
|
|
[Address(RVA = "0xC07F10", Offset = "0xC06F10", VA = "0x180C07F10", Slot = "7")]
|
|
public override byte[] CreateSignature(byte[] rgbHash)
|
|
{
|
|
return null;
|
|
}
|
|
|
|
// Token: 0x04001417 RID: 5143
|
|
[global::Cpp2IlInjected.FieldOffset(Offset = "0x10")]
|
|
[Token(Token = "0x4001417")]
|
|
private DSA _dsaKey;
|
|
|
|
// Token: 0x04001418 RID: 5144
|
|
[global::Cpp2IlInjected.FieldOffset(Offset = "0x18")]
|
|
[Token(Token = "0x4001418")]
|
|
private string _oid;
|
|
}
|
|
}
|