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: 0x020003ED RID: 1005 [Token(Token = "0x20003ED")] [ComVisible(true)] public abstract class AsymmetricSignatureDeformatter { /// Initializes a new instance of . // Token: 0x06002320 RID: 8992 RVA: 0x00002050 File Offset: 0x00000250 [Token(Token = "0x6002320")] [Address(RVA = "0x412370", Offset = "0x411370", VA = "0x180412370")] 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: 0x06002321 RID: 8993 [Token(Token = "0x6002321")] [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: 0x06002322 RID: 8994 [Token(Token = "0x6002322")] [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: 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); } /// 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: 0x06002324 RID: 8996 [Token(Token = "0x6002324")] [Address(Slot = "7")] public abstract bool VerifySignature(byte[] rgbHash, byte[] rgbSignature); } }