Files
niko 8fc35183db a
2026-04-11 22:19:20 +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: 0x020003D2 RID: 978
[Token(Token = "0x20003D2")]
[ComVisible(true)]
public abstract class AsymmetricSignatureFormatter
{
/// <summary>Initializes a new instance of <see cref="T:System.Security.Cryptography.AsymmetricSignatureFormatter" />.</summary>
// Token: 0x06002119 RID: 8473 RVA: 0x00002050 File Offset: 0x00000250
[Token(Token = "0x6002119")]
[Address(RVA = "0x3F5100", Offset = "0x3F3F00", VA = "0x1803F5100")]
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: 0x0600211A RID: 8474
[Token(Token = "0x600211A")]
[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: 0x0600211B RID: 8475
[Token(Token = "0x600211B")]
[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: 0x0600211C RID: 8476 RVA: 0x00002082 File Offset: 0x00000282
[Token(Token = "0x600211C")]
[Address(RVA = "0x298B4E0", Offset = "0x298A2E0", VA = "0x18298B4E0", 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: 0x0600211D RID: 8477
[Token(Token = "0x600211D")]
[Address(Slot = "7")]
public abstract byte[] CreateSignature(byte[] rgbHash);
}
}