78 lines
3.6 KiB
C#
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: 0x0200042A RID: 1066
|
|
[Token(Token = "0x200042A")]
|
|
[ComVisible(true)]
|
|
public class RSAPKCS1SignatureFormatter : AsymmetricSignatureFormatter
|
|
{
|
|
/// <summary>Initializes a new instance of the <see cref="T:System.Security.Cryptography.RSAPKCS1SignatureFormatter" /> class.</summary>
|
|
// Token: 0x060023F9 RID: 9209 RVA: 0x00002050 File Offset: 0x00000250
|
|
[Token(Token = "0x60023F9")]
|
|
[Address(RVA = "0x4093D0", Offset = "0x4081D0", VA = "0x1804093D0")]
|
|
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: 0x060023FA RID: 9210 RVA: 0x00002050 File Offset: 0x00000250
|
|
[Token(Token = "0x60023FA")]
|
|
[Address(RVA = "0x2DF3130", Offset = "0x2DF1F30", VA = "0x182DF3130")]
|
|
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: 0x060023FB RID: 9211 RVA: 0x00002082 File Offset: 0x00000282
|
|
[Token(Token = "0x60023FB")]
|
|
[Address(RVA = "0x2DF33B0", Offset = "0x2DF21B0", VA = "0x182DF33B0", 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: 0x060023FC RID: 9212 RVA: 0x00002050 File Offset: 0x00000250
|
|
[Token(Token = "0x60023FC")]
|
|
[Address(RVA = "0x2DF34F0", Offset = "0x2DF22F0", VA = "0x182DF34F0", 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: 0x060023FD RID: 9213 RVA: 0x00002050 File Offset: 0x00000250
|
|
[Token(Token = "0x60023FD")]
|
|
[Address(RVA = "0x2DF3560", Offset = "0x2DF2360", VA = "0x182DF3560", Slot = "4")]
|
|
public override void SetKey(AsymmetricAlgorithm key)
|
|
{
|
|
}
|
|
|
|
// Token: 0x0400145F RID: 5215
|
|
[global::Cpp2IlInjected.FieldOffset(Offset = "0x10")]
|
|
[Token(Token = "0x400145F")]
|
|
private RSA rsa;
|
|
|
|
// Token: 0x04001460 RID: 5216
|
|
[global::Cpp2IlInjected.FieldOffset(Offset = "0x18")]
|
|
[Token(Token = "0x4001460")]
|
|
private string hash;
|
|
}
|
|
}
|