53 lines
2.1 KiB
C#
53 lines
2.1 KiB
C#
using System;
|
|
using System.Runtime.InteropServices;
|
|
using Cpp2IlInjected;
|
|
|
|
namespace System.Security.Cryptography
|
|
{
|
|
/// <summary>Represents the base class from which all asymmetric key exchange deformatters derive.</summary>
|
|
// Token: 0x020003CF RID: 975
|
|
[Token(Token = "0x20003CF")]
|
|
[ComVisible(true)]
|
|
public abstract class AsymmetricKeyExchangeDeformatter
|
|
{
|
|
/// <summary>Initializes a new instance of <see cref="T:System.Security.Cryptography.AsymmetricKeyExchangeDeformatter" />.</summary>
|
|
// Token: 0x0600210A RID: 8458 RVA: 0x00002050 File Offset: 0x00000250
|
|
[Token(Token = "0x600210A")]
|
|
[Address(RVA = "0x3F5100", Offset = "0x3F3F00", VA = "0x1803F5100")]
|
|
protected AsymmetricKeyExchangeDeformatter()
|
|
{
|
|
}
|
|
|
|
/// <summary>When overridden in a derived class, gets or sets the parameters for the asymmetric key exchange.</summary>
|
|
/// <returns>A string in XML format containing the parameters of the asymmetric key exchange operation.</returns>
|
|
// Token: 0x1700047E RID: 1150
|
|
// (get) Token: 0x0600210B RID: 8459
|
|
// (set) Token: 0x0600210C RID: 8460
|
|
[Token(Token = "0x1700047E")]
|
|
public abstract string Parameters
|
|
{
|
|
[Token(Token = "0x600210B")]
|
|
[Address(Slot = "4")]
|
|
get;
|
|
[Token(Token = "0x600210C")]
|
|
[Address(Slot = "5")]
|
|
set;
|
|
}
|
|
|
|
/// <summary>When overridden in a derived class, sets the private key to use for decrypting the secret information.</summary>
|
|
/// <param name="key">The instance of the implementation of <see cref="T:System.Security.Cryptography.AsymmetricAlgorithm" /> that holds the private key.</param>
|
|
// Token: 0x0600210D RID: 8461
|
|
[Token(Token = "0x600210D")]
|
|
[Address(Slot = "6")]
|
|
public abstract void SetKey(AsymmetricAlgorithm key);
|
|
|
|
/// <summary>When overridden in a derived class, extracts secret information from the encrypted key exchange data.</summary>
|
|
/// <param name="rgb">The key exchange data within which the secret information is hidden.</param>
|
|
/// <returns>The secret information derived from the key exchange data.</returns>
|
|
// Token: 0x0600210E RID: 8462
|
|
[Token(Token = "0x600210E")]
|
|
[Address(Slot = "7")]
|
|
public abstract byte[] DecryptKeyExchange(byte[] rgb);
|
|
}
|
|
}
|