Files
27Aug2021-Cpp2IL-Dump/mscorlib/System/Security/Cryptography/RSAPKCS1SignatureFormatter.cs
T
niko c12fbe3fc6 m
2026-04-12 16:51:38 +02:00

78 lines
3.6 KiB
C#

using System;
using System.Runtime.InteropServices;
using Cpp2IlInjected;
namespace System.Security.Cryptography
{
/// <summary>Creates an <see cref="T:System.Security.Cryptography.RSA" /> PKCS #1 version 1.5 signature.</summary>
// Token: 0x02000446 RID: 1094
[Token(Token = "0x2000446")]
[ComVisible(true)]
public class RSAPKCS1SignatureFormatter : AsymmetricSignatureFormatter
{
/// <summary>Initializes a new instance of the <see cref="T:System.Security.Cryptography.RSAPKCS1SignatureFormatter" /> class.</summary>
// Token: 0x06002605 RID: 9733 RVA: 0x00002050 File Offset: 0x00000250
[Token(Token = "0x6002605")]
[Address(RVA = "0x42BA20", Offset = "0x42AA20", VA = "0x18042BA20")]
public RSAPKCS1SignatureFormatter()
{
}
/// <summary>Initializes a new instance of the <see cref="T:System.Security.Cryptography.RSAPKCS1SignatureFormatter" /> class with the specified key.</summary>
/// <param name="key">The instance of the <see cref="T:System.Security.Cryptography.RSA" /> algorithm that holds the private key.</param>
/// <exception cref="T:System.ArgumentNullException">
/// <paramref name="key" /> is <see langword="null" />.</exception>
// Token: 0x06002606 RID: 9734 RVA: 0x00002050 File Offset: 0x00000250
[Token(Token = "0x6002606")]
[Address(RVA = "0x1026440", Offset = "0x1025440", VA = "0x181026440")]
public RSAPKCS1SignatureFormatter(AsymmetricAlgorithm key)
{
}
/// <summary>Creates the <see cref="T:System.Security.Cryptography.RSA" /> PKCS #1 signature for the specified data.</summary>
/// <param name="rgbHash">The data to be signed.</param>
/// <returns>The digital signature for <paramref name="rgbHash" />.</returns>
/// <exception cref="T:System.Security.Cryptography.CryptographicUnexpectedOperationException">The key is <see langword="null" />.
/// -or-
/// The hash algorithm is <see langword="null" />.</exception>
/// <exception cref="T:System.ArgumentNullException">The <paramref name="rgbHash" /> parameter is <see langword="null" />.</exception>
// Token: 0x06002607 RID: 9735 RVA: 0x00002082 File Offset: 0x00000282
[Token(Token = "0x6002607")]
[Address(RVA = "0x10265A0", Offset = "0x10255A0", VA = "0x1810265A0", Slot = "7")]
public override byte[] CreateSignature(byte[] rgbHash)
{
return null;
}
/// <summary>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: 0x06002608 RID: 9736 RVA: 0x00002050 File Offset: 0x00000250
[Token(Token = "0x6002608")]
[Address(RVA = "0x10266E0", Offset = "0x10256E0", VA = "0x1810266E0", Slot = "5")]
public override void SetHashAlgorithm(string strName)
{
}
/// <summary>Sets the private key to use for creating the signature.</summary>
/// <param name="key">The instance of the <see cref="T:System.Security.Cryptography.RSA" /> algorithm that holds the private key.</param>
/// <exception cref="T:System.ArgumentNullException">
/// <paramref name="key" /> is <see langword="null" />.</exception>
// Token: 0x06002609 RID: 9737 RVA: 0x00002050 File Offset: 0x00000250
[Token(Token = "0x6002609")]
[Address(RVA = "0x1026750", Offset = "0x1025750", VA = "0x181026750", Slot = "4")]
public override void SetKey(AsymmetricAlgorithm key)
{
}
// Token: 0x04001522 RID: 5410
[global::Cpp2IlInjected.FieldOffset(Offset = "0x10")]
[Token(Token = "0x4001522")]
private RSA rsa;
// Token: 0x04001523 RID: 5411
[global::Cpp2IlInjected.FieldOffset(Offset = "0x18")]
[Token(Token = "0x4001523")]
private string hash;
}
}