oh dear
This commit is contained in:
@@ -0,0 +1,157 @@
|
||||
using System;
|
||||
using System.Runtime.InteropServices;
|
||||
using Cpp2IlInjected;
|
||||
|
||||
namespace System.Security.Cryptography
|
||||
{
|
||||
/// <summary>Creates Optimal Asymmetric Encryption Padding (OAEP) key exchange data using <see cref="T:System.Security.Cryptography.RSA" />.</summary>
|
||||
// Token: 0x02000407 RID: 1031
|
||||
[Token(Token = "0x2000407")]
|
||||
[ComVisible(true)]
|
||||
public class RSAOAEPKeyExchangeFormatter : AsymmetricKeyExchangeFormatter
|
||||
{
|
||||
/// <summary>Initializes a new instance of the <see cref="T:System.Security.Cryptography.RSAOAEPKeyExchangeFormatter" /> class.</summary>
|
||||
// Token: 0x060022CB RID: 8907 RVA: 0x00002050 File Offset: 0x00000250
|
||||
[Token(Token = "0x60022CB")]
|
||||
[Address(RVA = "0x4093D0", Offset = "0x4081D0", VA = "0x1804093D0")]
|
||||
public RSAOAEPKeyExchangeFormatter()
|
||||
{
|
||||
}
|
||||
|
||||
/// <summary>Initializes a new instance of the <see cref="T:System.Security.Cryptography.RSAOAEPKeyExchangeFormatter" /> 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: 0x060022CC RID: 8908 RVA: 0x00002050 File Offset: 0x00000250
|
||||
[Token(Token = "0x60022CC")]
|
||||
[Address(RVA = "0x2DF1CC0", Offset = "0x2DF0AC0", VA = "0x182DF1CC0")]
|
||||
public RSAOAEPKeyExchangeFormatter(AsymmetricAlgorithm key)
|
||||
{
|
||||
}
|
||||
|
||||
/// <summary>Gets or sets the parameter used to create padding in the key exchange creation process.</summary>
|
||||
/// <returns>The parameter value.</returns>
|
||||
// Token: 0x170004CA RID: 1226
|
||||
// (get) Token: 0x060022CD RID: 8909 RVA: 0x00002082 File Offset: 0x00000282
|
||||
// (set) Token: 0x060022CE RID: 8910 RVA: 0x00002050 File Offset: 0x00000250
|
||||
[Token(Token = "0x170004CA")]
|
||||
public byte[] Parameter
|
||||
{
|
||||
[Token(Token = "0x60022CD")]
|
||||
[Address(RVA = "0x2DF1F40", Offset = "0x2DF0D40", VA = "0x182DF1F40")]
|
||||
get
|
||||
{
|
||||
return null;
|
||||
}
|
||||
[Token(Token = "0x60022CE")]
|
||||
[Address(RVA = "0x2DF1FC0", Offset = "0x2DF0DC0", VA = "0x182DF1FC0")]
|
||||
set
|
||||
{
|
||||
}
|
||||
}
|
||||
|
||||
/// <summary>Gets the parameters for the Optimal Asymmetric Encryption Padding (OAEP) key exchange.</summary>
|
||||
/// <returns>An XML string containing the parameters of the OAEP key exchange operation.</returns>
|
||||
// Token: 0x170004CB RID: 1227
|
||||
// (get) Token: 0x060022CF RID: 8911 RVA: 0x00002082 File Offset: 0x00000282
|
||||
[Token(Token = "0x170004CB")]
|
||||
public override string Parameters
|
||||
{
|
||||
[Token(Token = "0x60022CF")]
|
||||
[Address(RVA = "0x43E630", Offset = "0x43D430", VA = "0x18043E630", 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: 0x170004CC RID: 1228
|
||||
// (get) Token: 0x060022D0 RID: 8912 RVA: 0x00002082 File Offset: 0x00000282
|
||||
// (set) Token: 0x060022D1 RID: 8913 RVA: 0x00002050 File Offset: 0x00000250
|
||||
[Token(Token = "0x170004CC")]
|
||||
public RandomNumberGenerator Rng
|
||||
{
|
||||
[Token(Token = "0x60022D0")]
|
||||
[Address(RVA = "0x3F63E0", Offset = "0x3F51E0", VA = "0x1803F63E0")]
|
||||
get
|
||||
{
|
||||
return null;
|
||||
}
|
||||
[Token(Token = "0x60022D1")]
|
||||
[Address(RVA = "0x409C60", Offset = "0x408A60", VA = "0x180409C60")]
|
||||
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: 0x060022D2 RID: 8914 RVA: 0x00002050 File Offset: 0x00000250
|
||||
[Token(Token = "0x60022D2")]
|
||||
[Address(RVA = "0x2DF1C00", Offset = "0x2DF0A00", VA = "0x182DF1C00", 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.CryptographicUnexpectedOperationException">The key is missing.</exception>
|
||||
// Token: 0x060022D3 RID: 8915 RVA: 0x00002082 File Offset: 0x00000282
|
||||
[Token(Token = "0x60022D3")]
|
||||
[Address(RVA = "0x2DF1A30", Offset = "0x2DF0830", VA = "0x182DF1A30", 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: 0x060022D4 RID: 8916 RVA: 0x00002082 File Offset: 0x00000282
|
||||
[Token(Token = "0x60022D4")]
|
||||
[Address(RVA = "0x1B6DBE0", Offset = "0x1B6C9E0", VA = "0x181B6DBE0", Slot = "7")]
|
||||
public override byte[] CreateKeyExchange(byte[] rgbData, Type symAlgType)
|
||||
{
|
||||
return null;
|
||||
}
|
||||
|
||||
// Token: 0x170004CD RID: 1229
|
||||
// (get) Token: 0x060022D5 RID: 8917 RVA: 0x00014F10 File Offset: 0x00013110
|
||||
[Token(Token = "0x170004CD")]
|
||||
private bool OverridesEncrypt
|
||||
{
|
||||
[Token(Token = "0x60022D5")]
|
||||
[Address(RVA = "0x2DF1D80", Offset = "0x2DF0B80", VA = "0x182DF1D80")]
|
||||
get
|
||||
{
|
||||
return default(bool);
|
||||
}
|
||||
}
|
||||
|
||||
// Token: 0x040013BB RID: 5051
|
||||
[global::Cpp2IlInjected.FieldOffset(Offset = "0x10")]
|
||||
[Token(Token = "0x40013BB")]
|
||||
private byte[] ParameterValue;
|
||||
|
||||
// Token: 0x040013BC RID: 5052
|
||||
[global::Cpp2IlInjected.FieldOffset(Offset = "0x18")]
|
||||
[Token(Token = "0x40013BC")]
|
||||
private RSA _rsaKey;
|
||||
|
||||
// Token: 0x040013BD RID: 5053
|
||||
[global::Cpp2IlInjected.FieldOffset(Offset = "0x20")]
|
||||
[Token(Token = "0x40013BD")]
|
||||
private bool? _rsaOverridesEncrypt;
|
||||
|
||||
// Token: 0x040013BE RID: 5054
|
||||
[global::Cpp2IlInjected.FieldOffset(Offset = "0x28")]
|
||||
[Token(Token = "0x40013BE")]
|
||||
private RandomNumberGenerator RngValue;
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user