82 lines
4.2 KiB
C#
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: 0x02000403 RID: 1027
|
|
[Token(Token = "0x2000403")]
|
|
[ComVisible(true)]
|
|
public class DSASignatureDeformatter : AsymmetricSignatureDeformatter
|
|
{
|
|
/// <summary>Initializes a new instance of the <see cref="T:System.Security.Cryptography.DSASignatureDeformatter" /> class.</summary>
|
|
// Token: 0x060023AA RID: 9130 RVA: 0x00002050 File Offset: 0x00000250
|
|
[Token(Token = "0x60023AA")]
|
|
[Address(RVA = "0xC07E50", Offset = "0xC06E50", VA = "0x180C07E50")]
|
|
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: 0x060023AB RID: 9131 RVA: 0x00002050 File Offset: 0x00000250
|
|
[Token(Token = "0x60023AB")]
|
|
[Address(RVA = "0xC07D40", Offset = "0xC06D40", VA = "0x180C07D40")]
|
|
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: 0x060023AC RID: 9132 RVA: 0x00002050 File Offset: 0x00000250
|
|
[Token(Token = "0x60023AC")]
|
|
[Address(RVA = "0xC07B70", Offset = "0xC06B70", VA = "0x180C07B70", 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: 0x060023AD RID: 9133 RVA: 0x00002050 File Offset: 0x00000250
|
|
[Token(Token = "0x60023AD")]
|
|
[Address(RVA = "0xC07AC0", Offset = "0xC06AC0", VA = "0x180C07AC0", 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: 0x060023AE RID: 9134 RVA: 0x00016D58 File Offset: 0x00014F58
|
|
[Token(Token = "0x60023AE")]
|
|
[Address(RVA = "0xC07C30", Offset = "0xC06C30", VA = "0x180C07C30", Slot = "7")]
|
|
public override bool VerifySignature(byte[] rgbHash, byte[] rgbSignature)
|
|
{
|
|
return default(bool);
|
|
}
|
|
|
|
// Token: 0x04001415 RID: 5141
|
|
[global::Cpp2IlInjected.FieldOffset(Offset = "0x10")]
|
|
[Token(Token = "0x4001415")]
|
|
private DSA _dsaKey;
|
|
|
|
// Token: 0x04001416 RID: 5142
|
|
[global::Cpp2IlInjected.FieldOffset(Offset = "0x18")]
|
|
[Token(Token = "0x4001416")]
|
|
private string _oid;
|
|
}
|
|
}
|