Files
Apr2020-Cpp2Il-Dump/mscorlib/System/Security/Cryptography/AsymmetricAlgorithm.cs
T
niko 8fc35183db a
2026-04-11 22:19:20 +02:00

199 lines
9.0 KiB
C#

using System;
using System.Runtime.InteropServices;
using Cpp2IlInjected;
namespace System.Security.Cryptography
{
/// <summary>Represents the abstract base class from which all implementations of asymmetric algorithms must inherit.</summary>
// Token: 0x020003CE RID: 974
[Token(Token = "0x20003CE")]
[ComVisible(true)]
public abstract class AsymmetricAlgorithm : IDisposable
{
/// <summary>Initializes a new instance of the <see cref="T:System.Security.Cryptography.AsymmetricAlgorithm" /> class.</summary>
/// <exception cref="T:System.Security.Cryptography.CryptographicException">The implementation of the derived class is not valid.</exception>
// Token: 0x060020FD RID: 8445 RVA: 0x00002050 File Offset: 0x00000250
[Token(Token = "0x60020FD")]
[Address(RVA = "0x3F5100", Offset = "0x3F3F00", VA = "0x1803F5100")]
protected AsymmetricAlgorithm()
{
}
/// <summary>Releases all resources used by the current instance of the <see cref="T:System.Security.Cryptography.AsymmetricAlgorithm" /> class.</summary>
// Token: 0x060020FE RID: 8446 RVA: 0x00002050 File Offset: 0x00000250
[Token(Token = "0x60020FE")]
[Address(RVA = "0x298AFE0", Offset = "0x2989DE0", VA = "0x18298AFE0", Slot = "4")]
public void Dispose()
{
}
/// <summary>Releases all resources used by the <see cref="T:System.Security.Cryptography.AsymmetricAlgorithm" /> class.</summary>
// Token: 0x060020FF RID: 8447 RVA: 0x00002050 File Offset: 0x00000250
[Token(Token = "0x60020FF")]
[Address(RVA = "0x298AFE0", Offset = "0x2989DE0", VA = "0x18298AFE0")]
public void Clear()
{
}
/// <summary>Releases the unmanaged resources used by the <see cref="T:System.Security.Cryptography.AsymmetricAlgorithm" /> class and optionally releases the managed resources.</summary>
/// <param name="disposing">
/// <see langword="true" /> to release both managed and unmanaged resources; <see langword="false" /> to release only unmanaged resources.</param>
// Token: 0x06002100 RID: 8448 RVA: 0x00002050 File Offset: 0x00000250
[Token(Token = "0x6002100")]
[Address(RVA = "0x402080", Offset = "0x400E80", VA = "0x180402080", Slot = "5")]
protected virtual void Dispose(bool disposing)
{
}
/// <summary>Gets or sets the size, in bits, of the key modulus used by the asymmetric algorithm.</summary>
/// <returns>The size, in bits, of the key modulus used by the asymmetric algorithm.</returns>
/// <exception cref="T:System.Security.Cryptography.CryptographicException">The key modulus size is invalid.</exception>
// Token: 0x1700047A RID: 1146
// (get) Token: 0x06002101 RID: 8449 RVA: 0x00014628 File Offset: 0x00012828
// (set) Token: 0x06002102 RID: 8450 RVA: 0x00002050 File Offset: 0x00000250
[Token(Token = "0x1700047A")]
public virtual int KeySize
{
[Token(Token = "0x6002101")]
[Address(RVA = "0x3FA560", Offset = "0x3F9360", VA = "0x1803FA560", Slot = "6")]
get
{
return 0;
}
[Token(Token = "0x6002102")]
[Address(RVA = "0x298B2F0", Offset = "0x298A0F0", VA = "0x18298B2F0", Slot = "7")]
set
{
}
}
/// <summary>Gets the key sizes that are supported by the asymmetric algorithm.</summary>
/// <returns>An array that contains the key sizes supported by the asymmetric algorithm.</returns>
// Token: 0x1700047B RID: 1147
// (get) Token: 0x06002103 RID: 8451 RVA: 0x00002082 File Offset: 0x00000282
[Token(Token = "0x1700047B")]
public virtual KeySizes[] LegalKeySizes
{
[Token(Token = "0x6002103")]
[Address(RVA = "0x298B220", Offset = "0x298A020", VA = "0x18298B220", Slot = "8")]
get
{
return null;
}
}
/// <summary>When implemented in a derived class, gets the name of the signature algorithm. Otherwise, always throws a <see cref="T:System.NotImplementedException" />.</summary>
/// <returns>The name of the signature algorithm.</returns>
// Token: 0x1700047C RID: 1148
// (get) Token: 0x06002104 RID: 8452 RVA: 0x00002082 File Offset: 0x00000282
[Token(Token = "0x1700047C")]
public virtual string SignatureAlgorithm
{
[Token(Token = "0x6002104")]
[Address(RVA = "0x298B2A0", Offset = "0x298A0A0", VA = "0x18298B2A0", Slot = "9")]
get
{
return null;
}
}
/// <summary>When overridden in a derived class, gets the name of the key exchange algorithm. Otherwise, throws an <see cref="T:System.NotImplementedException" />.</summary>
/// <returns>The name of the key exchange algorithm.</returns>
// Token: 0x1700047D RID: 1149
// (get) Token: 0x06002105 RID: 8453 RVA: 0x00002082 File Offset: 0x00000282
[Token(Token = "0x1700047D")]
public virtual string KeyExchangeAlgorithm
{
[Token(Token = "0x6002105")]
[Address(RVA = "0x298B1D0", Offset = "0x2989FD0", VA = "0x18298B1D0", Slot = "10")]
get
{
return null;
}
}
/// <summary>Creates a default cryptographic object used to perform the asymmetric algorithm.</summary>
/// <returns>A new <see cref="T:System.Security.Cryptography.RSACryptoServiceProvider" /> instance, unless the default settings have been changed with the &lt;cryptoClass&gt; element.</returns>
// Token: 0x06002106 RID: 8454 RVA: 0x00002082 File Offset: 0x00000282
[Token(Token = "0x6002106")]
[Address(RVA = "0x298B0E0", Offset = "0x2989EE0", VA = "0x18298B0E0")]
public static AsymmetricAlgorithm Create()
{
return null;
}
/// <summary>Creates an instance of the specified implementation of an asymmetric algorithm.</summary>
/// <param name="algName">The asymmetric algorithm implementation to use. The following table shows the valid values for the <paramref name="algName" /> parameter and the algorithms they map to.
/// Parameter value
///
/// Implements
///
/// System.Security.Cryptography.AsymmetricAlgorithm
///
/// <see cref="T:System.Security.Cryptography.AsymmetricAlgorithm" /> RSA
///
/// <see cref="T:System.Security.Cryptography.RSA" /> System.Security.Cryptography.RSA
///
/// <see cref="T:System.Security.Cryptography.RSA" /> DSA
///
/// <see cref="T:System.Security.Cryptography.DSA" /> System.Security.Cryptography.DSA
///
/// <see cref="T:System.Security.Cryptography.DSA" /> ECDsa
///
/// <see cref="T:System.Security.Cryptography.ECDsa" /> ECDsaCng
///
/// <see cref="T:System.Security.Cryptography.ECDsaCng" /> System.Security.Cryptography.ECDsaCng
///
/// <see cref="T:System.Security.Cryptography.ECDsaCng" /> ECDH
///
/// <see cref="T:System.Security.Cryptography.ECDiffieHellman" /> ECDiffieHellman
///
/// <see cref="T:System.Security.Cryptography.ECDiffieHellman" /> ECDiffieHellmanCng
///
/// <see cref="T:System.Security.Cryptography.ECDiffieHellmanCng" /> System.Security.Cryptography.ECDiffieHellmanCng
///
/// <see cref="T:System.Security.Cryptography.ECDiffieHellmanCng" /></param>
/// <returns>A new instance of the specified asymmetric algorithm implementation.</returns>
// Token: 0x06002107 RID: 8455 RVA: 0x00002082 File Offset: 0x00000282
[Token(Token = "0x6002107")]
[Address(RVA = "0x298B050", Offset = "0x2989E50", VA = "0x18298B050")]
public static AsymmetricAlgorithm Create(string algName)
{
return null;
}
/// <summary>When overridden in a derived class, reconstructs an <see cref="T:System.Security.Cryptography.AsymmetricAlgorithm" /> object from an XML string. Otherwise, throws a <see cref="T:System.NotImplementedException" />.</summary>
/// <param name="xmlString">The XML string to use to reconstruct the <see cref="T:System.Security.Cryptography.AsymmetricAlgorithm" /> object.</param>
// Token: 0x06002108 RID: 8456 RVA: 0x00002050 File Offset: 0x00000250
[Token(Token = "0x6002108")]
[Address(RVA = "0x298B130", Offset = "0x2989F30", VA = "0x18298B130", Slot = "11")]
public virtual void FromXmlString(string xmlString)
{
}
/// <summary>When overridden in a derived class, creates and returns an XML string representation of the current <see cref="T:System.Security.Cryptography.AsymmetricAlgorithm" /> object. Otherwise, throws a <see cref="T:System.NotImplementedException" />.</summary>
/// <param name="includePrivateParameters">
/// <see langword="true" /> to include private parameters; otherwise, <see langword="false" />.</param>
/// <returns>An XML string encoding of the current <see cref="T:System.Security.Cryptography.AsymmetricAlgorithm" /> object.</returns>
// Token: 0x06002109 RID: 8457 RVA: 0x00002082 File Offset: 0x00000282
[Token(Token = "0x6002109")]
[Address(RVA = "0x298B180", Offset = "0x2989F80", VA = "0x18298B180", Slot = "12")]
public virtual string ToXmlString(bool includePrivateParameters)
{
return null;
}
/// <summary>Represents the size, in bits, of the key modulus used by the asymmetric algorithm.</summary>
// Token: 0x040012F1 RID: 4849
[global::Cpp2IlInjected.FieldOffset(Offset = "0x10")]
[Token(Token = "0x40012F1")]
protected int KeySizeValue;
/// <summary>Specifies the key sizes that are supported by the asymmetric algorithm.</summary>
// Token: 0x040012F2 RID: 4850
[global::Cpp2IlInjected.FieldOffset(Offset = "0x18")]
[Token(Token = "0x40012F2")]
protected KeySizes[] LegalKeySizesValue;
}
}