Files
niko c12fbe3fc6 m
2026-04-12 16:51:38 +02:00

56 lines
2.5 KiB
C#

using System;
using System.Runtime.InteropServices;
using Cpp2IlInjected;
namespace System.Security.Cryptography
{
/// <summary>Represents the base class from which all implementations of asymmetric signature formatters derive.</summary>
// Token: 0x020003EE RID: 1006
[Token(Token = "0x20003EE")]
[ComVisible(true)]
public abstract class AsymmetricSignatureFormatter
{
/// <summary>Initializes a new instance of <see cref="T:System.Security.Cryptography.AsymmetricSignatureFormatter" />.</summary>
// Token: 0x06002325 RID: 8997 RVA: 0x00002050 File Offset: 0x00000250
[Token(Token = "0x6002325")]
[Address(RVA = "0x412370", Offset = "0x411370", VA = "0x180412370")]
protected AsymmetricSignatureFormatter()
{
}
/// <summary>When overridden in a derived class, sets the asymmetric algorithm to use to create the signature.</summary>
/// <param name="key">The instance of the implementation of <see cref="T:System.Security.Cryptography.AsymmetricAlgorithm" /> to use to create the signature.</param>
// Token: 0x06002326 RID: 8998
[Token(Token = "0x6002326")]
[Address(Slot = "4")]
public abstract void SetKey(AsymmetricAlgorithm key);
/// <summary>When overridden in a derived class, sets the hash algorithm to use for creating the signature.</summary>
/// <param name="strName">The name of the hash algorithm to use for creating the signature.</param>
// Token: 0x06002327 RID: 8999
[Token(Token = "0x6002327")]
[Address(Slot = "5")]
public abstract void SetHashAlgorithm(string strName);
/// <summary>Creates the signature from the specified hash value.</summary>
/// <param name="hash">The hash algorithm to use to create the signature.</param>
/// <returns>The signature for the specified hash value.</returns>
/// <exception cref="T:System.ArgumentNullException">The <paramref name="hash" /> parameter is <see langword="null" />.</exception>
// Token: 0x06002328 RID: 9000 RVA: 0x00002082 File Offset: 0x00000282
[Token(Token = "0x6002328")]
[Address(RVA = "0xBFF230", Offset = "0xBFE230", VA = "0x180BFF230", Slot = "6")]
public virtual byte[] CreateSignature(HashAlgorithm hash)
{
return null;
}
/// <summary>When overridden in a derived class, creates the signature for the specified data.</summary>
/// <param name="rgbHash">The data to be signed.</param>
/// <returns>The digital signature for the <paramref name="rgbHash" /> parameter.</returns>
// Token: 0x06002329 RID: 9001
[Token(Token = "0x6002329")]
[Address(Slot = "7")]
public abstract byte[] CreateSignature(byte[] rgbHash);
}
}