Files
niko 8fc35183db a
2026-04-11 22:19:20 +02:00

82 lines
4.0 KiB
C#

using System;
using System.Runtime.InteropServices;
using Cpp2IlInjected;
namespace System.Security.Cryptography
{
/// <summary>Verifies an <see cref="T:System.Security.Cryptography.RSA" /> PKCS #1 version 1.5 signature.</summary>
// Token: 0x02000429 RID: 1065
[Token(Token = "0x2000429")]
[ComVisible(true)]
public class RSAPKCS1SignatureDeformatter : AsymmetricSignatureDeformatter
{
/// <summary>Initializes a new instance of the <see cref="T:System.Security.Cryptography.RSAPKCS1SignatureDeformatter" /> class.</summary>
// Token: 0x060023F4 RID: 9204 RVA: 0x00002050 File Offset: 0x00000250
[Token(Token = "0x60023F4")]
[Address(RVA = "0x4093D0", Offset = "0x4081D0", VA = "0x1804093D0")]
public RSAPKCS1SignatureDeformatter()
{
}
/// <summary>Initializes a new instance of the <see cref="T:System.Security.Cryptography.RSAPKCS1SignatureDeformatter" /> class with the specified key.</summary>
/// <param name="key">The instance of <see cref="T:System.Security.Cryptography.RSA" /> that holds the public key.</param>
/// <exception cref="T:System.ArgumentNullException">
/// <paramref name="key" /> is <see langword="null" />.</exception>
// Token: 0x060023F5 RID: 9205 RVA: 0x00002050 File Offset: 0x00000250
[Token(Token = "0x60023F5")]
[Address(RVA = "0x2DF3130", Offset = "0x2DF1F30", VA = "0x182DF3130")]
public RSAPKCS1SignatureDeformatter(AsymmetricAlgorithm key)
{
}
/// <summary>Sets the hash algorithm to use for verifying the signature.</summary>
/// <param name="strName">The name of the hash algorithm to use for verifying the signature.</param>
// Token: 0x060023F6 RID: 9206 RVA: 0x00002050 File Offset: 0x00000250
[Token(Token = "0x60023F6")]
[Address(RVA = "0x2DF2E70", Offset = "0x2DF1C70", VA = "0x182DF2E70", Slot = "5")]
public override void SetHashAlgorithm(string strName)
{
}
/// <summary>Sets the public key to use for verifying the signature.</summary>
/// <param name="key">The instance of <see cref="T:System.Security.Cryptography.RSA" /> that holds the public key.</param>
/// <exception cref="T:System.ArgumentNullException">
/// <paramref name="key" /> is <see langword="null" />.</exception>
// Token: 0x060023F7 RID: 9207 RVA: 0x00002050 File Offset: 0x00000250
[Token(Token = "0x60023F7")]
[Address(RVA = "0x2DF2EE0", Offset = "0x2DF1CE0", VA = "0x182DF2EE0", Slot = "4")]
public override void SetKey(AsymmetricAlgorithm key)
{
}
/// <summary>Verifies the <see cref="T:System.Security.Cryptography.RSA" /> PKCS#1 signature for the specified data.</summary>
/// <param name="rgbHash">The data signed with <paramref name="rgbSignature" />.</param>
/// <param name="rgbSignature">The signature to be verified for <paramref name="rgbHash" />.</param>
/// <returns>
/// <see langword="true" /> if <paramref name="rgbSignature" /> matches the signature computed using the specified hash algorithm and key on <paramref name="rgbHash" />; otherwise, <see langword="false" />.</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" />.
/// -or-
/// The <paramref name="rgbSignature" /> parameter is <see langword="null" />.</exception>
// Token: 0x060023F8 RID: 9208 RVA: 0x00015570 File Offset: 0x00013770
[Token(Token = "0x60023F8")]
[Address(RVA = "0x2DF2FA0", Offset = "0x2DF1DA0", VA = "0x182DF2FA0", Slot = "7")]
public override bool VerifySignature(byte[] rgbHash, byte[] rgbSignature)
{
return default(bool);
}
// Token: 0x0400145D RID: 5213
[global::Cpp2IlInjected.FieldOffset(Offset = "0x10")]
[Token(Token = "0x400145D")]
private RSA rsa;
// Token: 0x0400145E RID: 5214
[global::Cpp2IlInjected.FieldOffset(Offset = "0x18")]
[Token(Token = "0x400145E")]
private string hashName;
}
}