134 lines
5.5 KiB
C#
134 lines
5.5 KiB
C#
using System;
|
|
using System.Runtime.InteropServices;
|
|
using Cpp2IlInjected;
|
|
|
|
namespace System.Security.Cryptography
|
|
{
|
|
/// <summary>Creates the PKCS#1 key exchange data using <see cref="T:System.Security.Cryptography.RSA" />.</summary>
|
|
// Token: 0x02000409 RID: 1033
|
|
[Token(Token = "0x2000409")]
|
|
[ComVisible(true)]
|
|
public class RSAPKCS1KeyExchangeFormatter : AsymmetricKeyExchangeFormatter
|
|
{
|
|
/// <summary>Initializes a new instance of the <see cref="T:System.Security.Cryptography.RSAPKCS1KeyExchangeFormatter" /> class.</summary>
|
|
// Token: 0x060022DF RID: 8927 RVA: 0x00002050 File Offset: 0x00000250
|
|
[Token(Token = "0x60022DF")]
|
|
[Address(RVA = "0x4093D0", Offset = "0x4081D0", VA = "0x1804093D0")]
|
|
public RSAPKCS1KeyExchangeFormatter()
|
|
{
|
|
}
|
|
|
|
/// <summary>Initializes a new instance of the <see cref="T:System.Security.Cryptography.RSAPKCS1KeyExchangeFormatter" /> class with the specified key.</summary>
|
|
/// <param name="key">The instance of the <see cref="T:System.Security.Cryptography.RSA" /> algorithm that holds the public key.</param>
|
|
/// <exception cref="T:System.ArgumentNullException">
|
|
/// <paramref name="key" /> is <see langword="null" />.</exception>
|
|
// Token: 0x060022E0 RID: 8928 RVA: 0x00002050 File Offset: 0x00000250
|
|
[Token(Token = "0x60022E0")]
|
|
[Address(RVA = "0x2DF2940", Offset = "0x2DF1740", VA = "0x182DF2940")]
|
|
public RSAPKCS1KeyExchangeFormatter(AsymmetricAlgorithm key)
|
|
{
|
|
}
|
|
|
|
/// <summary>Gets the parameters for the PKCS #1 key exchange.</summary>
|
|
/// <returns>An XML string containing the parameters of the PKCS #1 key exchange operation.</returns>
|
|
// Token: 0x170004D1 RID: 1233
|
|
// (get) Token: 0x060022E1 RID: 8929 RVA: 0x00002082 File Offset: 0x00000282
|
|
[Token(Token = "0x170004D1")]
|
|
public override string Parameters
|
|
{
|
|
[Token(Token = "0x60022E1")]
|
|
[Address(RVA = "0x2DF2BC0", Offset = "0x2DF19C0", VA = "0x182DF2BC0", Slot = "4")]
|
|
get
|
|
{
|
|
return null;
|
|
}
|
|
}
|
|
|
|
/// <summary>Gets or sets the random number generator algorithm to use in the creation of the key exchange.</summary>
|
|
/// <returns>The instance of a random number generator algorithm to use.</returns>
|
|
// Token: 0x170004D2 RID: 1234
|
|
// (get) Token: 0x060022E2 RID: 8930 RVA: 0x00002082 File Offset: 0x00000282
|
|
// (set) Token: 0x060022E3 RID: 8931 RVA: 0x00002050 File Offset: 0x00000250
|
|
[Token(Token = "0x170004D2")]
|
|
public RandomNumberGenerator Rng
|
|
{
|
|
[Token(Token = "0x60022E2")]
|
|
[Address(RVA = "0x3F6E20", Offset = "0x3F5C20", VA = "0x1803F6E20")]
|
|
get
|
|
{
|
|
return null;
|
|
}
|
|
[Token(Token = "0x60022E3")]
|
|
[Address(RVA = "0x3F7200", Offset = "0x3F6000", VA = "0x1803F7200")]
|
|
set
|
|
{
|
|
}
|
|
}
|
|
|
|
/// <summary>Sets the public key to use for encrypting the key exchange data.</summary>
|
|
/// <param name="key">The instance of the <see cref="T:System.Security.Cryptography.RSA" /> algorithm that holds the public key.</param>
|
|
/// <exception cref="T:System.ArgumentNullException">
|
|
/// <paramref name="key" /> is <see langword="null" />.</exception>
|
|
// Token: 0x060022E4 RID: 8932 RVA: 0x00002050 File Offset: 0x00000250
|
|
[Token(Token = "0x60022E4")]
|
|
[Address(RVA = "0x2DF2880", Offset = "0x2DF1680", VA = "0x182DF2880", Slot = "5")]
|
|
public override void SetKey(AsymmetricAlgorithm key)
|
|
{
|
|
}
|
|
|
|
/// <summary>Creates the encrypted key exchange data from the specified input data.</summary>
|
|
/// <param name="rgbData">The secret information to be passed in the key exchange.</param>
|
|
/// <returns>The encrypted key exchange data to be sent to the intended recipient.</returns>
|
|
/// <exception cref="T:System.Security.Cryptography.CryptographicException">
|
|
/// <paramref name="rgbData" /> is too big.</exception>
|
|
/// <exception cref="T:System.Security.Cryptography.CryptographicUnexpectedOperationException">The key is <see langword="null" />.</exception>
|
|
// Token: 0x060022E5 RID: 8933 RVA: 0x00002082 File Offset: 0x00000282
|
|
[Token(Token = "0x60022E5")]
|
|
[Address(RVA = "0x2DF2580", Offset = "0x2DF1380", VA = "0x182DF2580", Slot = "6")]
|
|
public override byte[] CreateKeyExchange(byte[] rgbData)
|
|
{
|
|
return null;
|
|
}
|
|
|
|
/// <summary>Creates the encrypted key exchange data from the specified input data.</summary>
|
|
/// <param name="rgbData">The secret information to be passed in the key exchange.</param>
|
|
/// <param name="symAlgType">This parameter is not used in the current version.</param>
|
|
/// <returns>The encrypted key exchange data to be sent to the intended recipient.</returns>
|
|
// Token: 0x060022E6 RID: 8934 RVA: 0x00002082 File Offset: 0x00000282
|
|
[Token(Token = "0x60022E6")]
|
|
[Address(RVA = "0x1B6DBE0", Offset = "0x1B6C9E0", VA = "0x181B6DBE0", Slot = "7")]
|
|
public override byte[] CreateKeyExchange(byte[] rgbData, Type symAlgType)
|
|
{
|
|
return null;
|
|
}
|
|
|
|
// Token: 0x170004D3 RID: 1235
|
|
// (get) Token: 0x060022E7 RID: 8935 RVA: 0x00014F40 File Offset: 0x00013140
|
|
[Token(Token = "0x170004D3")]
|
|
private bool OverridesEncrypt
|
|
{
|
|
[Token(Token = "0x60022E7")]
|
|
[Address(RVA = "0x2DF2A00", Offset = "0x2DF1800", VA = "0x182DF2A00")]
|
|
get
|
|
{
|
|
return default(bool);
|
|
}
|
|
}
|
|
|
|
// Token: 0x040013C2 RID: 5058
|
|
[global::Cpp2IlInjected.FieldOffset(Offset = "0x10")]
|
|
[Token(Token = "0x40013C2")]
|
|
private RandomNumberGenerator RngValue;
|
|
|
|
// Token: 0x040013C3 RID: 5059
|
|
[global::Cpp2IlInjected.FieldOffset(Offset = "0x18")]
|
|
[Token(Token = "0x40013C3")]
|
|
private RSA _rsaKey;
|
|
|
|
// Token: 0x040013C4 RID: 5060
|
|
[global::Cpp2IlInjected.FieldOffset(Offset = "0x20")]
|
|
[Token(Token = "0x40013C4")]
|
|
private bool? _rsaOverridesEncrypt;
|
|
}
|
|
}
|