Files
Aug2021-Cpp2IL-Dump/mscorlib/System/Security/Cryptography/DSASignatureDeformatter.cs
T
2026-04-10 22:50:51 +02:00

82 lines
4.2 KiB
C#

using System;
using System.Runtime.InteropServices;
using Cpp2IlInjected;
namespace System.Security.Cryptography
{
/// <summary>Verifies a Digital Signature Algorithm (<see cref="T:System.Security.Cryptography.DSA" />) PKCS#1 v1.5 signature.</summary>
// Token: 0x020003E7 RID: 999
[Token(Token = "0x20003E7")]
[ComVisible(true)]
public class DSASignatureDeformatter : AsymmetricSignatureDeformatter
{
/// <summary>Initializes a new instance of the <see cref="T:System.Security.Cryptography.DSASignatureDeformatter" /> class.</summary>
// Token: 0x0600219E RID: 8606 RVA: 0x00002050 File Offset: 0x00000250
[Token(Token = "0x600219E")]
[Address(RVA = "0x2DA6150", Offset = "0x2DA4F50", VA = "0x182DA6150")]
public DSASignatureDeformatter()
{
}
/// <summary>Initializes a new instance of the <see cref="T:System.Security.Cryptography.DSASignatureDeformatter" /> class with the specified key.</summary>
/// <param name="key">The instance of 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: 0x0600219F RID: 8607 RVA: 0x00002050 File Offset: 0x00000250
[Token(Token = "0x600219F")]
[Address(RVA = "0x2DA6040", Offset = "0x2DA4E40", VA = "0x182DA6040")]
public DSASignatureDeformatter(AsymmetricAlgorithm key)
{
}
/// <summary>Specifies the key to be used for the Digital Signature Algorithm (<see cref="T:System.Security.Cryptography.DSA" />) signature deformatter.</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: 0x060021A0 RID: 8608 RVA: 0x00002050 File Offset: 0x00000250
[Token(Token = "0x60021A0")]
[Address(RVA = "0x2DA5E70", Offset = "0x2DA4C70", VA = "0x182DA5E70", 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 deformatter.</summary>
/// <param name="strName">The name of the hash algorithm to use for the signature deformatter.</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: 0x060021A1 RID: 8609 RVA: 0x00002050 File Offset: 0x00000250
[Token(Token = "0x60021A1")]
[Address(RVA = "0x2DA5DC0", Offset = "0x2DA4BC0", VA = "0x182DA5DC0", Slot = "5")]
public override void SetHashAlgorithm(string strName)
{
}
/// <summary>Verifies the Digital Signature Algorithm (<see cref="T:System.Security.Cryptography.DSA" />) signature on the data.</summary>
/// <param name="rgbHash">The data signed with <paramref name="rgbSignature" />.</param>
/// <param name="rgbSignature">The signature to be verified for <paramref name="rgbHash" />.</param>
/// <returns>
/// <see langword="true" /> if the signature is valid for the data; otherwise, <see langword="false" />.</returns>
/// <exception cref="T:System.ArgumentNullException">
/// <paramref name="rgbHash" /> is <see langword="null" />.
/// -or-
/// <paramref name="rgbSignature" /> is <see langword="null" />.</exception>
/// <exception cref="T:System.Security.Cryptography.CryptographicUnexpectedOperationException">The DSA key is missing.</exception>
// Token: 0x060021A2 RID: 8610 RVA: 0x00014988 File Offset: 0x00012B88
[Token(Token = "0x60021A2")]
[Address(RVA = "0x2DA5F30", Offset = "0x2DA4D30", VA = "0x182DA5F30", Slot = "7")]
public override bool VerifySignature(byte[] rgbHash, byte[] rgbSignature)
{
return default(bool);
}
// Token: 0x04001352 RID: 4946
[global::Cpp2IlInjected.FieldOffset(Offset = "0x10")]
[Token(Token = "0x4001352")]
private DSA _dsaKey;
// Token: 0x04001353 RID: 4947
[global::Cpp2IlInjected.FieldOffset(Offset = "0x18")]
[Token(Token = "0x4001353")]
private string _oid;
}
}