Files
2026-04-10 22:50:51 +02:00

60 lines
3.0 KiB
C#

using System;
using System.Runtime.InteropServices;
using Cpp2IlInjected;
namespace System.Security.Cryptography
{
/// <summary>Represents the abstract base class from which all implementations of asymmetric signature deformatters derive.</summary>
// Token: 0x020003D1 RID: 977
[Token(Token = "0x20003D1")]
[ComVisible(true)]
public abstract class AsymmetricSignatureDeformatter
{
/// <summary>Initializes a new instance of <see cref="T:System.Security.Cryptography.AsymmetricSignatureDeformatter" />.</summary>
// Token: 0x06002114 RID: 8468 RVA: 0x00002050 File Offset: 0x00000250
[Token(Token = "0x6002114")]
[Address(RVA = "0x3F5100", Offset = "0x3F3F00", VA = "0x1803F5100")]
protected AsymmetricSignatureDeformatter()
{
}
/// <summary>When overridden in a derived class, sets the public key to use for verifying the signature.</summary>
/// <param name="key">The instance of an implementation of <see cref="T:System.Security.Cryptography.AsymmetricAlgorithm" /> that holds the public key.</param>
// Token: 0x06002115 RID: 8469
[Token(Token = "0x6002115")]
[Address(Slot = "4")]
public abstract void SetKey(AsymmetricAlgorithm key);
/// <summary>When overridden in a derived class, sets the hash algorithm to use for verifying the signature.</summary>
/// <param name="strName">The name of the hash algorithm to use for verifying the signature.</param>
// Token: 0x06002116 RID: 8470
[Token(Token = "0x6002116")]
[Address(Slot = "5")]
public abstract void SetHashAlgorithm(string strName);
/// <summary>Verifies the signature from the specified hash value.</summary>
/// <param name="hash">The hash algorithm to use to verify the signature.</param>
/// <param name="rgbSignature">The signature to be verified.</param>
/// <returns>
/// <see langword="true" /> if the signature is valid for the hash; otherwise, <see langword="false" />.</returns>
/// <exception cref="T:System.ArgumentNullException">The <paramref name="hash" /> parameter is <see langword="null" />.</exception>
// Token: 0x06002117 RID: 8471 RVA: 0x00014640 File Offset: 0x00012840
[Token(Token = "0x6002117")]
[Address(RVA = "0x298B410", Offset = "0x298A210", VA = "0x18298B410", Slot = "6")]
public virtual bool VerifySignature(HashAlgorithm hash, byte[] rgbSignature)
{
return default(bool);
}
/// <summary>When overridden in a derived class, verifies the 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="rgbHash" />.</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: 0x06002118 RID: 8472
[Token(Token = "0x6002118")]
[Address(Slot = "7")]
public abstract bool VerifySignature(byte[] rgbHash, byte[] rgbSignature);
}
}