Files
niko c12fbe3fc6 m
2026-04-12 16:51:38 +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: 0x02000445 RID: 1093
[Token(Token = "0x2000445")]
[ComVisible(true)]
public class RSAPKCS1SignatureDeformatter : AsymmetricSignatureDeformatter
{
/// <summary>Initializes a new instance of the <see cref="T:System.Security.Cryptography.RSAPKCS1SignatureDeformatter" /> class.</summary>
// Token: 0x06002600 RID: 9728 RVA: 0x00002050 File Offset: 0x00000250
[Token(Token = "0x6002600")]
[Address(RVA = "0x42BA20", Offset = "0x42AA20", VA = "0x18042BA20")]
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: 0x06002601 RID: 9729 RVA: 0x00002050 File Offset: 0x00000250
[Token(Token = "0x6002601")]
[Address(RVA = "0x1026440", Offset = "0x1025440", VA = "0x181026440")]
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: 0x06002602 RID: 9730 RVA: 0x00002050 File Offset: 0x00000250
[Token(Token = "0x6002602")]
[Address(RVA = "0x1026180", Offset = "0x1025180", VA = "0x181026180", 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: 0x06002603 RID: 9731 RVA: 0x00002050 File Offset: 0x00000250
[Token(Token = "0x6002603")]
[Address(RVA = "0x10261F0", Offset = "0x10251F0", VA = "0x1810261F0", 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: 0x06002604 RID: 9732 RVA: 0x00017940 File Offset: 0x00015B40
[Token(Token = "0x6002604")]
[Address(RVA = "0x10262B0", Offset = "0x10252B0", VA = "0x1810262B0", Slot = "7")]
public override bool VerifySignature(byte[] rgbHash, byte[] rgbSignature)
{
return default(bool);
}
// Token: 0x04001520 RID: 5408
[global::Cpp2IlInjected.FieldOffset(Offset = "0x10")]
[Token(Token = "0x4001520")]
private RSA rsa;
// Token: 0x04001521 RID: 5409
[global::Cpp2IlInjected.FieldOffset(Offset = "0x18")]
[Token(Token = "0x4001521")]
private string hashName;
}
}