using System;
using System.Runtime.InteropServices;
using Cpp2IlInjected;
namespace System.Security.Cryptography
{
/// Represents the abstract base class from which all implementations of asymmetric signature deformatters derive.
// Token: 0x020003D1 RID: 977
[Token(Token = "0x20003D1")]
[ComVisible(true)]
public abstract class AsymmetricSignatureDeformatter
{
/// Initializes a new instance of .
// Token: 0x06002114 RID: 8468 RVA: 0x00002050 File Offset: 0x00000250
[Token(Token = "0x6002114")]
[Address(RVA = "0x3F5100", Offset = "0x3F3F00", VA = "0x1803F5100")]
protected AsymmetricSignatureDeformatter()
{
}
/// When overridden in a derived class, sets the public key to use for verifying the signature.
/// The instance of an implementation of that holds the public key.
// Token: 0x06002115 RID: 8469
[Token(Token = "0x6002115")]
[Address(Slot = "4")]
public abstract void SetKey(AsymmetricAlgorithm key);
/// When overridden in a derived class, sets the hash algorithm to use for verifying the signature.
/// The name of the hash algorithm to use for verifying the signature.
// Token: 0x06002116 RID: 8470
[Token(Token = "0x6002116")]
[Address(Slot = "5")]
public abstract void SetHashAlgorithm(string strName);
/// Verifies the signature from the specified hash value.
/// The hash algorithm to use to verify the signature.
/// The signature to be verified.
///
/// if the signature is valid for the hash; otherwise, .
/// The parameter is .
// 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);
}
/// When overridden in a derived class, verifies the signature for the specified data.
/// The data signed with .
/// The signature to be verified for .
///
/// if matches the signature computed using the specified hash algorithm and key on ; otherwise, .
// Token: 0x06002118 RID: 8472
[Token(Token = "0x6002118")]
[Address(Slot = "7")]
public abstract bool VerifySignature(byte[] rgbHash, byte[] rgbSignature);
}
}