Files
niko c12fbe3fc6 m
2026-04-12 16:51:38 +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: 0x020003ED RID: 1005
[Token(Token = "0x20003ED")]
[ComVisible(true)]
public abstract class AsymmetricSignatureDeformatter
{
/// <summary>Initializes a new instance of <see cref="T:System.Security.Cryptography.AsymmetricSignatureDeformatter" />.</summary>
// Token: 0x06002320 RID: 8992 RVA: 0x00002050 File Offset: 0x00000250
[Token(Token = "0x6002320")]
[Address(RVA = "0x412370", Offset = "0x411370", VA = "0x180412370")]
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: 0x06002321 RID: 8993
[Token(Token = "0x6002321")]
[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: 0x06002322 RID: 8994
[Token(Token = "0x6002322")]
[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: 0x06002323 RID: 8995 RVA: 0x00016A10 File Offset: 0x00014C10
[Token(Token = "0x6002323")]
[Address(RVA = "0xBFF160", Offset = "0xBFE160", VA = "0x180BFF160", 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: 0x06002324 RID: 8996
[Token(Token = "0x6002324")]
[Address(Slot = "7")]
public abstract bool VerifySignature(byte[] rgbHash, byte[] rgbSignature);
}
}