This commit is contained in:
niko
2026-04-11 22:19:20 +02:00
parent 45b857ff11
commit 8fc35183db
17034 changed files with 2863552 additions and 0 deletions
@@ -0,0 +1,12 @@
using System;
using Cpp2IlInjected;
namespace System.Security.AccessControl
{
/// <summary>Controls access to objects without direct manipulation of access control lists (ACLs). This class is the abstract base class for the <see cref="T:System.Security.AccessControl.NativeObjectSecurity" /> class.</summary>
// Token: 0x020003B9 RID: 953
[Token(Token = "0x20003B9")]
public abstract class CommonObjectSecurity : ObjectSecurity
{
}
}
@@ -0,0 +1,12 @@
using System;
using Cpp2IlInjected;
namespace System.Security.AccessControl
{
/// <summary>Provides the ability to control access to a cryptographic key object without direct manipulation of an Access Control List (ACL).</summary>
// Token: 0x020003BA RID: 954
[Token(Token = "0x20003BA")]
public sealed class CryptoKeySecurity : NativeObjectSecurity
{
}
}
@@ -0,0 +1,12 @@
using System;
using Cpp2IlInjected;
namespace System.Security.AccessControl
{
/// <summary>Provides the ability to control access to native objects without direct manipulation of Access Control Lists (ACLs). Native object types are defined by the <see cref="T:System.Security.AccessControl.ResourceType" /> enumeration.</summary>
// Token: 0x020003BB RID: 955
[Token(Token = "0x20003BB")]
public abstract class NativeObjectSecurity : CommonObjectSecurity
{
}
}
@@ -0,0 +1,12 @@
using System;
using Cpp2IlInjected;
namespace System.Security.AccessControl
{
/// <summary>Provides the ability to control access to objects without direct manipulation of Access Control Lists (ACLs). This class is the abstract base class for the <see cref="T:System.Security.AccessControl.CommonObjectSecurity" /> and <see cref="T:System.Security.AccessControl.DirectoryObjectSecurity" /> classes.</summary>
// Token: 0x020003BC RID: 956
[Token(Token = "0x20003BC")]
public abstract class ObjectSecurity
{
}
}
@@ -0,0 +1,112 @@
using System;
using System.Diagnostics;
using System.Runtime.InteropServices;
using System.Security.Permissions;
using Cpp2IlInjected;
namespace System.Security
{
/// <summary>Defines the underlying structure of all code access permissions.</summary>
// Token: 0x020003A2 RID: 930
[Token(Token = "0x20003A2")]
[MonoTODO]
[ComVisible(true)]
[MonoTODO("CAS support is experimental (and unsupported).")]
[Serializable]
public abstract class CodeAccessPermission : IPermission, ISecurityEncodable
{
/// <summary>Initializes a new instance of the <see cref="T:System.Security.CodeAccessPermission" /> class.</summary>
// Token: 0x06002045 RID: 8261 RVA: 0x00002050 File Offset: 0x00000250
[Token(Token = "0x6002045")]
[Address(RVA = "0x3F5100", Offset = "0x3F3F00", VA = "0x1803F5100")]
protected CodeAccessPermission()
{
}
/// <summary>Forces a <see cref="T:System.Security.SecurityException" /> at run time if all callers higher in the call stack have not been granted the permission specified by the current instance.</summary>
/// <exception cref="T:System.Security.SecurityException">A caller higher in the call stack does not have the permission specified by the current instance.
/// -or-
/// A caller higher in the call stack has called <see cref="M:System.Security.CodeAccessPermission.Deny" /> on the current permission object.</exception>
// Token: 0x06002046 RID: 8262 RVA: 0x00002050 File Offset: 0x00000250
[Token(Token = "0x6002046")]
[Address(RVA = "0x298B6A0", Offset = "0x298A4A0", VA = "0x18298B6A0", Slot = "5")]
[Conditional("MONO_FEATURE_CAS")]
public void Demand()
{
}
/// <summary>Determines whether the specified <see cref="T:System.Security.CodeAccessPermission" /> object is equal to the current <see cref="T:System.Security.CodeAccessPermission" />.</summary>
/// <param name="obj">The <see cref="T:System.Security.CodeAccessPermission" /> object to compare with the current <see cref="T:System.Security.CodeAccessPermission" />.</param>
/// <returns>
/// <see langword="true" /> if the specified <see cref="T:System.Security.CodeAccessPermission" /> object is equal to the current <see cref="T:System.Security.CodeAccessPermission" />; otherwise, <see langword="false" />.</returns>
// Token: 0x06002047 RID: 8263 RVA: 0x000140E8 File Offset: 0x000122E8
[Token(Token = "0x6002047")]
[Address(RVA = "0x298B860", Offset = "0x298A660", VA = "0x18298B860", Slot = "0")]
[ComVisible(false)]
public override bool Equals(object obj)
{
return default(bool);
}
/// <summary>Gets a hash code for the <see cref="T:System.Security.CodeAccessPermission" /> object that is suitable for use in hashing algorithms and data structures such as a hash table.</summary>
/// <returns>A hash code for the current <see cref="T:System.Security.CodeAccessPermission" /> object.</returns>
// Token: 0x06002048 RID: 8264 RVA: 0x00014100 File Offset: 0x00012300
[Token(Token = "0x6002048")]
[Address(RVA = "0x19424F0", Offset = "0x19412F0", VA = "0x1819424F0", Slot = "2")]
[ComVisible(false)]
public override int GetHashCode()
{
return 0;
}
/// <summary>When implemented by a derived class, determines whether the current permission is a subset of the specified permission.</summary>
/// <param name="target">A permission that is to be tested for the subset relationship. This permission must be of the same type as the current permission.</param>
/// <returns>
/// <see langword="true" /> if the current permission is a subset of the specified permission; otherwise, <see langword="false" />.</returns>
/// <exception cref="T:System.ArgumentException">The <paramref name="target" /> parameter is not <see langword="null" /> and is not of the same type as the current permission.</exception>
// Token: 0x06002049 RID: 8265
[Token(Token = "0x6002049")]
[Address(Slot = "6")]
public abstract bool IsSubsetOf(IPermission target);
/// <summary>Creates and returns a string representation of the current permission object.</summary>
/// <returns>A string representation of the current permission object.</returns>
// Token: 0x0600204A RID: 8266 RVA: 0x00002082 File Offset: 0x00000282
[Token(Token = "0x600204A")]
[Address(RVA = "0x298BA30", Offset = "0x298A830", VA = "0x18298BA30", Slot = "3")]
public override string ToString()
{
return null;
}
/// <summary>When overridden in a derived class, creates an XML encoding of the security object and its current state.</summary>
/// <returns>An XML encoding of the security object, including any state information.</returns>
// Token: 0x0600204B RID: 8267
[Token(Token = "0x600204B")]
[Address(Slot = "7")]
public abstract SecurityElement ToXml();
// Token: 0x0600204C RID: 8268 RVA: 0x00002082 File Offset: 0x00000282
[Token(Token = "0x600204C")]
[Address(RVA = "0x298B720", Offset = "0x298A520", VA = "0x18298B720")]
internal SecurityElement Element(int version)
{
return null;
}
// Token: 0x0600204D RID: 8269 RVA: 0x00014118 File Offset: 0x00012318
[Token(Token = "0x600204D")]
[Address(RVA = "0x298B5F0", Offset = "0x298A3F0", VA = "0x18298B5F0")]
internal static PermissionState CheckPermissionState(PermissionState state, bool allowUnrestricted)
{
return PermissionState.None;
}
// Token: 0x0600204E RID: 8270 RVA: 0x00002050 File Offset: 0x00000250
[Token(Token = "0x600204E")]
[Address(RVA = "0x298B990", Offset = "0x298A790", VA = "0x18298B990")]
internal static void ThrowInvalidPermission(IPermission target, Type expected)
{
}
}
}
@@ -0,0 +1,51 @@
using System;
using System.Runtime.CompilerServices;
using Cpp2IlInjected;
namespace System.Security.Cryptography
{
/// <summary>Represents the abstract base class from which all implementations of the Advanced Encryption Standard (AES) must inherit.</summary>
// Token: 0x020003CD RID: 973
[Token(Token = "0x20003CD")]
[TypeForwardedFrom("System.Core, Version=2.0.5.0, Culture=Neutral, PublicKeyToken=7cec85d7bea7798e")]
public abstract class Aes : SymmetricAlgorithm
{
/// <summary>Initializes a new instance of the <see cref="T:System.Security.Cryptography.Aes" /> class.</summary>
// Token: 0x060020F9 RID: 8441 RVA: 0x00002050 File Offset: 0x00000250
[Token(Token = "0x60020F9")]
[Address(RVA = "0x298AF40", Offset = "0x2989D40", VA = "0x18298AF40")]
protected Aes()
{
}
/// <summary>Creates a cryptographic object that is used to perform the symmetric algorithm.</summary>
/// <returns>A cryptographic object that is used to perform the symmetric algorithm.</returns>
// Token: 0x060020FA RID: 8442 RVA: 0x00002082 File Offset: 0x00000282
[Token(Token = "0x60020FA")]
[Address(RVA = "0x298ACC0", Offset = "0x2989AC0", VA = "0x18298ACC0")]
public new static Aes Create()
{
return null;
}
/// <summary>Creates a cryptographic object that specifies the implementation of AES to use to perform the symmetric algorithm.</summary>
/// <param name="algorithmName">The name of the specific implementation of AES to use.</param>
/// <returns>A cryptographic object that is used to perform the symmetric algorithm.</returns>
/// <exception cref="T:System.ArgumentNullException">The <paramref name="algorithmName" /> parameter is <see langword="null" />.</exception>
// Token: 0x060020FB RID: 8443 RVA: 0x00002082 File Offset: 0x00000282
[Token(Token = "0x60020FB")]
[Address(RVA = "0x298AC00", Offset = "0x2989A00", VA = "0x18298AC00")]
public new static Aes Create(string algorithmName)
{
return null;
}
// Token: 0x040012EF RID: 4847
[Token(Token = "0x40012EF")]
private static KeySizes[] s_legalBlockSizes;
// Token: 0x040012F0 RID: 4848
[Token(Token = "0x40012F0")]
private static KeySizes[] s_legalKeySizes;
}
}
@@ -0,0 +1,198 @@
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;
}
}
@@ -0,0 +1,52 @@
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);
}
}
@@ -0,0 +1,57 @@
using System;
using System.Runtime.InteropServices;
using Cpp2IlInjected;
namespace System.Security.Cryptography
{
/// <summary>Represents the base class from which all asymmetric key exchange formatters derive.</summary>
// Token: 0x020003D0 RID: 976
[Token(Token = "0x20003D0")]
[ComVisible(true)]
public abstract class AsymmetricKeyExchangeFormatter
{
/// <summary>Initializes a new instance of <see cref="T:System.Security.Cryptography.AsymmetricKeyExchangeFormatter" />.</summary>
// Token: 0x0600210F RID: 8463 RVA: 0x00002050 File Offset: 0x00000250
[Token(Token = "0x600210F")]
[Address(RVA = "0x3F5100", Offset = "0x3F3F00", VA = "0x1803F5100")]
protected AsymmetricKeyExchangeFormatter()
{
}
/// <summary>When overridden in a derived class, gets 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: 0x1700047F RID: 1151
// (get) Token: 0x06002110 RID: 8464
[Token(Token = "0x1700047F")]
public abstract string Parameters
{
[Token(Token = "0x6002110")]
[Address(Slot = "4")]
get;
}
/// <summary>When overridden in a derived class, sets the public key to use for encrypting the secret information.</summary>
/// <param name="key">The instance of the implementation of <see cref="T:System.Security.Cryptography.AsymmetricAlgorithm" /> that holds the public key.</param>
// Token: 0x06002111 RID: 8465
[Token(Token = "0x6002111")]
[Address(Slot = "5")]
public abstract void SetKey(AsymmetricAlgorithm key);
/// <summary>When overridden in a derived class, creates the encrypted key exchange data from the specified input data.</summary>
/// <param name="data">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>
// Token: 0x06002112 RID: 8466
[Token(Token = "0x6002112")]
[Address(Slot = "6")]
public abstract byte[] CreateKeyExchange(byte[] data);
/// <summary>When overridden in a derived class, creates the encrypted key exchange data from the specified input data.</summary>
/// <param name="data">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: 0x06002113 RID: 8467
[Token(Token = "0x6002113")]
[Address(Slot = "7")]
public abstract byte[] CreateKeyExchange(byte[] data, Type symAlgType);
}
}
@@ -0,0 +1,59 @@
using System;
using System.Runtime.InteropServices;
using Cpp2IlInjected;
namespace System.Security.Cryptography
{
/// <summary>Represents the abstract base class from which all implementations of asymmetric signature deformatters derive.</summary>
// Token: 0x020003D1 RID: 977
[Token(Token = "0x20003D1")]
[ComVisible(true)]
public abstract class AsymmetricSignatureDeformatter
{
/// <summary>Initializes a new instance of <see cref="T:System.Security.Cryptography.AsymmetricSignatureDeformatter" />.</summary>
// Token: 0x06002114 RID: 8468 RVA: 0x00002050 File Offset: 0x00000250
[Token(Token = "0x6002114")]
[Address(RVA = "0x3F5100", Offset = "0x3F3F00", VA = "0x1803F5100")]
protected AsymmetricSignatureDeformatter()
{
}
/// <summary>When overridden in a derived class, sets the public key to use for verifying the signature.</summary>
/// <param name="key">The instance of an implementation of <see cref="T:System.Security.Cryptography.AsymmetricAlgorithm" /> that holds the public key.</param>
// Token: 0x06002115 RID: 8469
[Token(Token = "0x6002115")]
[Address(Slot = "4")]
public abstract void SetKey(AsymmetricAlgorithm key);
/// <summary>When overridden in a derived class, sets the hash algorithm to use for verifying the signature.</summary>
/// <param name="strName">The name of the hash algorithm to use for verifying the signature.</param>
// Token: 0x06002116 RID: 8470
[Token(Token = "0x6002116")]
[Address(Slot = "5")]
public abstract void SetHashAlgorithm(string strName);
/// <summary>Verifies the signature from the specified hash value.</summary>
/// <param name="hash">The hash algorithm to use to verify the signature.</param>
/// <param name="rgbSignature">The signature to be verified.</param>
/// <returns>
/// <see langword="true" /> if the signature is valid for the hash; otherwise, <see langword="false" />.</returns>
/// <exception cref="T:System.ArgumentNullException">The <paramref name="hash" /> parameter is <see langword="null" />.</exception>
// Token: 0x06002117 RID: 8471 RVA: 0x00014640 File Offset: 0x00012840
[Token(Token = "0x6002117")]
[Address(RVA = "0x298B410", Offset = "0x298A210", VA = "0x18298B410", Slot = "6")]
public virtual bool VerifySignature(HashAlgorithm hash, byte[] rgbSignature)
{
return default(bool);
}
/// <summary>When overridden in a derived class, verifies the signature for the specified data.</summary>
/// <param name="rgbHash">The data signed with <paramref name="rgbSignature" />.</param>
/// <param name="rgbSignature">The signature to be verified for <paramref name="rgbHash" />.</param>
/// <returns>
/// <see langword="true" /> if <paramref name="rgbSignature" /> matches the signature computed using the specified hash algorithm and key on <paramref name="rgbHash" />; otherwise, <see langword="false" />.</returns>
// Token: 0x06002118 RID: 8472
[Token(Token = "0x6002118")]
[Address(Slot = "7")]
public abstract bool VerifySignature(byte[] rgbHash, byte[] rgbSignature);
}
}
@@ -0,0 +1,55 @@
using System;
using System.Runtime.InteropServices;
using Cpp2IlInjected;
namespace System.Security.Cryptography
{
/// <summary>Represents the base class from which all implementations of asymmetric signature formatters derive.</summary>
// Token: 0x020003D2 RID: 978
[Token(Token = "0x20003D2")]
[ComVisible(true)]
public abstract class AsymmetricSignatureFormatter
{
/// <summary>Initializes a new instance of <see cref="T:System.Security.Cryptography.AsymmetricSignatureFormatter" />.</summary>
// Token: 0x06002119 RID: 8473 RVA: 0x00002050 File Offset: 0x00000250
[Token(Token = "0x6002119")]
[Address(RVA = "0x3F5100", Offset = "0x3F3F00", VA = "0x1803F5100")]
protected AsymmetricSignatureFormatter()
{
}
/// <summary>When overridden in a derived class, sets the asymmetric algorithm to use to create the signature.</summary>
/// <param name="key">The instance of the implementation of <see cref="T:System.Security.Cryptography.AsymmetricAlgorithm" /> to use to create the signature.</param>
// Token: 0x0600211A RID: 8474
[Token(Token = "0x600211A")]
[Address(Slot = "4")]
public abstract void SetKey(AsymmetricAlgorithm key);
/// <summary>When overridden in a derived class, 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: 0x0600211B RID: 8475
[Token(Token = "0x600211B")]
[Address(Slot = "5")]
public abstract void SetHashAlgorithm(string strName);
/// <summary>Creates the signature from the specified hash value.</summary>
/// <param name="hash">The hash algorithm to use to create the signature.</param>
/// <returns>The signature for the specified hash value.</returns>
/// <exception cref="T:System.ArgumentNullException">The <paramref name="hash" /> parameter is <see langword="null" />.</exception>
// Token: 0x0600211C RID: 8476 RVA: 0x00002082 File Offset: 0x00000282
[Token(Token = "0x600211C")]
[Address(RVA = "0x298B4E0", Offset = "0x298A2E0", VA = "0x18298B4E0", Slot = "6")]
public virtual byte[] CreateSignature(HashAlgorithm hash)
{
return null;
}
/// <summary>When overridden in a derived class, creates the signature for the specified data.</summary>
/// <param name="rgbHash">The data to be signed.</param>
/// <returns>The digital signature for the <paramref name="rgbHash" /> parameter.</returns>
// Token: 0x0600211D RID: 8477
[Token(Token = "0x600211D")]
[Address(Slot = "7")]
public abstract byte[] CreateSignature(byte[] rgbHash);
}
}
@@ -0,0 +1,35 @@
using System;
using System.Runtime.InteropServices;
using Cpp2IlInjected;
namespace System.Security.Cryptography
{
/// <summary>Specifies the block cipher mode to use for encryption.</summary>
// Token: 0x020003D6 RID: 982
[Token(Token = "0x20003D6")]
[ComVisible(true)]
[Serializable]
public enum CipherMode
{
/// <summary>The Cipher Block Chaining (<see langword="CBC" />) mode introduces feedback. Before each plain text block is encrypted, it is combined with the cipher text of the previous block by a bitwise exclusive OR operation. This ensures that even if the plain text contains many identical blocks, they will each encrypt to a different cipher text block. The initialization vector is combined with the first plain text block by a bitwise exclusive OR operation before the block is encrypted. If a single bit of the cipher text block is mangled, the corresponding plain text block will also be mangled. In addition, a bit in the subsequent block, in the same position as the original mangled bit, will be mangled.</summary>
// Token: 0x040012FA RID: 4858
[Token(Token = "0x40012FA")]
CBC = 1,
/// <summary>The Electronic Codebook (<see langword="ECB" />) mode encrypts each block individually. Any blocks of plain text that are identical and in the same message, or that are in a different message encrypted with the same key, will be transformed into identical cipher text blocks. Important: This mode is not recommended because it opens the door for multiple security exploits. If the plain text to be encrypted contains substantial repetition, it is feasible for the cipher text to be broken one block at a time. It is also possible to use block analysis to determine the encryption key. Also, an active adversary can substitute and exchange individual blocks without detection, which allows blocks to be saved and inserted into the stream at other points without detection.</summary>
// Token: 0x040012FB RID: 4859
[Token(Token = "0x40012FB")]
ECB,
/// <summary>The Output Feedback (<see langword="OFB" />) mode processes small increments of plain text into cipher text instead of processing an entire block at a time. This mode is similar to <see langword="CFB" />; the only difference between the two modes is the way that the shift register is filled. If a bit in the cipher text is mangled, the corresponding bit of plain text will be mangled. However, if there are extra or missing bits from the cipher text, the plain text will be mangled from that point on.</summary>
// Token: 0x040012FC RID: 4860
[Token(Token = "0x40012FC")]
OFB,
/// <summary>The Cipher Feedback (<see langword="CFB" />) mode processes small increments of plain text into cipher text, instead of processing an entire block at a time. This mode uses a shift register that is one block in length and is divided into sections. For example, if the block size is 8 bytes, with one byte processed at a time, the shift register is divided into eight sections. If a bit in the cipher text is mangled, one plain text bit is mangled and the shift register is corrupted. This results in the next several plain text increments being mangled until the bad bit is shifted out of the shift register. The default feedback size can vary by algorithm, but is typically either 8 bits or the number of bits of the block size. You can alter the number of feedback bits by using the <see cref="P:System.Security.Cryptography.SymmetricAlgorithm.FeedbackSize" /> property. Algorithms that support CFB use this property to set the feedback.</summary>
// Token: 0x040012FD RID: 4861
[Token(Token = "0x40012FD")]
CFB,
/// <summary>The Cipher Text Stealing (<see langword="CTS" />) mode handles any length of plain text and produces cipher text whose length matches the plain text length. This mode behaves like the <see langword="CBC" /> mode for all but the last two blocks of the plain text.</summary>
// Token: 0x040012FE RID: 4862
[Token(Token = "0x40012FE")]
CTS
}
}
@@ -0,0 +1,286 @@
using System;
using Cpp2IlInjected;
namespace System.Security.Cryptography
{
// Token: 0x0200041D RID: 1053
[Token(Token = "0x200041D")]
internal static class Constants
{
// Token: 0x040013EB RID: 5099
[Token(Token = "0x40013EB")]
internal const int S_OK = 0;
// Token: 0x040013EC RID: 5100
[Token(Token = "0x40013EC")]
internal const int NTE_FILENOTFOUND = -2147024894;
// Token: 0x040013ED RID: 5101
[Token(Token = "0x40013ED")]
internal const int NTE_NO_KEY = -2146893811;
// Token: 0x040013EE RID: 5102
[Token(Token = "0x40013EE")]
internal const int NTE_BAD_KEYSET = -2146893802;
// Token: 0x040013EF RID: 5103
[Token(Token = "0x40013EF")]
internal const int NTE_KEYSET_NOT_DEF = -2146893799;
// Token: 0x040013F0 RID: 5104
[Token(Token = "0x40013F0")]
internal const int KP_IV = 1;
// Token: 0x040013F1 RID: 5105
[Token(Token = "0x40013F1")]
internal const int KP_MODE = 4;
// Token: 0x040013F2 RID: 5106
[Token(Token = "0x40013F2")]
internal const int KP_MODE_BITS = 5;
// Token: 0x040013F3 RID: 5107
[Token(Token = "0x40013F3")]
internal const int KP_EFFECTIVE_KEYLEN = 19;
// Token: 0x040013F4 RID: 5108
[Token(Token = "0x40013F4")]
internal const int ALG_CLASS_SIGNATURE = 8192;
// Token: 0x040013F5 RID: 5109
[Token(Token = "0x40013F5")]
internal const int ALG_CLASS_DATA_ENCRYPT = 24576;
// Token: 0x040013F6 RID: 5110
[Token(Token = "0x40013F6")]
internal const int ALG_CLASS_HASH = 32768;
// Token: 0x040013F7 RID: 5111
[Token(Token = "0x40013F7")]
internal const int ALG_CLASS_KEY_EXCHANGE = 40960;
// Token: 0x040013F8 RID: 5112
[Token(Token = "0x40013F8")]
internal const int ALG_TYPE_DSS = 512;
// Token: 0x040013F9 RID: 5113
[Token(Token = "0x40013F9")]
internal const int ALG_TYPE_RSA = 1024;
// Token: 0x040013FA RID: 5114
[Token(Token = "0x40013FA")]
internal const int ALG_TYPE_BLOCK = 1536;
// Token: 0x040013FB RID: 5115
[Token(Token = "0x40013FB")]
internal const int ALG_TYPE_STREAM = 2048;
// Token: 0x040013FC RID: 5116
[Token(Token = "0x40013FC")]
internal const int ALG_TYPE_ANY = 0;
// Token: 0x040013FD RID: 5117
[Token(Token = "0x40013FD")]
internal const int CALG_MD5 = 32771;
// Token: 0x040013FE RID: 5118
[Token(Token = "0x40013FE")]
internal const int CALG_SHA1 = 32772;
// Token: 0x040013FF RID: 5119
[Token(Token = "0x40013FF")]
internal const int CALG_SHA_256 = 32780;
// Token: 0x04001400 RID: 5120
[Token(Token = "0x4001400")]
internal const int CALG_SHA_384 = 32781;
// Token: 0x04001401 RID: 5121
[Token(Token = "0x4001401")]
internal const int CALG_SHA_512 = 32782;
// Token: 0x04001402 RID: 5122
[Token(Token = "0x4001402")]
internal const int CALG_RSA_KEYX = 41984;
// Token: 0x04001403 RID: 5123
[Token(Token = "0x4001403")]
internal const int CALG_RSA_SIGN = 9216;
// Token: 0x04001404 RID: 5124
[Token(Token = "0x4001404")]
internal const int CALG_DSS_SIGN = 8704;
// Token: 0x04001405 RID: 5125
[Token(Token = "0x4001405")]
internal const int CALG_DES = 26113;
// Token: 0x04001406 RID: 5126
[Token(Token = "0x4001406")]
internal const int CALG_RC2 = 26114;
// Token: 0x04001407 RID: 5127
[Token(Token = "0x4001407")]
internal const int CALG_3DES = 26115;
// Token: 0x04001408 RID: 5128
[Token(Token = "0x4001408")]
internal const int CALG_3DES_112 = 26121;
// Token: 0x04001409 RID: 5129
[Token(Token = "0x4001409")]
internal const int CALG_AES_128 = 26126;
// Token: 0x0400140A RID: 5130
[Token(Token = "0x400140A")]
internal const int CALG_AES_192 = 26127;
// Token: 0x0400140B RID: 5131
[Token(Token = "0x400140B")]
internal const int CALG_AES_256 = 26128;
// Token: 0x0400140C RID: 5132
[Token(Token = "0x400140C")]
internal const int CALG_RC4 = 26625;
// Token: 0x0400140D RID: 5133
[Token(Token = "0x400140D")]
internal const int PROV_RSA_FULL = 1;
// Token: 0x0400140E RID: 5134
[Token(Token = "0x400140E")]
internal const int PROV_DSS_DH = 13;
// Token: 0x0400140F RID: 5135
[Token(Token = "0x400140F")]
internal const int PROV_RSA_AES = 24;
// Token: 0x04001410 RID: 5136
[Token(Token = "0x4001410")]
internal const int AT_KEYEXCHANGE = 1;
// Token: 0x04001411 RID: 5137
[Token(Token = "0x4001411")]
internal const int AT_SIGNATURE = 2;
// Token: 0x04001412 RID: 5138
[Token(Token = "0x4001412")]
internal const int PUBLICKEYBLOB = 6;
// Token: 0x04001413 RID: 5139
[Token(Token = "0x4001413")]
internal const int PRIVATEKEYBLOB = 7;
// Token: 0x04001414 RID: 5140
[Token(Token = "0x4001414")]
internal const int CRYPT_OAEP = 64;
// Token: 0x04001415 RID: 5141
[Token(Token = "0x4001415")]
internal const uint CRYPT_VERIFYCONTEXT = 4026531840U;
// Token: 0x04001416 RID: 5142
[Token(Token = "0x4001416")]
internal const uint CRYPT_NEWKEYSET = 8U;
// Token: 0x04001417 RID: 5143
[Token(Token = "0x4001417")]
internal const uint CRYPT_DELETEKEYSET = 16U;
// Token: 0x04001418 RID: 5144
[Token(Token = "0x4001418")]
internal const uint CRYPT_MACHINE_KEYSET = 32U;
// Token: 0x04001419 RID: 5145
[Token(Token = "0x4001419")]
internal const uint CRYPT_SILENT = 64U;
// Token: 0x0400141A RID: 5146
[Token(Token = "0x400141A")]
internal const uint CRYPT_EXPORTABLE = 1U;
// Token: 0x0400141B RID: 5147
[Token(Token = "0x400141B")]
internal const uint CLR_KEYLEN = 1U;
// Token: 0x0400141C RID: 5148
[Token(Token = "0x400141C")]
internal const uint CLR_PUBLICKEYONLY = 2U;
// Token: 0x0400141D RID: 5149
[Token(Token = "0x400141D")]
internal const uint CLR_EXPORTABLE = 3U;
// Token: 0x0400141E RID: 5150
[Token(Token = "0x400141E")]
internal const uint CLR_REMOVABLE = 4U;
// Token: 0x0400141F RID: 5151
[Token(Token = "0x400141F")]
internal const uint CLR_HARDWARE = 5U;
// Token: 0x04001420 RID: 5152
[Token(Token = "0x4001420")]
internal const uint CLR_ACCESSIBLE = 6U;
// Token: 0x04001421 RID: 5153
[Token(Token = "0x4001421")]
internal const uint CLR_PROTECTED = 7U;
// Token: 0x04001422 RID: 5154
[Token(Token = "0x4001422")]
internal const uint CLR_UNIQUE_CONTAINER = 8U;
// Token: 0x04001423 RID: 5155
[Token(Token = "0x4001423")]
internal const uint CLR_ALGID = 9U;
// Token: 0x04001424 RID: 5156
[Token(Token = "0x4001424")]
internal const uint CLR_PP_CLIENT_HWND = 10U;
// Token: 0x04001425 RID: 5157
[Token(Token = "0x4001425")]
internal const uint CLR_PP_PIN = 11U;
// Token: 0x04001426 RID: 5158
[Token(Token = "0x4001426")]
internal const string OID_RSA_SMIMEalgCMS3DESwrap = "1.2.840.113549.1.9.16.3.6";
// Token: 0x04001427 RID: 5159
[Token(Token = "0x4001427")]
internal const string OID_RSA_MD5 = "1.2.840.113549.2.5";
// Token: 0x04001428 RID: 5160
[Token(Token = "0x4001428")]
internal const string OID_RSA_RC2CBC = "1.2.840.113549.3.2";
// Token: 0x04001429 RID: 5161
[Token(Token = "0x4001429")]
internal const string OID_RSA_DES_EDE3_CBC = "1.2.840.113549.3.7";
// Token: 0x0400142A RID: 5162
[Token(Token = "0x400142A")]
internal const string OID_OIWSEC_desCBC = "1.3.14.3.2.7";
// Token: 0x0400142B RID: 5163
[Token(Token = "0x400142B")]
internal const string OID_OIWSEC_SHA1 = "1.3.14.3.2.26";
// Token: 0x0400142C RID: 5164
[Token(Token = "0x400142C")]
internal const string OID_OIWSEC_SHA256 = "2.16.840.1.101.3.4.2.1";
// Token: 0x0400142D RID: 5165
[Token(Token = "0x400142D")]
internal const string OID_OIWSEC_SHA384 = "2.16.840.1.101.3.4.2.2";
// Token: 0x0400142E RID: 5166
[Token(Token = "0x400142E")]
internal const string OID_OIWSEC_SHA512 = "2.16.840.1.101.3.4.2.3";
// Token: 0x0400142F RID: 5167
[Token(Token = "0x400142F")]
internal const string OID_OIWSEC_RIPEMD160 = "1.3.36.3.2.1";
}
}
@@ -0,0 +1,175 @@
using System;
using System.Runtime.InteropServices;
using Cpp2IlInjected;
namespace System.Security.Cryptography
{
/// <summary>Performs a cryptographic transformation of data. This class cannot be inherited.</summary>
// Token: 0x0200041F RID: 1055
[Token(Token = "0x200041F")]
[ComVisible(true)]
public sealed class CryptoAPITransform : ICryptoTransform, IDisposable
{
// Token: 0x06002389 RID: 9097 RVA: 0x00002050 File Offset: 0x00000250
[Token(Token = "0x6002389")]
[Address(RVA = "0x637D50", Offset = "0x636B50", VA = "0x180637D50")]
internal CryptoAPITransform()
{
}
/// <summary>Gets a value indicating whether the current transform can be reused.</summary>
/// <returns>Always <see langword="true" />.</returns>
// Token: 0x170004E3 RID: 1251
// (get) Token: 0x0600238A RID: 9098 RVA: 0x000152D0 File Offset: 0x000134D0
[Token(Token = "0x170004E3")]
public bool CanReuseTransform
{
[Token(Token = "0x600238A")]
[Address(RVA = "0x460D40", Offset = "0x45FB40", VA = "0x180460D40", Slot = "7")]
get
{
return default(bool);
}
}
/// <summary>Gets a value indicating whether multiple blocks can be transformed.</summary>
/// <returns>
/// <see langword="true" /> if multiple blocks can be transformed; otherwise, <see langword="false" />.</returns>
// Token: 0x170004E4 RID: 1252
// (get) Token: 0x0600238B RID: 9099 RVA: 0x000152E8 File Offset: 0x000134E8
[Token(Token = "0x170004E4")]
public bool CanTransformMultipleBlocks
{
[Token(Token = "0x600238B")]
[Address(RVA = "0x460D40", Offset = "0x45FB40", VA = "0x180460D40", Slot = "6")]
get
{
return default(bool);
}
}
/// <summary>Gets the input block size.</summary>
/// <returns>The input block size in bytes.</returns>
// Token: 0x170004E5 RID: 1253
// (get) Token: 0x0600238C RID: 9100 RVA: 0x00015300 File Offset: 0x00013500
[Token(Token = "0x170004E5")]
public int InputBlockSize
{
[Token(Token = "0x600238C")]
[Address(RVA = "0x43E630", Offset = "0x43D430", VA = "0x18043E630", Slot = "4")]
get
{
return 0;
}
}
/// <summary>Gets the key handle.</summary>
/// <returns>The key handle.</returns>
// Token: 0x170004E6 RID: 1254
// (get) Token: 0x0600238D RID: 9101 RVA: 0x00015318 File Offset: 0x00013518
[Token(Token = "0x170004E6")]
public IntPtr KeyHandle
{
[Token(Token = "0x600238D")]
[Address(RVA = "0x298BAD0", Offset = "0x298A8D0", VA = "0x18298BAD0")]
get
{
return 0;
}
}
/// <summary>Gets the output block size.</summary>
/// <returns>The output block size in bytes.</returns>
// Token: 0x170004E7 RID: 1255
// (get) Token: 0x0600238E RID: 9102 RVA: 0x00015330 File Offset: 0x00013530
[Token(Token = "0x170004E7")]
public int OutputBlockSize
{
[Token(Token = "0x600238E")]
[Address(RVA = "0x43E630", Offset = "0x43D430", VA = "0x18043E630", Slot = "5")]
get
{
return 0;
}
}
/// <summary>Releases all resources used by the current instance of the <see cref="T:System.Security.Cryptography.CryptoAPITransform" /> class.</summary>
// Token: 0x0600238F RID: 9103 RVA: 0x00002050 File Offset: 0x00000250
[Token(Token = "0x600238F")]
[Address(RVA = "0x298BA70", Offset = "0x298A870", VA = "0x18298BA70", Slot = "10")]
public void Dispose()
{
}
/// <summary>Releases all resources used by the <see cref="T:System.Security.Cryptography.CryptoAPITransform" /> method.</summary>
// Token: 0x06002390 RID: 9104 RVA: 0x00002050 File Offset: 0x00000250
[Token(Token = "0x6002390")]
[Address(RVA = "0x2250FC0", Offset = "0x224FDC0", VA = "0x182250FC0")]
public void Clear()
{
}
// Token: 0x06002391 RID: 9105 RVA: 0x00002050 File Offset: 0x00000250
[Token(Token = "0x6002391")]
[Address(RVA = "0x2250FC0", Offset = "0x224FDC0", VA = "0x182250FC0")]
private void Dispose(bool disposing)
{
}
/// <summary>Computes the transformation for the specified region of the input byte array and copies the resulting transformation to the specified region of the output byte array.</summary>
/// <param name="inputBuffer">The input on which to perform the operation on.</param>
/// <param name="inputOffset">The offset into the input byte array from which to begin using data from.</param>
/// <param name="inputCount">The number of bytes in the input byte array to use as data.</param>
/// <param name="outputBuffer">The output to which to write the data to.</param>
/// <param name="outputOffset">The offset into the output byte array from which to begin writing data from.</param>
/// <returns>The number of bytes written.</returns>
/// <exception cref="T:System.ArgumentNullException">The <paramref name="inputBuffer" /> parameter is <see langword="null" />.
/// -or-
/// The <paramref name="outputBuffer" /> parameter is <see langword="null" />.</exception>
/// <exception cref="T:System.ArgumentException">The length of the input buffer is less than the sum of the input offset and the input count.</exception>
/// <exception cref="T:System.ArgumentOutOfRangeException">
/// <paramref name="inputOffset" /> is out of range. This parameter requires a non-negative number.</exception>
// Token: 0x06002392 RID: 9106 RVA: 0x00015348 File Offset: 0x00013548
[Token(Token = "0x6002392")]
[Address(RVA = "0x43E630", Offset = "0x43D430", VA = "0x18043E630", Slot = "8")]
public int TransformBlock(byte[] inputBuffer, int inputOffset, int inputCount, byte[] outputBuffer, int outputOffset)
{
return 0;
}
/// <summary>Computes the transformation for the specified region of the specified byte array.</summary>
/// <param name="inputBuffer">The input on which to perform the operation on.</param>
/// <param name="inputOffset">The offset into the byte array from which to begin using data from.</param>
/// <param name="inputCount">The number of bytes in the byte array to use as data.</param>
/// <returns>The computed transformation.</returns>
/// <exception cref="T:System.ArgumentNullException">The <paramref name="inputBuffer" /> parameter is <see langword="null" />.</exception>
/// <exception cref="T:System.ArgumentException">The <paramref name="inputOffset" /> parameter is less than zero.
/// -or-
/// The <paramref name="inputCount" /> parameter is less than zero.
/// -or-
/// The length of the input buffer is less than the sum of the input offset and the input count.</exception>
/// <exception cref="T:System.Security.Cryptography.CryptographicException">The <see cref="F:System.Security.Cryptography.PaddingMode.PKCS7" /> padding is invalid.</exception>
/// <exception cref="T:System.ArgumentOutOfRangeException">The <paramref name="inputOffset" /> parameter is out of range. This parameter requires a non-negative number.</exception>
// Token: 0x06002393 RID: 9107 RVA: 0x00002082 File Offset: 0x00000282
[Token(Token = "0x6002393")]
[Address(RVA = "0x43E630", Offset = "0x43D430", VA = "0x18043E630", Slot = "9")]
public byte[] TransformFinalBlock(byte[] inputBuffer, int inputOffset, int inputCount)
{
return null;
}
/// <summary>Resets the internal state of <see cref="T:System.Security.Cryptography.CryptoAPITransform" /> so that it can be used again to do a different encryption or decryption.</summary>
// Token: 0x06002394 RID: 9108 RVA: 0x00002050 File Offset: 0x00000250
[Token(Token = "0x6002394")]
[Address(RVA = "0x402080", Offset = "0x400E80", VA = "0x180402080")]
[ComVisible(false)]
public void Reset()
{
}
// Token: 0x04001432 RID: 5170
[global::Cpp2IlInjected.FieldOffset(Offset = "0x10")]
[Token(Token = "0x4001432")]
private bool m_disposed;
}
}
@@ -0,0 +1,133 @@
using System;
using System.Runtime.InteropServices;
using Cpp2IlInjected;
namespace System.Security.Cryptography
{
/// <summary>Accesses the cryptography configuration information.</summary>
// Token: 0x02000420 RID: 1056
[Token(Token = "0x2000420")]
[ComVisible(true)]
public class CryptoConfig
{
/// <summary>Encodes the specified object identifier (OID).</summary>
/// <param name="str">The OID to encode.</param>
/// <returns>A byte array containing the encoded OID.</returns>
/// <exception cref="T:System.ArgumentNullException">The <paramref name="str" /> parameter is <see langword="null" />.</exception>
/// <exception cref="T:System.Security.Cryptography.CryptographicUnexpectedOperationException">An error occurred while encoding the OID.</exception>
// Token: 0x06002395 RID: 9109 RVA: 0x00002082 File Offset: 0x00000282
[Token(Token = "0x6002395")]
[Address(RVA = "0x298CF90", Offset = "0x298BD90", VA = "0x18298CF90")]
public static byte[] EncodeOID(string str)
{
return null;
}
// Token: 0x06002396 RID: 9110 RVA: 0x00002082 File Offset: 0x00000282
[Token(Token = "0x6002396")]
[Address(RVA = "0x298CE00", Offset = "0x298BC00", VA = "0x18298CE00")]
private static byte[] EncodeLongNumber(long x)
{
return null;
}
/// <summary>Indicates whether the runtime should enforce the policy to create only Federal Information Processing Standard (FIPS) certified algorithms.</summary>
/// <returns>
/// <see langword="true" /> to enforce the policy; otherwise, <see langword="false" />.</returns>
// Token: 0x170004E8 RID: 1256
// (get) Token: 0x06002397 RID: 9111 RVA: 0x00015360 File Offset: 0x00013560
[Token(Token = "0x170004E8")]
[MonoLimitation("nothing is FIPS certified so it never make sense to restrict to this (empty) subset")]
public static bool AllowOnlyFipsAlgorithms
{
[Token(Token = "0x6002397")]
[Address(RVA = "0x403930", Offset = "0x402730", VA = "0x180403930")]
get
{
return default(bool);
}
}
/// <summary>Adds a set of names to algorithm mappings to be used for the current application domain.</summary>
/// <param name="algorithm">The algorithm to map to.</param>
/// <param name="names">An array of names to map to the algorithm.</param>
/// <exception cref="T:System.ArgumentNullException">The <paramref name="algorithm" /> or <paramref name="names" /> parameter is <see langword="null" />.</exception>
/// <exception cref="T:System.ArgumentException">
/// <paramref name="algorithm" /> cannot be accessed from outside the assembly.
/// -or-
/// One of the entries in the <paramref name="names" /> parameter is empty or <see langword="null" />.</exception>
// Token: 0x06002398 RID: 9112 RVA: 0x00002050 File Offset: 0x00000250
[Token(Token = "0x6002398")]
[Address(RVA = "0x298BB00", Offset = "0x298A900", VA = "0x18298BB00")]
public static void AddAlgorithm(Type algorithm, params string[] names)
{
}
/// <summary>Adds a set of names to object identifier (OID) mappings to be used for the current application domain.</summary>
/// <param name="oid">The object identifier (OID) to map to.</param>
/// <param name="names">An array of names to map to the OID.</param>
/// <exception cref="T:System.ArgumentNullException">The <paramref name="oid" /> or <paramref name="names" /> parameter is <see langword="null" />.</exception>
/// <exception cref="T:System.ArgumentException">One of the entries in the <paramref name="names" /> parameter is empty or <see langword="null" />.</exception>
// Token: 0x06002399 RID: 9113 RVA: 0x00002050 File Offset: 0x00000250
[Token(Token = "0x6002399")]
[Address(RVA = "0x298BB50", Offset = "0x298A950", VA = "0x18298BB50")]
public static void AddOID(string oid, params string[] names)
{
}
/// <summary>Creates a new instance of the specified cryptographic object.</summary>
/// <param name="name">The simple name of the cryptographic object of which to create an instance.</param>
/// <returns>A new instance of the specified cryptographic object.</returns>
/// <exception cref="T:System.ArgumentNullException">The <paramref name="name" /> parameter is <see langword="null" />.</exception>
/// <exception cref="T:System.Reflection.TargetInvocationException">The algorithm described by the <paramref name="name" /> parameter was used with Federal Information Processing Standards (FIPS) mode enabled, but is not FIPS compatible.</exception>
// Token: 0x0600239A RID: 9114 RVA: 0x00002082 File Offset: 0x00000282
[Token(Token = "0x600239A")]
[Address(RVA = "0x298CDF0", Offset = "0x298BBF0", VA = "0x18298CDF0")]
public static object CreateFromName(string name)
{
return null;
}
/// <summary>Creates a new instance of the specified cryptographic object with the specified arguments.</summary>
/// <param name="name">The simple name of the cryptographic object of which to create an instance.</param>
/// <param name="args">The arguments used to create the specified cryptographic object.</param>
/// <returns>A new instance of the specified cryptographic object.</returns>
/// <exception cref="T:System.ArgumentNullException">The <paramref name="name" /> parameter is <see langword="null" />.</exception>
/// <exception cref="T:System.Reflection.TargetInvocationException">The algorithm described by the <paramref name="name" /> parameter was used with Federal Information Processing Standards (FIPS) mode enabled, but is not FIPS compatible.</exception>
// Token: 0x0600239B RID: 9115 RVA: 0x00002082 File Offset: 0x00000282
[Token(Token = "0x600239B")]
[Address(RVA = "0x298BBA0", Offset = "0x298A9A0", VA = "0x18298BBA0")]
public static object CreateFromName(string name, params object[] args)
{
return null;
}
// Token: 0x0600239C RID: 9116 RVA: 0x00002082 File Offset: 0x00000282
[Token(Token = "0x600239C")]
[Address(RVA = "0x298D3E0", Offset = "0x298C1E0", VA = "0x18298D3E0")]
internal static string MapNameToOID(string name, object arg)
{
return null;
}
/// <summary>Gets the object identifier (OID) of the algorithm corresponding to the specified simple name.</summary>
/// <param name="name">The simple name of the algorithm for which to get the OID.</param>
/// <returns>The OID of the specified algorithm.</returns>
/// <exception cref="T:System.ArgumentNullException">The <paramref name="name" /> parameter is <see langword="null" />.</exception>
// Token: 0x0600239D RID: 9117 RVA: 0x00002082 File Offset: 0x00000282
[Token(Token = "0x600239D")]
[Address(RVA = "0x298D3F0", Offset = "0x298C1F0", VA = "0x18298D3F0")]
public static string MapNameToOID(string name)
{
return null;
}
/// <summary>Initializes a new instance of the <see cref="T:System.Security.Cryptography.CryptoConfig" /> class.</summary>
// Token: 0x0600239E RID: 9118 RVA: 0x00002050 File Offset: 0x00000250
[Token(Token = "0x600239E")]
[Address(RVA = "0x3F5100", Offset = "0x3F3F00", VA = "0x1803F5100")]
public CryptoConfig()
{
}
}
}
@@ -0,0 +1,405 @@
using System;
using System.IO;
using System.Runtime.CompilerServices;
using System.Runtime.InteropServices;
using System.Threading;
using System.Threading.Tasks;
using Cpp2IlInjected;
namespace System.Security.Cryptography
{
/// <summary>Defines a stream that links data streams to cryptographic transformations.</summary>
// Token: 0x020003DE RID: 990
[Token(Token = "0x20003DE")]
[ComVisible(true)]
public class CryptoStream : Stream, IDisposable
{
/// <summary>Initializes a new instance of the <see cref="T:System.Security.Cryptography.CryptoStream" /> class with a target data stream, the transformation to use, and the mode of the stream.</summary>
/// <param name="stream">The stream on which to perform the cryptographic transformation.</param>
/// <param name="transform">The cryptographic transformation that is to be performed on the stream.</param>
/// <param name="mode">One of the <see cref="T:System.Security.Cryptography.CryptoStreamMode" /> values.</param>
/// <exception cref="T:System.ArgumentException">
/// <paramref name="stream" /> is invalid.</exception>
// Token: 0x06002159 RID: 8537 RVA: 0x00002050 File Offset: 0x00000250
[Token(Token = "0x6002159")]
[Address(RVA = "0x298F0A0", Offset = "0x298DEA0", VA = "0x18298F0A0")]
public CryptoStream(Stream stream, ICryptoTransform transform, CryptoStreamMode mode)
{
}
/// <summary>Gets a value indicating whether the current <see cref="T:System.Security.Cryptography.CryptoStream" /> is readable.</summary>
/// <returns>
/// <see langword="true" /> if the current stream is readable; otherwise, <see langword="false" />.</returns>
// Token: 0x1700048F RID: 1167
// (get) Token: 0x0600215A RID: 8538 RVA: 0x000147F0 File Offset: 0x000129F0
[Token(Token = "0x1700048F")]
public override bool CanRead
{
[Token(Token = "0x600215A")]
[Address(RVA = "0xDF7080", Offset = "0xDF5E80", VA = "0x180DF7080", Slot = "7")]
get
{
return default(bool);
}
}
/// <summary>Gets a value indicating whether you can seek within the current <see cref="T:System.Security.Cryptography.CryptoStream" />.</summary>
/// <returns>Always <see langword="false" />.</returns>
// Token: 0x17000490 RID: 1168
// (get) Token: 0x0600215B RID: 8539 RVA: 0x00014808 File Offset: 0x00012A08
[Token(Token = "0x17000490")]
public override bool CanSeek
{
[Token(Token = "0x600215B")]
[Address(RVA = "0x403930", Offset = "0x402730", VA = "0x180403930", Slot = "8")]
get
{
return default(bool);
}
}
/// <summary>Gets a value indicating whether the current <see cref="T:System.Security.Cryptography.CryptoStream" /> is writable.</summary>
/// <returns>
/// <see langword="true" /> if the current stream is writable; otherwise, <see langword="false" />.</returns>
// Token: 0x17000491 RID: 1169
// (get) Token: 0x0600215C RID: 8540 RVA: 0x00014820 File Offset: 0x00012A20
[Token(Token = "0x17000491")]
public override bool CanWrite
{
[Token(Token = "0x600215C")]
[Address(RVA = "0xDF70A0", Offset = "0xDF5EA0", VA = "0x180DF70A0", Slot = "9")]
get
{
return default(bool);
}
}
/// <summary>Gets the length in bytes of the stream.</summary>
/// <returns>This property is not supported.</returns>
/// <exception cref="T:System.NotSupportedException">This property is not supported.</exception>
// Token: 0x17000492 RID: 1170
// (get) Token: 0x0600215D RID: 8541 RVA: 0x00014838 File Offset: 0x00012A38
[Token(Token = "0x17000492")]
public override long Length
{
[Token(Token = "0x600215D")]
[Address(RVA = "0x298F310", Offset = "0x298E110", VA = "0x18298F310", Slot = "10")]
get
{
return 0L;
}
}
/// <summary>Gets or sets the position within the current stream.</summary>
/// <returns>This property is not supported.</returns>
/// <exception cref="T:System.NotSupportedException">This property is not supported.</exception>
// Token: 0x17000493 RID: 1171
// (get) Token: 0x0600215E RID: 8542 RVA: 0x00014850 File Offset: 0x00012A50
// (set) Token: 0x0600215F RID: 8543 RVA: 0x00002050 File Offset: 0x00000250
[Token(Token = "0x17000493")]
public override long Position
{
[Token(Token = "0x600215E")]
[Address(RVA = "0x298F380", Offset = "0x298E180", VA = "0x18298F380", Slot = "11")]
get
{
return 0L;
}
[Token(Token = "0x600215F")]
[Address(RVA = "0x298F3F0", Offset = "0x298E1F0", VA = "0x18298F3F0", Slot = "12")]
set
{
}
}
/// <summary>Gets a value indicating whether the final buffer block has been written to the underlying stream.</summary>
/// <returns>
/// <see langword="true" /> if the final block has been flushed; otherwise, <see langword="false" />.</returns>
// Token: 0x17000494 RID: 1172
// (get) Token: 0x06002160 RID: 8544 RVA: 0x00014868 File Offset: 0x00012A68
[Token(Token = "0x17000494")]
public bool HasFlushedFinalBlock
{
[Token(Token = "0x6002160")]
[Address(RVA = "0x2806DE0", Offset = "0x2805BE0", VA = "0x182806DE0")]
get
{
return default(bool);
}
}
/// <summary>Updates the underlying data source or repository with the current state of the buffer, then clears the buffer.</summary>
/// <exception cref="T:System.Security.Cryptography.CryptographicException">The key is corrupt which can cause invalid padding to the stream.</exception>
/// <exception cref="T:System.NotSupportedException">The current stream is not writable.
/// -or-
/// The final block has already been transformed.</exception>
// Token: 0x06002161 RID: 8545 RVA: 0x00002050 File Offset: 0x00000250
[Token(Token = "0x6002161")]
[Address(RVA = "0x298DB20", Offset = "0x298C920", VA = "0x18298DB20")]
public void FlushFinalBlock()
{
}
/// <summary>Clears all buffers for the current stream and causes any buffered data to be written to the underlying device.</summary>
// Token: 0x06002162 RID: 8546 RVA: 0x00002050 File Offset: 0x00000250
[Token(Token = "0x6002162")]
[Address(RVA = "0x402080", Offset = "0x400E80", VA = "0x180402080", Slot = "17")]
public override void Flush()
{
}
/// <summary>Clears all buffers for the current stream asynchronously, causes any buffered data to be written to the underlying device, and monitors cancellation requests.</summary>
/// <param name="cancellationToken">The token to monitor for cancellation requests. The default value is <see cref="P:System.Threading.CancellationToken.None" />.</param>
/// <returns>A task that represents the asynchronous flush operation.</returns>
/// <exception cref="T:System.ObjectDisposedException">The stream has been disposed.</exception>
// Token: 0x06002163 RID: 8547 RVA: 0x00002082 File Offset: 0x00000282
[Token(Token = "0x6002163")]
[Address(RVA = "0x298DA00", Offset = "0x298C800", VA = "0x18298DA00", Slot = "18")]
public override Task FlushAsync(CancellationToken cancellationToken)
{
return null;
}
/// <summary>Sets the position within the current stream.</summary>
/// <param name="offset">A byte offset relative to the <paramref name="origin" /> parameter.</param>
/// <param name="origin">A <see cref="T:System.IO.SeekOrigin" /> object indicating the reference point used to obtain the new position.</param>
/// <returns>This method is not supported.</returns>
/// <exception cref="T:System.NotSupportedException">This method is not supported.</exception>
// Token: 0x06002164 RID: 8548 RVA: 0x00014880 File Offset: 0x00012A80
[Token(Token = "0x6002164")]
[Address(RVA = "0x298E770", Offset = "0x298D570", VA = "0x18298E770", Slot = "25")]
public override long Seek(long offset, SeekOrigin origin)
{
return 0L;
}
/// <summary>Sets the length of the current stream.</summary>
/// <param name="value">The desired length of the current stream in bytes.</param>
/// <exception cref="T:System.NotSupportedException">This property exists only to support inheritance from <see cref="T:System.IO.Stream" />, and cannot be used.</exception>
// Token: 0x06002165 RID: 8549 RVA: 0x00002050 File Offset: 0x00000250
[Token(Token = "0x6002165")]
[Address(RVA = "0x298E7E0", Offset = "0x298D5E0", VA = "0x18298E7E0", Slot = "26")]
public override void SetLength(long value)
{
}
/// <summary>Reads a sequence of bytes from the current stream and advances the position within the stream by the number of bytes read.</summary>
/// <param name="buffer">An array of bytes. A maximum of <paramref name="count" /> bytes are read from the current stream and stored in <paramref name="buffer" />.</param>
/// <param name="offset">The byte offset in <paramref name="buffer" /> at which to begin storing the data read from the current stream.</param>
/// <param name="count">The maximum number of bytes to be read from the current stream.</param>
/// <returns>The total number of bytes read into the buffer. This can be less than the number of bytes requested if that many bytes are not currently available, or zero if the end of the stream has been reached.</returns>
/// <exception cref="T:System.NotSupportedException">The <see cref="T:System.Security.Cryptography.CryptoStreamMode" /> associated with current <see cref="T:System.Security.Cryptography.CryptoStream" /> object does not match the underlying stream. For example, this exception is thrown when using <see cref="F:System.Security.Cryptography.CryptoStreamMode.Read" /> with an underlying stream that is write only.</exception>
/// <exception cref="T:System.ArgumentOutOfRangeException">The <paramref name="offset" /> parameter is less than zero.
/// -or-
/// The <paramref name="count" /> parameter is less than zero.</exception>
/// <exception cref="T:System.ArgumentException">Thesum of the <paramref name="count" /> and <paramref name="offset" /> parameters is longer than the length of the buffer.</exception>
// Token: 0x06002166 RID: 8550 RVA: 0x00014898 File Offset: 0x00012A98
[Token(Token = "0x6002166")]
[Address(RVA = "0x298E210", Offset = "0x298D010", VA = "0x18298E210", Slot = "27")]
public override int Read([In] [Out] byte[] buffer, int offset, int count)
{
return 0;
}
/// <summary>Reads a sequence of bytes from the current stream asynchronously, advances the position within the stream by the number of bytes read, and monitors cancellation requests.</summary>
/// <param name="buffer">The buffer to write the data into.</param>
/// <param name="offset">The byte offset in <paramref name="buffer" /> at which to begin writing data from the stream.</param>
/// <param name="count">The maximum number of bytes to read.</param>
/// <param name="cancellationToken">The token to monitor for cancellation requests. The default value is <see cref="P:System.Threading.CancellationToken.None" />.</param>
/// <returns>A task that represents the asynchronous read operation. The value of the task object's <paramref name="TResult" /> parameter contains the total number of bytes read into the buffer. The result can be less than the number of bytes requested if the number of bytes currently available is less than the requested number, or it can be 0 (zero) if the end of the stream has been reached.</returns>
/// <exception cref="T:System.ArgumentNullException">
/// <paramref name="buffer" /> is <see langword="null" />.</exception>
/// <exception cref="T:System.ArgumentOutOfRangeException">
/// <paramref name="offset" /> or <paramref name="count" /> is negative.</exception>
/// <exception cref="T:System.ArgumentException">The sum of <paramref name="offset" /> and <paramref name="count" /> is larger than the buffer length.</exception>
/// <exception cref="T:System.NotSupportedException">The stream does not support reading.</exception>
/// <exception cref="T:System.ObjectDisposedException">The stream has been disposed.</exception>
/// <exception cref="T:System.InvalidOperationException">The stream is currently in use by a previous read operation.</exception>
// Token: 0x06002167 RID: 8551 RVA: 0x00002082 File Offset: 0x00000282
[Token(Token = "0x6002167")]
[Address(RVA = "0x298DEB0", Offset = "0x298CCB0", VA = "0x18298DEB0", Slot = "21")]
public override Task<int> ReadAsync(byte[] buffer, int offset, int count, CancellationToken cancellationToken)
{
return null;
}
// Token: 0x06002168 RID: 8552 RVA: 0x00002082 File Offset: 0x00000282
[Token(Token = "0x6002168")]
[Address(RVA = "0x298DD90", Offset = "0x298CB90", VA = "0x18298DD90")]
private Task<int> ReadAsyncInternal(byte[] buffer, int offset, int count, CancellationToken cancellationToken)
{
return null;
}
/// <summary>Writes a sequence of bytes to the current <see cref="T:System.Security.Cryptography.CryptoStream" /> and advances the current position within the stream by the number of bytes written.</summary>
/// <param name="buffer">An array of bytes. This method copies <paramref name="count" /> bytes from <paramref name="buffer" /> to the current stream.</param>
/// <param name="offset">The byte offset in <paramref name="buffer" /> at which to begin copying bytes to the current stream.</param>
/// <param name="count">The number of bytes to be written to the current stream.</param>
/// <exception cref="T:System.NotSupportedException">The <see cref="T:System.Security.Cryptography.CryptoStreamMode" /> associated with current <see cref="T:System.Security.Cryptography.CryptoStream" /> object does not match the underlying stream. For example, this exception is thrown when using <see cref="F:System.Security.Cryptography.CryptoStreamMode.Write" /> with an underlying stream that is read only.</exception>
/// <exception cref="T:System.ArgumentOutOfRangeException">The <paramref name="offset" /> parameter is less than zero.
/// -or-
/// The <paramref name="count" /> parameter is less than zero.</exception>
/// <exception cref="T:System.ArgumentException">The sum of the <paramref name="count" /> and <paramref name="offset" /> parameters is longer than the length of the buffer.</exception>
// Token: 0x06002169 RID: 8553 RVA: 0x00002050 File Offset: 0x00000250
[Token(Token = "0x6002169")]
[Address(RVA = "0x298ECB0", Offset = "0x298DAB0", VA = "0x18298ECB0", Slot = "29")]
public override void Write(byte[] buffer, int offset, int count)
{
}
/// <summary>Writes a sequence of bytes to the current stream asynchronously, advances the current position within the stream by the number of bytes written, and monitors cancellation requests.</summary>
/// <param name="buffer">The buffer to write data from.</param>
/// <param name="offset">The zero-based byte offset in <paramref name="buffer" /> from which to begin writing bytes to the stream.</param>
/// <param name="count">The maximum number of bytes to write.</param>
/// <param name="cancellationToken">The token to monitor for cancellation requests. The default value is <see cref="P:System.Threading.CancellationToken.None" />.</param>
/// <returns>A task that represents the asynchronous write operation.</returns>
/// <exception cref="T:System.ArgumentNullException">
/// <paramref name="buffer" /> is <see langword="null" />.</exception>
/// <exception cref="T:System.ArgumentOutOfRangeException">
/// <paramref name="offset" /> or <paramref name="count" /> is negative.</exception>
/// <exception cref="T:System.ArgumentException">The sum of <paramref name="offset" /> and <paramref name="count" /> is larger than the buffer length.</exception>
/// <exception cref="T:System.NotSupportedException">The stream does not support writing.</exception>
/// <exception cref="T:System.ObjectDisposedException">The stream has been disposed.</exception>
/// <exception cref="T:System.InvalidOperationException">The stream is currently in use by a previous write operation.</exception>
// Token: 0x0600216A RID: 8554 RVA: 0x00002082 File Offset: 0x00000282
[Token(Token = "0x600216A")]
[Address(RVA = "0x298E960", Offset = "0x298D760", VA = "0x18298E960", Slot = "24")]
public override Task WriteAsync(byte[] buffer, int offset, int count, CancellationToken cancellationToken)
{
return null;
}
// Token: 0x0600216B RID: 8555 RVA: 0x00002082 File Offset: 0x00000282
[Token(Token = "0x600216B")]
[Address(RVA = "0x298E850", Offset = "0x298D650", VA = "0x18298E850")]
private Task WriteAsyncInternal(byte[] buffer, int offset, int count, CancellationToken cancellationToken)
{
return null;
}
/// <summary>Releases all resources used by the <see cref="T:System.Security.Cryptography.CryptoStream" />.</summary>
// Token: 0x0600216C RID: 8556 RVA: 0x00002050 File Offset: 0x00000250
[Token(Token = "0x600216C")]
[Address(RVA = "0x579920", Offset = "0x578720", VA = "0x180579920")]
public void Clear()
{
}
/// <summary>Releases the unmanaged resources used by the <see cref="T:System.Security.Cryptography.CryptoStream" /> 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: 0x0600216D RID: 8557 RVA: 0x00002050 File Offset: 0x00000250
[Token(Token = "0x600216D")]
[Address(RVA = "0x298D8C0", Offset = "0x298C6C0", VA = "0x18298D8C0", Slot = "16")]
protected override void Dispose(bool disposing)
{
}
// Token: 0x0600216E RID: 8558 RVA: 0x00002050 File Offset: 0x00000250
[Token(Token = "0x600216E")]
[Address(RVA = "0x298DD00", Offset = "0x298CB00", VA = "0x18298DD00")]
private void InitializeBuffer()
{
}
// Token: 0x04001320 RID: 4896
[global::Cpp2IlInjected.FieldOffset(Offset = "0x28")]
[Token(Token = "0x4001320")]
private Stream _stream;
// Token: 0x04001321 RID: 4897
[global::Cpp2IlInjected.FieldOffset(Offset = "0x30")]
[Token(Token = "0x4001321")]
private ICryptoTransform _Transform;
// Token: 0x04001322 RID: 4898
[global::Cpp2IlInjected.FieldOffset(Offset = "0x38")]
[Token(Token = "0x4001322")]
private byte[] _InputBuffer;
// Token: 0x04001323 RID: 4899
[global::Cpp2IlInjected.FieldOffset(Offset = "0x40")]
[Token(Token = "0x4001323")]
private int _InputBufferIndex;
// Token: 0x04001324 RID: 4900
[global::Cpp2IlInjected.FieldOffset(Offset = "0x44")]
[Token(Token = "0x4001324")]
private int _InputBlockSize;
// Token: 0x04001325 RID: 4901
[global::Cpp2IlInjected.FieldOffset(Offset = "0x48")]
[Token(Token = "0x4001325")]
private byte[] _OutputBuffer;
// Token: 0x04001326 RID: 4902
[global::Cpp2IlInjected.FieldOffset(Offset = "0x50")]
[Token(Token = "0x4001326")]
private int _OutputBufferIndex;
// Token: 0x04001327 RID: 4903
[global::Cpp2IlInjected.FieldOffset(Offset = "0x54")]
[Token(Token = "0x4001327")]
private int _OutputBlockSize;
// Token: 0x04001328 RID: 4904
[global::Cpp2IlInjected.FieldOffset(Offset = "0x58")]
[Token(Token = "0x4001328")]
private CryptoStreamMode _transformMode;
// Token: 0x04001329 RID: 4905
[global::Cpp2IlInjected.FieldOffset(Offset = "0x5C")]
[Token(Token = "0x4001329")]
private bool _canRead;
// Token: 0x0400132A RID: 4906
[global::Cpp2IlInjected.FieldOffset(Offset = "0x5D")]
[Token(Token = "0x400132A")]
private bool _canWrite;
// Token: 0x0400132B RID: 4907
[global::Cpp2IlInjected.FieldOffset(Offset = "0x5E")]
[Token(Token = "0x400132B")]
private bool _finalBlockTransformed;
// Token: 0x020003DF RID: 991
[Token(Token = "0x20003DF")]
private struct HopToThreadPoolAwaitable : INotifyCompletion
{
// Token: 0x0600216F RID: 8559 RVA: 0x000148B0 File Offset: 0x00012AB0
[Token(Token = "0x600216F")]
[Address(RVA = "0x60EA40", Offset = "0x60D840", VA = "0x18060EA40")]
public CryptoStream.HopToThreadPoolAwaitable GetAwaiter()
{
return default(CryptoStream.HopToThreadPoolAwaitable);
}
// Token: 0x17000495 RID: 1173
// (get) Token: 0x06002170 RID: 8560 RVA: 0x000148C8 File Offset: 0x00012AC8
[Token(Token = "0x17000495")]
public bool IsCompleted
{
[Token(Token = "0x6002170")]
[Address(RVA = "0x403930", Offset = "0x402730", VA = "0x180403930")]
get
{
return default(bool);
}
}
// Token: 0x06002171 RID: 8561 RVA: 0x00002050 File Offset: 0x00000250
[Token(Token = "0x6002171")]
[Address(RVA = "0x298F680", Offset = "0x298E480", VA = "0x18298F680", Slot = "4")]
public void OnCompleted(Action continuation)
{
}
// Token: 0x06002172 RID: 8562 RVA: 0x00002050 File Offset: 0x00000250
[Token(Token = "0x6002172")]
[Address(RVA = "0x402080", Offset = "0x400E80", VA = "0x180402080")]
public void GetResult()
{
}
}
}
}
@@ -0,0 +1,23 @@
using System;
using System.Runtime.InteropServices;
using Cpp2IlInjected;
namespace System.Security.Cryptography
{
/// <summary>Specifies the mode of a cryptographic stream.</summary>
// Token: 0x020003DD RID: 989
[Token(Token = "0x20003DD")]
[ComVisible(true)]
[Serializable]
public enum CryptoStreamMode
{
/// <summary>Read access to a cryptographic stream.</summary>
// Token: 0x0400131E RID: 4894
[Token(Token = "0x400131E")]
Read,
/// <summary>Write access to a cryptographic stream.</summary>
// Token: 0x0400131F RID: 4895
[Token(Token = "0x400131F")]
Write
}
}
@@ -0,0 +1,90 @@
using System;
using System.Runtime.InteropServices;
using System.Runtime.Serialization;
using Cpp2IlInjected;
namespace System.Security.Cryptography
{
/// <summary>The exception that is thrown when an error occurs during a cryptographic operation.</summary>
// Token: 0x020003D9 RID: 985
[Token(Token = "0x20003D9")]
[ComVisible(true)]
[Serializable]
public class CryptographicException : SystemException
{
/// <summary>Initializes a new instance of the <see cref="T:System.Security.Cryptography.CryptographicException" /> class with default properties.</summary>
// Token: 0x0600213D RID: 8509 RVA: 0x00002050 File Offset: 0x00000250
[Token(Token = "0x600213D")]
[Address(RVA = "0x298F4F0", Offset = "0x298E2F0", VA = "0x18298F4F0")]
public CryptographicException()
{
}
/// <summary>Initializes a new instance of the <see cref="T:System.Security.Cryptography.CryptographicException" /> class with a specified error message.</summary>
/// <param name="message">The error message that explains the reason for the exception.</param>
// Token: 0x0600213E RID: 8510 RVA: 0x00002050 File Offset: 0x00000250
[Token(Token = "0x600213E")]
[Address(RVA = "0x298F4C0", Offset = "0x298E2C0", VA = "0x18298F4C0")]
public CryptographicException(string message)
{
}
/// <summary>Initializes a new instance of the <see cref="T:System.Security.Cryptography.CryptographicException" /> class with a specified error message in the specified format.</summary>
/// <param name="format">The format used to output the error message.</param>
/// <param name="insert">The error message that explains the reason for the exception.</param>
// Token: 0x0600213F RID: 8511 RVA: 0x00002050 File Offset: 0x00000250
[Token(Token = "0x600213F")]
[Address(RVA = "0x298F580", Offset = "0x298E380", VA = "0x18298F580")]
public CryptographicException(string format, string insert)
{
}
/// <summary>Initializes a new instance of the <see cref="T:System.Security.Cryptography.CryptographicException" /> class with a specified error message and a reference to the inner exception that is the cause of this exception.</summary>
/// <param name="message">The error message that explains the reason for the exception.</param>
/// <param name="inner">The exception that is the cause of the current exception. If the <paramref name="inner" /> parameter is not <see langword="null" />, the current exception is raised in a <see langword="catch" /> block that handles the inner exception.</param>
// Token: 0x06002140 RID: 8512 RVA: 0x00002050 File Offset: 0x00000250
[Token(Token = "0x6002140")]
[Address(RVA = "0x298F550", Offset = "0x298E350", VA = "0x18298F550")]
public CryptographicException(string message, Exception inner)
{
}
/// <summary>Initializes a new instance of the <see cref="T:System.Security.Cryptography.CryptographicException" /> class with the specified <see langword="HRESULT" /> error code.</summary>
/// <param name="hr">The <see langword="HRESULT" /> error code.</param>
// Token: 0x06002141 RID: 8513 RVA: 0x00002050 File Offset: 0x00000250
[Token(Token = "0x6002141")]
[Address(RVA = "0x298F620", Offset = "0x298E420", VA = "0x18298F620")]
public CryptographicException(int hr)
{
}
/// <summary>Initializes a new instance of the <see cref="T:System.Security.Cryptography.CryptographicException" /> class with serialized data.</summary>
/// <param name="info">The object that holds the serialized object data.</param>
/// <param name="context">The contextual information about the source or destination.</param>
// Token: 0x06002142 RID: 8514 RVA: 0x00002050 File Offset: 0x00000250
[Token(Token = "0x6002142")]
[Address(RVA = "0x3F60E0", Offset = "0x3F4EE0", VA = "0x1803F60E0")]
protected CryptographicException(SerializationInfo info, StreamingContext context)
{
}
// Token: 0x06002143 RID: 8515 RVA: 0x00002050 File Offset: 0x00000250
[Token(Token = "0x6002143")]
[Address(RVA = "0x298F460", Offset = "0x298E260", VA = "0x18298F460")]
private static void ThrowCryptographicException(int hr)
{
}
// Token: 0x04001308 RID: 4872
[Token(Token = "0x4001308")]
private const int FORMAT_MESSAGE_IGNORE_INSERTS = 512;
// Token: 0x04001309 RID: 4873
[Token(Token = "0x4001309")]
private const int FORMAT_MESSAGE_FROM_SYSTEM = 4096;
// Token: 0x0400130A RID: 4874
[Token(Token = "0x400130A")]
private const int FORMAT_MESSAGE_ARGUMENT_ARRAY = 8192;
}
}
@@ -0,0 +1,62 @@
using System;
using System.Runtime.InteropServices;
using System.Runtime.Serialization;
using Cpp2IlInjected;
namespace System.Security.Cryptography
{
/// <summary>The exception that is thrown when an unexpected operation occurs during a cryptographic operation.</summary>
// Token: 0x020003DA RID: 986
[Token(Token = "0x20003DA")]
[ComVisible(true)]
[Serializable]
public class CryptographicUnexpectedOperationException : CryptographicException
{
/// <summary>Initializes a new instance of the <see cref="T:System.Security.Cryptography.CryptographicUnexpectedOperationException" /> class with default properties.</summary>
// Token: 0x06002144 RID: 8516 RVA: 0x00002050 File Offset: 0x00000250
[Token(Token = "0x6002144")]
[Address(RVA = "0x2DA1C00", Offset = "0x2DA0A00", VA = "0x182DA1C00")]
public CryptographicUnexpectedOperationException()
{
}
/// <summary>Initializes a new instance of the <see cref="T:System.Security.Cryptography.CryptographicUnexpectedOperationException" /> class with a specified error message.</summary>
/// <param name="message">The error message that explains the reason for the exception.</param>
// Token: 0x06002145 RID: 8517 RVA: 0x00002050 File Offset: 0x00000250
[Token(Token = "0x6002145")]
[Address(RVA = "0x2DA1C30", Offset = "0x2DA0A30", VA = "0x182DA1C30")]
public CryptographicUnexpectedOperationException(string message)
{
}
/// <summary>Initializes a new instance of the <see cref="T:System.Security.Cryptography.CryptographicUnexpectedOperationException" /> class with a specified error message in the specified format.</summary>
/// <param name="format">The format used to output the error message.</param>
/// <param name="insert">The error message that explains the reason for the exception.</param>
// Token: 0x06002146 RID: 8518 RVA: 0x00002050 File Offset: 0x00000250
[Token(Token = "0x6002146")]
[Address(RVA = "0x2DA1B60", Offset = "0x2DA0960", VA = "0x182DA1B60")]
public CryptographicUnexpectedOperationException(string format, string insert)
{
}
/// <summary>Initializes a new instance of the <see cref="T:System.Security.Cryptography.CryptographicUnexpectedOperationException" /> class with a specified error message and a reference to the inner exception that is the cause of this exception.</summary>
/// <param name="message">The error message that explains the reason for the exception.</param>
/// <param name="inner">The exception that is the cause of the current exception. If the <paramref name="inner" /> parameter is not <see langword="null" />, the current exception is raised in a <see langword="catch" /> block that handles the inner exception.</param>
// Token: 0x06002147 RID: 8519 RVA: 0x00002050 File Offset: 0x00000250
[Token(Token = "0x6002147")]
[Address(RVA = "0x2DA1B30", Offset = "0x2DA0930", VA = "0x182DA1B30")]
public CryptographicUnexpectedOperationException(string message, Exception inner)
{
}
/// <summary>Initializes a new instance of the <see cref="T:System.Security.Cryptography.CryptographicUnexpectedOperationException" /> class with serialized data.</summary>
/// <param name="info">The object that holds the serialized object data.</param>
/// <param name="context">The contextual information about the source or destination.</param>
// Token: 0x06002148 RID: 8520 RVA: 0x00002050 File Offset: 0x00000250
[Token(Token = "0x6002148")]
[Address(RVA = "0x4E7140", Offset = "0x4E5F40", VA = "0x1804E7140")]
protected CryptographicUnexpectedOperationException(SerializationInfo info, StreamingContext context)
{
}
}
}
@@ -0,0 +1,18 @@
using System;
using Cpp2IlInjected;
namespace System.Security.Cryptography
{
// Token: 0x0200041C RID: 1052
[Token(Token = "0x200041C")]
[Serializable]
internal enum CspAlgorithmType
{
// Token: 0x040013E9 RID: 5097
[Token(Token = "0x40013E9")]
Rsa,
// Token: 0x040013EA RID: 5098
[Token(Token = "0x40013EA")]
Dss
}
}
@@ -0,0 +1,254 @@
using System;
using System.Runtime.InteropServices;
using System.Security.AccessControl;
using Cpp2IlInjected;
namespace System.Security.Cryptography
{
/// <summary>Provides additional information about a cryptographic key pair. This class cannot be inherited.</summary>
// Token: 0x02000421 RID: 1057
[Token(Token = "0x2000421")]
[ComVisible(true)]
public sealed class CspKeyContainerInfo
{
/// <summary>Initializes a new instance of the <see cref="T:System.Security.Cryptography.CspKeyContainerInfo" /> class using the specified parameters.</summary>
/// <param name="parameters">A <see cref="T:System.Security.Cryptography.CspParameters" /> object that provides information about the key.</param>
// Token: 0x0600239F RID: 9119 RVA: 0x00002050 File Offset: 0x00000250
[Token(Token = "0x600239F")]
[Address(RVA = "0x1241240", Offset = "0x1240040", VA = "0x181241240")]
public CspKeyContainerInfo(CspParameters parameters)
{
}
/// <summary>Gets a value indicating whether a key in a key container is accessible.</summary>
/// <returns>
/// <see langword="true" /> if the key is accessible; otherwise, <see langword="false" />.</returns>
/// <exception cref="T:System.NotSupportedException">The key type is not supported.</exception>
// Token: 0x170004E9 RID: 1257
// (get) Token: 0x060023A0 RID: 9120 RVA: 0x00015378 File Offset: 0x00013578
[Token(Token = "0x170004E9")]
public bool Accessible
{
[Token(Token = "0x60023A0")]
[Address(RVA = "0x460D40", Offset = "0x45FB40", VA = "0x180460D40")]
get
{
return default(bool);
}
}
/// <summary>Gets a <see cref="T:System.Security.AccessControl.CryptoKeySecurity" /> object that represents access rights and audit rules for a container.</summary>
/// <returns>A <see cref="T:System.Security.AccessControl.CryptoKeySecurity" /> object that represents access rights and audit rules for a container.</returns>
/// <exception cref="T:System.Security.Cryptography.CryptographicException">The key type is not supported.</exception>
/// <exception cref="T:System.NotSupportedException">The cryptographic service provider cannot be found.
/// -or-
/// The key container was not found.</exception>
// Token: 0x170004EA RID: 1258
// (get) Token: 0x060023A1 RID: 9121 RVA: 0x00002082 File Offset: 0x00000282
[Token(Token = "0x170004EA")]
public CryptoKeySecurity CryptoKeySecurity
{
[Token(Token = "0x60023A1")]
[Address(RVA = "0x43E630", Offset = "0x43D430", VA = "0x18043E630")]
get
{
return null;
}
}
/// <summary>Gets a value indicating whether a key can be exported from a key container.</summary>
/// <returns>
/// <see langword="true" /> if the key can be exported; otherwise, <see langword="false" />.</returns>
/// <exception cref="T:System.NotSupportedException">The key type is not supported.</exception>
/// <exception cref="T:System.Security.Cryptography.CryptographicException">The cryptographic service provider cannot be found.
/// -or-
/// The key container was not found.</exception>
// Token: 0x170004EB RID: 1259
// (get) Token: 0x060023A2 RID: 9122 RVA: 0x00015390 File Offset: 0x00013590
[Token(Token = "0x170004EB")]
public bool Exportable
{
[Token(Token = "0x60023A2")]
[Address(RVA = "0x460D40", Offset = "0x45FB40", VA = "0x180460D40")]
get
{
return default(bool);
}
}
/// <summary>Gets a value indicating whether a key is a hardware key.</summary>
/// <returns>
/// <see langword="true" /> if the key is a hardware key; otherwise, <see langword="false" />.</returns>
/// <exception cref="T:System.Security.Cryptography.CryptographicException">The cryptographic service provider cannot be found.</exception>
// Token: 0x170004EC RID: 1260
// (get) Token: 0x060023A3 RID: 9123 RVA: 0x000153A8 File Offset: 0x000135A8
[Token(Token = "0x170004EC")]
public bool HardwareDevice
{
[Token(Token = "0x60023A3")]
[Address(RVA = "0x403930", Offset = "0x402730", VA = "0x180403930")]
get
{
return default(bool);
}
}
/// <summary>Gets a key container name.</summary>
/// <returns>The key container name.</returns>
// Token: 0x170004ED RID: 1261
// (get) Token: 0x060023A4 RID: 9124 RVA: 0x00002082 File Offset: 0x00000282
[Token(Token = "0x170004ED")]
public string KeyContainerName
{
[Token(Token = "0x60023A4")]
[Address(RVA = "0x434F10", Offset = "0x433D10", VA = "0x180434F10")]
get
{
return null;
}
}
/// <summary>Gets a value that describes whether an asymmetric key was created as a signature key or an exchange key.</summary>
/// <returns>One of the <see cref="T:System.Security.Cryptography.KeyNumber" /> values that describes whether an asymmetric key was created as a signature key or an exchange key.</returns>
// Token: 0x170004EE RID: 1262
// (get) Token: 0x060023A5 RID: 9125 RVA: 0x000153C0 File Offset: 0x000135C0
[Token(Token = "0x170004EE")]
public KeyNumber KeyNumber
{
[Token(Token = "0x60023A5")]
[Address(RVA = "0x2825CC0", Offset = "0x2824AC0", VA = "0x182825CC0")]
get
{
return (KeyNumber)0;
}
}
/// <summary>Gets a value indicating whether a key is from a machine key set.</summary>
/// <returns>
/// <see langword="true" /> if the key is from the machine key set; otherwise, <see langword="false" />.</returns>
// Token: 0x170004EF RID: 1263
// (get) Token: 0x060023A6 RID: 9126 RVA: 0x000153D8 File Offset: 0x000135D8
[Token(Token = "0x170004EF")]
public bool MachineKeyStore
{
[Token(Token = "0x60023A6")]
[Address(RVA = "0x403930", Offset = "0x402730", VA = "0x180403930")]
get
{
return default(bool);
}
}
/// <summary>Gets a value indicating whether a key pair is protected.</summary>
/// <returns>
/// <see langword="true" /> if the key pair is protected; otherwise, <see langword="false" />.</returns>
/// <exception cref="T:System.NotSupportedException">The key type is not supported.</exception>
/// <exception cref="T:System.Security.Cryptography.CryptographicException">The cryptographic service provider cannot be found.
/// -or-
/// The key container was not found.</exception>
// Token: 0x170004F0 RID: 1264
// (get) Token: 0x060023A7 RID: 9127 RVA: 0x000153F0 File Offset: 0x000135F0
[Token(Token = "0x170004F0")]
public bool Protected
{
[Token(Token = "0x60023A7")]
[Address(RVA = "0x403930", Offset = "0x402730", VA = "0x180403930")]
get
{
return default(bool);
}
}
/// <summary>Gets the provider name of a key.</summary>
/// <returns>The provider name.</returns>
// Token: 0x170004F1 RID: 1265
// (get) Token: 0x060023A8 RID: 9128 RVA: 0x00002082 File Offset: 0x00000282
[Token(Token = "0x170004F1")]
public string ProviderName
{
[Token(Token = "0x60023A8")]
[Address(RVA = "0x434BE0", Offset = "0x4339E0", VA = "0x180434BE0")]
get
{
return null;
}
}
/// <summary>Gets the provider type of a key.</summary>
/// <returns>The provider type. The default is 1.</returns>
// Token: 0x170004F2 RID: 1266
// (get) Token: 0x060023A9 RID: 9129 RVA: 0x00015408 File Offset: 0x00013608
[Token(Token = "0x170004F2")]
public int ProviderType
{
[Token(Token = "0x60023A9")]
[Address(RVA = "0x2837530", Offset = "0x2836330", VA = "0x182837530")]
get
{
return 0;
}
}
/// <summary>Gets a value indicating whether a key container was randomly generated by a managed cryptography class.</summary>
/// <returns>
/// <see langword="true" /> if the key container was randomly generated; otherwise, <see langword="false" />.</returns>
// Token: 0x170004F3 RID: 1267
// (get) Token: 0x060023AA RID: 9130 RVA: 0x00015420 File Offset: 0x00013620
[Token(Token = "0x170004F3")]
public bool RandomlyGenerated
{
[Token(Token = "0x60023AA")]
[Address(RVA = "0x42C2C0", Offset = "0x42B0C0", VA = "0x18042C2C0")]
get
{
return default(bool);
}
}
/// <summary>Gets a value indicating whether a key can be removed from a key container.</summary>
/// <returns>
/// <see langword="true" /> if the key is removable; otherwise, <see langword="false" />.</returns>
/// <exception cref="T:System.Security.Cryptography.CryptographicException">The cryptographic service provider (CSP) was not found.</exception>
// Token: 0x170004F4 RID: 1268
// (get) Token: 0x060023AB RID: 9131 RVA: 0x00015438 File Offset: 0x00013638
[Token(Token = "0x170004F4")]
public bool Removable
{
[Token(Token = "0x60023AB")]
[Address(RVA = "0x403930", Offset = "0x402730", VA = "0x180403930")]
get
{
return default(bool);
}
}
/// <summary>Gets a unique key container name.</summary>
/// <returns>The unique key container name.</returns>
/// <exception cref="T:System.NotSupportedException">The key type is not supported.</exception>
/// <exception cref="T:System.Security.Cryptography.CryptographicException">The cryptographic service provider cannot be found.
/// -or-
/// The key container was not found.</exception>
// Token: 0x170004F5 RID: 1269
// (get) Token: 0x060023AC RID: 9132 RVA: 0x00002082 File Offset: 0x00000282
[Token(Token = "0x170004F5")]
public string UniqueKeyContainerName
{
[Token(Token = "0x60023AC")]
[Address(RVA = "0x2DA1C60", Offset = "0x2DA0A60", VA = "0x182DA1C60")]
get
{
return null;
}
}
// Token: 0x04001433 RID: 5171
[global::Cpp2IlInjected.FieldOffset(Offset = "0x10")]
[Token(Token = "0x4001433")]
private CspParameters _params;
// Token: 0x04001434 RID: 5172
[global::Cpp2IlInjected.FieldOffset(Offset = "0x18")]
[Token(Token = "0x4001434")]
internal bool _random;
}
}
@@ -0,0 +1,221 @@
using System;
using System.Runtime.InteropServices;
using System.Security.AccessControl;
using Cpp2IlInjected;
namespace System.Security.Cryptography
{
/// <summary>Contains parameters that are passed to the cryptographic service provider (CSP) that performs cryptographic computations. This class cannot be inherited.</summary>
// Token: 0x020003DC RID: 988
[Token(Token = "0x20003DC")]
[ComVisible(true)]
public sealed class CspParameters
{
/// <summary>Represents the flags for <see cref="T:System.Security.Cryptography.CspParameters" /> that modify the behavior of the cryptographic service provider (CSP).</summary>
/// <returns>An enumeration value, or a bitwise combination of enumeration values.</returns>
/// <exception cref="T:System.ArgumentException">Value is not a valid enumeration value.</exception>
// Token: 0x1700048B RID: 1163
// (get) Token: 0x06002149 RID: 8521 RVA: 0x000147C0 File Offset: 0x000129C0
// (set) Token: 0x0600214A RID: 8522 RVA: 0x00002050 File Offset: 0x00000250
[Token(Token = "0x1700048B")]
public CspProviderFlags Flags
{
[Token(Token = "0x6002149")]
[Address(RVA = "0x42EED0", Offset = "0x42DCD0", VA = "0x18042EED0")]
get
{
return CspProviderFlags.NoFlags;
}
[Token(Token = "0x600214A")]
[Address(RVA = "0x2DA1FA0", Offset = "0x2DA0DA0", VA = "0x182DA1FA0")]
set
{
}
}
/// <summary>Gets or sets a <see cref="T:System.Security.AccessControl.CryptoKeySecurity" /> object that represents access rights and audit rules for a container.</summary>
/// <returns>A <see cref="T:System.Security.AccessControl.CryptoKeySecurity" /> object that represents access rights and audit rules for a container.</returns>
// Token: 0x1700048C RID: 1164
// (get) Token: 0x0600214B RID: 8523 RVA: 0x00002082 File Offset: 0x00000282
// (set) Token: 0x0600214C RID: 8524 RVA: 0x00002050 File Offset: 0x00000250
[Token(Token = "0x1700048C")]
public CryptoKeySecurity CryptoKeySecurity
{
[Token(Token = "0x600214B")]
[Address(RVA = "0x3FA180", Offset = "0x3F8F80", VA = "0x1803FA180")]
get
{
return null;
}
[Token(Token = "0x600214C")]
[Address(RVA = "0x4437E0", Offset = "0x4425E0", VA = "0x1804437E0")]
set
{
}
}
/// <summary>Gets or sets a password associated with a smart card key.</summary>
/// <returns>A password associated with a smart card key.</returns>
// Token: 0x1700048D RID: 1165
// (get) Token: 0x0600214D RID: 8525 RVA: 0x00002082 File Offset: 0x00000282
// (set) Token: 0x0600214E RID: 8526 RVA: 0x00002050 File Offset: 0x00000250
[Token(Token = "0x1700048D")]
public SecureString KeyPassword
{
[Token(Token = "0x600214D")]
[Address(RVA = "0x3F63D0", Offset = "0x3F51D0", VA = "0x1803F63D0")]
get
{
return null;
}
[Token(Token = "0x600214E")]
[Address(RVA = "0x2DA2080", Offset = "0x2DA0E80", VA = "0x182DA2080")]
set
{
}
}
/// <summary>Gets or sets a handle to the unmanaged parent window for a smart card password dialog box.</summary>
/// <returns>A handle to the parent window for a smart card password dialog box.</returns>
// Token: 0x1700048E RID: 1166
// (get) Token: 0x0600214F RID: 8527 RVA: 0x000147D8 File Offset: 0x000129D8
// (set) Token: 0x06002150 RID: 8528 RVA: 0x00002050 File Offset: 0x00000250
[Token(Token = "0x1700048E")]
public IntPtr ParentWindowHandle
{
[Token(Token = "0x600214F")]
[Address(RVA = "0x408890", Offset = "0x407690", VA = "0x180408890")]
get
{
return 0;
}
[Token(Token = "0x6002150")]
[Address(RVA = "0x2DA20E0", Offset = "0x2DA0EE0", VA = "0x182DA20E0")]
set
{
}
}
/// <summary>Initializes a new instance of the <see cref="T:System.Security.Cryptography.CspParameters" /> class.</summary>
// Token: 0x06002151 RID: 8529 RVA: 0x00002050 File Offset: 0x00000250
[Token(Token = "0x6002151")]
[Address(RVA = "0x2DA1E40", Offset = "0x2DA0C40", VA = "0x182DA1E40")]
public CspParameters()
{
}
/// <summary>Initializes a new instance of the <see cref="T:System.Security.Cryptography.CspParameters" /> class with the specified provider type code.</summary>
/// <param name="dwTypeIn">A provider type code that specifies the kind of provider to create.</param>
// Token: 0x06002152 RID: 8530 RVA: 0x00002050 File Offset: 0x00000250
[Token(Token = "0x6002152")]
[Address(RVA = "0x2DA1EF0", Offset = "0x2DA0CF0", VA = "0x182DA1EF0")]
public CspParameters(int dwTypeIn)
{
}
/// <summary>Initializes a new instance of the <see cref="T:System.Security.Cryptography.CspParameters" /> class with the specified provider type code and name.</summary>
/// <param name="dwTypeIn">A provider type code that specifies the kind of provider to create.</param>
/// <param name="strProviderNameIn">A provider name.</param>
// Token: 0x06002153 RID: 8531 RVA: 0x00002050 File Offset: 0x00000250
[Token(Token = "0x6002153")]
[Address(RVA = "0x2DA1CB0", Offset = "0x2DA0AB0", VA = "0x182DA1CB0")]
public CspParameters(int dwTypeIn, string strProviderNameIn)
{
}
/// <summary>Initializes a new instance of the <see cref="T:System.Security.Cryptography.CspParameters" /> class with the specified provider type code and name, and the specified container name.</summary>
/// <param name="dwTypeIn">The provider type code that specifies the kind of provider to create.</param>
/// <param name="strProviderNameIn">A provider name.</param>
/// <param name="strContainerNameIn">A container name.</param>
// Token: 0x06002154 RID: 8532 RVA: 0x00002050 File Offset: 0x00000250
[Token(Token = "0x6002154")]
[Address(RVA = "0x2DA1F40", Offset = "0x2DA0D40", VA = "0x182DA1F40")]
public CspParameters(int dwTypeIn, string strProviderNameIn, string strContainerNameIn)
{
}
/// <summary>Initializes a new instance of the <see cref="T:System.Security.Cryptography.CspParameters" /> class using a provider type, a provider name, a container name, access information, and a password associated with a smart card key.</summary>
/// <param name="providerType">The provider type code that specifies the kind of provider to create.</param>
/// <param name="providerName">A provider name.</param>
/// <param name="keyContainerName">A container name.</param>
/// <param name="cryptoKeySecurity">An object that represents access rights and audit rules for a container.</param>
/// <param name="keyPassword">A password associated with a smart card key.</param>
// Token: 0x06002155 RID: 8533 RVA: 0x00002050 File Offset: 0x00000250
[Token(Token = "0x6002155")]
[Address(RVA = "0x2DA1D00", Offset = "0x2DA0B00", VA = "0x182DA1D00")]
public CspParameters(int providerType, string providerName, string keyContainerName, CryptoKeySecurity cryptoKeySecurity, SecureString keyPassword)
{
}
/// <summary>Initializes a new instance of the <see cref="T:System.Security.Cryptography.CspParameters" /> class using a provider type, a provider name, a container name, access information, and a handle to an unmanaged smart card password dialog.</summary>
/// <param name="providerType">The provider type code that specifies the kind of provider to create.</param>
/// <param name="providerName">A provider name.</param>
/// <param name="keyContainerName">A container name.</param>
/// <param name="cryptoKeySecurity">An object that represents access rights and audit rules for the container.</param>
/// <param name="parentWindowHandle">A handle to the parent window for a smart card password dialog.</param>
// Token: 0x06002156 RID: 8534 RVA: 0x00002050 File Offset: 0x00000250
[Token(Token = "0x6002156")]
[Address(RVA = "0x2DA1DD0", Offset = "0x2DA0BD0", VA = "0x182DA1DD0")]
public CspParameters(int providerType, string providerName, string keyContainerName, CryptoKeySecurity cryptoKeySecurity, IntPtr parentWindowHandle)
{
}
// Token: 0x06002157 RID: 8535 RVA: 0x00002050 File Offset: 0x00000250
[Token(Token = "0x6002157")]
[Address(RVA = "0x2DA1D70", Offset = "0x2DA0B70", VA = "0x182DA1D70")]
internal CspParameters(int providerType, string providerName, string keyContainerName, CspProviderFlags flags)
{
}
// Token: 0x06002158 RID: 8536 RVA: 0x00002050 File Offset: 0x00000250
[Token(Token = "0x6002158")]
[Address(RVA = "0x2DA1E80", Offset = "0x2DA0C80", VA = "0x182DA1E80")]
internal CspParameters(CspParameters parameters)
{
}
/// <summary>Represents the provider type code for <see cref="T:System.Security.Cryptography.CspParameters" />.</summary>
// Token: 0x04001315 RID: 4885
[global::Cpp2IlInjected.FieldOffset(Offset = "0x10")]
[Token(Token = "0x4001315")]
public int ProviderType;
/// <summary>Represents the provider name for <see cref="T:System.Security.Cryptography.CspParameters" />.</summary>
// Token: 0x04001316 RID: 4886
[global::Cpp2IlInjected.FieldOffset(Offset = "0x18")]
[Token(Token = "0x4001316")]
public string ProviderName;
/// <summary>Represents the key container name for <see cref="T:System.Security.Cryptography.CspParameters" />.</summary>
// Token: 0x04001317 RID: 4887
[global::Cpp2IlInjected.FieldOffset(Offset = "0x20")]
[Token(Token = "0x4001317")]
public string KeyContainerName;
/// <summary>Specifies whether an asymmetric key is created as a signature key or an exchange key.</summary>
// Token: 0x04001318 RID: 4888
[global::Cpp2IlInjected.FieldOffset(Offset = "0x28")]
[Token(Token = "0x4001318")]
public int KeyNumber;
// Token: 0x04001319 RID: 4889
[global::Cpp2IlInjected.FieldOffset(Offset = "0x2C")]
[Token(Token = "0x4001319")]
private int m_flags;
// Token: 0x0400131A RID: 4890
[global::Cpp2IlInjected.FieldOffset(Offset = "0x30")]
[Token(Token = "0x400131A")]
private CryptoKeySecurity m_cryptoKeySecurity;
// Token: 0x0400131B RID: 4891
[global::Cpp2IlInjected.FieldOffset(Offset = "0x38")]
[Token(Token = "0x400131B")]
private SecureString m_keyPassword;
// Token: 0x0400131C RID: 4892
[global::Cpp2IlInjected.FieldOffset(Offset = "0x40")]
[Token(Token = "0x400131C")]
private IntPtr m_parentWindowHandle;
}
}
@@ -0,0 +1,52 @@
using System;
using System.Runtime.InteropServices;
using Cpp2IlInjected;
namespace System.Security.Cryptography
{
/// <summary>Specifies flags that modify the behavior of the cryptographic service providers (CSP).</summary>
// Token: 0x020003DB RID: 987
[Token(Token = "0x20003DB")]
[Flags]
[ComVisible(true)]
[Serializable]
public enum CspProviderFlags
{
/// <summary>Do not specify any settings.</summary>
// Token: 0x0400130C RID: 4876
[Token(Token = "0x400130C")]
NoFlags = 0,
/// <summary>Use key information from the computer's key store.</summary>
// Token: 0x0400130D RID: 4877
[Token(Token = "0x400130D")]
UseMachineKeyStore = 1,
/// <summary>Use key information from the default key container.</summary>
// Token: 0x0400130E RID: 4878
[Token(Token = "0x400130E")]
UseDefaultKeyContainer = 2,
/// <summary>Use key information that cannot be exported.</summary>
// Token: 0x0400130F RID: 4879
[Token(Token = "0x400130F")]
UseNonExportableKey = 4,
/// <summary>Use key information from the current key.</summary>
// Token: 0x04001310 RID: 4880
[Token(Token = "0x4001310")]
UseExistingKey = 8,
/// <summary>Allow a key to be exported for archival or recovery.</summary>
// Token: 0x04001311 RID: 4881
[Token(Token = "0x4001311")]
UseArchivableKey = 16,
/// <summary>Notify the user through a dialog box or another method when certain actions are attempting to use a key. This flag is not compatible with the <see cref="F:System.Security.Cryptography.CspProviderFlags.NoPrompt" /> flag.</summary>
// Token: 0x04001312 RID: 4882
[Token(Token = "0x4001312")]
UseUserProtectedKey = 32,
/// <summary>Prevent the CSP from displaying any user interface (UI) for this context.</summary>
// Token: 0x04001313 RID: 4883
[Token(Token = "0x4001313")]
NoPrompt = 64,
/// <summary>Create a temporary key that is released when the associated Rivest-Shamir-Adleman (RSA) object is closed. Do not use this flag if you want your key to be independent of the RSA object.</summary>
// Token: 0x04001314 RID: 4884
[Token(Token = "0x4001314")]
CreateEphemeralKey = 128
}
}
@@ -0,0 +1,116 @@
using System;
using System.Runtime.InteropServices;
using Cpp2IlInjected;
namespace System.Security.Cryptography
{
/// <summary>Represents the base class for the Data Encryption Standard (DES) algorithm from which all <see cref="T:System.Security.Cryptography.DES" /> implementations must derive.</summary>
// Token: 0x020003E3 RID: 995
[Token(Token = "0x20003E3")]
[ComVisible(true)]
public abstract class DES : SymmetricAlgorithm
{
/// <summary>Initializes a new instance of the <see cref="T:System.Security.Cryptography.DES" /> class.</summary>
// Token: 0x0600217C RID: 8572 RVA: 0x00002050 File Offset: 0x00000250
[Token(Token = "0x600217C")]
[Address(RVA = "0x2DA4950", Offset = "0x2DA3750", VA = "0x182DA4950")]
protected DES()
{
}
/// <summary>Gets or sets the secret key for the Data Encryption Standard (<see cref="T:System.Security.Cryptography.DES" />) algorithm.</summary>
/// <returns>The secret key for the <see cref="T:System.Security.Cryptography.DES" /> algorithm.</returns>
/// <exception cref="T:System.ArgumentNullException">An attempt was made to set the key to <see langword="null" />.</exception>
/// <exception cref="T:System.ArgumentException">An attempt was made to set a key whose length is not equal to <see cref="F:System.Security.Cryptography.SymmetricAlgorithm.BlockSizeValue" />.</exception>
/// <exception cref="T:System.Security.Cryptography.CryptographicException">An attempt was made to set a weak key (see <see cref="M:System.Security.Cryptography.DES.IsWeakKey(System.Byte[])" />) or a semi-weak key (see <see cref="M:System.Security.Cryptography.DES.IsSemiWeakKey(System.Byte[])" />).</exception>
// Token: 0x17000496 RID: 1174
// (get) Token: 0x0600217D RID: 8573 RVA: 0x00002082 File Offset: 0x00000282
// (set) Token: 0x0600217E RID: 8574 RVA: 0x00002050 File Offset: 0x00000250
[Token(Token = "0x17000496")]
public override byte[] Key
{
[Token(Token = "0x600217D")]
[Address(RVA = "0x2DA49F0", Offset = "0x2DA37F0", VA = "0x182DA49F0", Slot = "12")]
get
{
return null;
}
[Token(Token = "0x600217E")]
[Address(RVA = "0x2DA4AF0", Offset = "0x2DA38F0", VA = "0x182DA4AF0", Slot = "13")]
set
{
}
}
/// <summary>Creates an instance of a cryptographic object to perform the Data Encryption Standard (<see cref="T:System.Security.Cryptography.DES" />) algorithm.</summary>
/// <returns>A cryptographic object.</returns>
// Token: 0x0600217F RID: 8575 RVA: 0x00002082 File Offset: 0x00000282
[Token(Token = "0x600217F")]
[Address(RVA = "0x2DA4160", Offset = "0x2DA2F60", VA = "0x182DA4160")]
public new static DES Create()
{
return null;
}
/// <summary>Creates an instance of a cryptographic object to perform the specified implementation of the Data Encryption Standard (<see cref="T:System.Security.Cryptography.DES" />) algorithm.</summary>
/// <param name="algName">The name of the specific implementation of <see cref="T:System.Security.Cryptography.DES" /> to use.</param>
/// <returns>A cryptographic object.</returns>
// Token: 0x06002180 RID: 8576 RVA: 0x00002082 File Offset: 0x00000282
[Token(Token = "0x6002180")]
[Address(RVA = "0x2DA42E0", Offset = "0x2DA30E0", VA = "0x182DA42E0")]
public new static DES Create(string algName)
{
return null;
}
/// <summary>Determines whether the specified key is weak.</summary>
/// <param name="rgbKey">The secret key to test for weakness.</param>
/// <returns>
/// <see langword="true" /> if the key is weak; otherwise, <see langword="false" />.</returns>
/// <exception cref="T:System.Security.Cryptography.CryptographicException">The size of the <paramref name="rgbKey" /> parameter is not valid.</exception>
// Token: 0x06002181 RID: 8577 RVA: 0x000148E0 File Offset: 0x00012AE0
[Token(Token = "0x6002181")]
[Address(RVA = "0x2DA4560", Offset = "0x2DA3360", VA = "0x182DA4560")]
public static bool IsWeakKey(byte[] rgbKey)
{
return default(bool);
}
/// <summary>Determines whether the specified key is semi-weak.</summary>
/// <param name="rgbKey">The secret key to test for semi-weakness.</param>
/// <returns>
/// <see langword="true" /> if the key is semi-weak; otherwise, <see langword="false" />.</returns>
/// <exception cref="T:System.Security.Cryptography.CryptographicException">The size of the <paramref name="rgbKey" /> parameter is not valid.</exception>
// Token: 0x06002182 RID: 8578 RVA: 0x000148F8 File Offset: 0x00012AF8
[Token(Token = "0x6002182")]
[Address(RVA = "0x2DA4390", Offset = "0x2DA3190", VA = "0x182DA4390")]
public static bool IsSemiWeakKey(byte[] rgbKey)
{
return default(bool);
}
// Token: 0x06002183 RID: 8579 RVA: 0x00014910 File Offset: 0x00012B10
[Token(Token = "0x6002183")]
[Address(RVA = "0x2DA4370", Offset = "0x2DA3170", VA = "0x182DA4370")]
private static bool IsLegalKeySize(byte[] rgbKey)
{
return default(bool);
}
// Token: 0x06002184 RID: 8580 RVA: 0x00014928 File Offset: 0x00012B28
[Token(Token = "0x6002184")]
[Address(RVA = "0x2DA46A0", Offset = "0x2DA34A0", VA = "0x182DA46A0")]
private static ulong QuadWordFromBigEndian(byte[] block)
{
return 0UL;
}
// Token: 0x04001348 RID: 4936
[Token(Token = "0x4001348")]
private static KeySizes[] s_legalBlockSizes;
// Token: 0x04001349 RID: 4937
[Token(Token = "0x4001349")]
private static KeySizes[] s_legalKeySizes;
}
}
@@ -0,0 +1,76 @@
using System;
using System.Runtime.InteropServices;
using Cpp2IlInjected;
namespace System.Security.Cryptography
{
/// <summary>Defines a wrapper object to access the cryptographic service provider (CSP) version of the Data Encryption Standard (<see cref="T:System.Security.Cryptography.DES" />) algorithm. This class cannot be inherited.</summary>
// Token: 0x020003E4 RID: 996
[Token(Token = "0x20003E4")]
[ComVisible(true)]
public sealed class DESCryptoServiceProvider : DES
{
/// <summary>Initializes a new instance of the <see cref="T:System.Security.Cryptography.DESCryptoServiceProvider" /> class.</summary>
/// <exception cref="T:System.Security.Cryptography.CryptographicException">The Data Encryption Standard (<see cref="T:System.Security.Cryptography.DES" />) cryptographic service provider is not available.</exception>
// Token: 0x06002186 RID: 8582 RVA: 0x00002050 File Offset: 0x00000250
[Token(Token = "0x6002186")]
[Address(RVA = "0x2DA2580", Offset = "0x2DA1380", VA = "0x182DA2580")]
public DESCryptoServiceProvider()
{
}
/// <summary>Creates a symmetric Data Encryption Standard (<see cref="T:System.Security.Cryptography.DES" />) encryptor object with the specified key (<see cref="P:System.Security.Cryptography.SymmetricAlgorithm.Key" />) and initialization vector (<see cref="P:System.Security.Cryptography.SymmetricAlgorithm.IV" />).</summary>
/// <param name="rgbKey">The secret key to use for the symmetric algorithm.</param>
/// <param name="rgbIV">The initialization vector to use for the symmetric algorithm.</param>
/// <returns>A symmetric <see cref="T:System.Security.Cryptography.DES" /> encryptor object.</returns>
/// <exception cref="T:System.Security.Cryptography.CryptographicException">The value of the <see cref="P:System.Security.Cryptography.SymmetricAlgorithm.Mode" /> property is <see cref="F:System.Security.Cryptography.CipherMode.OFB" />.
/// -or-
/// The value of the <see cref="P:System.Security.Cryptography.SymmetricAlgorithm.Mode" /> property is <see cref="F:System.Security.Cryptography.CipherMode.CFB" /> and the value of the <see cref="P:System.Security.Cryptography.SymmetricAlgorithm.FeedbackSize" /> property is not 8.
/// -or-
/// An invalid key size was used.
/// -or-
/// The algorithm key size was not available.</exception>
// Token: 0x06002187 RID: 8583 RVA: 0x00002082 File Offset: 0x00000282
[Token(Token = "0x6002187")]
[Address(RVA = "0x2DA2260", Offset = "0x2DA1060", VA = "0x182DA2260", Slot = "23")]
public override ICryptoTransform CreateEncryptor(byte[] rgbKey, byte[] rgbIV)
{
return null;
}
/// <summary>Creates a symmetric Data Encryption Standard (<see cref="T:System.Security.Cryptography.DES" />) decryptor object with the specified key (<see cref="P:System.Security.Cryptography.SymmetricAlgorithm.Key" />) and initialization vector (<see cref="P:System.Security.Cryptography.SymmetricAlgorithm.IV" />).</summary>
/// <param name="rgbKey">The secret key to use for the symmetric algorithm.</param>
/// <param name="rgbIV">The initialization vector to use for the symmetric algorithm.</param>
/// <returns>A symmetric <see cref="T:System.Security.Cryptography.DES" /> decryptor object.</returns>
/// <exception cref="T:System.Security.Cryptography.CryptographicException">The value of the <see cref="P:System.Security.Cryptography.SymmetricAlgorithm.Mode" /> property is <see cref="F:System.Security.Cryptography.CipherMode.OFB" />.
/// -or-
/// The value of the <see cref="P:System.Security.Cryptography.SymmetricAlgorithm.Mode" /> property is <see cref="F:System.Security.Cryptography.CipherMode.CFB" /> and the value of the <see cref="P:System.Security.Cryptography.SymmetricAlgorithm.FeedbackSize" /> property is not 8.
/// -or-
/// An invalid key size was used.
/// -or-
/// The algorithm key size was not available.</exception>
// Token: 0x06002188 RID: 8584 RVA: 0x00002082 File Offset: 0x00000282
[Token(Token = "0x6002188")]
[Address(RVA = "0x2DA20F0", Offset = "0x2DA0EF0", VA = "0x182DA20F0", Slot = "25")]
public override ICryptoTransform CreateDecryptor(byte[] rgbKey, byte[] rgbIV)
{
return null;
}
/// <summary>Generates a random key (<see cref="P:System.Security.Cryptography.SymmetricAlgorithm.Key" />) to be used for the algorithm.</summary>
// Token: 0x06002189 RID: 8585 RVA: 0x00002050 File Offset: 0x00000250
[Token(Token = "0x6002189")]
[Address(RVA = "0x2DA2460", Offset = "0x2DA1260", VA = "0x182DA2460", Slot = "26")]
public override void GenerateKey()
{
}
/// <summary>Generates a random initialization vector (<see cref="P:System.Security.Cryptography.SymmetricAlgorithm.IV" />) to use for the algorithm.</summary>
// Token: 0x0600218A RID: 8586 RVA: 0x00002050 File Offset: 0x00000250
[Token(Token = "0x600218A")]
[Address(RVA = "0x2DA23D0", Offset = "0x2DA11D0", VA = "0x182DA23D0", Slot = "27")]
public override void GenerateIV()
{
}
}
}
@@ -0,0 +1,124 @@
using System;
using Cpp2IlInjected;
using Mono.Security.Cryptography;
namespace System.Security.Cryptography
{
// Token: 0x02000422 RID: 1058
[Token(Token = "0x2000422")]
internal class DESTransform : SymmetricTransform
{
// Token: 0x060023AD RID: 9133 RVA: 0x00002050 File Offset: 0x00000250
[Token(Token = "0x60023AD")]
[Address(RVA = "0x2DA3E30", Offset = "0x2DA2C30", VA = "0x182DA3E30")]
internal DESTransform(SymmetricAlgorithm symmAlgo, bool encryption, byte[] key, byte[] iv)
{
}
// Token: 0x060023AE RID: 9134 RVA: 0x00015450 File Offset: 0x00013650
[Token(Token = "0x60023AE")]
[Address(RVA = "0x2DA2860", Offset = "0x2DA1660", VA = "0x182DA2860")]
private uint CipherFunct(uint r, int n)
{
return 0U;
}
// Token: 0x060023AF RID: 9135 RVA: 0x00002050 File Offset: 0x00000250
[Token(Token = "0x60023AF")]
[Address(RVA = "0x2DA2DC0", Offset = "0x2DA1BC0", VA = "0x182DA2DC0")]
internal static void Permutation(byte[] input, byte[] output, uint[] permTab, bool preSwap)
{
}
// Token: 0x060023B0 RID: 9136 RVA: 0x00002050 File Offset: 0x00000250
[Token(Token = "0x60023B0")]
[Address(RVA = "0x2DA26D0", Offset = "0x2DA14D0", VA = "0x182DA26D0")]
private static void BSwap(byte[] byteBuff)
{
}
// Token: 0x060023B1 RID: 9137 RVA: 0x00002050 File Offset: 0x00000250
[Token(Token = "0x60023B1")]
[Address(RVA = "0x2DA37C0", Offset = "0x2DA25C0", VA = "0x182DA37C0")]
internal void SetKey(byte[] key)
{
}
// Token: 0x060023B2 RID: 9138 RVA: 0x00002050 File Offset: 0x00000250
[Token(Token = "0x60023B2")]
[Address(RVA = "0x2DA3310", Offset = "0x2DA2110", VA = "0x182DA3310")]
public void ProcessBlock(byte[] input, byte[] output)
{
}
// Token: 0x060023B3 RID: 9139 RVA: 0x00002050 File Offset: 0x00000250
[Token(Token = "0x60023B3")]
[Address(RVA = "0x2DA2C20", Offset = "0x2DA1A20", VA = "0x182DA2C20", Slot = "17")]
protected override void ECB(byte[] input, byte[] output)
{
}
// Token: 0x060023B4 RID: 9140 RVA: 0x00002082 File Offset: 0x00000282
[Token(Token = "0x60023B4")]
[Address(RVA = "0x2DA2CF0", Offset = "0x2DA1AF0", VA = "0x182DA2CF0")]
internal static byte[] GetStrongKey()
{
return null;
}
// Token: 0x04001435 RID: 5173
[Token(Token = "0x4001435")]
internal static readonly int KEY_BIT_SIZE;
// Token: 0x04001436 RID: 5174
[Token(Token = "0x4001436")]
internal static readonly int KEY_BYTE_SIZE;
// Token: 0x04001437 RID: 5175
[Token(Token = "0x4001437")]
internal static readonly int BLOCK_BIT_SIZE;
// Token: 0x04001438 RID: 5176
[Token(Token = "0x4001438")]
internal static readonly int BLOCK_BYTE_SIZE;
// Token: 0x04001439 RID: 5177
[FieldOffset(Offset = "0x58")]
[Token(Token = "0x4001439")]
private byte[] keySchedule;
// Token: 0x0400143A RID: 5178
[FieldOffset(Offset = "0x60")]
[Token(Token = "0x400143A")]
private byte[] byteBuff;
// Token: 0x0400143B RID: 5179
[FieldOffset(Offset = "0x68")]
[Token(Token = "0x400143B")]
private uint[] dwordBuff;
// Token: 0x0400143C RID: 5180
[Token(Token = "0x400143C")]
private static readonly uint[] spBoxes;
// Token: 0x0400143D RID: 5181
[Token(Token = "0x400143D")]
private static readonly byte[] PC1;
// Token: 0x0400143E RID: 5182
[Token(Token = "0x400143E")]
private static readonly byte[] leftRotTotal;
// Token: 0x0400143F RID: 5183
[Token(Token = "0x400143F")]
private static readonly byte[] PC2;
// Token: 0x04001440 RID: 5184
[Token(Token = "0x4001440")]
internal static readonly uint[] ipTab;
// Token: 0x04001441 RID: 5185
[Token(Token = "0x4001441")]
internal static readonly uint[] fpTab;
}
}
@@ -0,0 +1,268 @@
using System;
using System.IO;
using System.Runtime.InteropServices;
using Cpp2IlInjected;
namespace System.Security.Cryptography
{
/// <summary>Represents the abstract base class from which all implementations of the Digital Signature Algorithm (<see cref="T:System.Security.Cryptography.DSA" />) must inherit.</summary>
// Token: 0x020003E6 RID: 998
[Token(Token = "0x20003E6")]
[ComVisible(true)]
public abstract class DSA : AsymmetricAlgorithm
{
/// <summary>Initializes a new instance of the <see cref="T:System.Security.Cryptography.DSA" /> class.</summary>
// Token: 0x0600218B RID: 8587 RVA: 0x00002050 File Offset: 0x00000250
[Token(Token = "0x600218B")]
[Address(RVA = "0x4093D0", Offset = "0x4081D0", VA = "0x1804093D0")]
protected DSA()
{
}
/// <summary>Creates the default cryptographic object used to perform the asymmetric algorithm.</summary>
/// <returns>A cryptographic object used to perform the asymmetric algorithm.</returns>
// Token: 0x0600218C RID: 8588 RVA: 0x00002082 File Offset: 0x00000282
[Token(Token = "0x600218C")]
[Address(RVA = "0x2DA6620", Offset = "0x2DA5420", VA = "0x182DA6620")]
public new static DSA Create()
{
return null;
}
/// <summary>Creates the specified cryptographic object used to perform the asymmetric algorithm.</summary>
/// <param name="algName">The name of the specific implementation of <see cref="T:System.Security.Cryptography.DSA" /> to use.</param>
/// <returns>A cryptographic object used to perform the asymmetric algorithm.</returns>
// Token: 0x0600218D RID: 8589 RVA: 0x00002082 File Offset: 0x00000282
[Token(Token = "0x600218D")]
[Address(RVA = "0x2DA6680", Offset = "0x2DA5480", VA = "0x182DA6680")]
public new static DSA Create(string algName)
{
return null;
}
/// <summary>When overridden in a derived class, creates the <see cref="T:System.Security.Cryptography.DSA" /> signature for the specified data.</summary>
/// <param name="rgbHash">The data to be signed.</param>
/// <returns>The digital signature for the specified data.</returns>
// Token: 0x0600218E RID: 8590
[Token(Token = "0x600218E")]
[Address(Slot = "13")]
public abstract byte[] CreateSignature(byte[] rgbHash);
/// <summary>When overridden in a derived class, verifies the <see cref="T:System.Security.Cryptography.DSA" /> signature for the specified data.</summary>
/// <param name="rgbHash">The hash of the data signed with <paramref name="rgbSignature" />.</param>
/// <param name="rgbSignature">The signature to be verified for rgbData.</param>
/// <returns>
/// <see langword="true" /> if <paramref name="rgbSignature" /> matches the signature computed using the specified hash algorithm and key on <paramref name="rgbHash" />; otherwise, <see langword="false" />.</returns>
// Token: 0x0600218F RID: 8591
[Token(Token = "0x600218F")]
[Address(Slot = "14")]
public abstract bool VerifySignature(byte[] rgbHash, byte[] rgbSignature);
/// <summary>When overridden in a derived class, computes the hash value of a specified portion of a byte array by using a specified hashing algorithm.</summary>
/// <param name="data">The data to be hashed.</param>
/// <param name="offset">The index of the first byte in <paramref name="data" /> that is to be hashed.</param>
/// <param name="count">The number of bytes to hash.</param>
/// <param name="hashAlgorithm">The algorithm to use to hash the data.</param>
/// <returns>The hashed data.</returns>
/// <exception cref="T:System.NotImplementedException">A derived class must override this method.</exception>
// Token: 0x06002190 RID: 8592 RVA: 0x00002082 File Offset: 0x00000282
[Token(Token = "0x6002190")]
[Address(RVA = "0x2DA70A0", Offset = "0x2DA5EA0", VA = "0x182DA70A0", Slot = "15")]
protected virtual byte[] HashData(byte[] data, int offset, int count, HashAlgorithmName hashAlgorithm)
{
return null;
}
/// <summary>When overridden in a derived class, computes the hash value of a specified binary stream by using a specified hashing algorithm.</summary>
/// <param name="data">The binary stream to hash.</param>
/// <param name="hashAlgorithm">The algorithm to use to hash the data.</param>
/// <returns>The hashed data.</returns>
/// <exception cref="T:System.NotImplementedException">A derived class must override this method.</exception>
// Token: 0x06002191 RID: 8593 RVA: 0x00002082 File Offset: 0x00000282
[Token(Token = "0x6002191")]
[Address(RVA = "0x2DA70E0", Offset = "0x2DA5EE0", VA = "0x182DA70E0", Slot = "16")]
protected virtual byte[] HashData(Stream data, HashAlgorithmName hashAlgorithm)
{
return null;
}
/// <summary>Computes the hash value of the specified byte array using the specified hash algorithm and signs the resulting hash value.</summary>
/// <param name="data">The input data for which to compute the hash.</param>
/// <param name="hashAlgorithm">The hash algorithm to use to create the hash value.</param>
/// <returns>The DSA signature for the specified data.</returns>
/// <exception cref="T:System.ArgumentNullException">
/// <paramref name="data" /> is <see langword="null" />.</exception>
/// <exception cref="T:System.ArgumentException">
/// <paramref name="hashAlgorithm" />.<see cref="P:System.Security.Cryptography.HashAlgorithmName.Name" /> is <see langword="null" /> or <see cref="F:System.String.Empty" />.</exception>
// Token: 0x06002192 RID: 8594 RVA: 0x00002082 File Offset: 0x00000282
[Token(Token = "0x6002192")]
[Address(RVA = "0x2DA7120", Offset = "0x2DA5F20", VA = "0x182DA7120")]
public byte[] SignData(byte[] data, HashAlgorithmName hashAlgorithm)
{
return null;
}
/// <summary>Computes the hash value of a portion of the specified byte array using the specified hash algorithm and signs the resulting hash value.</summary>
/// <param name="data">The input data for which to compute the hash.</param>
/// <param name="offset">The offset into the array at which to begin using data.</param>
/// <param name="count">The number of bytes in the array to use as data.</param>
/// <param name="hashAlgorithm">The hash algorithm to use to create the hash value.</param>
/// <returns>The DSA signature for the specified data.</returns>
/// <exception cref="T:System.ArgumentNullException">
/// <paramref name="data" /> is <see langword="null" />.</exception>
/// <exception cref="T:System.ArgumentException">
/// <paramref name="hashAlgorithm" />.<see cref="P:System.Security.Cryptography.HashAlgorithmName.Name" /> is <see langword="null" /> or <see cref="F:System.String.Empty" />.</exception>
/// <exception cref="T:System.ArgumentOutOfRangeException">
/// <paramref name="offset" /> is less than zero.
/// -or-
/// <paramref name="count" /> is less than zero.
/// -or-
/// <paramref name="offset" /> + <paramref name="count" /> - 1 results in an index that is beyond the upper bound of <paramref name="data" />.</exception>
// Token: 0x06002193 RID: 8595 RVA: 0x00002082 File Offset: 0x00000282
[Token(Token = "0x6002193")]
[Address(RVA = "0x2DA71D0", Offset = "0x2DA5FD0", VA = "0x182DA71D0", Slot = "17")]
public virtual byte[] SignData(byte[] data, int offset, int count, HashAlgorithmName hashAlgorithm)
{
return null;
}
/// <summary>Computes the hash value of the specified stream using the specified hash algorithm and signs the resulting hash value.</summary>
/// <param name="data">The input stream for which to compute the hash.</param>
/// <param name="hashAlgorithm">The hash algorithm to use to create the hash value.</param>
/// <returns>The DSA signature for the specified data.</returns>
/// <exception cref="T:System.ArgumentNullException">
/// <paramref name="data" /> is <see langword="null" />.</exception>
/// <exception cref="T:System.ArgumentException">
/// <paramref name="hashAlgorithm" />.<see cref="P:System.Security.Cryptography.HashAlgorithmName.Name" /> is <see langword="null" /> or <see cref="F:System.String.Empty" />.</exception>
// Token: 0x06002194 RID: 8596 RVA: 0x00002082 File Offset: 0x00000282
[Token(Token = "0x6002194")]
[Address(RVA = "0x2DA7350", Offset = "0x2DA6150", VA = "0x182DA7350", Slot = "18")]
public virtual byte[] SignData(Stream data, HashAlgorithmName hashAlgorithm)
{
return null;
}
/// <summary>Verifies that a digital signature is valid by calculating the hash value of the specified data using the specified hash algorithm and comparing it to the provided signature.</summary>
/// <param name="data">The signed data.</param>
/// <param name="signature">The signature data to be verified.</param>
/// <param name="hashAlgorithm">The hash algorithm used to create the hash value of the data.</param>
/// <returns>
/// <see langword="true" /> if the digital signature is valid; otherwise, <see langword="false" />.</returns>
/// <exception cref="T:System.ArgumentNullException">
/// <paramref name="data" /> is <see langword="null" />.
/// -or-
/// <paramref name="signature" /> is <see langword="null" />.</exception>
/// <exception cref="T:System.ArgumentException">
/// <paramref name="hashAlgorithm" />.<see cref="P:System.Security.Cryptography.HashAlgorithmName.Name" /> is <see langword="null" /> or <see cref="F:System.String.Empty" />.</exception>
// Token: 0x06002195 RID: 8597 RVA: 0x00014940 File Offset: 0x00012B40
[Token(Token = "0x6002195")]
[Address(RVA = "0x2DA7910", Offset = "0x2DA6710", VA = "0x182DA7910")]
public bool VerifyData(byte[] data, byte[] signature, HashAlgorithmName hashAlgorithm)
{
return default(bool);
}
/// <summary>Verifies that a digital signature is valid by calculating the hash value of the data in a portion of a byte array using the specified hash algorithm and comparing it to the provided signature.</summary>
/// <param name="data">The signed data.</param>
/// <param name="offset">The starting index at which to compute the hash.</param>
/// <param name="count">The number of bytes to hash.</param>
/// <param name="signature">The signature data to be verified.</param>
/// <param name="hashAlgorithm">The hash algorithm used to create the hash value of the data.</param>
/// <returns>
/// <see langword="true" /> if the digital signature is valid; otherwise, <see langword="false" />.</returns>
/// <exception cref="T:System.ArgumentNullException">
/// <paramref name="data" /> is <see langword="null" />.
/// -or-
/// <paramref name="signature" /> is <see langword="null" />.</exception>
/// <exception cref="T:System.ArgumentException">
/// <paramref name="hashAlgorithm" />.<see cref="P:System.Security.Cryptography.HashAlgorithmName.Name" /> is <see langword="null" /> or <see cref="F:System.String.Empty" />.</exception>
/// <exception cref="T:System.ArgumentOutOfRangeException">
/// <paramref name="offset" /> is less than zero.
/// -or-
/// <paramref name="count" /> is less than zero.
/// -or-
/// <paramref name="offset" /> + <paramref name="count" /> - 1 results in an index that is beyond the upper bound of <paramref name="data" />.</exception>
// Token: 0x06002196 RID: 8598 RVA: 0x00014958 File Offset: 0x00012B58
[Token(Token = "0x6002196")]
[Address(RVA = "0x2DA7750", Offset = "0x2DA6550", VA = "0x182DA7750", Slot = "19")]
public virtual bool VerifyData(byte[] data, int offset, int count, byte[] signature, HashAlgorithmName hashAlgorithm)
{
return default(bool);
}
/// <summary>Verifies that a digital signature is valid by calculating the hash value of the specified stream using the specified hash algorithm and comparing it to the provided signature.</summary>
/// <param name="data">The signed data.</param>
/// <param name="signature">The signature data to be verified.</param>
/// <param name="hashAlgorithm">The hash algorithm used to create the hash value of the data.</param>
/// <returns>
/// <see langword="true" /> if the digital signature is valid; otherwise, <see langword="false" />.</returns>
/// <exception cref="T:System.ArgumentNullException">
/// <paramref name="data" /> is <see langword="null" />.
/// -or-
/// <paramref name="signature" /> is <see langword="null" />.</exception>
/// <exception cref="T:System.ArgumentException">
/// <paramref name="hashAlgorithm" />.<see cref="P:System.Security.Cryptography.HashAlgorithmName.Name" /> is <see langword="null" /> or <see cref="F:System.String.Empty" />.</exception>
// Token: 0x06002197 RID: 8599 RVA: 0x00014970 File Offset: 0x00012B70
[Token(Token = "0x6002197")]
[Address(RVA = "0x2DA79D0", Offset = "0x2DA67D0", VA = "0x182DA79D0", Slot = "20")]
public virtual bool VerifyData(Stream data, byte[] signature, HashAlgorithmName hashAlgorithm)
{
return default(bool);
}
/// <summary>Reconstructs a <see cref="T:System.Security.Cryptography.DSA" /> object from an XML string.</summary>
/// <param name="xmlString">The XML string to use to reconstruct the <see cref="T:System.Security.Cryptography.DSA" /> object.</param>
/// <exception cref="T:System.ArgumentNullException">The <paramref name="xmlString" /> parameter is <see langword="null" />.</exception>
/// <exception cref="T:System.Security.Cryptography.CryptographicException">The format of the <paramref name="xmlString" /> parameter is not valid.</exception>
// Token: 0x06002198 RID: 8600 RVA: 0x00002050 File Offset: 0x00000250
[Token(Token = "0x6002198")]
[Address(RVA = "0x2DA6780", Offset = "0x2DA5580", VA = "0x182DA6780", Slot = "11")]
public override void FromXmlString(string xmlString)
{
}
/// <summary>Creates and returns an XML string representation of the current <see cref="T:System.Security.Cryptography.DSA" /> object.</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.DSA" /> object.</returns>
// Token: 0x06002199 RID: 8601 RVA: 0x00002082 File Offset: 0x00000282
[Token(Token = "0x6002199")]
[Address(RVA = "0x2DA7420", Offset = "0x2DA6220", VA = "0x182DA7420", Slot = "12")]
public override string ToXmlString(bool includePrivateParameters)
{
return null;
}
/// <summary>When overridden in a derived class, exports the <see cref="T:System.Security.Cryptography.DSAParameters" />.</summary>
/// <param name="includePrivateParameters">
/// <see langword="true" /> to include private parameters; otherwise, <see langword="false" />.</param>
/// <returns>The parameters for <see cref="T:System.Security.Cryptography.DSA" />.</returns>
// Token: 0x0600219A RID: 8602
[Token(Token = "0x600219A")]
[Address(Slot = "21")]
public abstract DSAParameters ExportParameters(bool includePrivateParameters);
/// <summary>When overridden in a derived class, imports the specified <see cref="T:System.Security.Cryptography.DSAParameters" />.</summary>
/// <param name="parameters">The parameters for <see cref="T:System.Security.Cryptography.DSA" />.</param>
// Token: 0x0600219B RID: 8603
[Token(Token = "0x600219B")]
[Address(Slot = "22")]
public abstract void ImportParameters(DSAParameters parameters);
// Token: 0x0600219C RID: 8604 RVA: 0x00002082 File Offset: 0x00000282
[Token(Token = "0x600219C")]
[Address(RVA = "0x2DA6710", Offset = "0x2DA5510", VA = "0x182DA6710")]
private static Exception DerivedClassMustOverride()
{
return null;
}
// Token: 0x0600219D RID: 8605 RVA: 0x00002082 File Offset: 0x00000282
[Token(Token = "0x600219D")]
[Address(RVA = "0x2DA7030", Offset = "0x2DA5E30", VA = "0x182DA7030")]
internal static Exception HashAlgorithmNameNullOrEmpty()
{
return null;
}
}
}
@@ -0,0 +1,425 @@
using System;
using System.IO;
using System.Runtime.InteropServices;
using Cpp2IlInjected;
using Mono.Security.Cryptography;
namespace System.Security.Cryptography
{
/// <summary>Defines a wrapper object to access the cryptographic service provider (CSP) implementation of the <see cref="T:System.Security.Cryptography.DSA" /> algorithm. This class cannot be inherited.</summary>
// Token: 0x02000423 RID: 1059
[Token(Token = "0x2000423")]
[ComVisible(true)]
public sealed class DSACryptoServiceProvider : DSA, ICspAsymmetricAlgorithm
{
/// <summary>Initializes a new instance of the <see cref="T:System.Security.Cryptography.DSACryptoServiceProvider" /> class.</summary>
// Token: 0x060023B6 RID: 9142 RVA: 0x00002050 File Offset: 0x00000250
[Token(Token = "0x60023B6")]
[Address(RVA = "0x2DA5C90", Offset = "0x2DA4A90", VA = "0x182DA5C90")]
public DSACryptoServiceProvider()
{
}
/// <summary>Initializes a new instance of the <see cref="T:System.Security.Cryptography.DSACryptoServiceProvider" /> class with the specified parameters for the cryptographic service provider (CSP).</summary>
/// <param name="parameters">The parameters for the CSP.</param>
// Token: 0x060023B7 RID: 9143 RVA: 0x00002050 File Offset: 0x00000250
[Token(Token = "0x60023B7")]
[Address(RVA = "0x2DA5BB0", Offset = "0x2DA49B0", VA = "0x182DA5BB0")]
public DSACryptoServiceProvider(CspParameters parameters)
{
}
/// <summary>Initializes a new instance of the <see cref="T:System.Security.Cryptography.DSACryptoServiceProvider" /> class with the specified key size.</summary>
/// <param name="dwKeySize">The size of the key for the asymmetric algorithm in bits.</param>
// Token: 0x060023B8 RID: 9144 RVA: 0x00002050 File Offset: 0x00000250
[Token(Token = "0x60023B8")]
[Address(RVA = "0x2DA5B70", Offset = "0x2DA4970", VA = "0x182DA5B70")]
public DSACryptoServiceProvider(int dwKeySize)
{
}
/// <summary>Initializes a new instance of the <see cref="T:System.Security.Cryptography.DSACryptoServiceProvider" /> class with the specified key size and parameters for the cryptographic service provider (CSP).</summary>
/// <param name="dwKeySize">The size of the key for the cryptographic algorithm in bits.</param>
/// <param name="parameters">The parameters for the CSP.</param>
/// <exception cref="T:System.Security.Cryptography.CryptographicException">The CSP cannot be acquired.
/// -or-
/// The key cannot be created.</exception>
/// <exception cref="T:System.ArgumentOutOfRangeException">
/// <paramref name="dwKeySize" /> is out of range.</exception>
// Token: 0x060023B9 RID: 9145 RVA: 0x00002050 File Offset: 0x00000250
[Token(Token = "0x60023B9")]
[Address(RVA = "0x2DA5A90", Offset = "0x2DA4890", VA = "0x182DA5A90")]
public DSACryptoServiceProvider(int dwKeySize, CspParameters parameters)
{
}
// Token: 0x060023BA RID: 9146 RVA: 0x00002050 File Offset: 0x00000250
[Token(Token = "0x60023BA")]
[Address(RVA = "0x2DA4CD0", Offset = "0x2DA3AD0", VA = "0x182DA4CD0")]
private void Common(int dwKeySize, bool parameters)
{
}
// Token: 0x060023BB RID: 9147 RVA: 0x00002050 File Offset: 0x00000250
[Token(Token = "0x60023BB")]
[Address(RVA = "0x2DA4ED0", Offset = "0x2DA3CD0", VA = "0x182DA4ED0")]
private void Common(CspParameters parameters)
{
}
// Token: 0x060023BC RID: 9148 RVA: 0x00002050 File Offset: 0x00000250
[Token(Token = "0x60023BC")]
[Address(RVA = "0x2DA50E0", Offset = "0x2DA3EE0", VA = "0x182DA50E0", Slot = "1")]
protected override void Finalize()
{
}
/// <summary>Gets the name of the key exchange algorithm.</summary>
/// <returns>The name of the key exchange algorithm.</returns>
// Token: 0x170004F6 RID: 1270
// (get) Token: 0x060023BD RID: 9149 RVA: 0x00002082 File Offset: 0x00000282
[Token(Token = "0x170004F6")]
public override string KeyExchangeAlgorithm
{
[Token(Token = "0x60023BD")]
[Address(RVA = "0x43E630", Offset = "0x43D430", VA = "0x18043E630", Slot = "10")]
get
{
return null;
}
}
/// <summary>Gets the size of the key used by the asymmetric algorithm in bits.</summary>
/// <returns>The size of the key used by the asymmetric algorithm.</returns>
// Token: 0x170004F7 RID: 1271
// (get) Token: 0x060023BE RID: 9150 RVA: 0x00015468 File Offset: 0x00013668
[Token(Token = "0x170004F7")]
public override int KeySize
{
[Token(Token = "0x60023BE")]
[Address(RVA = "0x2DA5CC0", Offset = "0x2DA4AC0", VA = "0x182DA5CC0", Slot = "6")]
get
{
return 0;
}
}
/// <summary>Gets or sets a value indicating whether the key should be persisted in the cryptographic service provider (CSP).</summary>
/// <returns>
/// <see langword="true" /> if the key should be persisted in the CSP; otherwise, <see langword="false" />.</returns>
// Token: 0x170004F8 RID: 1272
// (get) Token: 0x060023BF RID: 9151 RVA: 0x00015480 File Offset: 0x00013680
// (set) Token: 0x060023C0 RID: 9152 RVA: 0x00002050 File Offset: 0x00000250
[Token(Token = "0x170004F8")]
public bool PersistKeyInCsp
{
[Token(Token = "0x60023BF")]
[Address(RVA = "0x494270", Offset = "0x493070", VA = "0x180494270")]
get
{
return default(bool);
}
[Token(Token = "0x60023C0")]
[Address(RVA = "0x494500", Offset = "0x493300", VA = "0x180494500")]
set
{
}
}
/// <summary>Gets a value that indicates whether the <see cref="T:System.Security.Cryptography.DSACryptoServiceProvider" /> object contains only a public key.</summary>
/// <returns>
/// <see langword="true" /> if the <see cref="T:System.Security.Cryptography.DSACryptoServiceProvider" /> object contains only a public key; otherwise, <see langword="false" />.</returns>
// Token: 0x170004F9 RID: 1273
// (get) Token: 0x060023C1 RID: 9153 RVA: 0x00015498 File Offset: 0x00013698
[Token(Token = "0x170004F9")]
[ComVisible(false)]
public bool PublicOnly
{
[Token(Token = "0x60023C1")]
[Address(RVA = "0x2DA5CF0", Offset = "0x2DA4AF0", VA = "0x182DA5CF0")]
get
{
return default(bool);
}
}
/// <summary>Gets the name of the signature algorithm.</summary>
/// <returns>The name of the signature algorithm.</returns>
// Token: 0x170004FA RID: 1274
// (get) Token: 0x060023C2 RID: 9154 RVA: 0x00002082 File Offset: 0x00000282
[Token(Token = "0x170004FA")]
public override string SignatureAlgorithm
{
[Token(Token = "0x60023C2")]
[Address(RVA = "0x2DA5D10", Offset = "0x2DA4B10", VA = "0x182DA5D10", Slot = "9")]
get
{
return null;
}
}
/// <summary>Gets or sets a value indicating whether the key should be persisted in the computer's key store instead of the user profile store.</summary>
/// <returns>
/// <see langword="true" /> if the key should be persisted in the computer key store; otherwise, <see langword="false" />.</returns>
// Token: 0x170004FB RID: 1275
// (get) Token: 0x060023C3 RID: 9155 RVA: 0x000154B0 File Offset: 0x000136B0
// (set) Token: 0x060023C4 RID: 9156 RVA: 0x00002050 File Offset: 0x00000250
[Token(Token = "0x170004FB")]
public static bool UseMachineKeyStore
{
[Token(Token = "0x60023C3")]
[Address(RVA = "0x2DA5D40", Offset = "0x2DA4B40", VA = "0x182DA5D40")]
get
{
return default(bool);
}
[Token(Token = "0x60023C4")]
[Address(RVA = "0x2DA5D80", Offset = "0x2DA4B80", VA = "0x182DA5D80")]
set
{
}
}
/// <summary>Exports the <see cref="T:System.Security.Cryptography.DSAParameters" />.</summary>
/// <param name="includePrivateParameters">
/// <see langword="true" /> to include private parameters; otherwise, <see langword="false" />.</param>
/// <returns>The parameters for <see cref="T:System.Security.Cryptography.DSA" />.</returns>
/// <exception cref="T:System.Security.Cryptography.CryptographicException">The key cannot be exported.</exception>
// Token: 0x060023C5 RID: 9157 RVA: 0x000154C8 File Offset: 0x000136C8
[Token(Token = "0x60023C5")]
[Address(RVA = "0x2DA5000", Offset = "0x2DA3E00", VA = "0x182DA5000", Slot = "21")]
public override DSAParameters ExportParameters(bool includePrivateParameters)
{
return default(DSAParameters);
}
/// <summary>Imports the specified <see cref="T:System.Security.Cryptography.DSAParameters" />.</summary>
/// <param name="parameters">The parameters for <see cref="T:System.Security.Cryptography.DSA" />.</param>
/// <exception cref="T:System.Security.Cryptography.CryptographicException">The cryptographic service provider (CSP) cannot be acquired.
/// -or-
/// The <paramref name="parameters" /> parameter has missing fields.</exception>
// Token: 0x060023C6 RID: 9158 RVA: 0x00002050 File Offset: 0x00000250
[Token(Token = "0x60023C6")]
[Address(RVA = "0x2DA55E0", Offset = "0x2DA43E0", VA = "0x182DA55E0", Slot = "22")]
public override void ImportParameters(DSAParameters parameters)
{
}
/// <summary>Creates the <see cref="T:System.Security.Cryptography.DSA" /> signature for the specified data.</summary>
/// <param name="rgbHash">The data to be signed.</param>
/// <returns>The digital signature for the specified data.</returns>
// Token: 0x060023C7 RID: 9159 RVA: 0x00002082 File Offset: 0x00000282
[Token(Token = "0x60023C7")]
[Address(RVA = "0x2435B10", Offset = "0x2434910", VA = "0x182435B10", Slot = "13")]
public override byte[] CreateSignature(byte[] rgbHash)
{
return null;
}
/// <summary>Computes the hash value of the specified byte array and signs the resulting hash value.</summary>
/// <param name="buffer">The input data for which to compute the hash.</param>
/// <returns>The <see cref="T:System.Security.Cryptography.DSA" /> signature for the specified data.</returns>
// Token: 0x060023C8 RID: 9160 RVA: 0x00002082 File Offset: 0x00000282
[Token(Token = "0x60023C8")]
[Address(RVA = "0x2DA5790", Offset = "0x2DA4590", VA = "0x182DA5790")]
public byte[] SignData(byte[] buffer)
{
return null;
}
/// <summary>Signs a byte array from the specified start point to the specified end point.</summary>
/// <param name="buffer">The input data to sign.</param>
/// <param name="offset">The offset into the array from which to begin using data.</param>
/// <param name="count">The number of bytes in the array to use as data.</param>
/// <returns>The <see cref="T:System.Security.Cryptography.DSA" /> signature for the specified data.</returns>
// Token: 0x060023C9 RID: 9161 RVA: 0x00002082 File Offset: 0x00000282
[Token(Token = "0x60023C9")]
[Address(RVA = "0x2DA5710", Offset = "0x2DA4510", VA = "0x182DA5710")]
public byte[] SignData(byte[] buffer, int offset, int count)
{
return null;
}
/// <summary>Computes the hash value of the specified input stream and signs the resulting hash value.</summary>
/// <param name="inputStream">The input data for which to compute the hash.</param>
/// <returns>The <see cref="T:System.Security.Cryptography.DSA" /> signature for the specified data.</returns>
// Token: 0x060023CA RID: 9162 RVA: 0x00002082 File Offset: 0x00000282
[Token(Token = "0x60023CA")]
[Address(RVA = "0x2DA56B0", Offset = "0x2DA44B0", VA = "0x182DA56B0")]
public byte[] SignData(Stream inputStream)
{
return null;
}
/// <summary>Computes the signature for the specified hash value by encrypting it with the private key.</summary>
/// <param name="rgbHash">The hash value of the data to be signed.</param>
/// <param name="str">The name of the hash algorithm used to create the hash value of the data.</param>
/// <returns>The <see cref="T:System.Security.Cryptography.DSA" /> signature for the specified hash value.</returns>
/// <exception cref="T:System.ArgumentNullException">The <paramref name="rgbHash" /> parameter is <see langword="null" />.</exception>
/// <exception cref="T:System.Security.Cryptography.CryptographicException">The cryptographic service provider (CSP) cannot be acquired.
/// -or-
/// There is no private key.</exception>
// Token: 0x060023CB RID: 9163 RVA: 0x00002082 File Offset: 0x00000282
[Token(Token = "0x60023CB")]
[Address(RVA = "0x2DA57F0", Offset = "0x2DA45F0", VA = "0x182DA57F0")]
public byte[] SignHash(byte[] rgbHash, string str)
{
return null;
}
/// <summary>Verifies the specified signature data by comparing it to the signature computed for the specified data.</summary>
/// <param name="rgbData">The data that was signed.</param>
/// <param name="rgbSignature">The signature data to be verified.</param>
/// <returns>
/// <see langword="true" /> if the signature verifies as valid; otherwise, <see langword="false" />.</returns>
// Token: 0x060023CC RID: 9164 RVA: 0x000154E0 File Offset: 0x000136E0
[Token(Token = "0x60023CC")]
[Address(RVA = "0x2DA58E0", Offset = "0x2DA46E0", VA = "0x182DA58E0")]
public bool VerifyData(byte[] rgbData, byte[] rgbSignature)
{
return default(bool);
}
/// <summary>Verifies the specified signature data by comparing it to the signature computed for the specified hash value.</summary>
/// <param name="rgbHash">The hash value of the data to be signed.</param>
/// <param name="str">The name of the hash algorithm used to create the hash value of the data.</param>
/// <param name="rgbSignature">The signature data to be verified.</param>
/// <returns>
/// <see langword="true" /> if the signature verifies as valid; otherwise, <see langword="false" />.</returns>
/// <exception cref="T:System.ArgumentNullException">The <paramref name="rgbHash" /> parameter is <see langword="null" />.
/// -or-
/// The <paramref name="rgbSignature" /> parameter is <see langword="null" />.</exception>
/// <exception cref="T:System.Security.Cryptography.CryptographicException">The cryptographic service provider (CSP) cannot be acquired.
/// -or-
/// The signature cannot be verified.</exception>
// Token: 0x060023CD RID: 9165 RVA: 0x000154F8 File Offset: 0x000136F8
[Token(Token = "0x60023CD")]
[Address(RVA = "0x2DA5950", Offset = "0x2DA4750", VA = "0x182DA5950")]
public bool VerifyHash(byte[] rgbHash, string str, byte[] rgbSignature)
{
return default(bool);
}
/// <summary>Verifies the <see cref="T:System.Security.Cryptography.DSA" /> signature for the specified data.</summary>
/// <param name="rgbHash">The data signed with <paramref name="rgbSignature" />.</param>
/// <param name="rgbSignature">The signature to be verified for <paramref name="rgbData" />.</param>
/// <returns>
/// <see langword="true" /> if <paramref name="rgbSignature" /> matches the signature computed using the specified hash algorithm and key on <paramref name="rgbHash" />; otherwise, <see langword="false" />.</returns>
// Token: 0x060023CE RID: 9166 RVA: 0x00015510 File Offset: 0x00013710
[Token(Token = "0x60023CE")]
[Address(RVA = "0x2DA5A60", Offset = "0x2DA4860", VA = "0x182DA5A60", Slot = "14")]
public override bool VerifySignature(byte[] rgbHash, byte[] rgbSignature)
{
return default(bool);
}
// Token: 0x060023CF RID: 9167 RVA: 0x00002082 File Offset: 0x00000282
[Token(Token = "0x60023CF")]
[Address(RVA = "0x2DA5160", Offset = "0x2DA3F60", VA = "0x182DA5160", Slot = "15")]
protected override byte[] HashData(byte[] data, int offset, int count, HashAlgorithmName hashAlgorithm)
{
return null;
}
// Token: 0x060023D0 RID: 9168 RVA: 0x00002082 File Offset: 0x00000282
[Token(Token = "0x60023D0")]
[Address(RVA = "0x2DA52A0", Offset = "0x2DA40A0", VA = "0x182DA52A0", Slot = "16")]
protected override byte[] HashData(Stream data, HashAlgorithmName hashAlgorithm)
{
return null;
}
// Token: 0x060023D1 RID: 9169 RVA: 0x00002050 File Offset: 0x00000250
[Token(Token = "0x60023D1")]
[Address(RVA = "0x2DA4F90", Offset = "0x2DA3D90", VA = "0x182DA4F90", Slot = "5")]
protected override void Dispose(bool disposing)
{
}
// Token: 0x060023D2 RID: 9170 RVA: 0x00002050 File Offset: 0x00000250
[Token(Token = "0x60023D2")]
[Address(RVA = "0x2DA5630", Offset = "0x2DA4430", VA = "0x182DA5630")]
private void OnKeyGenerated(object sender, EventArgs e)
{
}
/// <summary>Gets a <see cref="T:System.Security.Cryptography.CspKeyContainerInfo" /> object that describes additional information about a cryptographic key pair.</summary>
/// <returns>A <see cref="T:System.Security.Cryptography.CspKeyContainerInfo" /> object that describes additional information about a cryptographic key pair.</returns>
// Token: 0x170004FC RID: 1276
// (get) Token: 0x060023D3 RID: 9171 RVA: 0x00002082 File Offset: 0x00000282
[Token(Token = "0x170004FC")]
[MonoTODO]
[MonoTODO("call into KeyPairPersistence to get details")]
[ComVisible(false)]
public CspKeyContainerInfo CspKeyContainerInfo
{
[Token(Token = "0x60023D3")]
[Address(RVA = "0x43E630", Offset = "0x43D430", VA = "0x18043E630", Slot = "25")]
get
{
return null;
}
}
/// <summary>Exports a blob containing the key information associated with a <see cref="T:System.Security.Cryptography.DSACryptoServiceProvider" /> object.</summary>
/// <param name="includePrivateParameters">
/// <see langword="true" /> to include the private key; otherwise, <see langword="false" />.</param>
/// <returns>A byte array containing the key information associated with a <see cref="T:System.Security.Cryptography.DSACryptoServiceProvider" /> object.</returns>
// Token: 0x060023D4 RID: 9172 RVA: 0x00002082 File Offset: 0x00000282
[Token(Token = "0x60023D4")]
[Address(RVA = "0x2DA4FE0", Offset = "0x2DA3DE0", VA = "0x182DA4FE0", Slot = "23")]
[ComVisible(false)]
public byte[] ExportCspBlob(bool includePrivateParameters)
{
return null;
}
/// <summary>Imports a blob that represents DSA key information.</summary>
/// <param name="keyBlob">A byte array that represents a DSA key blob.</param>
// Token: 0x060023D5 RID: 9173 RVA: 0x00002050 File Offset: 0x00000250
[Token(Token = "0x60023D5")]
[Address(RVA = "0x2DA53C0", Offset = "0x2DA41C0", VA = "0x182DA53C0", Slot = "24")]
[ComVisible(false)]
public void ImportCspBlob(byte[] keyBlob)
{
}
// Token: 0x04001442 RID: 5186
[Token(Token = "0x4001442")]
private const int PROV_DSS_DH = 13;
// Token: 0x04001443 RID: 5187
[global::Cpp2IlInjected.FieldOffset(Offset = "0x20")]
[Token(Token = "0x4001443")]
private KeyPairPersistence store;
// Token: 0x04001444 RID: 5188
[global::Cpp2IlInjected.FieldOffset(Offset = "0x28")]
[Token(Token = "0x4001444")]
private bool persistKey;
// Token: 0x04001445 RID: 5189
[global::Cpp2IlInjected.FieldOffset(Offset = "0x29")]
[Token(Token = "0x4001445")]
private bool persisted;
// Token: 0x04001446 RID: 5190
[global::Cpp2IlInjected.FieldOffset(Offset = "0x2A")]
[Token(Token = "0x4001446")]
private bool privateKeyExportable;
// Token: 0x04001447 RID: 5191
[global::Cpp2IlInjected.FieldOffset(Offset = "0x2B")]
[Token(Token = "0x4001447")]
private bool m_disposed;
// Token: 0x04001448 RID: 5192
[global::Cpp2IlInjected.FieldOffset(Offset = "0x30")]
[Token(Token = "0x4001448")]
private DSAManaged dsa;
// Token: 0x04001449 RID: 5193
[Token(Token = "0x4001449")]
private static bool useMachineKeyStore;
}
}
@@ -0,0 +1,63 @@
using System;
using System.Runtime.InteropServices;
using Cpp2IlInjected;
namespace System.Security.Cryptography
{
/// <summary>Contains the typical parameters for the <see cref="T:System.Security.Cryptography.DSA" /> algorithm.</summary>
// Token: 0x020003E5 RID: 997
[Token(Token = "0x20003E5")]
[ComVisible(true)]
[Serializable]
public struct DSAParameters
{
/// <summary>Specifies the <see langword="P" /> parameter for the <see cref="T:System.Security.Cryptography.DSA" /> algorithm.</summary>
// Token: 0x0400134A RID: 4938
[global::Cpp2IlInjected.FieldOffset(Offset = "0x0")]
[Token(Token = "0x400134A")]
public byte[] P;
/// <summary>Specifies the <see langword="Q" /> parameter for the <see cref="T:System.Security.Cryptography.DSA" /> algorithm.</summary>
// Token: 0x0400134B RID: 4939
[global::Cpp2IlInjected.FieldOffset(Offset = "0x8")]
[Token(Token = "0x400134B")]
public byte[] Q;
/// <summary>Specifies the <see langword="G" /> parameter for the <see cref="T:System.Security.Cryptography.DSA" /> algorithm.</summary>
// Token: 0x0400134C RID: 4940
[global::Cpp2IlInjected.FieldOffset(Offset = "0x10")]
[Token(Token = "0x400134C")]
public byte[] G;
/// <summary>Specifies the <see langword="Y" /> parameter for the <see cref="T:System.Security.Cryptography.DSA" /> algorithm.</summary>
// Token: 0x0400134D RID: 4941
[global::Cpp2IlInjected.FieldOffset(Offset = "0x18")]
[Token(Token = "0x400134D")]
public byte[] Y;
/// <summary>Specifies the <see langword="J" /> parameter for the <see cref="T:System.Security.Cryptography.DSA" /> algorithm.</summary>
// Token: 0x0400134E RID: 4942
[global::Cpp2IlInjected.FieldOffset(Offset = "0x20")]
[Token(Token = "0x400134E")]
public byte[] J;
/// <summary>Specifies the <see langword="X" /> parameter for the <see cref="T:System.Security.Cryptography.DSA" /> algorithm.</summary>
// Token: 0x0400134F RID: 4943
[global::Cpp2IlInjected.FieldOffset(Offset = "0x28")]
[Token(Token = "0x400134F")]
[NonSerialized]
public byte[] X;
/// <summary>Specifies the seed for the <see cref="T:System.Security.Cryptography.DSA" /> algorithm.</summary>
// Token: 0x04001350 RID: 4944
[global::Cpp2IlInjected.FieldOffset(Offset = "0x30")]
[Token(Token = "0x4001350")]
public byte[] Seed;
/// <summary>Specifies the counter for the <see cref="T:System.Security.Cryptography.DSA" /> algorithm.</summary>
// Token: 0x04001351 RID: 4945
[global::Cpp2IlInjected.FieldOffset(Offset = "0x38")]
[Token(Token = "0x4001351")]
public int Counter;
}
}
@@ -0,0 +1,81 @@
using System;
using System.Runtime.InteropServices;
using Cpp2IlInjected;
namespace System.Security.Cryptography
{
/// <summary>Verifies a Digital Signature Algorithm (<see cref="T:System.Security.Cryptography.DSA" />) PKCS#1 v1.5 signature.</summary>
// Token: 0x020003E7 RID: 999
[Token(Token = "0x20003E7")]
[ComVisible(true)]
public class DSASignatureDeformatter : AsymmetricSignatureDeformatter
{
/// <summary>Initializes a new instance of the <see cref="T:System.Security.Cryptography.DSASignatureDeformatter" /> class.</summary>
// Token: 0x0600219E RID: 8606 RVA: 0x00002050 File Offset: 0x00000250
[Token(Token = "0x600219E")]
[Address(RVA = "0x2DA6150", Offset = "0x2DA4F50", VA = "0x182DA6150")]
public DSASignatureDeformatter()
{
}
/// <summary>Initializes a new instance of the <see cref="T:System.Security.Cryptography.DSASignatureDeformatter" /> class with the specified key.</summary>
/// <param name="key">The instance of Digital Signature Algorithm (<see cref="T:System.Security.Cryptography.DSA" />) that holds the key.</param>
/// <exception cref="T:System.ArgumentNullException">
/// <paramref name="key" /> is <see langword="null" />.</exception>
// Token: 0x0600219F RID: 8607 RVA: 0x00002050 File Offset: 0x00000250
[Token(Token = "0x600219F")]
[Address(RVA = "0x2DA6040", Offset = "0x2DA4E40", VA = "0x182DA6040")]
public DSASignatureDeformatter(AsymmetricAlgorithm key)
{
}
/// <summary>Specifies the key to be used for the Digital Signature Algorithm (<see cref="T:System.Security.Cryptography.DSA" />) signature deformatter.</summary>
/// <param name="key">The instance of <see cref="T:System.Security.Cryptography.DSA" /> that holds the key.</param>
/// <exception cref="T:System.ArgumentNullException">
/// <paramref name="key" /> is <see langword="null" />.</exception>
// Token: 0x060021A0 RID: 8608 RVA: 0x00002050 File Offset: 0x00000250
[Token(Token = "0x60021A0")]
[Address(RVA = "0x2DA5E70", Offset = "0x2DA4C70", VA = "0x182DA5E70", Slot = "4")]
public override void SetKey(AsymmetricAlgorithm key)
{
}
/// <summary>Specifies the hash algorithm for the Digital Signature Algorithm (<see cref="T:System.Security.Cryptography.DSA" />) signature deformatter.</summary>
/// <param name="strName">The name of the hash algorithm to use for the signature deformatter.</param>
/// <exception cref="T:System.Security.Cryptography.CryptographicUnexpectedOperationException">The <paramref name="strName" /> parameter does not map to the <see cref="T:System.Security.Cryptography.SHA1" /> hash algorithm.</exception>
// Token: 0x060021A1 RID: 8609 RVA: 0x00002050 File Offset: 0x00000250
[Token(Token = "0x60021A1")]
[Address(RVA = "0x2DA5DC0", Offset = "0x2DA4BC0", VA = "0x182DA5DC0", Slot = "5")]
public override void SetHashAlgorithm(string strName)
{
}
/// <summary>Verifies the Digital Signature Algorithm (<see cref="T:System.Security.Cryptography.DSA" />) signature on the data.</summary>
/// <param name="rgbHash">The data signed with <paramref name="rgbSignature" />.</param>
/// <param name="rgbSignature">The signature to be verified for <paramref name="rgbHash" />.</param>
/// <returns>
/// <see langword="true" /> if the signature is valid for the data; otherwise, <see langword="false" />.</returns>
/// <exception cref="T:System.ArgumentNullException">
/// <paramref name="rgbHash" /> is <see langword="null" />.
/// -or-
/// <paramref name="rgbSignature" /> is <see langword="null" />.</exception>
/// <exception cref="T:System.Security.Cryptography.CryptographicUnexpectedOperationException">The DSA key is missing.</exception>
// Token: 0x060021A2 RID: 8610 RVA: 0x00014988 File Offset: 0x00012B88
[Token(Token = "0x60021A2")]
[Address(RVA = "0x2DA5F30", Offset = "0x2DA4D30", VA = "0x182DA5F30", Slot = "7")]
public override bool VerifySignature(byte[] rgbHash, byte[] rgbSignature)
{
return default(bool);
}
// Token: 0x04001352 RID: 4946
[global::Cpp2IlInjected.FieldOffset(Offset = "0x10")]
[Token(Token = "0x4001352")]
private DSA _dsaKey;
// Token: 0x04001353 RID: 4947
[global::Cpp2IlInjected.FieldOffset(Offset = "0x18")]
[Token(Token = "0x4001353")]
private string _oid;
}
}
@@ -0,0 +1,17 @@
using System;
using Cpp2IlInjected;
namespace System.Security.Cryptography
{
// Token: 0x02000418 RID: 1048
[Token(Token = "0x2000418")]
internal class DSASignatureDescription : SignatureDescription
{
// Token: 0x06002344 RID: 9028 RVA: 0x00002050 File Offset: 0x00000250
[Token(Token = "0x6002344")]
[Address(RVA = "0x2DA61C0", Offset = "0x2DA4FC0", VA = "0x182DA61C0")]
public DSASignatureDescription()
{
}
}
}
@@ -0,0 +1,79 @@
using System;
using System.Runtime.InteropServices;
using Cpp2IlInjected;
namespace System.Security.Cryptography
{
/// <summary>Creates a Digital Signature Algorithm (<see cref="T:System.Security.Cryptography.DSA" />) signature.</summary>
// Token: 0x020003E8 RID: 1000
[Token(Token = "0x20003E8")]
[ComVisible(true)]
public class DSASignatureFormatter : AsymmetricSignatureFormatter
{
/// <summary>Initializes a new instance of the <see cref="T:System.Security.Cryptography.DSASignatureFormatter" /> class.</summary>
// Token: 0x060021A3 RID: 8611 RVA: 0x00002050 File Offset: 0x00000250
[Token(Token = "0x60021A3")]
[Address(RVA = "0x2DA64A0", Offset = "0x2DA52A0", VA = "0x182DA64A0")]
public DSASignatureFormatter()
{
}
/// <summary>Initializes a new instance of the <see cref="T:System.Security.Cryptography.DSASignatureFormatter" /> class with the specified key.</summary>
/// <param name="key">The instance of the Digital Signature Algorithm (<see cref="T:System.Security.Cryptography.DSA" />) that holds the key.</param>
/// <exception cref="T:System.ArgumentNullException">
/// <paramref name="key" /> is <see langword="null" />.</exception>
// Token: 0x060021A4 RID: 8612 RVA: 0x00002050 File Offset: 0x00000250
[Token(Token = "0x60021A4")]
[Address(RVA = "0x2DA6510", Offset = "0x2DA5310", VA = "0x182DA6510")]
public DSASignatureFormatter(AsymmetricAlgorithm key)
{
}
/// <summary>Specifies the key to be used for the Digital Signature Algorithm (<see cref="T:System.Security.Cryptography.DSA" />) signature formatter.</summary>
/// <param name="key">The instance of <see cref="T:System.Security.Cryptography.DSA" /> that holds the key.</param>
/// <exception cref="T:System.ArgumentNullException">
/// <paramref name="key" /> is <see langword="null" />.</exception>
// Token: 0x060021A5 RID: 8613 RVA: 0x00002050 File Offset: 0x00000250
[Token(Token = "0x60021A5")]
[Address(RVA = "0x2DA63E0", Offset = "0x2DA51E0", VA = "0x182DA63E0", Slot = "4")]
public override void SetKey(AsymmetricAlgorithm key)
{
}
/// <summary>Specifies the hash algorithm for the Digital Signature Algorithm (<see cref="T:System.Security.Cryptography.DSA" />) signature formatter.</summary>
/// <param name="strName">The name of the hash algorithm to use for the signature formatter.</param>
/// <exception cref="T:System.Security.Cryptography.CryptographicUnexpectedOperationException">The <paramref name="strName" /> parameter does not map to the <see cref="T:System.Security.Cryptography.SHA1" /> hash algorithm.</exception>
// Token: 0x060021A6 RID: 8614 RVA: 0x00002050 File Offset: 0x00000250
[Token(Token = "0x60021A6")]
[Address(RVA = "0x2DA6330", Offset = "0x2DA5130", VA = "0x182DA6330", Slot = "5")]
public override void SetHashAlgorithm(string strName)
{
}
/// <summary>Creates the Digital Signature Algorithm (<see cref="T:System.Security.Cryptography.DSA" />) PKCS #1 signature for the specified data.</summary>
/// <param name="rgbHash">The data to be signed.</param>
/// <returns>The digital signature for the specified data.</returns>
/// <exception cref="T:System.ArgumentNullException">
/// <paramref name="rgbHash" /> is <see langword="null" />.</exception>
/// <exception cref="T:System.Security.Cryptography.CryptographicUnexpectedOperationException">The OID is <see langword="null" />.
/// -or-
/// The DSA key is <see langword="null" />.</exception>
// Token: 0x060021A7 RID: 8615 RVA: 0x00002082 File Offset: 0x00000282
[Token(Token = "0x60021A7")]
[Address(RVA = "0x2DA6220", Offset = "0x2DA5020", VA = "0x182DA6220", Slot = "7")]
public override byte[] CreateSignature(byte[] rgbHash)
{
return null;
}
// Token: 0x04001354 RID: 4948
[global::Cpp2IlInjected.FieldOffset(Offset = "0x10")]
[Token(Token = "0x4001354")]
private DSA _dsaKey;
// Token: 0x04001355 RID: 4949
[global::Cpp2IlInjected.FieldOffset(Offset = "0x18")]
[Token(Token = "0x4001355")]
private string _oid;
}
}
@@ -0,0 +1,53 @@
using System;
using System.Runtime.InteropServices;
using Cpp2IlInjected;
namespace System.Security.Cryptography
{
/// <summary>Represents the abstract base class from which all classes that derive byte sequences of a specified length inherit.</summary>
// Token: 0x020003E2 RID: 994
[Token(Token = "0x20003E2")]
[ComVisible(true)]
public abstract class DeriveBytes : IDisposable
{
/// <summary>When overridden in a derived class, returns pseudo-random key bytes.</summary>
/// <param name="cb">The number of pseudo-random key bytes to generate.</param>
/// <returns>A byte array filled with pseudo-random key bytes.</returns>
// Token: 0x06002177 RID: 8567
[Token(Token = "0x6002177")]
[Address(Slot = "5")]
public abstract byte[] GetBytes(int cb);
/// <summary>When overridden in a derived class, resets the state of the operation.</summary>
// Token: 0x06002178 RID: 8568
[Token(Token = "0x6002178")]
[Address(Slot = "6")]
public abstract void Reset();
/// <summary>When overridden in a derived class, releases all resources used by the current instance of the <see cref="T:System.Security.Cryptography.DeriveBytes" /> class.</summary>
// Token: 0x06002179 RID: 8569 RVA: 0x00002050 File Offset: 0x00000250
[Token(Token = "0x6002179")]
[Address(RVA = "0x2DA7AF0", Offset = "0x2DA68F0", VA = "0x182DA7AF0", Slot = "4")]
public void Dispose()
{
}
/// <summary>When overridden in a derived class, releases the unmanaged resources used by the <see cref="T:System.Security.Cryptography.DeriveBytes" /> 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: 0x0600217A RID: 8570 RVA: 0x00002050 File Offset: 0x00000250
[Token(Token = "0x600217A")]
[Address(RVA = "0x402080", Offset = "0x400E80", VA = "0x180402080", Slot = "7")]
protected virtual void Dispose(bool disposing)
{
}
/// <summary>Initializes a new instance of the <see cref="T:System.Security.Cryptography.DeriveBytes" /> class.</summary>
// Token: 0x0600217B RID: 8571 RVA: 0x00002050 File Offset: 0x00000250
[Token(Token = "0x600217B")]
[Address(RVA = "0x3F5100", Offset = "0x3F3F00", VA = "0x1803F5100")]
protected DeriveBytes()
{
}
}
}
@@ -0,0 +1,200 @@
using System;
using System.Runtime.InteropServices;
using Cpp2IlInjected;
namespace System.Security.Cryptography
{
/// <summary>Converts a <see cref="T:System.Security.Cryptography.CryptoStream" /> from base 64.</summary>
// Token: 0x020003D5 RID: 981
[Token(Token = "0x20003D5")]
[ComVisible(true)]
public class FromBase64Transform : ICryptoTransform, IDisposable
{
/// <summary>Initializes a new instance of the <see cref="T:System.Security.Cryptography.FromBase64Transform" /> class.</summary>
// Token: 0x06002129 RID: 8489 RVA: 0x00002050 File Offset: 0x00000250
[Token(Token = "0x6002129")]
[Address(RVA = "0x2DA8520", Offset = "0x2DA7320", VA = "0x182DA8520")]
public FromBase64Transform()
{
}
/// <summary>Initializes a new instance of the <see cref="T:System.Security.Cryptography.FromBase64Transform" /> class with the specified transformation mode.</summary>
/// <param name="whitespaces">One of the <see cref="T:System.Security.Cryptography.FromBase64Transform" /> values.</param>
// Token: 0x0600212A RID: 8490 RVA: 0x00002050 File Offset: 0x00000250
[Token(Token = "0x600212A")]
[Address(RVA = "0x2DA8570", Offset = "0x2DA7370", VA = "0x182DA8570")]
public FromBase64Transform(FromBase64TransformMode whitespaces)
{
}
/// <summary>Gets the input block size.</summary>
/// <returns>The size of the input data blocks in bytes.</returns>
// Token: 0x17000484 RID: 1156
// (get) Token: 0x0600212B RID: 8491 RVA: 0x000146D0 File Offset: 0x000128D0
[Token(Token = "0x17000484")]
public int InputBlockSize
{
[Token(Token = "0x600212B")]
[Address(RVA = "0x4100E0", Offset = "0x40EEE0", VA = "0x1804100E0", Slot = "4")]
get
{
return 0;
}
}
/// <summary>Gets the output block size.</summary>
/// <returns>The size of the output data blocks in bytes.</returns>
// Token: 0x17000485 RID: 1157
// (get) Token: 0x0600212C RID: 8492 RVA: 0x000146E8 File Offset: 0x000128E8
[Token(Token = "0x17000485")]
public int OutputBlockSize
{
[Token(Token = "0x600212C")]
[Address(RVA = "0x53A4A0", Offset = "0x5392A0", VA = "0x18053A4A0", Slot = "5")]
get
{
return 0;
}
}
/// <summary>Gets a value that indicates whether multiple blocks can be transformed.</summary>
/// <returns>Always <see langword="false" />.</returns>
// Token: 0x17000486 RID: 1158
// (get) Token: 0x0600212D RID: 8493 RVA: 0x00014700 File Offset: 0x00012900
[Token(Token = "0x17000486")]
public bool CanTransformMultipleBlocks
{
[Token(Token = "0x600212D")]
[Address(RVA = "0x403930", Offset = "0x402730", VA = "0x180403930", Slot = "6")]
get
{
return default(bool);
}
}
/// <summary>Gets a value indicating whether the current transform can be reused.</summary>
/// <returns>Always <see langword="true" />.</returns>
// Token: 0x17000487 RID: 1159
// (get) Token: 0x0600212E RID: 8494 RVA: 0x00014718 File Offset: 0x00012918
[Token(Token = "0x17000487")]
public virtual bool CanReuseTransform
{
[Token(Token = "0x600212E")]
[Address(RVA = "0x460D40", Offset = "0x45FB40", VA = "0x180460D40", Slot = "11")]
get
{
return default(bool);
}
}
/// <summary>Converts the specified region of the input byte array from base 64 and copies the result to the specified region of the output byte array.</summary>
/// <param name="inputBuffer">The input to compute from base 64.</param>
/// <param name="inputOffset">The offset into the input byte array from which to begin using data.</param>
/// <param name="inputCount">The number of bytes in the input byte array to use as data.</param>
/// <param name="outputBuffer">The output to which to write the result.</param>
/// <param name="outputOffset">The offset into the output byte array from which to begin writing data.</param>
/// <returns>The number of bytes written.</returns>
/// <exception cref="T:System.ObjectDisposedException">The current <see cref="T:System.Security.Cryptography.FromBase64Transform" /> object has already been disposed.</exception>
/// <exception cref="T:System.ArgumentException">
/// <paramref name="inputCount" /> uses an invalid value.
/// -or-
/// <paramref name="inputBuffer" /> has an invalid offset length.</exception>
/// <exception cref="T:System.ArgumentOutOfRangeException">
/// <paramref name="inputOffset" /> is out of range. This parameter requires a non-negative number.</exception>
/// <exception cref="T:System.ArgumentNullException">
/// <paramref name="inputBuffer" /> is <see langword="null" />.</exception>
// Token: 0x0600212F RID: 8495 RVA: 0x00014730 File Offset: 0x00012930
[Token(Token = "0x600212F")]
[Address(RVA = "0x2DA7E40", Offset = "0x2DA6C40", VA = "0x182DA7E40", Slot = "8")]
public int TransformBlock(byte[] inputBuffer, int inputOffset, int inputCount, byte[] outputBuffer, int outputOffset)
{
return 0;
}
/// <summary>Converts the specified region of the specified byte array from base 64.</summary>
/// <param name="inputBuffer">The input to convert from base 64.</param>
/// <param name="inputOffset">The offset into the byte array from which to begin using data.</param>
/// <param name="inputCount">The number of bytes in the byte array to use as data.</param>
/// <returns>The computed conversion.</returns>
/// <exception cref="T:System.ObjectDisposedException">The current <see cref="T:System.Security.Cryptography.FromBase64Transform" /> object has already been disposed.</exception>
/// <exception cref="T:System.ArgumentException">
/// <paramref name="inputBuffer" /> has an invalid offset length.
/// -or-
/// <paramref name="inputCount" /> has an invalid value.</exception>
/// <exception cref="T:System.ArgumentOutOfRangeException">
/// <paramref name="inputOffset" /> is out of range. This parameter requires a non-negative number.</exception>
/// <exception cref="T:System.ArgumentNullException">
/// <paramref name="inputBuffer" /> is <see langword="null" />.</exception>
// Token: 0x06002130 RID: 8496 RVA: 0x00002082 File Offset: 0x00000282
[Token(Token = "0x6002130")]
[Address(RVA = "0x2DA81C0", Offset = "0x2DA6FC0", VA = "0x182DA81C0", Slot = "9")]
public byte[] TransformFinalBlock(byte[] inputBuffer, int inputOffset, int inputCount)
{
return null;
}
// Token: 0x06002131 RID: 8497 RVA: 0x00002082 File Offset: 0x00000282
[Token(Token = "0x6002131")]
[Address(RVA = "0x2DA7BD0", Offset = "0x2DA69D0", VA = "0x182DA7BD0")]
private byte[] DiscardWhiteSpaces(byte[] inputBuffer, int inputOffset, int inputCount)
{
return null;
}
/// <summary>Releases all resources used by the current instance of the <see cref="T:System.Security.Cryptography.FromBase64Transform" /> class.</summary>
// Token: 0x06002132 RID: 8498 RVA: 0x00002050 File Offset: 0x00000250
[Token(Token = "0x6002132")]
[Address(RVA = "0x2DA7B60", Offset = "0x2DA6960", VA = "0x182DA7B60", Slot = "10")]
public void Dispose()
{
}
// Token: 0x06002133 RID: 8499 RVA: 0x00002050 File Offset: 0x00000250
[Token(Token = "0x6002133")]
[Address(RVA = "0x24C7AE0", Offset = "0x24C68E0", VA = "0x1824C7AE0")]
private void Reset()
{
}
/// <summary>Releases all resources used by the <see cref="T:System.Security.Cryptography.FromBase64Transform" />.</summary>
// Token: 0x06002134 RID: 8500 RVA: 0x00002050 File Offset: 0x00000250
[Token(Token = "0x6002134")]
[Address(RVA = "0x2DA7B60", Offset = "0x2DA6960", VA = "0x182DA7B60")]
public void Clear()
{
}
/// <summary>Releases the unmanaged resources used by the <see cref="T:System.Security.Cryptography.FromBase64Transform" /> 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: 0x06002135 RID: 8501 RVA: 0x00002050 File Offset: 0x00000250
[Token(Token = "0x6002135")]
[Address(RVA = "0x2DA7D80", Offset = "0x2DA6B80", VA = "0x182DA7D80", Slot = "12")]
protected virtual void Dispose(bool disposing)
{
}
/// <summary>Releases the unmanaged resources used by the <see cref="T:System.Security.Cryptography.FromBase64Transform" />.</summary>
// Token: 0x06002136 RID: 8502 RVA: 0x00002050 File Offset: 0x00000250
[Token(Token = "0x6002136")]
[Address(RVA = "0x2DA7DC0", Offset = "0x2DA6BC0", VA = "0x182DA7DC0", Slot = "1")]
protected override void Finalize()
{
}
// Token: 0x040012F6 RID: 4854
[global::Cpp2IlInjected.FieldOffset(Offset = "0x10")]
[Token(Token = "0x40012F6")]
private byte[] _inputBuffer;
// Token: 0x040012F7 RID: 4855
[global::Cpp2IlInjected.FieldOffset(Offset = "0x18")]
[Token(Token = "0x40012F7")]
private int _inputIndex;
// Token: 0x040012F8 RID: 4856
[global::Cpp2IlInjected.FieldOffset(Offset = "0x1C")]
[Token(Token = "0x40012F8")]
private FromBase64TransformMode _whitespaces;
}
}
@@ -0,0 +1,23 @@
using System;
using System.Runtime.InteropServices;
using Cpp2IlInjected;
namespace System.Security.Cryptography
{
/// <summary>Specifies whether white space should be ignored in the base 64 transformation.</summary>
// Token: 0x020003D3 RID: 979
[Token(Token = "0x20003D3")]
[ComVisible(true)]
[Serializable]
public enum FromBase64TransformMode
{
/// <summary>White space should be ignored.</summary>
// Token: 0x040012F4 RID: 4852
[Token(Token = "0x40012F4")]
IgnoreWhiteSpaces,
/// <summary>White space should not be ignored.</summary>
// Token: 0x040012F5 RID: 4853
[Token(Token = "0x40012F5")]
DoNotIgnoreWhiteSpaces
}
}
@@ -0,0 +1,240 @@
using System;
using System.Runtime.InteropServices;
using Cpp2IlInjected;
namespace System.Security.Cryptography
{
/// <summary>Represents the abstract class from which all implementations of Hash-based Message Authentication Code (HMAC) must derive.</summary>
// Token: 0x020003EA RID: 1002
[Token(Token = "0x20003EA")]
[ComVisible(true)]
public abstract class HMAC : KeyedHashAlgorithm
{
/// <summary>Gets or sets the block size to use in the hash value.</summary>
/// <returns>The block size to use in the hash value.</returns>
// Token: 0x1700049D RID: 1181
// (get) Token: 0x060021BC RID: 8636 RVA: 0x00014A30 File Offset: 0x00012C30
// (set) Token: 0x060021BD RID: 8637 RVA: 0x00002050 File Offset: 0x00000250
[Token(Token = "0x1700049D")]
protected int BlockSizeValue
{
[Token(Token = "0x60021BC")]
[Address(RVA = "0x4730E0", Offset = "0x471EE0", VA = "0x1804730E0")]
get
{
return 0;
}
[Token(Token = "0x60021BD")]
[Address(RVA = "0x6CBD90", Offset = "0x6CAB90", VA = "0x1806CBD90")]
set
{
}
}
// Token: 0x060021BE RID: 8638 RVA: 0x00002050 File Offset: 0x00000250
[Token(Token = "0x60021BE")]
[Address(RVA = "0x2DA9700", Offset = "0x2DA8500", VA = "0x182DA9700")]
private void UpdateIOPadBuffers()
{
}
// Token: 0x060021BF RID: 8639 RVA: 0x00002050 File Offset: 0x00000250
[Token(Token = "0x60021BF")]
[Address(RVA = "0x2DA95E0", Offset = "0x2DA83E0", VA = "0x182DA95E0")]
internal void InitializeKey(byte[] key)
{
}
/// <summary>Gets or sets the key to use in the hash algorithm.</summary>
/// <returns>The key to use in the hash algorithm.</returns>
/// <exception cref="T:System.Security.Cryptography.CryptographicException">An attempt is made to change the <see cref="P:System.Security.Cryptography.HMAC.Key" /> property after hashing has begun.</exception>
// Token: 0x1700049E RID: 1182
// (get) Token: 0x060021C0 RID: 8640 RVA: 0x00002082 File Offset: 0x00000282
// (set) Token: 0x060021C1 RID: 8641 RVA: 0x00002050 File Offset: 0x00000250
[Token(Token = "0x1700049E")]
public override byte[] Key
{
[Token(Token = "0x60021C0")]
[Address(RVA = "0x2DA98A0", Offset = "0x2DA86A0", VA = "0x182DA98A0", Slot = "21")]
get
{
return null;
}
[Token(Token = "0x60021C1")]
[Address(RVA = "0x2DA99C0", Offset = "0x2DA87C0", VA = "0x182DA99C0", Slot = "22")]
set
{
}
}
/// <summary>Gets or sets the name of the hash algorithm to use for hashing.</summary>
/// <returns>The name of the hash algorithm.</returns>
/// <exception cref="T:System.Security.Cryptography.CryptographicException">The current hash algorithm cannot be changed.</exception>
// Token: 0x1700049F RID: 1183
// (get) Token: 0x060021C2 RID: 8642 RVA: 0x00002082 File Offset: 0x00000282
// (set) Token: 0x060021C3 RID: 8643 RVA: 0x00002050 File Offset: 0x00000250
[Token(Token = "0x1700049F")]
public string HashName
{
[Token(Token = "0x60021C2")]
[Address(RVA = "0x3F63D0", Offset = "0x3F51D0", VA = "0x1803F63D0")]
get
{
return null;
}
[Token(Token = "0x60021C3")]
[Address(RVA = "0x2DA9920", Offset = "0x2DA8720", VA = "0x182DA9920")]
set
{
}
}
/// <summary>Creates an instance of the default implementation of a Hash-based Message Authentication Code (HMAC).</summary>
/// <returns>A new SHA-1 instance, unless the default settings have been changed by using the &lt;cryptoClass&gt; element.</returns>
// Token: 0x060021C4 RID: 8644 RVA: 0x00002082 File Offset: 0x00000282
[Token(Token = "0x60021C4")]
[Address(RVA = "0x2DA9180", Offset = "0x2DA7F80", VA = "0x182DA9180")]
public new static HMAC Create()
{
return null;
}
/// <summary>Creates an instance of the specified implementation of a Hash-based Message Authentication Code (HMAC).</summary>
/// <param name="algorithmName">The HMAC implementation to use. The following table shows the valid values for the <paramref name="algorithmName" /> parameter and the algorithms they map to.
/// Parameter value
///
/// Implements
///
/// System.Security.Cryptography.HMAC
///
/// <see cref="T:System.Security.Cryptography.HMACSHA1" /> System.Security.Cryptography.KeyedHashAlgorithm
///
/// <see cref="T:System.Security.Cryptography.HMACSHA1" /> HMACMD5
///
/// <see cref="T:System.Security.Cryptography.HMACMD5" /> System.Security.Cryptography.HMACMD5
///
/// <see cref="T:System.Security.Cryptography.HMACMD5" /> HMACRIPEMD160
///
/// <see cref="T:System.Security.Cryptography.HMACRIPEMD160" /> System.Security.Cryptography.HMACRIPEMD160
///
/// <see cref="T:System.Security.Cryptography.HMACRIPEMD160" /> HMACSHA1
///
/// <see cref="T:System.Security.Cryptography.HMACSHA1" /> System.Security.Cryptography.HMACSHA1
///
/// <see cref="T:System.Security.Cryptography.HMACSHA1" /> HMACSHA256
///
/// <see cref="T:System.Security.Cryptography.HMACSHA256" /> System.Security.Cryptography.HMACSHA256
///
/// <see cref="T:System.Security.Cryptography.HMACSHA256" /> HMACSHA384
///
/// <see cref="T:System.Security.Cryptography.HMACSHA384" /> System.Security.Cryptography.HMACSHA384
///
/// <see cref="T:System.Security.Cryptography.HMACSHA384" /> HMACSHA512
///
/// <see cref="T:System.Security.Cryptography.HMACSHA512" /> System.Security.Cryptography.HMACSHA512
///
/// <see cref="T:System.Security.Cryptography.HMACSHA512" /> MACTripleDES
///
/// <see cref="T:System.Security.Cryptography.MACTripleDES" /> System.Security.Cryptography.MACTripleDES
///
/// <see cref="T:System.Security.Cryptography.MACTripleDES" /></param>
/// <returns>A new instance of the specified HMAC implementation.</returns>
// Token: 0x060021C5 RID: 8645 RVA: 0x00002082 File Offset: 0x00000282
[Token(Token = "0x60021C5")]
[Address(RVA = "0x2DA90F0", Offset = "0x2DA7EF0", VA = "0x182DA90F0")]
public new static HMAC Create(string algorithmName)
{
return null;
}
/// <summary>Initializes an instance of the default implementation of <see cref="T:System.Security.Cryptography.HMAC" />.</summary>
// Token: 0x060021C6 RID: 8646 RVA: 0x00002050 File Offset: 0x00000250
[Token(Token = "0x60021C6")]
[Address(RVA = "0x2DA96B0", Offset = "0x2DA84B0", VA = "0x182DA96B0", Slot = "18")]
public override void Initialize()
{
}
/// <summary>When overridden in a derived class, routes data written to the object into the default <see cref="T:System.Security.Cryptography.HMAC" /> hash algorithm for computing the hash value.</summary>
/// <param name="rgb">The input data.</param>
/// <param name="ib">The offset into the byte array from which to begin using data.</param>
/// <param name="cb">The number of bytes in the array to use as data.</param>
// Token: 0x060021C7 RID: 8647 RVA: 0x00002050 File Offset: 0x00000250
[Token(Token = "0x60021C7")]
[Address(RVA = "0x2DA93B0", Offset = "0x2DA81B0", VA = "0x182DA93B0", Slot = "19")]
protected override void HashCore(byte[] rgb, int ib, int cb)
{
}
/// <summary>When overridden in a derived class, finalizes the hash computation after the last data is processed by the cryptographic stream object.</summary>
/// <returns>The computed hash code in a byte array.</returns>
// Token: 0x060021C8 RID: 8648 RVA: 0x00002082 File Offset: 0x00000282
[Token(Token = "0x60021C8")]
[Address(RVA = "0x2DA9460", Offset = "0x2DA8260", VA = "0x182DA9460", Slot = "20")]
protected override byte[] HashFinal()
{
return null;
}
/// <summary>Releases the unmanaged resources used by the <see cref="T:System.Security.Cryptography.HMAC" /> class when a key change is legitimate 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: 0x060021C9 RID: 8649 RVA: 0x00002050 File Offset: 0x00000250
[Token(Token = "0x60021C9")]
[Address(RVA = "0x2DA91D0", Offset = "0x2DA7FD0", VA = "0x182DA91D0", Slot = "17")]
protected override void Dispose(bool disposing)
{
}
// Token: 0x060021CA RID: 8650 RVA: 0x00002082 File Offset: 0x00000282
[Token(Token = "0x60021CA")]
[Address(RVA = "0x2DA92B0", Offset = "0x2DA80B0", VA = "0x182DA92B0")]
internal static HashAlgorithm GetHashAlgorithmWithFipsFallback(Func<HashAlgorithm> createStandardHashAlgorithmCallback, Func<HashAlgorithm> createFipsHashAlgorithmCallback)
{
return null;
}
/// <summary>Initializes a new instance of the <see cref="T:System.Security.Cryptography.HMAC" /> class.</summary>
// Token: 0x060021CB RID: 8651 RVA: 0x00002050 File Offset: 0x00000250
[Token(Token = "0x60021CB")]
[Address(RVA = "0x2DA9890", Offset = "0x2DA8690", VA = "0x182DA9890")]
protected HMAC()
{
}
// Token: 0x0400135A RID: 4954
[global::Cpp2IlInjected.FieldOffset(Offset = "0x30")]
[Token(Token = "0x400135A")]
private int blockSizeValue;
// Token: 0x0400135B RID: 4955
[global::Cpp2IlInjected.FieldOffset(Offset = "0x38")]
[Token(Token = "0x400135B")]
internal string m_hashName;
// Token: 0x0400135C RID: 4956
[global::Cpp2IlInjected.FieldOffset(Offset = "0x40")]
[Token(Token = "0x400135C")]
internal HashAlgorithm m_hash1;
// Token: 0x0400135D RID: 4957
[global::Cpp2IlInjected.FieldOffset(Offset = "0x48")]
[Token(Token = "0x400135D")]
internal HashAlgorithm m_hash2;
// Token: 0x0400135E RID: 4958
[global::Cpp2IlInjected.FieldOffset(Offset = "0x50")]
[Token(Token = "0x400135E")]
private byte[] m_inner;
// Token: 0x0400135F RID: 4959
[global::Cpp2IlInjected.FieldOffset(Offset = "0x58")]
[Token(Token = "0x400135F")]
private byte[] m_outer;
// Token: 0x04001360 RID: 4960
[global::Cpp2IlInjected.FieldOffset(Offset = "0x60")]
[Token(Token = "0x4001360")]
private bool m_hashing;
}
}
@@ -0,0 +1,31 @@
using System;
using System.Runtime.InteropServices;
using Cpp2IlInjected;
namespace System.Security.Cryptography
{
/// <summary>Computes a Hash-based Message Authentication Code (HMAC) by using the <see cref="T:System.Security.Cryptography.MD5" /> hash function.</summary>
// Token: 0x020003EB RID: 1003
[Token(Token = "0x20003EB")]
[ComVisible(true)]
public class HMACMD5 : HMAC
{
/// <summary>Initializes a new instance of the <see cref="T:System.Security.Cryptography.HMACMD5" /> class by using a randomly generated key.</summary>
// Token: 0x060021CC RID: 8652 RVA: 0x00002050 File Offset: 0x00000250
[Token(Token = "0x60021CC")]
[Address(RVA = "0x2DA8680", Offset = "0x2DA7480", VA = "0x182DA8680")]
public HMACMD5()
{
}
/// <summary>Initializes a new instance of the <see cref="T:System.Security.Cryptography.HMACMD5" /> class by using the specified key.</summary>
/// <param name="key">The secret key for <see cref="T:System.Security.Cryptography.HMACMD5" /> encryption. The key can be any length, but if it is more than 64 bytes long it will be hashed (using SHA-1) to derive a 64-byte key. Therefore, the recommended size of the secret key is 64 bytes.</param>
/// <exception cref="T:System.ArgumentNullException">The <paramref name="key" /> parameter is <see langword="null" />.</exception>
// Token: 0x060021CD RID: 8653 RVA: 0x00002050 File Offset: 0x00000250
[Token(Token = "0x60021CD")]
[Address(RVA = "0x2DA85D0", Offset = "0x2DA73D0", VA = "0x182DA85D0")]
public HMACMD5(byte[] key)
{
}
}
}
@@ -0,0 +1,31 @@
using System;
using System.Runtime.InteropServices;
using Cpp2IlInjected;
namespace System.Security.Cryptography
{
/// <summary>Computes a Hash-based Message Authentication Code (HMAC) by using the <see cref="T:System.Security.Cryptography.RIPEMD160" /> hash function.</summary>
// Token: 0x020003EC RID: 1004
[Token(Token = "0x20003EC")]
[ComVisible(true)]
public class HMACRIPEMD160 : HMAC
{
/// <summary>Initializes a new instance of the <see cref="T:System.Security.Cryptography.HMACRIPEMD160" /> class with a randomly generated 64-byte key.</summary>
// Token: 0x060021CE RID: 8654 RVA: 0x00002050 File Offset: 0x00000250
[Token(Token = "0x60021CE")]
[Address(RVA = "0x2DA8770", Offset = "0x2DA7570", VA = "0x182DA8770")]
public HMACRIPEMD160()
{
}
/// <summary>Initializes a new instance of the <see cref="T:System.Security.Cryptography.HMACRIPEMD160" /> class with the specified key data.</summary>
/// <param name="key">The secret key for <see cref="T:System.Security.Cryptography.HMACRIPEMD160" /> encryption. The key can be any length, but if it is more than 64 bytes long it is hashed (using SHA-1) to derive a 64-byte key. Therefore, the recommended size of the secret key is 64 bytes.</param>
/// <exception cref="T:System.ArgumentNullException">The <paramref name="key" /> parameter is <see langword="null" />.</exception>
// Token: 0x060021CF RID: 8655 RVA: 0x00002050 File Offset: 0x00000250
[Token(Token = "0x60021CF")]
[Address(RVA = "0x2DA8860", Offset = "0x2DA7660", VA = "0x182DA8860")]
public HMACRIPEMD160(byte[] key)
{
}
}
}
@@ -0,0 +1,42 @@
using System;
using System.Runtime.InteropServices;
using Cpp2IlInjected;
namespace System.Security.Cryptography
{
/// <summary>Computes a Hash-based Message Authentication Code (HMAC) using the <see cref="T:System.Security.Cryptography.SHA1" /> hash function.</summary>
// Token: 0x020003ED RID: 1005
[Token(Token = "0x20003ED")]
[ComVisible(true)]
public class HMACSHA1 : HMAC
{
/// <summary>Initializes a new instance of the <see cref="T:System.Security.Cryptography.HMACSHA1" /> class with a randomly generated key.</summary>
// Token: 0x060021D0 RID: 8656 RVA: 0x00002050 File Offset: 0x00000250
[Token(Token = "0x60021D0")]
[Address(RVA = "0x2DA89C0", Offset = "0x2DA77C0", VA = "0x182DA89C0")]
public HMACSHA1()
{
}
/// <summary>Initializes a new instance of the <see cref="T:System.Security.Cryptography.HMACSHA1" /> class with the specified key data.</summary>
/// <param name="key">The secret key for <see cref="T:System.Security.Cryptography.HMACSHA1" /> encryption. The key can be any length, but if it is more than 64 bytes long it is hashed (using SHA-1) to derive a 64-byte key. Therefore, the recommended size of the secret key is 64 bytes.</param>
/// <exception cref="T:System.ArgumentNullException">The <paramref name="key" /> parameter is <see langword="null" />.</exception>
// Token: 0x060021D1 RID: 8657 RVA: 0x00002050 File Offset: 0x00000250
[Token(Token = "0x60021D1")]
[Address(RVA = "0x2DA8910", Offset = "0x2DA7710", VA = "0x182DA8910")]
public HMACSHA1(byte[] key)
{
}
/// <summary>Initializes a new instance of the <see cref="T:System.Security.Cryptography.HMACSHA1" /> class with the specified key data and a value that specifies whether to use the managed version of the SHA1 algorithm.</summary>
/// <param name="key">The secret key for <see cref="T:System.Security.Cryptography.HMACSHA1" /> encryption. The key can be any length, but if it is more than 64 bytes long, it is hashed (using SHA-1) to derive a 64-byte key. Therefore, the recommended size of the secret key is 64 bytes.</param>
/// <param name="useManagedSha1">
/// <see langword="true" /> to use the managed implementation of the SHA1 algorithm (the <see cref="T:System.Security.Cryptography.SHA1Managed" /> class); <see langword="false" /> to use the unmanaged implementation (the <see cref="T:System.Security.Cryptography.SHA1CryptoServiceProvider" /> class).</param>
// Token: 0x060021D2 RID: 8658 RVA: 0x00002050 File Offset: 0x00000250
[Token(Token = "0x60021D2")]
[Address(RVA = "0x2DA8910", Offset = "0x2DA7710", VA = "0x182DA8910")]
public HMACSHA1(byte[] key, bool useManagedSha1)
{
}
}
}
@@ -0,0 +1,31 @@
using System;
using System.Runtime.InteropServices;
using Cpp2IlInjected;
namespace System.Security.Cryptography
{
/// <summary>Computes a Hash-based Message Authentication Code (HMAC) by using the <see cref="T:System.Security.Cryptography.SHA256" /> hash function.</summary>
// Token: 0x020003EE RID: 1006
[Token(Token = "0x20003EE")]
[ComVisible(true)]
public class HMACSHA256 : HMAC
{
/// <summary>Initializes a new instance of the <see cref="T:System.Security.Cryptography.HMACSHA256" /> class with a randomly generated key.</summary>
// Token: 0x060021D3 RID: 8659 RVA: 0x00002050 File Offset: 0x00000250
[Token(Token = "0x60021D3")]
[Address(RVA = "0x2DA8B60", Offset = "0x2DA7960", VA = "0x182DA8B60")]
public HMACSHA256()
{
}
/// <summary>Initializes a new instance of the <see cref="T:System.Security.Cryptography.HMACSHA256" /> class with the specified key data.</summary>
/// <param name="key">The secret key for <see cref="T:System.Security.Cryptography.HMACSHA256" /> encryption. The key can be any length. However, the recommended size is 64 bytes. If the key is more than 64 bytes long, it is hashed (using SHA-256) to derive a 64-byte key. If it is less than 64 bytes long, it is padded to 64 bytes.</param>
/// <exception cref="T:System.ArgumentNullException">The <paramref name="key" /> parameter is <see langword="null" />.</exception>
// Token: 0x060021D4 RID: 8660 RVA: 0x00002050 File Offset: 0x00000250
[Token(Token = "0x60021D4")]
[Address(RVA = "0x2DA8AB0", Offset = "0x2DA78B0", VA = "0x182DA8AB0")]
public HMACSHA256(byte[] key)
{
}
}
}
@@ -0,0 +1,71 @@
using System;
using System.Runtime.InteropServices;
using Cpp2IlInjected;
namespace System.Security.Cryptography
{
/// <summary>Computes a Hash-based Message Authentication Code (HMAC) using the <see cref="T:System.Security.Cryptography.SHA384" /> hash function.</summary>
// Token: 0x020003EF RID: 1007
[Token(Token = "0x20003EF")]
[ComVisible(true)]
public class HMACSHA384 : HMAC
{
/// <summary>Initializes a new instance of the <see cref="T:System.Security.Cryptography.HMACSHA384" /> class by using a randomly generated key.</summary>
// Token: 0x060021D5 RID: 8661 RVA: 0x00002050 File Offset: 0x00000250
[Token(Token = "0x60021D5")]
[Address(RVA = "0x2DA8D40", Offset = "0x2DA7B40", VA = "0x182DA8D40")]
public HMACSHA384()
{
}
/// <summary>Initializes a new instance of the <see cref="T:System.Security.Cryptography.HMACSHA384" /> class by using the specified key data.</summary>
/// <param name="key">The secret key for <see cref="T:System.Security.Cryptography.HMACSHA384" /> encryption. The key can be any length. However, the recommended size is 128 bytes. If the key is more than 128 bytes long, it is hashed (using SHA-384) to derive a 128-byte key. If it is less than 128 bytes long, it is padded to 128 bytes.</param>
/// <exception cref="T:System.ArgumentNullException">The <paramref name="key" /> parameter is <see langword="null" />.</exception>
// Token: 0x060021D6 RID: 8662 RVA: 0x00002050 File Offset: 0x00000250
[Token(Token = "0x60021D6")]
[Address(RVA = "0x2DA8C50", Offset = "0x2DA7A50", VA = "0x182DA8C50")]
public HMACSHA384(byte[] key)
{
}
// Token: 0x170004A0 RID: 1184
// (get) Token: 0x060021D7 RID: 8663 RVA: 0x00014A48 File Offset: 0x00012C48
[Token(Token = "0x170004A0")]
private int BlockSize
{
[Token(Token = "0x60021D7")]
[Address(RVA = "0x2DA8E80", Offset = "0x2DA7C80", VA = "0x182DA8E80")]
get
{
return 0;
}
}
/// <summary>Provides a workaround for the .NET Framework 2.0 implementation of the <see cref="T:System.Security.Cryptography.HMACSHA384" /> algorithm, which is inconsistent with the .NET Framework 2.0 Service Pack 1 implementation of the algorithm.</summary>
/// <returns>
/// <see langword="true" /> to enable .NET Framework 2.0 Service Pack 1 applications to interact with .NET Framework 2.0 applications; otherwise, <see langword="false" />.</returns>
// Token: 0x170004A1 RID: 1185
// (get) Token: 0x060021D8 RID: 8664 RVA: 0x00014A60 File Offset: 0x00012C60
// (set) Token: 0x060021D9 RID: 8665 RVA: 0x00002050 File Offset: 0x00000250
[Token(Token = "0x170004A1")]
public bool ProduceLegacyHmacValues
{
[Token(Token = "0x60021D8")]
[Address(RVA = "0x75C260", Offset = "0x75B060", VA = "0x18075C260")]
get
{
return default(bool);
}
[Token(Token = "0x60021D9")]
[Address(RVA = "0x2DA8EA0", Offset = "0x2DA7CA0", VA = "0x182DA8EA0")]
set
{
}
}
// Token: 0x04001361 RID: 4961
[global::Cpp2IlInjected.FieldOffset(Offset = "0x68")]
[Token(Token = "0x4001361")]
private bool m_useLegacyBlockSize;
}
}
@@ -0,0 +1,71 @@
using System;
using System.Runtime.InteropServices;
using Cpp2IlInjected;
namespace System.Security.Cryptography
{
/// <summary>Computes a Hash-based Message Authentication Code (HMAC) using the <see cref="T:System.Security.Cryptography.SHA512" /> hash function.</summary>
// Token: 0x020003F0 RID: 1008
[Token(Token = "0x20003F0")]
[ComVisible(true)]
public class HMACSHA512 : HMAC
{
/// <summary>Initializes a new instance of the <see cref="T:System.Security.Cryptography.HMACSHA512" /> class with a randomly generated key.</summary>
// Token: 0x060021DA RID: 8666 RVA: 0x00002050 File Offset: 0x00000250
[Token(Token = "0x60021DA")]
[Address(RVA = "0x2DA8FB0", Offset = "0x2DA7DB0", VA = "0x182DA8FB0")]
public HMACSHA512()
{
}
/// <summary>Initializes a new instance of the <see cref="T:System.Security.Cryptography.HMACSHA512" /> class with the specified key data.</summary>
/// <param name="key">The secret key for <see cref="T:System.Security.Cryptography.HMACSHA512" /> encryption. The key can be any length. However, the recommended size is 128 bytes. If the key is more than 128 bytes long, it is hashed (using SHA-512) to derive a 128-byte key. If it is less than 128 bytes long, it is padded to 128 bytes.</param>
/// <exception cref="T:System.ArgumentNullException">The <paramref name="key" /> parameter is <see langword="null" />.</exception>
// Token: 0x060021DB RID: 8667 RVA: 0x00002050 File Offset: 0x00000250
[Token(Token = "0x60021DB")]
[Address(RVA = "0x2DA8EC0", Offset = "0x2DA7CC0", VA = "0x182DA8EC0")]
public HMACSHA512(byte[] key)
{
}
// Token: 0x170004A2 RID: 1186
// (get) Token: 0x060021DC RID: 8668 RVA: 0x00014A78 File Offset: 0x00012C78
[Token(Token = "0x170004A2")]
private int BlockSize
{
[Token(Token = "0x60021DC")]
[Address(RVA = "0x2DA8E80", Offset = "0x2DA7C80", VA = "0x182DA8E80")]
get
{
return 0;
}
}
/// <summary>Provides a workaround for the .NET Framework 2.0 implementation of the <see cref="T:System.Security.Cryptography.HMACSHA512" /> algorithm, which is inconsistent with the .NET Framework 2.0 Service Pack 1 implementation.</summary>
/// <returns>
/// <see langword="true" /> to enable .NET Framework 2.0 Service Pack 1 applications to interact with .NET Framework 2.0 applications; otherwise, <see langword="false" />.</returns>
// Token: 0x170004A3 RID: 1187
// (get) Token: 0x060021DD RID: 8669 RVA: 0x00014A90 File Offset: 0x00012C90
// (set) Token: 0x060021DE RID: 8670 RVA: 0x00002050 File Offset: 0x00000250
[Token(Token = "0x170004A3")]
public bool ProduceLegacyHmacValues
{
[Token(Token = "0x60021DD")]
[Address(RVA = "0x75C260", Offset = "0x75B060", VA = "0x18075C260")]
get
{
return default(bool);
}
[Token(Token = "0x60021DE")]
[Address(RVA = "0x2DA8EA0", Offset = "0x2DA7CA0", VA = "0x182DA8EA0")]
set
{
}
}
// Token: 0x04001362 RID: 4962
[global::Cpp2IlInjected.FieldOffset(Offset = "0x68")]
[Token(Token = "0x4001362")]
private bool m_useLegacyBlockSize;
}
}
@@ -0,0 +1,337 @@
using System;
using System.IO;
using System.Runtime.InteropServices;
using Cpp2IlInjected;
namespace System.Security.Cryptography
{
/// <summary>Represents the base class from which all implementations of cryptographic hash algorithms must derive.</summary>
// Token: 0x020003E9 RID: 1001
[Token(Token = "0x20003E9")]
[ComVisible(true)]
public abstract class HashAlgorithm : IDisposable, ICryptoTransform
{
/// <summary>Initializes a new instance of the <see cref="T:System.Security.Cryptography.HashAlgorithm" /> class.</summary>
// Token: 0x060021A8 RID: 8616 RVA: 0x00002050 File Offset: 0x00000250
[Token(Token = "0x60021A8")]
[Address(RVA = "0x3F5100", Offset = "0x3F3F00", VA = "0x1803F5100")]
protected HashAlgorithm()
{
}
/// <summary>Gets the size, in bits, of the computed hash code.</summary>
/// <returns>The size, in bits, of the computed hash code.</returns>
// Token: 0x17000497 RID: 1175
// (get) Token: 0x060021A9 RID: 8617 RVA: 0x000149A0 File Offset: 0x00012BA0
[Token(Token = "0x17000497")]
public virtual int HashSize
{
[Token(Token = "0x60021A9")]
[Address(RVA = "0x3FA560", Offset = "0x3F9360", VA = "0x1803FA560", Slot = "11")]
get
{
return 0;
}
}
/// <summary>Gets the value of the computed hash code.</summary>
/// <returns>The current value of the computed hash code.</returns>
/// <exception cref="T:System.Security.Cryptography.CryptographicUnexpectedOperationException">
/// <see cref="F:System.Security.Cryptography.HashAlgorithm.HashValue" /> is <see langword="null" />.</exception>
/// <exception cref="T:System.ObjectDisposedException">The object has already been disposed.</exception>
// Token: 0x17000498 RID: 1176
// (get) Token: 0x060021AA RID: 8618 RVA: 0x00002082 File Offset: 0x00000282
[Token(Token = "0x17000498")]
public virtual byte[] Hash
{
[Token(Token = "0x60021AA")]
[Address(RVA = "0x2DAA760", Offset = "0x2DA9560", VA = "0x182DAA760", Slot = "12")]
get
{
return null;
}
}
/// <summary>Creates an instance of the default implementation of a hash algorithm.</summary>
/// <returns>A new <see cref="T:System.Security.Cryptography.SHA1CryptoServiceProvider" /> instance, unless the default settings have been changed using the .</returns>
// Token: 0x060021AB RID: 8619 RVA: 0x00002082 File Offset: 0x00000282
[Token(Token = "0x60021AB")]
[Address(RVA = "0x2DAA160", Offset = "0x2DA8F60", VA = "0x182DAA160")]
public static HashAlgorithm Create()
{
return null;
}
/// <summary>Creates an instance of the specified implementation of a hash algorithm.</summary>
/// <param name="hashName">The hash algorithm implementation to use. The following table shows the valid values for the <paramref name="hashName" /> parameter and the algorithms they map to.
/// Parameter value
///
/// Implements
///
/// SHA
///
/// <see cref="T:System.Security.Cryptography.SHA1CryptoServiceProvider" /> SHA1
///
/// <see cref="T:System.Security.Cryptography.SHA1CryptoServiceProvider" /> System.Security.Cryptography.SHA1
///
/// <see cref="T:System.Security.Cryptography.SHA1CryptoServiceProvider" /> System.Security.Cryptography.HashAlgorithm
///
/// <see cref="T:System.Security.Cryptography.SHA1CryptoServiceProvider" /> MD5
///
/// <see cref="T:System.Security.Cryptography.MD5CryptoServiceProvider" /> System.Security.Cryptography.MD5
///
/// <see cref="T:System.Security.Cryptography.MD5CryptoServiceProvider" /> SHA256
///
/// <see cref="T:System.Security.Cryptography.SHA256Managed" /> SHA-256
///
/// <see cref="T:System.Security.Cryptography.SHA256Managed" /> System.Security.Cryptography.SHA256
///
/// <see cref="T:System.Security.Cryptography.SHA256Managed" /> SHA384
///
/// <see cref="T:System.Security.Cryptography.SHA384Managed" /> SHA-384
///
/// <see cref="T:System.Security.Cryptography.SHA384Managed" /> System.Security.Cryptography.SHA384
///
/// <see cref="T:System.Security.Cryptography.SHA384Managed" /> SHA512
///
/// <see cref="T:System.Security.Cryptography.SHA512Managed" /> SHA-512
///
/// <see cref="T:System.Security.Cryptography.SHA512Managed" /> System.Security.Cryptography.SHA512
///
/// <see cref="T:System.Security.Cryptography.SHA512Managed" /></param>
/// <returns>A new instance of the specified hash algorithm, or <see langword="null" /> if <paramref name="hashName" /> is not a valid hash algorithm.</returns>
// Token: 0x060021AC RID: 8620 RVA: 0x00002082 File Offset: 0x00000282
[Token(Token = "0x60021AC")]
[Address(RVA = "0x2DAA1B0", Offset = "0x2DA8FB0", VA = "0x182DAA1B0")]
public static HashAlgorithm Create(string hashName)
{
return null;
}
/// <summary>Computes the hash value for the specified <see cref="T:System.IO.Stream" /> object.</summary>
/// <param name="inputStream">The input to compute the hash code for.</param>
/// <returns>The computed hash code.</returns>
/// <exception cref="T:System.ObjectDisposedException">The object has already been disposed.</exception>
// Token: 0x060021AD RID: 8621 RVA: 0x00002082 File Offset: 0x00000282
[Token(Token = "0x60021AD")]
[Address(RVA = "0x2DA9DE0", Offset = "0x2DA8BE0", VA = "0x182DA9DE0")]
public byte[] ComputeHash(Stream inputStream)
{
return null;
}
/// <summary>Computes the hash value for the specified byte array.</summary>
/// <param name="buffer">The input to compute the hash code for.</param>
/// <returns>The computed hash code.</returns>
/// <exception cref="T:System.ArgumentNullException">
/// <paramref name="buffer" /> is <see langword="null" />.</exception>
/// <exception cref="T:System.ObjectDisposedException">The object has already been disposed.</exception>
// Token: 0x060021AE RID: 8622 RVA: 0x00002082 File Offset: 0x00000282
[Token(Token = "0x60021AE")]
[Address(RVA = "0x2DA9CA0", Offset = "0x2DA8AA0", VA = "0x182DA9CA0")]
public byte[] ComputeHash(byte[] buffer)
{
return null;
}
/// <summary>Computes the hash value for the specified region of the specified byte array.</summary>
/// <param name="buffer">The input to compute the hash code for.</param>
/// <param name="offset">The offset into the byte array from which to begin using data.</param>
/// <param name="count">The number of bytes in the array to use as data.</param>
/// <returns>The computed hash code.</returns>
/// <exception cref="T:System.ArgumentException">
/// <paramref name="count" /> is an invalid value.
/// -or-
/// <paramref name="buffer" /> length is invalid.</exception>
/// <exception cref="T:System.ArgumentNullException">
/// <paramref name="buffer" /> is <see langword="null" />.</exception>
/// <exception cref="T:System.ArgumentOutOfRangeException">
/// <paramref name="offset" /> is out of range. This parameter requires a non-negative number.</exception>
/// <exception cref="T:System.ObjectDisposedException">The object has already been disposed.</exception>
// Token: 0x060021AF RID: 8623 RVA: 0x00002082 File Offset: 0x00000282
[Token(Token = "0x60021AF")]
[Address(RVA = "0x2DA9F40", Offset = "0x2DA8D40", VA = "0x182DA9F40")]
public byte[] ComputeHash(byte[] buffer, int offset, int count)
{
return null;
}
/// <summary>When overridden in a derived class, gets the input block size.</summary>
/// <returns>The input block size.</returns>
// Token: 0x17000499 RID: 1177
// (get) Token: 0x060021B0 RID: 8624 RVA: 0x000149B8 File Offset: 0x00012BB8
[Token(Token = "0x17000499")]
public virtual int InputBlockSize
{
[Token(Token = "0x60021B0")]
[Address(RVA = "0x4100E0", Offset = "0x40EEE0", VA = "0x1804100E0", Slot = "13")]
get
{
return 0;
}
}
/// <summary>When overridden in a derived class, gets the output block size.</summary>
/// <returns>The output block size.</returns>
// Token: 0x1700049A RID: 1178
// (get) Token: 0x060021B1 RID: 8625 RVA: 0x000149D0 File Offset: 0x00012BD0
[Token(Token = "0x1700049A")]
public virtual int OutputBlockSize
{
[Token(Token = "0x60021B1")]
[Address(RVA = "0x4100E0", Offset = "0x40EEE0", VA = "0x1804100E0", Slot = "14")]
get
{
return 0;
}
}
/// <summary>When overridden in a derived class, gets a value indicating whether multiple blocks can be transformed.</summary>
/// <returns>
/// <see langword="true" /> if multiple blocks can be transformed; otherwise, <see langword="false" />.</returns>
// Token: 0x1700049B RID: 1179
// (get) Token: 0x060021B2 RID: 8626 RVA: 0x000149E8 File Offset: 0x00012BE8
[Token(Token = "0x1700049B")]
public virtual bool CanTransformMultipleBlocks
{
[Token(Token = "0x60021B2")]
[Address(RVA = "0x460D40", Offset = "0x45FB40", VA = "0x180460D40", Slot = "15")]
get
{
return default(bool);
}
}
/// <summary>Gets a value indicating whether the current transform can be reused.</summary>
/// <returns>Always <see langword="true" />.</returns>
// Token: 0x1700049C RID: 1180
// (get) Token: 0x060021B3 RID: 8627 RVA: 0x00014A00 File Offset: 0x00012C00
[Token(Token = "0x1700049C")]
public virtual bool CanReuseTransform
{
[Token(Token = "0x60021B3")]
[Address(RVA = "0x460D40", Offset = "0x45FB40", VA = "0x180460D40", Slot = "16")]
get
{
return default(bool);
}
}
/// <summary>Computes the hash value for the specified region of the input byte array and copies the specified region of the input byte array to the specified region of the output byte array.</summary>
/// <param name="inputBuffer">The input to compute the hash code for.</param>
/// <param name="inputOffset">The offset into the input byte array from which to begin using data.</param>
/// <param name="inputCount">The number of bytes in the input byte array to use as data.</param>
/// <param name="outputBuffer">A copy of the part of the input array used to compute the hash code.</param>
/// <param name="outputOffset">The offset into the output byte array from which to begin writing data.</param>
/// <returns>The number of bytes written.</returns>
/// <exception cref="T:System.ArgumentException">
/// <paramref name="inputCount" /> uses an invalid value.
/// -or-
/// <paramref name="inputBuffer" /> has an invalid length.</exception>
/// <exception cref="T:System.ArgumentNullException">
/// <paramref name="inputBuffer" /> is <see langword="null" />.</exception>
/// <exception cref="T:System.ArgumentOutOfRangeException">
/// <paramref name="inputOffset" /> is out of range. This parameter requires a non-negative number.</exception>
/// <exception cref="T:System.ObjectDisposedException">The object has already been disposed.</exception>
// Token: 0x060021B4 RID: 8628 RVA: 0x00014A18 File Offset: 0x00012C18
[Token(Token = "0x60021B4")]
[Address(RVA = "0x2DAA2F0", Offset = "0x2DA90F0", VA = "0x182DAA2F0", Slot = "9")]
public int TransformBlock(byte[] inputBuffer, int inputOffset, int inputCount, byte[] outputBuffer, int outputOffset)
{
return 0;
}
/// <summary>Computes the hash value for the specified region of the specified byte array.</summary>
/// <param name="inputBuffer">The input to compute the hash code for.</param>
/// <param name="inputOffset">The offset into the byte array from which to begin using data.</param>
/// <param name="inputCount">The number of bytes in the byte array to use as data.</param>
/// <returns>An array that is a copy of the part of the input that is hashed.</returns>
/// <exception cref="T:System.ArgumentException">
/// <paramref name="inputCount" /> uses an invalid value.
/// -or-
/// <paramref name="inputBuffer" /> has an invalid offset length.</exception>
/// <exception cref="T:System.ArgumentNullException">
/// <paramref name="inputBuffer" /> is <see langword="null" />.</exception>
/// <exception cref="T:System.ArgumentOutOfRangeException">
/// <paramref name="inputOffset" /> is out of range. This parameter requires a non-negative number.</exception>
/// <exception cref="T:System.ObjectDisposedException">The object has already been disposed.</exception>
// Token: 0x060021B5 RID: 8629 RVA: 0x00002082 File Offset: 0x00000282
[Token(Token = "0x60021B5")]
[Address(RVA = "0x2DAA500", Offset = "0x2DA9300", VA = "0x182DAA500", Slot = "10")]
public byte[] TransformFinalBlock(byte[] inputBuffer, int inputOffset, int inputCount)
{
return null;
}
/// <summary>Releases all resources used by the current instance of the <see cref="T:System.Security.Cryptography.HashAlgorithm" /> class.</summary>
// Token: 0x060021B6 RID: 8630 RVA: 0x00002050 File Offset: 0x00000250
[Token(Token = "0x60021B6")]
[Address(RVA = "0x2DAA280", Offset = "0x2DA9080", VA = "0x182DAA280", Slot = "4")]
public void Dispose()
{
}
/// <summary>Releases all resources used by the <see cref="T:System.Security.Cryptography.HashAlgorithm" /> class.</summary>
// Token: 0x060021B7 RID: 8631 RVA: 0x00002050 File Offset: 0x00000250
[Token(Token = "0x60021B7")]
[Address(RVA = "0x2DA9C60", Offset = "0x2DA8A60", VA = "0x182DA9C60")]
public void Clear()
{
}
/// <summary>Releases the unmanaged resources used by the <see cref="T:System.Security.Cryptography.HashAlgorithm" /> 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: 0x060021B8 RID: 8632 RVA: 0x00002050 File Offset: 0x00000250
[Token(Token = "0x60021B8")]
[Address(RVA = "0x2DAA240", Offset = "0x2DA9040", VA = "0x182DAA240", Slot = "17")]
protected virtual void Dispose(bool disposing)
{
}
/// <summary>Initializes an implementation of the <see cref="T:System.Security.Cryptography.HashAlgorithm" /> class.</summary>
// Token: 0x060021B9 RID: 8633
[Token(Token = "0x60021B9")]
[Address(Slot = "18")]
public abstract void Initialize();
/// <summary>When overridden in a derived class, routes data written to the object into the hash algorithm for computing the hash.</summary>
/// <param name="array">The input to compute the hash code for.</param>
/// <param name="ibStart">The offset into the byte array from which to begin using data.</param>
/// <param name="cbSize">The number of bytes in the byte array to use as data.</param>
// Token: 0x060021BA RID: 8634
[Token(Token = "0x60021BA")]
[Address(Slot = "19")]
protected abstract void HashCore(byte[] array, int ibStart, int cbSize);
/// <summary>When overridden in a derived class, finalizes the hash computation after the last data is processed by the cryptographic stream object.</summary>
/// <returns>The computed hash code.</returns>
// Token: 0x060021BB RID: 8635
[Token(Token = "0x60021BB")]
[Address(Slot = "20")]
protected abstract byte[] HashFinal();
/// <summary>Represents the size, in bits, of the computed hash code.</summary>
// Token: 0x04001356 RID: 4950
[global::Cpp2IlInjected.FieldOffset(Offset = "0x10")]
[Token(Token = "0x4001356")]
protected int HashSizeValue;
/// <summary>Represents the value of the computed hash code.</summary>
// Token: 0x04001357 RID: 4951
[global::Cpp2IlInjected.FieldOffset(Offset = "0x18")]
[Token(Token = "0x4001357")]
protected internal byte[] HashValue;
/// <summary>Represents the state of the hash computation.</summary>
// Token: 0x04001358 RID: 4952
[global::Cpp2IlInjected.FieldOffset(Offset = "0x20")]
[Token(Token = "0x4001358")]
protected int State;
// Token: 0x04001359 RID: 4953
[global::Cpp2IlInjected.FieldOffset(Offset = "0x24")]
[Token(Token = "0x4001359")]
private bool m_bDisposed;
}
}
@@ -0,0 +1,185 @@
using System;
using Cpp2IlInjected;
namespace System.Security.Cryptography
{
/// <summary>Specifies the name of a cryptographic hash algorithm.</summary>
// Token: 0x020003C8 RID: 968
[Token(Token = "0x20003C8")]
public struct HashAlgorithmName : IEquatable<HashAlgorithmName>
{
/// <summary>Gets a hash algorithm name that represents "MD5".</summary>
/// <returns>A hash algorithm name that represents "MD5".</returns>
// Token: 0x1700046A RID: 1130
// (get) Token: 0x060020CE RID: 8398 RVA: 0x000143E8 File Offset: 0x000125E8
[Token(Token = "0x1700046A")]
public static HashAlgorithmName MD5
{
[Token(Token = "0x60020CE")]
[Address(RVA = "0x2DA9B40", Offset = "0x2DA8940", VA = "0x182DA9B40")]
get
{
return default(HashAlgorithmName);
}
}
/// <summary>Gets a hash algorithm name that represents "SHA1".</summary>
/// <returns>A hash algorithm name that represents "SHA1".</returns>
// Token: 0x1700046B RID: 1131
// (get) Token: 0x060020CF RID: 8399 RVA: 0x00014400 File Offset: 0x00012600
[Token(Token = "0x1700046B")]
public static HashAlgorithmName SHA1
{
[Token(Token = "0x60020CF")]
[Address(RVA = "0x2DA9B70", Offset = "0x2DA8970", VA = "0x182DA9B70")]
get
{
return default(HashAlgorithmName);
}
}
/// <summary>Gets a hash algorithm name that represents "SHA256".</summary>
/// <returns>A hash algorithm name that represents "SHA256".</returns>
// Token: 0x1700046C RID: 1132
// (get) Token: 0x060020D0 RID: 8400 RVA: 0x00014418 File Offset: 0x00012618
[Token(Token = "0x1700046C")]
public static HashAlgorithmName SHA256
{
[Token(Token = "0x60020D0")]
[Address(RVA = "0x2DA9BA0", Offset = "0x2DA89A0", VA = "0x182DA9BA0")]
get
{
return default(HashAlgorithmName);
}
}
/// <summary>Gets a hash algorithm name that represents "SHA384".</summary>
/// <returns>A hash algorithm name that represents "SHA384".</returns>
// Token: 0x1700046D RID: 1133
// (get) Token: 0x060020D1 RID: 8401 RVA: 0x00014430 File Offset: 0x00012630
[Token(Token = "0x1700046D")]
public static HashAlgorithmName SHA384
{
[Token(Token = "0x60020D1")]
[Address(RVA = "0x2DA9BD0", Offset = "0x2DA89D0", VA = "0x182DA9BD0")]
get
{
return default(HashAlgorithmName);
}
}
/// <summary>Gets a hash algorithm name that represents "SHA512".</summary>
/// <returns>A hash algorithm name that represents "SHA512".</returns>
// Token: 0x1700046E RID: 1134
// (get) Token: 0x060020D2 RID: 8402 RVA: 0x00014448 File Offset: 0x00012648
[Token(Token = "0x1700046E")]
public static HashAlgorithmName SHA512
{
[Token(Token = "0x60020D2")]
[Address(RVA = "0x2DA9C00", Offset = "0x2DA8A00", VA = "0x182DA9C00")]
get
{
return default(HashAlgorithmName);
}
}
/// <summary>Initializes a new instance of the <see cref="T:System.Security.Cryptography.HashAlgorithmName" /> structure with a custom name.</summary>
/// <param name="name">The custom hash algorithm name.</param>
// Token: 0x060020D3 RID: 8403 RVA: 0x00002050 File Offset: 0x00000250
[Token(Token = "0x60020D3")]
[Address(RVA = "0x461A30", Offset = "0x460830", VA = "0x180461A30")]
public HashAlgorithmName(string name)
{
}
/// <summary>Gets the underlying string representation of the algorithm name.</summary>
/// <returns>The string representation of the algorithm name, or <see langword="null" /> or <see cref="F:System.String.Empty" /> if no hash algorithm is available.</returns>
// Token: 0x1700046F RID: 1135
// (get) Token: 0x060020D4 RID: 8404 RVA: 0x00002082 File Offset: 0x00000282
[Token(Token = "0x1700046F")]
public string Name
{
[Token(Token = "0x60020D4")]
[Address(RVA = "0x41D090", Offset = "0x41BE90", VA = "0x18041D090")]
get
{
return null;
}
}
/// <summary>Returns the string representation of the current <see cref="T:System.Security.Cryptography.HashAlgorithmName" /> instance.</summary>
/// <returns>The string representation of the current <see cref="T:System.Security.Cryptography.HashAlgorithmName" /> instance.</returns>
// Token: 0x060020D5 RID: 8405 RVA: 0x00002082 File Offset: 0x00000282
[Token(Token = "0x60020D5")]
[Address(RVA = "0x2DA9AF0", Offset = "0x2DA88F0", VA = "0x182DA9AF0", Slot = "3")]
public override string ToString()
{
return null;
}
/// <summary>Returns a value that indicates whether the current instance and a specified object are equal.</summary>
/// <param name="obj">The object to compare with the current instance.</param>
/// <returns>
/// <see langword="true" /> if <paramref name="obj" /> is a <see cref="T:System.Security.Cryptography.HashAlgorithmName" /> object and its <see cref="P:System.Security.Cryptography.HashAlgorithmName.Name" /> property is equal to that of the current instance. The comparison is ordinal and case-sensitive.</returns>
// Token: 0x060020D6 RID: 8406 RVA: 0x00014460 File Offset: 0x00012660
[Token(Token = "0x60020D6")]
[Address(RVA = "0x2DA9A60", Offset = "0x2DA8860", VA = "0x182DA9A60", Slot = "0")]
public override bool Equals(object obj)
{
return default(bool);
}
/// <summary>Returns a value that indicates whether two <see cref="T:System.Security.Cryptography.HashAlgorithmName" /> instances are equal.</summary>
/// <param name="other">The object to compare with the current instance.</param>
/// <returns>
/// <see langword="true" /> if the <see cref="P:System.Security.Cryptography.HashAlgorithmName.Name" /> property of <paramref name="other" /> is equal to that of the current instance. The comparison is ordinal and case-sensitive.</returns>
// Token: 0x060020D7 RID: 8407 RVA: 0x00014478 File Offset: 0x00012678
[Token(Token = "0x60020D7")]
[Address(RVA = "0x2DA9A50", Offset = "0x2DA8850", VA = "0x182DA9A50", Slot = "4")]
public bool Equals(HashAlgorithmName other)
{
return default(bool);
}
/// <summary>Returns the hash code for the current instance.</summary>
/// <returns>The hash code for the current instance, or 0 if no <paramref name="name" /> value was supplied to the <see cref="T:System.Security.Cryptography.HashAlgorithmName" /> constructor.</returns>
// Token: 0x060020D8 RID: 8408 RVA: 0x00014490 File Offset: 0x00012690
[Token(Token = "0x60020D8")]
[Address(RVA = "0x29D2F40", Offset = "0x29D1D40", VA = "0x1829D2F40", Slot = "2")]
public override int GetHashCode()
{
return 0;
}
/// <summary>Determines whether two specified <see cref="T:System.Security.Cryptography.HashAlgorithmName" /> objects are equal.</summary>
/// <param name="left">The first object to compare.</param>
/// <param name="right">The second object to compare.</param>
/// <returns>
/// <see langword="true" /> if both <paramref name="left" /> and <paramref name="right" /> have the same <see cref="P:System.Security.Cryptography.HashAlgorithmName.Name" /> value; otherwise, <see langword="false" />.</returns>
// Token: 0x060020D9 RID: 8409 RVA: 0x000144A8 File Offset: 0x000126A8
[Token(Token = "0x60020D9")]
[Address(RVA = "0x2DA9C30", Offset = "0x2DA8A30", VA = "0x182DA9C30")]
public static bool operator ==(HashAlgorithmName left, HashAlgorithmName right)
{
return default(bool);
}
/// <summary>Determines whether two specified <see cref="T:System.Security.Cryptography.HashAlgorithmName" /> objects are not equal.</summary>
/// <param name="left">The first object to compare.</param>
/// <param name="right">The second object to compare.</param>
/// <returns>
/// <see langword="true" /> if both <paramref name="left" /> and <paramref name="right" /> do not have the same <see cref="P:System.Security.Cryptography.HashAlgorithmName.Name" /> value; otherwise, <see langword="false" />.</returns>
// Token: 0x060020DA RID: 8410 RVA: 0x000144C0 File Offset: 0x000126C0
[Token(Token = "0x60020DA")]
[Address(RVA = "0x2DA9C40", Offset = "0x2DA8A40", VA = "0x182DA9C40")]
public static bool operator !=(HashAlgorithmName left, HashAlgorithmName right)
{
return default(bool);
}
// Token: 0x040012DE RID: 4830
[FieldOffset(Offset = "0x0")]
[Token(Token = "0x40012DE")]
private readonly string _name;
}
}
@@ -0,0 +1,85 @@
using System;
using System.Runtime.InteropServices;
using Cpp2IlInjected;
namespace System.Security.Cryptography
{
/// <summary>Defines the basic operations of cryptographic transformations.</summary>
// Token: 0x020003F1 RID: 1009
[Token(Token = "0x20003F1")]
[ComVisible(true)]
public interface ICryptoTransform : IDisposable
{
/// <summary>Gets the input block size.</summary>
/// <returns>The size of the input data blocks in bytes.</returns>
// Token: 0x170004A4 RID: 1188
// (get) Token: 0x060021DF RID: 8671
[Token(Token = "0x170004A4")]
int InputBlockSize
{
[Token(Token = "0x60021DF")]
[Address(Slot = "0")]
get;
}
/// <summary>Gets the output block size.</summary>
/// <returns>The size of the output data blocks in bytes.</returns>
// Token: 0x170004A5 RID: 1189
// (get) Token: 0x060021E0 RID: 8672
[Token(Token = "0x170004A5")]
int OutputBlockSize
{
[Token(Token = "0x60021E0")]
[Address(Slot = "1")]
get;
}
/// <summary>Gets a value indicating whether multiple blocks can be transformed.</summary>
/// <returns>
/// <see langword="true" /> if multiple blocks can be transformed; otherwise, <see langword="false" />.</returns>
// Token: 0x170004A6 RID: 1190
// (get) Token: 0x060021E1 RID: 8673
[Token(Token = "0x170004A6")]
bool CanTransformMultipleBlocks
{
[Token(Token = "0x60021E1")]
[Address(Slot = "2")]
get;
}
/// <summary>Gets a value indicating whether the current transform can be reused.</summary>
/// <returns>
/// <see langword="true" /> if the current transform can be reused; otherwise, <see langword="false" />.</returns>
// Token: 0x170004A7 RID: 1191
// (get) Token: 0x060021E2 RID: 8674
[Token(Token = "0x170004A7")]
bool CanReuseTransform
{
[Token(Token = "0x60021E2")]
[Address(Slot = "3")]
get;
}
/// <summary>Transforms the specified region of the input byte array and copies the resulting transform to the specified region of the output byte array.</summary>
/// <param name="inputBuffer">The input for which to compute the transform.</param>
/// <param name="inputOffset">The offset into the input byte array from which to begin using data.</param>
/// <param name="inputCount">The number of bytes in the input byte array to use as data.</param>
/// <param name="outputBuffer">The output to which to write the transform.</param>
/// <param name="outputOffset">The offset into the output byte array from which to begin writing data.</param>
/// <returns>The number of bytes written.</returns>
// Token: 0x060021E3 RID: 8675
[Token(Token = "0x60021E3")]
[Address(Slot = "4")]
int TransformBlock(byte[] inputBuffer, int inputOffset, int inputCount, byte[] outputBuffer, int outputOffset);
/// <summary>Transforms the specified region of the specified byte array.</summary>
/// <param name="inputBuffer">The input for which to compute the transform.</param>
/// <param name="inputOffset">The offset into the byte array from which to begin using data.</param>
/// <param name="inputCount">The number of bytes in the byte array to use as data.</param>
/// <returns>The computed transform.</returns>
// Token: 0x060021E4 RID: 8676
[Token(Token = "0x60021E4")]
[Address(Slot = "5")]
byte[] TransformFinalBlock(byte[] inputBuffer, int inputOffset, int inputCount);
}
}
@@ -0,0 +1,41 @@
using System;
using System.Runtime.InteropServices;
using Cpp2IlInjected;
namespace System.Security.Cryptography
{
/// <summary>Defines methods that allow an <see cref="T:System.Security.Cryptography.AsymmetricAlgorithm" /> class to enumerate key container information, and import and export Microsoft Cryptographic API (CAPI)-compatible key blobs.</summary>
// Token: 0x02000424 RID: 1060
[Token(Token = "0x2000424")]
[ComVisible(true)]
public interface ICspAsymmetricAlgorithm
{
/// <summary>Exports a blob that contains the key information associated with an <see cref="T:System.Security.Cryptography.AsymmetricAlgorithm" /> object.</summary>
/// <param name="includePrivateParameters">
/// <see langword="true" /> to include the private key; otherwise, <see langword="false" />.</param>
/// <returns>A byte array that contains the key information associated with an <see cref="T:System.Security.Cryptography.AsymmetricAlgorithm" /> object.</returns>
// Token: 0x060023D6 RID: 9174
[Token(Token = "0x60023D6")]
[Address(Slot = "0")]
byte[] ExportCspBlob(bool includePrivateParameters);
/// <summary>Imports a blob that represents asymmetric key information.</summary>
/// <param name="rawData">A byte array that represents an asymmetric key blob.</param>
// Token: 0x060023D7 RID: 9175
[Token(Token = "0x60023D7")]
[Address(Slot = "1")]
void ImportCspBlob(byte[] rawData);
/// <summary>Gets a <see cref="T:System.Security.Cryptography.CspKeyContainerInfo" /> object that describes additional information about a cryptographic key pair.</summary>
/// <returns>A <see cref="T:System.Security.Cryptography.CspKeyContainerInfo" /> object that describes additional information about a cryptographic key pair.</returns>
// Token: 0x170004FD RID: 1277
// (get) Token: 0x060023D8 RID: 9176
[Token(Token = "0x170004FD")]
CspKeyContainerInfo CspKeyContainerInfo
{
[Token(Token = "0x60023D8")]
[Address(Slot = "2")]
get;
}
}
}
@@ -0,0 +1,23 @@
using System;
using System.Runtime.InteropServices;
using Cpp2IlInjected;
namespace System.Security.Cryptography
{
/// <summary>Specifies whether to create an asymmetric signature key or an asymmetric exchange key.</summary>
// Token: 0x02000425 RID: 1061
[Token(Token = "0x2000425")]
[ComVisible(true)]
[Serializable]
public enum KeyNumber
{
/// <summary>An exchange key pair used to encrypt session keys so that they can be safely stored and exchanged with other users.</summary>
// Token: 0x0400144B RID: 5195
[Token(Token = "0x400144B")]
Exchange = 1,
/// <summary>A signature key pair used for authenticating digitally signed messages or files.</summary>
// Token: 0x0400144C RID: 5196
[Token(Token = "0x400144C")]
Signature
}
}
@@ -0,0 +1,100 @@
using System;
using System.Runtime.InteropServices;
using Cpp2IlInjected;
namespace System.Security.Cryptography
{
/// <summary>Determines the set of valid key sizes for the symmetric cryptographic algorithms.</summary>
// Token: 0x020003D8 RID: 984
[Token(Token = "0x20003D8")]
[ComVisible(true)]
public sealed class KeySizes
{
/// <summary>Specifies the minimum key size in bits.</summary>
/// <returns>The minimum key size in bits.</returns>
// Token: 0x17000488 RID: 1160
// (get) Token: 0x06002137 RID: 8503 RVA: 0x00014748 File Offset: 0x00012948
[Token(Token = "0x17000488")]
public int MinSize
{
[Token(Token = "0x6002137")]
[Address(RVA = "0x3FA560", Offset = "0x3F9360", VA = "0x1803FA560")]
get
{
return 0;
}
}
/// <summary>Specifies the maximum key size in bits.</summary>
/// <returns>The maximum key size in bits.</returns>
// Token: 0x17000489 RID: 1161
// (get) Token: 0x06002138 RID: 8504 RVA: 0x00014760 File Offset: 0x00012960
[Token(Token = "0x17000489")]
public int MaxSize
{
[Token(Token = "0x6002138")]
[Address(RVA = "0x495080", Offset = "0x493E80", VA = "0x180495080")]
get
{
return 0;
}
}
/// <summary>Specifies the interval between valid key sizes in bits.</summary>
/// <returns>The interval between valid key sizes in bits.</returns>
// Token: 0x1700048A RID: 1162
// (get) Token: 0x06002139 RID: 8505 RVA: 0x00014778 File Offset: 0x00012978
[Token(Token = "0x1700048A")]
public int SkipSize
{
[Token(Token = "0x6002139")]
[Address(RVA = "0x40B720", Offset = "0x40A520", VA = "0x18040B720")]
get
{
return 0;
}
}
/// <summary>Initializes a new instance of the <see cref="T:System.Security.Cryptography.KeySizes" /> class with the specified key values.</summary>
/// <param name="minSize">The minimum valid key size.</param>
/// <param name="maxSize">The maximum valid key size.</param>
/// <param name="skipSize">The interval between valid key sizes.</param>
// Token: 0x0600213A RID: 8506 RVA: 0x00002050 File Offset: 0x00000250
[Token(Token = "0x600213A")]
[Address(RVA = "0x5B5750", Offset = "0x5B4550", VA = "0x1805B5750")]
public KeySizes(int minSize, int maxSize, int skipSize)
{
}
// Token: 0x0600213B RID: 8507 RVA: 0x00014790 File Offset: 0x00012990
[Token(Token = "0x600213B")]
[Address(RVA = "0x2DAA8F0", Offset = "0x2DA96F0", VA = "0x182DAA8F0")]
internal bool IsLegal(int keySize)
{
return default(bool);
}
// Token: 0x0600213C RID: 8508 RVA: 0x000147A8 File Offset: 0x000129A8
[Token(Token = "0x600213C")]
[Address(RVA = "0x2DAA850", Offset = "0x2DA9650", VA = "0x182DAA850")]
internal static bool IsLegalKeySize(KeySizes[] legalKeys, int size)
{
return default(bool);
}
// Token: 0x04001305 RID: 4869
[global::Cpp2IlInjected.FieldOffset(Offset = "0x10")]
[Token(Token = "0x4001305")]
private int m_minSize;
// Token: 0x04001306 RID: 4870
[global::Cpp2IlInjected.FieldOffset(Offset = "0x14")]
[Token(Token = "0x4001306")]
private int m_maxSize;
// Token: 0x04001307 RID: 4871
[global::Cpp2IlInjected.FieldOffset(Offset = "0x18")]
[Token(Token = "0x4001307")]
private int m_skipSize;
}
}
@@ -0,0 +1,117 @@
using System;
using System.Runtime.InteropServices;
using Cpp2IlInjected;
namespace System.Security.Cryptography
{
/// <summary>Represents the abstract class from which all implementations of keyed hash algorithms must derive.</summary>
// Token: 0x020003F2 RID: 1010
[Token(Token = "0x20003F2")]
[ComVisible(true)]
public abstract class KeyedHashAlgorithm : HashAlgorithm
{
/// <summary>Initializes a new instance of the <see cref="T:System.Security.Cryptography.KeyedHashAlgorithm" /> class.</summary>
// Token: 0x060021E5 RID: 8677 RVA: 0x00002050 File Offset: 0x00000250
[Token(Token = "0x60021E5")]
[Address(RVA = "0x3F5100", Offset = "0x3F3F00", VA = "0x1803F5100")]
protected KeyedHashAlgorithm()
{
}
/// <summary>Releases the unmanaged resources used by the <see cref="T:System.Security.Cryptography.KeyedHashAlgorithm" /> 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: 0x060021E6 RID: 8678 RVA: 0x00002050 File Offset: 0x00000250
[Token(Token = "0x60021E6")]
[Address(RVA = "0x2DAAA00", Offset = "0x2DA9800", VA = "0x182DAAA00", Slot = "17")]
protected override void Dispose(bool disposing)
{
}
/// <summary>Gets or sets the key to use in the hash algorithm.</summary>
/// <returns>The key to use in the hash algorithm.</returns>
/// <exception cref="T:System.Security.Cryptography.CryptographicException">An attempt was made to change the <see cref="P:System.Security.Cryptography.KeyedHashAlgorithm.Key" /> property after hashing has begun.</exception>
// Token: 0x170004A8 RID: 1192
// (get) Token: 0x060021E7 RID: 8679 RVA: 0x00002082 File Offset: 0x00000282
// (set) Token: 0x060021E8 RID: 8680 RVA: 0x00002050 File Offset: 0x00000250
[Token(Token = "0x170004A8")]
public virtual byte[] Key
{
[Token(Token = "0x60021E7")]
[Address(RVA = "0x2DAAA60", Offset = "0x2DA9860", VA = "0x182DAAA60", Slot = "21")]
get
{
return null;
}
[Token(Token = "0x60021E8")]
[Address(RVA = "0x2DAAAE0", Offset = "0x2DA98E0", VA = "0x182DAAAE0", Slot = "22")]
set
{
}
}
/// <summary>Creates an instance of the default implementation of a keyed hash algorithm.</summary>
/// <returns>A new <see cref="T:System.Security.Cryptography.HMACSHA1" /> instance, unless the default settings have been changed.</returns>
// Token: 0x060021E9 RID: 8681 RVA: 0x00002082 File Offset: 0x00000282
[Token(Token = "0x60021E9")]
[Address(RVA = "0x2DAA920", Offset = "0x2DA9720", VA = "0x182DAA920")]
public new static KeyedHashAlgorithm Create()
{
return null;
}
/// <summary>Creates an instance of the specified implementation of a keyed hash algorithm.</summary>
/// <param name="algName">The keyed hash 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.HMAC
///
/// <see cref="T:System.Security.Cryptography.HMACSHA1" /> System.Security.Cryptography.KeyedHashAlgorithm
///
/// <see cref="T:System.Security.Cryptography.HMACSHA1" /> HMACMD5
///
/// <see cref="T:System.Security.Cryptography.HMACMD5" /> System.Security.Cryptography.HMACMD5
///
/// <see cref="T:System.Security.Cryptography.HMACMD5" /> HMACRIPEMD160
///
/// <see cref="T:System.Security.Cryptography.HMACRIPEMD160" /> System.Security.Cryptography.HMACRIPEMD160
///
/// <see cref="T:System.Security.Cryptography.HMACRIPEMD160" /> HMACSHA1
///
/// <see cref="T:System.Security.Cryptography.HMACSHA1" /> System.Security.Cryptography.HMACSHA1
///
/// <see cref="T:System.Security.Cryptography.HMACSHA1" /> HMACSHA256
///
/// <see cref="T:System.Security.Cryptography.HMACSHA256" /> System.Security.Cryptography.HMACSHA256
///
/// <see cref="T:System.Security.Cryptography.HMACSHA256" /> HMACSHA384
///
/// <see cref="T:System.Security.Cryptography.HMACSHA384" /> System.Security.Cryptography.HMACSHA384
///
/// <see cref="T:System.Security.Cryptography.HMACSHA384" /> HMACSHA512
///
/// <see cref="T:System.Security.Cryptography.HMACSHA512" /> System.Security.Cryptography.HMACSHA512
///
/// <see cref="T:System.Security.Cryptography.HMACSHA512" /> MACTripleDES
///
/// <see cref="T:System.Security.Cryptography.MACTripleDES" /> System.Security.Cryptography.MACTripleDES
///
/// <see cref="T:System.Security.Cryptography.MACTripleDES" /></param>
/// <returns>A new instance of the specified keyed hash algorithm.</returns>
// Token: 0x060021EA RID: 8682 RVA: 0x00002082 File Offset: 0x00000282
[Token(Token = "0x60021EA")]
[Address(RVA = "0x2DAA970", Offset = "0x2DA9770", VA = "0x182DAA970")]
public new static KeyedHashAlgorithm Create(string algName)
{
return null;
}
/// <summary>The key to use in the hash algorithm.</summary>
// Token: 0x04001363 RID: 4963
[global::Cpp2IlInjected.FieldOffset(Offset = "0x28")]
[Token(Token = "0x4001363")]
protected byte[] KeyValue;
}
}
@@ -0,0 +1,134 @@
using System;
using System.Runtime.InteropServices;
using Cpp2IlInjected;
namespace System.Security.Cryptography
{
/// <summary>Computes a Message Authentication Code (MAC) using <see cref="T:System.Security.Cryptography.TripleDES" /> for the input data <see cref="T:System.Security.Cryptography.CryptoStream" />.</summary>
// Token: 0x020003F3 RID: 1011
[Token(Token = "0x20003F3")]
[ComVisible(true)]
public class MACTripleDES : KeyedHashAlgorithm
{
/// <summary>Initializes a new instance of the <see cref="T:System.Security.Cryptography.MACTripleDES" /> class.</summary>
// Token: 0x060021EB RID: 8683 RVA: 0x00002050 File Offset: 0x00000250
[Token(Token = "0x60021EB")]
[Address(RVA = "0x2DAB150", Offset = "0x2DA9F50", VA = "0x182DAB150")]
public MACTripleDES()
{
}
/// <summary>Initializes a new instance of the <see cref="T:System.Security.Cryptography.MACTripleDES" /> class with the specified key data.</summary>
/// <param name="rgbKey">The secret key for <see cref="T:System.Security.Cryptography.MACTripleDES" /> encryption.</param>
/// <exception cref="T:System.ArgumentNullException">The <paramref name="rgbKey" /> parameter is <see langword="null" />.</exception>
// Token: 0x060021EC RID: 8684 RVA: 0x00002050 File Offset: 0x00000250
[Token(Token = "0x60021EC")]
[Address(RVA = "0x2DAAF40", Offset = "0x2DA9D40", VA = "0x182DAAF40")]
public MACTripleDES(byte[] rgbKey)
{
}
/// <summary>Initializes a new instance of the <see cref="T:System.Security.Cryptography.MACTripleDES" /> class with the specified key data and using the specified implementation of <see cref="T:System.Security.Cryptography.TripleDES" />.</summary>
/// <param name="strTripleDES">The name of the <see cref="T:System.Security.Cryptography.TripleDES" /> implementation to use.</param>
/// <param name="rgbKey">The secret key for <see cref="T:System.Security.Cryptography.MACTripleDES" /> encryption.</param>
/// <exception cref="T:System.ArgumentNullException">The <paramref name="rgbKey" /> parameter is <see langword="null" />.</exception>
/// <exception cref="T:System.Security.Cryptography.CryptographicUnexpectedOperationException">The <paramref name="strTripleDES" /> parameter is not a valid name of a <see cref="T:System.Security.Cryptography.TripleDES" /> implementation.</exception>
// Token: 0x060021ED RID: 8685 RVA: 0x00002050 File Offset: 0x00000250
[Token(Token = "0x60021ED")]
[Address(RVA = "0x2DAAF90", Offset = "0x2DA9D90", VA = "0x182DAAF90")]
public MACTripleDES(string strTripleDES, byte[] rgbKey)
{
}
/// <summary>Initializes an instance of <see cref="T:System.Security.Cryptography.MACTripleDES" />.</summary>
// Token: 0x060021EE RID: 8686 RVA: 0x00002050 File Offset: 0x00000250
[Token(Token = "0x60021EE")]
[Address(RVA = "0x1208C20", Offset = "0x1207A20", VA = "0x181208C20", Slot = "18")]
public override void Initialize()
{
}
/// <summary>Gets or sets the padding mode used in the hashing algorithm.</summary>
/// <returns>The padding mode used in the hashing algorithm.</returns>
/// <exception cref="T:System.Security.Cryptography.CryptographicException">The property cannot be set because the padding mode is invalid.</exception>
// Token: 0x170004A9 RID: 1193
// (get) Token: 0x060021EF RID: 8687 RVA: 0x00014AA8 File Offset: 0x00012CA8
// (set) Token: 0x060021F0 RID: 8688 RVA: 0x00002050 File Offset: 0x00000250
[Token(Token = "0x170004A9")]
[ComVisible(false)]
public PaddingMode Padding
{
[Token(Token = "0x60021EF")]
[Address(RVA = "0x2DAB2B0", Offset = "0x2DAA0B0", VA = "0x182DAB2B0")]
get
{
return (PaddingMode)0;
}
[Token(Token = "0x60021F0")]
[Address(RVA = "0x2DAB2E0", Offset = "0x2DAA0E0", VA = "0x182DAB2E0")]
set
{
}
}
/// <summary>Routes data written to the object into the <see cref="T:System.Security.Cryptography.TripleDES" /> encryptor for computing the Message Authentication Code (MAC).</summary>
/// <param name="rgbData">The input data.</param>
/// <param name="ibStart">The offset into the byte array from which to begin using data.</param>
/// <param name="cbSize">The number of bytes in the array to use as data.</param>
// Token: 0x060021F1 RID: 8689 RVA: 0x00002050 File Offset: 0x00000250
[Token(Token = "0x60021F1")]
[Address(RVA = "0x2DAAC80", Offset = "0x2DA9A80", VA = "0x182DAAC80", Slot = "19")]
protected override void HashCore(byte[] rgbData, int ibStart, int cbSize)
{
}
/// <summary>Returns the computed Message Authentication Code (MAC) after all data is written to the object.</summary>
/// <returns>The computed MAC.</returns>
// Token: 0x060021F2 RID: 8690 RVA: 0x00002082 File Offset: 0x00000282
[Token(Token = "0x60021F2")]
[Address(RVA = "0x2DAADF0", Offset = "0x2DA9BF0", VA = "0x182DAADF0", Slot = "20")]
protected override byte[] HashFinal()
{
return null;
}
/// <summary>Releases the resources used by the <see cref="T:System.Security.Cryptography.MACTripleDES" /> instance.</summary>
/// <param name="disposing">
/// <see langword="true" /> if the method is called from an <see cref="M:System.IDisposable.Dispose" /> implementation; otherwise, <see langword="false" />.</param>
// Token: 0x060021F3 RID: 8691 RVA: 0x00002050 File Offset: 0x00000250
[Token(Token = "0x60021F3")]
[Address(RVA = "0x2DAABB0", Offset = "0x2DA99B0", VA = "0x182DAABB0", Slot = "17")]
protected override void Dispose(bool disposing)
{
}
// Token: 0x04001364 RID: 4964
[global::Cpp2IlInjected.FieldOffset(Offset = "0x30")]
[Token(Token = "0x4001364")]
private ICryptoTransform m_encryptor;
// Token: 0x04001365 RID: 4965
[global::Cpp2IlInjected.FieldOffset(Offset = "0x38")]
[Token(Token = "0x4001365")]
private CryptoStream _cs;
// Token: 0x04001366 RID: 4966
[global::Cpp2IlInjected.FieldOffset(Offset = "0x40")]
[Token(Token = "0x4001366")]
private TailStream _ts;
// Token: 0x04001367 RID: 4967
[Token(Token = "0x4001367")]
private const int m_bitsPerByte = 8;
// Token: 0x04001368 RID: 4968
[global::Cpp2IlInjected.FieldOffset(Offset = "0x48")]
[Token(Token = "0x4001368")]
private int m_bytesPerBlock;
// Token: 0x04001369 RID: 4969
[global::Cpp2IlInjected.FieldOffset(Offset = "0x50")]
[Token(Token = "0x4001369")]
private TripleDES des;
}
}
@@ -0,0 +1,44 @@
using System;
using System.Runtime.InteropServices;
using Cpp2IlInjected;
namespace System.Security.Cryptography
{
/// <summary>Represents the abstract class from which all implementations of the <see cref="T:System.Security.Cryptography.MD5" /> hash algorithm inherit.</summary>
// Token: 0x020003F6 RID: 1014
[Token(Token = "0x20003F6")]
[ComVisible(true)]
public abstract class MD5 : HashAlgorithm
{
/// <summary>Initializes a new instance of <see cref="T:System.Security.Cryptography.MD5" />.</summary>
// Token: 0x06002205 RID: 8709 RVA: 0x00002050 File Offset: 0x00000250
[Token(Token = "0x6002205")]
[Address(RVA = "0x2DAD460", Offset = "0x2DAC260", VA = "0x182DAD460")]
protected MD5()
{
}
/// <summary>Creates an instance of the default implementation of the <see cref="T:System.Security.Cryptography.MD5" /> hash algorithm.</summary>
/// <returns>A new instance of the <see cref="T:System.Security.Cryptography.MD5" /> hash algorithm.</returns>
/// <exception cref="T:System.Reflection.TargetInvocationException">The algorithm was used with Federal Information Processing Standards (FIPS) mode enabled, but is not FIPS compatible.</exception>
// Token: 0x06002206 RID: 8710 RVA: 0x00002082 File Offset: 0x00000282
[Token(Token = "0x6002206")]
[Address(RVA = "0x2DAD410", Offset = "0x2DAC210", VA = "0x182DAD410")]
public new static MD5 Create()
{
return null;
}
/// <summary>Creates an instance of the specified implementation of the <see cref="T:System.Security.Cryptography.MD5" /> hash algorithm.</summary>
/// <param name="algName">The name of the specific implementation of <see cref="T:System.Security.Cryptography.MD5" /> to use.</param>
/// <returns>A new instance of the specified implementation of <see cref="T:System.Security.Cryptography.MD5" />.</returns>
/// <exception cref="T:System.Reflection.TargetInvocationException">The algorithm described by the <paramref name="algName" /> parameter was used with Federal Information Processing Standards (FIPS) mode enabled, but is not FIPS compatible.</exception>
// Token: 0x06002207 RID: 8711 RVA: 0x00002082 File Offset: 0x00000282
[Token(Token = "0x6002207")]
[Address(RVA = "0x2DAD380", Offset = "0x2DAC180", VA = "0x182DAD380")]
public new static MD5 Create(string algName)
{
return null;
}
}
}
@@ -0,0 +1,113 @@
using System;
using System.Runtime.InteropServices;
using Cpp2IlInjected;
namespace System.Security.Cryptography
{
/// <summary>Computes the <see cref="T:System.Security.Cryptography.MD5" /> hash value for the input data using the implementation provided by the cryptographic service provider (CSP). This class cannot be inherited.</summary>
// Token: 0x02000426 RID: 1062
[Token(Token = "0x2000426")]
[ComVisible(true)]
public sealed class MD5CryptoServiceProvider : MD5
{
/// <summary>Initializes a new instance of the <see cref="T:System.Security.Cryptography.MD5CryptoServiceProvider" /> class.</summary>
/// <exception cref="T:System.InvalidOperationException">A FIPS-compliant algorithm policy is not being used.</exception>
// Token: 0x060023D9 RID: 9177 RVA: 0x00002050 File Offset: 0x00000250
[Token(Token = "0x60023D9")]
[Address(RVA = "0x2DAD2F0", Offset = "0x2DAC0F0", VA = "0x182DAD2F0")]
public MD5CryptoServiceProvider()
{
}
// Token: 0x060023DA RID: 9178 RVA: 0x00002050 File Offset: 0x00000250
[Token(Token = "0x60023DA")]
[Address(RVA = "0x2DAB580", Offset = "0x2DAA380", VA = "0x182DAB580", Slot = "1")]
protected override void Finalize()
{
}
// Token: 0x060023DB RID: 9179 RVA: 0x00002050 File Offset: 0x00000250
[Token(Token = "0x60023DB")]
[Address(RVA = "0x2DAB4F0", Offset = "0x2DAA2F0", VA = "0x182DAB4F0", Slot = "17")]
protected override void Dispose(bool disposing)
{
}
// Token: 0x060023DC RID: 9180 RVA: 0x00002050 File Offset: 0x00000250
[Token(Token = "0x60023DC")]
[Address(RVA = "0x2DAB600", Offset = "0x2DAA400", VA = "0x182DAB600", Slot = "19")]
protected override void HashCore(byte[] rgb, int ibStart, int cbSize)
{
}
// Token: 0x060023DD RID: 9181 RVA: 0x00002082 File Offset: 0x00000282
[Token(Token = "0x60023DD")]
[Address(RVA = "0x2DAB720", Offset = "0x2DAA520", VA = "0x182DAB720", Slot = "20")]
protected override byte[] HashFinal()
{
return null;
}
/// <summary>Initializes an instance of <see cref="T:System.Security.Cryptography.MD5CryptoServiceProvider" />.</summary>
// Token: 0x060023DE RID: 9182 RVA: 0x00002050 File Offset: 0x00000250
[Token(Token = "0x60023DE")]
[Address(RVA = "0x2DAB820", Offset = "0x2DAA620", VA = "0x182DAB820", Slot = "18")]
public override void Initialize()
{
}
// Token: 0x060023DF RID: 9183 RVA: 0x00002050 File Offset: 0x00000250
[Token(Token = "0x60023DF")]
[Address(RVA = "0x2DAB8D0", Offset = "0x2DAA6D0", VA = "0x182DAB8D0")]
private void ProcessBlock(byte[] inputBuffer, int inputOffset)
{
}
// Token: 0x060023E0 RID: 9184 RVA: 0x00002050 File Offset: 0x00000250
[Token(Token = "0x60023E0")]
[Address(RVA = "0x2DAD0E0", Offset = "0x2DABEE0", VA = "0x182DAD0E0")]
private void ProcessFinalBlock(byte[] inputBuffer, int inputOffset, int inputCount)
{
}
// Token: 0x060023E1 RID: 9185 RVA: 0x00002050 File Offset: 0x00000250
[Token(Token = "0x60023E1")]
[Address(RVA = "0x2DAB380", Offset = "0x2DAA180", VA = "0x182DAB380")]
internal void AddLength(ulong length, byte[] buffer, int position)
{
}
// Token: 0x0400144D RID: 5197
[Token(Token = "0x400144D")]
private const int BLOCK_SIZE_BYTES = 64;
// Token: 0x0400144E RID: 5198
[global::Cpp2IlInjected.FieldOffset(Offset = "0x28")]
[Token(Token = "0x400144E")]
private uint[] _H;
// Token: 0x0400144F RID: 5199
[global::Cpp2IlInjected.FieldOffset(Offset = "0x30")]
[Token(Token = "0x400144F")]
private uint[] buff;
// Token: 0x04001450 RID: 5200
[global::Cpp2IlInjected.FieldOffset(Offset = "0x38")]
[Token(Token = "0x4001450")]
private ulong count;
// Token: 0x04001451 RID: 5201
[global::Cpp2IlInjected.FieldOffset(Offset = "0x40")]
[Token(Token = "0x4001451")]
private byte[] _ProcessingBuffer;
// Token: 0x04001452 RID: 5202
[global::Cpp2IlInjected.FieldOffset(Offset = "0x48")]
[Token(Token = "0x4001452")]
private int _ProcessingBufferCount;
// Token: 0x04001453 RID: 5203
[Token(Token = "0x4001453")]
private static readonly uint[] K;
}
}
@@ -0,0 +1,31 @@
using System;
using System.Runtime.InteropServices;
using Cpp2IlInjected;
namespace System.Security.Cryptography
{
/// <summary>Represents the abstract class from which all mask generator algorithms must derive.</summary>
// Token: 0x020003F5 RID: 1013
[Token(Token = "0x20003F5")]
[ComVisible(true)]
public abstract class MaskGenerationMethod
{
/// <summary>When overridden in a derived class, generates a mask with the specified length using the specified random seed.</summary>
/// <param name="rgbSeed">The random seed to use to compute the mask.</param>
/// <param name="cbReturn">The length of the generated mask in bytes.</param>
/// <returns>A randomly generated mask whose length is equal to the <paramref name="cbReturn" /> parameter.</returns>
// Token: 0x06002203 RID: 8707
[Token(Token = "0x6002203")]
[Address(Slot = "4")]
[ComVisible(true)]
public abstract byte[] GenerateMask(byte[] rgbSeed, int cbReturn);
/// <summary>Initializes a new instance of the <see cref="T:System.Security.Cryptography.MaskGenerationMethod" /> class.</summary>
// Token: 0x06002204 RID: 8708 RVA: 0x00002050 File Offset: 0x00000250
[Token(Token = "0x6002204")]
[Address(RVA = "0x3F5100", Offset = "0x3F3F00", VA = "0x1803F5100")]
protected MaskGenerationMethod()
{
}
}
}
@@ -0,0 +1,59 @@
using System;
using System.Runtime.InteropServices;
using Cpp2IlInjected;
namespace System.Security.Cryptography
{
/// <summary>Computes masks according to PKCS #1 for use by key exchange algorithms.</summary>
// Token: 0x020003F8 RID: 1016
[Token(Token = "0x20003F8")]
[ComVisible(true)]
public class PKCS1MaskGenerationMethod : MaskGenerationMethod
{
/// <summary>Initializes a new instance of the <see cref="T:System.Security.Cryptography.PKCS1MaskGenerationMethod" /> class.</summary>
// Token: 0x0600221D RID: 8733 RVA: 0x00002050 File Offset: 0x00000250
[Token(Token = "0x600221D")]
[Address(RVA = "0x2DAD500", Offset = "0x2DAC300", VA = "0x182DAD500")]
public PKCS1MaskGenerationMethod()
{
}
/// <summary>Gets or sets the name of the hash algorithm type to use for generating the mask.</summary>
/// <returns>The name of the type that implements the hash algorithm to use for computing the mask.</returns>
// Token: 0x170004B3 RID: 1203
// (get) Token: 0x0600221E RID: 8734 RVA: 0x00002082 File Offset: 0x00000282
// (set) Token: 0x0600221F RID: 8735 RVA: 0x00002050 File Offset: 0x00000250
[Token(Token = "0x170004B3")]
public string HashName
{
[Token(Token = "0x600221E")]
[Address(RVA = "0x3F6E20", Offset = "0x3F5C20", VA = "0x1803F6E20")]
get
{
return null;
}
[Token(Token = "0x600221F")]
[Address(RVA = "0x2DAD540", Offset = "0x2DAC340", VA = "0x182DAD540")]
set
{
}
}
/// <summary>Generates and returns a mask from the specified random seed of the specified length.</summary>
/// <param name="rgbSeed">The random seed to use for computing the mask.</param>
/// <param name="cbReturn">The length of the generated mask in bytes.</param>
/// <returns>A randomly generated mask whose length is equal to the <paramref name="cbReturn" /> parameter.</returns>
// Token: 0x06002220 RID: 8736 RVA: 0x00002082 File Offset: 0x00000282
[Token(Token = "0x6002220")]
[Address(RVA = "0x2DAD480", Offset = "0x2DAC280", VA = "0x182DAD480", Slot = "4")]
public override byte[] GenerateMask(byte[] rgbSeed, int cbReturn)
{
return null;
}
// Token: 0x04001377 RID: 4983
[global::Cpp2IlInjected.FieldOffset(Offset = "0x10")]
[Token(Token = "0x4001377")]
private string HashNameValue;
}
}
@@ -0,0 +1,35 @@
using System;
using System.Runtime.InteropServices;
using Cpp2IlInjected;
namespace System.Security.Cryptography
{
/// <summary>Specifies the type of padding to apply when the message data block is shorter than the full number of bytes needed for a cryptographic operation.</summary>
// Token: 0x020003D7 RID: 983
[Token(Token = "0x20003D7")]
[ComVisible(true)]
[Serializable]
public enum PaddingMode
{
/// <summary>No padding is done.</summary>
// Token: 0x04001300 RID: 4864
[Token(Token = "0x4001300")]
None = 1,
/// <summary>The PKCS #7 padding string consists of a sequence of bytes, each of which is equal to the total number of padding bytes added.</summary>
// Token: 0x04001301 RID: 4865
[Token(Token = "0x4001301")]
PKCS7,
/// <summary>The padding string consists of bytes set to zero.</summary>
// Token: 0x04001302 RID: 4866
[Token(Token = "0x4001302")]
Zeros,
/// <summary>The ANSIX923 padding string consists of a sequence of bytes filled with zeros before the length.</summary>
// Token: 0x04001303 RID: 4867
[Token(Token = "0x4001303")]
ANSIX923,
/// <summary>The ISO10126 padding string consists of random data before the length.</summary>
// Token: 0x04001304 RID: 4868
[Token(Token = "0x4001304")]
ISO10126
}
}
@@ -0,0 +1,291 @@
using System;
using System.Runtime.InteropServices;
using Cpp2IlInjected;
namespace System.Security.Cryptography
{
/// <summary>Derives a key from a password using an extension of the PBKDF1 algorithm.</summary>
// Token: 0x020003F7 RID: 1015
[Token(Token = "0x20003F7")]
[ComVisible(true)]
public class PasswordDeriveBytes : DeriveBytes
{
/// <summary>Initializes a new instance of the <see cref="T:System.Security.Cryptography.PasswordDeriveBytes" /> class with the password and key salt to use to derive the key.</summary>
/// <param name="strPassword">The password for which to derive the key.</param>
/// <param name="rgbSalt">The key salt to use to derive the key.</param>
// Token: 0x06002208 RID: 8712 RVA: 0x00002050 File Offset: 0x00000250
[Token(Token = "0x6002208")]
[Address(RVA = "0x2DAE810", Offset = "0x2DAD610", VA = "0x182DAE810")]
public PasswordDeriveBytes(string strPassword, byte[] rgbSalt)
{
}
/// <summary>Initializes a new instance of the <see cref="T:System.Security.Cryptography.PasswordDeriveBytes" /> class specifying the password and key salt to use to derive the key.</summary>
/// <param name="password">The password to derive the key for.</param>
/// <param name="salt">The key salt to use to derive the key.</param>
// Token: 0x06002209 RID: 8713 RVA: 0x00002050 File Offset: 0x00000250
[Token(Token = "0x6002209")]
[Address(RVA = "0x2DAE090", Offset = "0x2DACE90", VA = "0x182DAE090")]
public PasswordDeriveBytes(byte[] password, byte[] salt)
{
}
/// <summary>Initializes a new instance of the <see cref="T:System.Security.Cryptography.PasswordDeriveBytes" /> class with the password, key salt, hash name, and number of iterations to use to derive the key.</summary>
/// <param name="strPassword">The password for which to derive the key.</param>
/// <param name="rgbSalt">The key salt to use to derive the key.</param>
/// <param name="strHashName">The name of the hash algorithm for the operation.</param>
/// <param name="iterations">The number of iterations for the operation.</param>
// Token: 0x0600220A RID: 8714 RVA: 0x00002050 File Offset: 0x00000250
[Token(Token = "0x600220A")]
[Address(RVA = "0x2DAE2B0", Offset = "0x2DAD0B0", VA = "0x182DAE2B0")]
public PasswordDeriveBytes(string strPassword, byte[] rgbSalt, string strHashName, int iterations)
{
}
/// <summary>Initializes a new instance of the <see cref="T:System.Security.Cryptography.PasswordDeriveBytes" /> class specifying the password, key salt, hash name, and iterations to use to derive the key.</summary>
/// <param name="password">The password to derive the key for.</param>
/// <param name="salt">The key salt to use to derive the key.</param>
/// <param name="hashName">The hash algorithm to use to derive the key.</param>
/// <param name="iterations">The iteration count to use to derive the key.</param>
// Token: 0x0600220B RID: 8715 RVA: 0x00002050 File Offset: 0x00000250
[Token(Token = "0x600220B")]
[Address(RVA = "0x2DAE400", Offset = "0x2DAD200", VA = "0x182DAE400")]
public PasswordDeriveBytes(byte[] password, byte[] salt, string hashName, int iterations)
{
}
/// <summary>Initializes a new instance of the <see cref="T:System.Security.Cryptography.PasswordDeriveBytes" /> class with the password, key salt, and cryptographic service provider (CSP) parameters to use to derive the key.</summary>
/// <param name="strPassword">The password for which to derive the key.</param>
/// <param name="rgbSalt">The key salt to use to derive the key.</param>
/// <param name="cspParams">The CSP parameters for the operation.</param>
// Token: 0x0600220C RID: 8716 RVA: 0x00002050 File Offset: 0x00000250
[Token(Token = "0x600220C")]
[Address(RVA = "0x2DAE230", Offset = "0x2DAD030", VA = "0x182DAE230")]
public PasswordDeriveBytes(string strPassword, byte[] rgbSalt, CspParameters cspParams)
{
}
/// <summary>Initializes a new instance of the <see cref="T:System.Security.Cryptography.PasswordDeriveBytes" /> class specifying the password, key salt, and cryptographic service provider (CSP) to use to derive the key.</summary>
/// <param name="password">The password to derive the key for.</param>
/// <param name="salt">The key salt to use to derive the key.</param>
/// <param name="cspParams">The cryptographic service provider (CSP) parameters for the operation.</param>
// Token: 0x0600220D RID: 8717 RVA: 0x00002050 File Offset: 0x00000250
[Token(Token = "0x600220D")]
[Address(RVA = "0x2DAE380", Offset = "0x2DAD180", VA = "0x182DAE380")]
public PasswordDeriveBytes(byte[] password, byte[] salt, CspParameters cspParams)
{
}
/// <summary>Initializes a new instance of the <see cref="T:System.Security.Cryptography.PasswordDeriveBytes" /> class with the password, key salt, hash name, number of iterations, and cryptographic service provider (CSP) parameters to use to derive the key.</summary>
/// <param name="strPassword">The password for which to derive the key.</param>
/// <param name="rgbSalt">The key salt to use to derive the key.</param>
/// <param name="strHashName">The name of the hash algorithm for the operation.</param>
/// <param name="iterations">The number of iterations for the operation.</param>
/// <param name="cspParams">The CSP parameters for the operation.</param>
// Token: 0x0600220E RID: 8718 RVA: 0x00002050 File Offset: 0x00000250
[Token(Token = "0x600220E")]
[Address(RVA = "0x2DAE170", Offset = "0x2DACF70", VA = "0x182DAE170")]
public PasswordDeriveBytes(string strPassword, byte[] rgbSalt, string strHashName, int iterations, CspParameters cspParams)
{
}
/// <summary>Initializes a new instance of the <see cref="T:System.Security.Cryptography.PasswordDeriveBytes" /> class specifying the password, key salt, hash name, iterations, and cryptographic service provider (CSP) to use to derive the key.</summary>
/// <param name="password">The password to derive the key for.</param>
/// <param name="salt">The key salt to use to derive the key.</param>
/// <param name="hashName">The hash algorithm to use to derive the key.</param>
/// <param name="iterations">The iteration count to use to derive the key.</param>
/// <param name="cspParams">The cryptographic service provider (CSP) parameters for the operation.</param>
// Token: 0x0600220F RID: 8719 RVA: 0x00002050 File Offset: 0x00000250
[Token(Token = "0x600220F")]
[Address(RVA = "0x2DAE4D0", Offset = "0x2DAD2D0", VA = "0x182DAE4D0")]
public PasswordDeriveBytes(byte[] password, byte[] salt, string hashName, int iterations, CspParameters cspParams)
{
}
/// <summary>Gets or sets the name of the hash algorithm for the operation.</summary>
/// <returns>The name of the hash algorithm for the operation.</returns>
/// <exception cref="T:System.Security.Cryptography.CryptographicException">The name of the hash value is fixed and an attempt is made to change this value.</exception>
// Token: 0x170004B0 RID: 1200
// (get) Token: 0x06002210 RID: 8720 RVA: 0x00002082 File Offset: 0x00000282
// (set) Token: 0x06002211 RID: 8721 RVA: 0x00002050 File Offset: 0x00000250
[Token(Token = "0x170004B0")]
public string HashName
{
[Token(Token = "0x6002210")]
[Address(RVA = "0x3F63D0", Offset = "0x3F51D0", VA = "0x1803F63D0")]
get
{
return null;
}
[Token(Token = "0x6002211")]
[Address(RVA = "0x2DAE970", Offset = "0x2DAD770", VA = "0x182DAE970")]
set
{
}
}
/// <summary>Gets or sets the number of iterations for the operation.</summary>
/// <returns>The number of iterations for the operation.</returns>
/// <exception cref="T:System.Security.Cryptography.CryptographicException">The number of iterations is fixed and an attempt is made to change this value.</exception>
/// <exception cref="T:System.ArgumentOutOfRangeException">The property cannot be set because its value is out of range. This property requires a non-negative number.</exception>
// Token: 0x170004B1 RID: 1201
// (get) Token: 0x06002212 RID: 8722 RVA: 0x00014B68 File Offset: 0x00012D68
// (set) Token: 0x06002213 RID: 8723 RVA: 0x00002050 File Offset: 0x00000250
[Token(Token = "0x170004B1")]
public int IterationCount
{
[Token(Token = "0x6002212")]
[Address(RVA = "0x40B720", Offset = "0x40A520", VA = "0x18040B720")]
get
{
return 0;
}
[Token(Token = "0x6002213")]
[Address(RVA = "0x2DAEAA0", Offset = "0x2DAD8A0", VA = "0x182DAEAA0")]
set
{
}
}
/// <summary>Gets or sets the key salt value for the operation.</summary>
/// <returns>The key salt value for the operation.</returns>
/// <exception cref="T:System.Security.Cryptography.CryptographicException">The key salt value is fixed and an attempt is made to change this value.</exception>
// Token: 0x170004B2 RID: 1202
// (get) Token: 0x06002214 RID: 8724 RVA: 0x00002082 File Offset: 0x00000282
// (set) Token: 0x06002215 RID: 8725 RVA: 0x00002050 File Offset: 0x00000250
[Token(Token = "0x170004B2")]
public byte[] Salt
{
[Token(Token = "0x6002214")]
[Address(RVA = "0x2DAE8F0", Offset = "0x2DAD6F0", VA = "0x182DAE8F0")]
get
{
return null;
}
[Token(Token = "0x6002215")]
[Address(RVA = "0x2DAEBB0", Offset = "0x2DAD9B0", VA = "0x182DAEBB0")]
set
{
}
}
/// <summary>Returns pseudo-random key bytes.</summary>
/// <param name="cb">The number of pseudo-random key bytes to generate.</param>
/// <returns>A byte array filled with pseudo-random key bytes.</returns>
// Token: 0x06002216 RID: 8726 RVA: 0x00002082 File Offset: 0x00000282
[Token(Token = "0x6002216")]
[Address(RVA = "0x2DADD20", Offset = "0x2DACB20", VA = "0x182DADD20", Slot = "5")]
[Obsolete]
public override byte[] GetBytes(int cb)
{
return null;
}
/// <summary>Resets the state of the operation.</summary>
// Token: 0x06002217 RID: 8727 RVA: 0x00002050 File Offset: 0x00000250
[Token(Token = "0x6002217")]
[Address(RVA = "0x2DAE080", Offset = "0x2DACE80", VA = "0x182DAE080", Slot = "6")]
public override void Reset()
{
}
/// <summary>Releases the unmanaged resources used by the <see cref="T:System.Security.Cryptography.PasswordDeriveBytes" /> 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: 0x06002218 RID: 8728 RVA: 0x00002050 File Offset: 0x00000250
[Token(Token = "0x6002218")]
[Address(RVA = "0x2DADC40", Offset = "0x2DACA40", VA = "0x182DADC40", Slot = "7")]
protected override void Dispose(bool disposing)
{
}
/// <summary>Derives a cryptographic key from the <see cref="T:System.Security.Cryptography.PasswordDeriveBytes" /> object.</summary>
/// <param name="algname">The algorithm name for which to derive the key.</param>
/// <param name="alghashname">The hash algorithm name to use to derive the key.</param>
/// <param name="keySize">The size of the key, in bits, to derive.</param>
/// <param name="rgbIV">The initialization vector (IV) to use to derive the key.</param>
/// <returns>The derived key.</returns>
/// <exception cref="T:System.Security.Cryptography.CryptographicException">The <paramref name="keySize" /> parameter is incorrect.
/// -or-
/// The cryptographic service provider (CSP) cannot be acquired.
/// -or-
/// The <paramref name="algname" /> parameter is not a valid algorithm name.
/// -or-
/// The <paramref name="alghashname" /> parameter is not a valid hash algorithm name.</exception>
// Token: 0x06002219 RID: 8729 RVA: 0x00002082 File Offset: 0x00000282
[Token(Token = "0x6002219")]
[Address(RVA = "0x2DADBA0", Offset = "0x2DAC9A0", VA = "0x182DADBA0")]
public byte[] CryptDeriveKey(string algname, string alghashname, int keySize, byte[] rgbIV)
{
return null;
}
// Token: 0x0600221A RID: 8730 RVA: 0x00002082 File Offset: 0x00000282
[Token(Token = "0x600221A")]
[Address(RVA = "0x2DAD590", Offset = "0x2DAC390", VA = "0x182DAD590")]
private byte[] ComputeBaseValue()
{
return null;
}
// Token: 0x0600221B RID: 8731 RVA: 0x00002082 File Offset: 0x00000282
[Token(Token = "0x600221B")]
[Address(RVA = "0x2DAD740", Offset = "0x2DAC540", VA = "0x182DAD740")]
private byte[] ComputeBytes(int cb)
{
return null;
}
// Token: 0x0600221C RID: 8732 RVA: 0x00002050 File Offset: 0x00000250
[Token(Token = "0x600221C")]
[Address(RVA = "0x2DADE90", Offset = "0x2DACC90", VA = "0x182DADE90")]
private void HashPrefix(CryptoStream cs)
{
}
// Token: 0x0400136E RID: 4974
[global::Cpp2IlInjected.FieldOffset(Offset = "0x10")]
[Token(Token = "0x400136E")]
private int _extraCount;
// Token: 0x0400136F RID: 4975
[global::Cpp2IlInjected.FieldOffset(Offset = "0x14")]
[Token(Token = "0x400136F")]
private int _prefix;
// Token: 0x04001370 RID: 4976
[global::Cpp2IlInjected.FieldOffset(Offset = "0x18")]
[Token(Token = "0x4001370")]
private int _iterations;
// Token: 0x04001371 RID: 4977
[global::Cpp2IlInjected.FieldOffset(Offset = "0x20")]
[Token(Token = "0x4001371")]
private byte[] _baseValue;
// Token: 0x04001372 RID: 4978
[global::Cpp2IlInjected.FieldOffset(Offset = "0x28")]
[Token(Token = "0x4001372")]
private byte[] _extra;
// Token: 0x04001373 RID: 4979
[global::Cpp2IlInjected.FieldOffset(Offset = "0x30")]
[Token(Token = "0x4001373")]
private byte[] _salt;
// Token: 0x04001374 RID: 4980
[global::Cpp2IlInjected.FieldOffset(Offset = "0x38")]
[Token(Token = "0x4001374")]
private string _hashName;
// Token: 0x04001375 RID: 4981
[global::Cpp2IlInjected.FieldOffset(Offset = "0x40")]
[Token(Token = "0x4001375")]
private byte[] _password;
// Token: 0x04001376 RID: 4982
[global::Cpp2IlInjected.FieldOffset(Offset = "0x48")]
[Token(Token = "0x4001376")]
private HashAlgorithm _hash;
}
}
@@ -0,0 +1,102 @@
using System;
using System.Runtime.InteropServices;
using Cpp2IlInjected;
namespace System.Security.Cryptography
{
/// <summary>Represents the base class from which all implementations of the <see cref="T:System.Security.Cryptography.RC2" /> algorithm must derive.</summary>
// Token: 0x020003FA RID: 1018
[Token(Token = "0x20003FA")]
[ComVisible(true)]
public abstract class RC2 : SymmetricAlgorithm
{
/// <summary>Initializes a new instance of <see cref="T:System.Security.Cryptography.RC2" />.</summary>
// Token: 0x06002229 RID: 8745 RVA: 0x00002050 File Offset: 0x00000250
[Token(Token = "0x6002229")]
[Address(RVA = "0x2DB0D10", Offset = "0x2DAFB10", VA = "0x182DB0D10")]
protected RC2()
{
}
/// <summary>Gets or sets the effective size of the secret key used by the <see cref="T:System.Security.Cryptography.RC2" /> algorithm in bits.</summary>
/// <returns>The effective key size used by the <see cref="T:System.Security.Cryptography.RC2" /> algorithm.</returns>
/// <exception cref="T:System.Security.Cryptography.CryptographicException">The effective key size is invalid.</exception>
// Token: 0x170004B4 RID: 1204
// (get) Token: 0x0600222A RID: 8746 RVA: 0x00014B80 File Offset: 0x00012D80
// (set) Token: 0x0600222B RID: 8747 RVA: 0x00002050 File Offset: 0x00000250
[Token(Token = "0x170004B4")]
public virtual int EffectiveKeySize
{
[Token(Token = "0x600222A")]
[Address(RVA = "0x2DB0DB0", Offset = "0x2DAFBB0", VA = "0x182DB0DB0", Slot = "28")]
get
{
return 0;
}
[Token(Token = "0x600222B")]
[Address(RVA = "0x2DB0DC0", Offset = "0x2DAFBC0", VA = "0x182DB0DC0", Slot = "29")]
set
{
}
}
/// <summary>Gets or sets the size of the secret key used by the <see cref="T:System.Security.Cryptography.RC2" /> algorithm in bits.</summary>
/// <returns>The size of the secret key used by the <see cref="T:System.Security.Cryptography.RC2" /> algorithm.</returns>
/// <exception cref="T:System.Security.Cryptography.CryptographicException">The value for the RC2 key size is less than the effective key size value.</exception>
// Token: 0x170004B5 RID: 1205
// (get) Token: 0x0600222C RID: 8748 RVA: 0x00014B98 File Offset: 0x00012D98
// (set) Token: 0x0600222D RID: 8749 RVA: 0x00002050 File Offset: 0x00000250
[Token(Token = "0x170004B5")]
public override int KeySize
{
[Token(Token = "0x600222C")]
[Address(RVA = "0x40FFE0", Offset = "0x40EDE0", VA = "0x18040FFE0", Slot = "16")]
get
{
return 0;
}
[Token(Token = "0x600222D")]
[Address(RVA = "0x2DB0EF0", Offset = "0x2DAFCF0", VA = "0x182DB0EF0", Slot = "17")]
set
{
}
}
/// <summary>Creates an instance of a cryptographic object to perform the <see cref="T:System.Security.Cryptography.RC2" /> algorithm.</summary>
/// <returns>An instance of a cryptographic object.</returns>
/// <exception cref="T:System.Reflection.TargetInvocationException">The algorithm was used with Federal Information Processing Standards (FIPS) mode enabled, but is not FIPS compatible.</exception>
// Token: 0x0600222E RID: 8750 RVA: 0x00002082 File Offset: 0x00000282
[Token(Token = "0x600222E")]
[Address(RVA = "0x2DB0910", Offset = "0x2DAF710", VA = "0x182DB0910")]
public new static RC2 Create()
{
return null;
}
/// <summary>Creates an instance of a cryptographic object to perform the specified implementation of the <see cref="T:System.Security.Cryptography.RC2" /> algorithm.</summary>
/// <param name="AlgName">The name of the specific implementation of <see cref="T:System.Security.Cryptography.RC2" /> to use.</param>
/// <returns>An instance of a cryptographic object.</returns>
/// <exception cref="T:System.Reflection.TargetInvocationException">The algorithm described by the <paramref name="algName" /> parameter was used with Federal Information Processing Standards (FIPS) mode enabled, but is not FIPS compatible.</exception>
// Token: 0x0600222F RID: 8751 RVA: 0x00002082 File Offset: 0x00000282
[Token(Token = "0x600222F")]
[Address(RVA = "0x2DB0B10", Offset = "0x2DAF910", VA = "0x182DB0B10")]
public new static RC2 Create(string AlgName)
{
return null;
}
/// <summary>Represents the effective size of the secret key used by the <see cref="T:System.Security.Cryptography.RC2" /> algorithm in bits.</summary>
// Token: 0x04001378 RID: 4984
[global::Cpp2IlInjected.FieldOffset(Offset = "0x48")]
[Token(Token = "0x4001378")]
protected int EffectiveKeySizeValue;
// Token: 0x04001379 RID: 4985
[Token(Token = "0x4001379")]
private static KeySizes[] s_legalBlockSizes;
// Token: 0x0400137A RID: 4986
[Token(Token = "0x400137A")]
private static KeySizes[] s_legalKeySizes;
}
}
@@ -0,0 +1,131 @@
using System;
using System.Runtime.InteropServices;
using Cpp2IlInjected;
namespace System.Security.Cryptography
{
/// <summary>Defines a wrapper object to access the cryptographic service provider (CSP) implementation of the <see cref="T:System.Security.Cryptography.RC2" /> algorithm. This class cannot be inherited.</summary>
// Token: 0x020003FB RID: 1019
[Token(Token = "0x20003FB")]
[ComVisible(true)]
public sealed class RC2CryptoServiceProvider : RC2
{
/// <summary>Initializes a new instance of the <see cref="T:System.Security.Cryptography.RC2CryptoServiceProvider" /> class.</summary>
/// <exception cref="T:System.Security.Cryptography.CryptographicException">The cryptographic service provider (CSP) cannot be acquired.</exception>
/// <exception cref="T:System.InvalidOperationException">A non-compliant FIPS algorithm was found.</exception>
// Token: 0x06002231 RID: 8753 RVA: 0x00002050 File Offset: 0x00000250
[Token(Token = "0x6002231")]
[Address(RVA = "0x2DAF040", Offset = "0x2DADE40", VA = "0x182DAF040")]
public RC2CryptoServiceProvider()
{
}
/// <summary>Gets or sets the effective size, in bits, of the secret key used by the <see cref="T:System.Security.Cryptography.RC2" /> algorithm.</summary>
/// <returns>The effective key size, in bits, used by the <see cref="T:System.Security.Cryptography.RC2" /> algorithm.</returns>
/// <exception cref="T:System.Security.Cryptography.CryptographicUnexpectedOperationException">The <see cref="P:System.Security.Cryptography.RC2CryptoServiceProvider.EffectiveKeySize" /> property was set to a value other than the <see cref="F:System.Security.Cryptography.SymmetricAlgorithm.KeySizeValue" /> property.</exception>
// Token: 0x170004B6 RID: 1206
// (get) Token: 0x06002232 RID: 8754 RVA: 0x00014BB0 File Offset: 0x00012DB0
// (set) Token: 0x06002233 RID: 8755 RVA: 0x00002050 File Offset: 0x00000250
[Token(Token = "0x170004B6")]
public override int EffectiveKeySize
{
[Token(Token = "0x6002232")]
[Address(RVA = "0x40FFE0", Offset = "0x40EDE0", VA = "0x18040FFE0", Slot = "28")]
get
{
return 0;
}
[Token(Token = "0x6002233")]
[Address(RVA = "0x2DAF220", Offset = "0x2DAE020", VA = "0x182DAF220", Slot = "29")]
set
{
}
}
/// <summary>Gets or sets a value that determines whether to create a key with an 11-byte-long, zero-value salt.</summary>
/// <returns>
/// <see langword="true" /> if the key should be created with an 11-byte-long, zero-value salt; otherwise, <see langword="false" />. The default is <see langword="false" />.</returns>
// Token: 0x170004B7 RID: 1207
// (get) Token: 0x06002234 RID: 8756 RVA: 0x00014BC8 File Offset: 0x00012DC8
// (set) Token: 0x06002235 RID: 8757 RVA: 0x00002050 File Offset: 0x00000250
[Token(Token = "0x170004B7")]
[ComVisible(false)]
public bool UseSalt
{
[Token(Token = "0x6002234")]
[Address(RVA = "0x7722A0", Offset = "0x7710A0", VA = "0x1807722A0")]
get
{
return default(bool);
}
[Token(Token = "0x6002235")]
[Address(RVA = "0x781F80", Offset = "0x780D80", VA = "0x180781F80")]
set
{
}
}
/// <summary>Creates a symmetric <see cref="T:System.Security.Cryptography.RC2" /> encryptor object with the specified key (<see cref="P:System.Security.Cryptography.SymmetricAlgorithm.Key" />) and initialization vector (<see cref="P:System.Security.Cryptography.SymmetricAlgorithm.IV" />).</summary>
/// <param name="rgbKey">The secret key to use for the symmetric algorithm.</param>
/// <param name="rgbIV">The initialization vector to use for the symmetric algorithm.</param>
/// <returns>A symmetric <see cref="T:System.Security.Cryptography.RC2" /> encryptor object.</returns>
/// <exception cref="T:System.Security.Cryptography.CryptographicException">An <see cref="F:System.Security.Cryptography.CipherMode.OFB" /> cipher mode was used.
/// -or-
/// A <see cref="F:System.Security.Cryptography.CipherMode.CFB" /> cipher mode with a feedback size other than 8 bits was used.
/// -or-
/// An invalid key size was used.
/// -or-
/// The algorithm key size was not available.</exception>
// Token: 0x06002236 RID: 8758 RVA: 0x00002082 File Offset: 0x00000282
[Token(Token = "0x6002236")]
[Address(RVA = "0x2DAED90", Offset = "0x2DADB90", VA = "0x182DAED90", Slot = "23")]
public override ICryptoTransform CreateEncryptor(byte[] rgbKey, byte[] rgbIV)
{
return null;
}
/// <summary>Creates a symmetric <see cref="T:System.Security.Cryptography.RC2" /> decryptor object with the specified key (<see cref="P:System.Security.Cryptography.SymmetricAlgorithm.Key" />) and initialization vector (<see cref="P:System.Security.Cryptography.SymmetricAlgorithm.IV" />).</summary>
/// <param name="rgbKey">The secret key to use for the symmetric algorithm.</param>
/// <param name="rgbIV">The initialization vector to use for the symmetric algorithm.</param>
/// <returns>A symmetric <see cref="T:System.Security.Cryptography.RC2" /> decryptor object.</returns>
/// <exception cref="T:System.Security.Cryptography.CryptographicException">An <see cref="F:System.Security.Cryptography.CipherMode.OFB" /> cipher mode was used.
/// -or-
/// A <see cref="F:System.Security.Cryptography.CipherMode.CFB" /> cipher mode with a feedback size other than 8 bits was used.
/// -or-
/// An invalid key size was used.
/// -or-
/// The algorithm key size was not available.</exception>
// Token: 0x06002237 RID: 8759 RVA: 0x00002082 File Offset: 0x00000282
[Token(Token = "0x6002237")]
[Address(RVA = "0x2DAECD0", Offset = "0x2DADAD0", VA = "0x182DAECD0", Slot = "25")]
public override ICryptoTransform CreateDecryptor(byte[] rgbKey, byte[] rgbIV)
{
return null;
}
/// <summary>Generates a random key (<see cref="P:System.Security.Cryptography.SymmetricAlgorithm.Key" />) to be used for the algorithm.</summary>
// Token: 0x06002238 RID: 8760 RVA: 0x00002050 File Offset: 0x00000250
[Token(Token = "0x6002238")]
[Address(RVA = "0x2DAEEE0", Offset = "0x2DADCE0", VA = "0x182DAEEE0", Slot = "26")]
public override void GenerateKey()
{
}
/// <summary>Generates a random initialization vector (<see cref="P:System.Security.Cryptography.SymmetricAlgorithm.IV" />) to use for the algorithm.</summary>
// Token: 0x06002239 RID: 8761 RVA: 0x00002050 File Offset: 0x00000250
[Token(Token = "0x6002239")]
[Address(RVA = "0x2DAEE50", Offset = "0x2DADC50", VA = "0x182DAEE50", Slot = "27")]
public override void GenerateIV()
{
}
// Token: 0x0400137B RID: 4987
[global::Cpp2IlInjected.FieldOffset(Offset = "0x50")]
[Token(Token = "0x400137B")]
private bool m_use40bitSalt;
// Token: 0x0400137C RID: 4988
[Token(Token = "0x400137C")]
private static KeySizes[] s_legalKeySizes;
}
}
@@ -0,0 +1,59 @@
using System;
using Cpp2IlInjected;
using Mono.Security.Cryptography;
namespace System.Security.Cryptography
{
// Token: 0x02000427 RID: 1063
[Token(Token = "0x2000427")]
internal class RC2Transform : SymmetricTransform
{
// Token: 0x060023E3 RID: 9187 RVA: 0x00002050 File Offset: 0x00000250
[Token(Token = "0x60023E3")]
[Address(RVA = "0x2DB0270", Offset = "0x2DAF070", VA = "0x182DB0270")]
public RC2Transform(RC2 rc2Algo, bool encryption, byte[] key, byte[] iv)
{
}
// Token: 0x060023E4 RID: 9188 RVA: 0x00002050 File Offset: 0x00000250
[Token(Token = "0x60023E4")]
[Address(RVA = "0x2DAF2A0", Offset = "0x2DAE0A0", VA = "0x182DAF2A0", Slot = "17")]
protected override void ECB(byte[] input, byte[] output)
{
}
// Token: 0x04001454 RID: 5204
[FieldOffset(Offset = "0x58")]
[Token(Token = "0x4001454")]
private ushort R0;
// Token: 0x04001455 RID: 5205
[FieldOffset(Offset = "0x5A")]
[Token(Token = "0x4001455")]
private ushort R1;
// Token: 0x04001456 RID: 5206
[FieldOffset(Offset = "0x5C")]
[Token(Token = "0x4001456")]
private ushort R2;
// Token: 0x04001457 RID: 5207
[FieldOffset(Offset = "0x5E")]
[Token(Token = "0x4001457")]
private ushort R3;
// Token: 0x04001458 RID: 5208
[FieldOffset(Offset = "0x60")]
[Token(Token = "0x4001458")]
private ushort[] K;
// Token: 0x04001459 RID: 5209
[FieldOffset(Offset = "0x68")]
[Token(Token = "0x4001459")]
private int j;
// Token: 0x0400145A RID: 5210
[Token(Token = "0x400145A")]
private static readonly byte[] pitable;
}
}
@@ -0,0 +1,44 @@
using System;
using System.Runtime.InteropServices;
using Cpp2IlInjected;
namespace System.Security.Cryptography
{
/// <summary>Represents the abstract class from which all implementations of the MD160 hash algorithm inherit.</summary>
// Token: 0x02000401 RID: 1025
[Token(Token = "0x2000401")]
[ComVisible(true)]
public abstract class RIPEMD160 : HashAlgorithm
{
/// <summary>Initializes a new instance of the <see cref="T:System.Security.Cryptography.RIPEMD160" /> class.</summary>
// Token: 0x0600226C RID: 8812 RVA: 0x00002050 File Offset: 0x00000250
[Token(Token = "0x600226C")]
[Address(RVA = "0x2DB3830", Offset = "0x2DB2630", VA = "0x182DB3830")]
protected RIPEMD160()
{
}
/// <summary>Creates an instance of the default implementation of the <see cref="T:System.Security.Cryptography.RIPEMD160" /> hash algorithm.</summary>
/// <returns>A new instance of the <see cref="T:System.Security.Cryptography.RIPEMD160" /> hash algorithm.</returns>
/// <exception cref="T:System.Reflection.TargetInvocationException">The algorithm was used with Federal Information Processing Standards (FIPS) mode enabled, but it is not FIPS-compatible.</exception>
// Token: 0x0600226D RID: 8813 RVA: 0x00002082 File Offset: 0x00000282
[Token(Token = "0x600226D")]
[Address(RVA = "0x2DB37E0", Offset = "0x2DB25E0", VA = "0x182DB37E0")]
public new static RIPEMD160 Create()
{
return null;
}
/// <summary>Creates an instance of the specified implementation of the <see cref="T:System.Security.Cryptography.RIPEMD160" /> hash algorithm.</summary>
/// <param name="hashName">The name of the specific implementation of <see cref="T:System.Security.Cryptography.RIPEMD160" /> to use.</param>
/// <returns>A new instance of the specified implementation of <see cref="T:System.Security.Cryptography.RIPEMD160" />.</returns>
/// <exception cref="T:System.Reflection.TargetInvocationException">The algorithm described by the <paramref name="hashName" /> parameter was used with Federal Information Processing Standards (FIPS) mode enabled, but it is not FIPS-compatible.</exception>
// Token: 0x0600226E RID: 8814 RVA: 0x00002082 File Offset: 0x00000282
[Token(Token = "0x600226E")]
[Address(RVA = "0x2DB3750", Offset = "0x2DB2550", VA = "0x182DB3750")]
public new static RIPEMD160 Create(string hashName)
{
return null;
}
}
}
@@ -0,0 +1,140 @@
using System;
using System.Runtime.InteropServices;
using Cpp2IlInjected;
namespace System.Security.Cryptography
{
/// <summary>Computes the <see cref="T:System.Security.Cryptography.RIPEMD160" /> hash for the input data using the managed library.</summary>
// Token: 0x02000402 RID: 1026
[Token(Token = "0x2000402")]
[ComVisible(true)]
public class RIPEMD160Managed : RIPEMD160
{
/// <summary>Initializes a new instance of the <see cref="T:System.Security.Cryptography.RIPEMD160" /> class.</summary>
/// <exception cref="T:System.InvalidOperationException">The policy is not compliant with the FIPS algorithm.</exception>
// Token: 0x0600226F RID: 8815 RVA: 0x00002050 File Offset: 0x00000250
[Token(Token = "0x600226F")]
[Address(RVA = "0x2DB3670", Offset = "0x2DB2470", VA = "0x182DB3670")]
public RIPEMD160Managed()
{
}
/// <summary>Initializes an instance of the <see cref="T:System.Security.Cryptography.RIPEMD160Managed" /> class using the managed library.</summary>
// Token: 0x06002270 RID: 8816 RVA: 0x00002050 File Offset: 0x00000250
[Token(Token = "0x6002270")]
[Address(RVA = "0x2DB1090", Offset = "0x2DAFE90", VA = "0x182DB1090", Slot = "18")]
public override void Initialize()
{
}
/// <summary>When overridden in a derived class, routes data written to the object into the <see cref="T:System.Security.Cryptography.RIPEMD160" /> hash algorithm for computing the hash.</summary>
/// <param name="rgb">The input data.</param>
/// <param name="ibStart">The offset into the byte array from which to begin using data.</param>
/// <param name="cbSize">The number of bytes in the array to use as data.</param>
// Token: 0x06002271 RID: 8817 RVA: 0x00002050 File Offset: 0x00000250
[Token(Token = "0x6002271")]
[Address(RVA = "0x2DB0F90", Offset = "0x2DAFD90", VA = "0x182DB0F90", Slot = "19")]
protected override void HashCore(byte[] rgb, int ibStart, int cbSize)
{
}
/// <summary>When overridden in a derived class, finalizes the hash computation after the last data is processed by the cryptographic stream object.</summary>
/// <returns>The computed hash code in a byte array.</returns>
// Token: 0x06002272 RID: 8818 RVA: 0x00002082 File Offset: 0x00000282
[Token(Token = "0x6002272")]
[Address(RVA = "0x2DB0FA0", Offset = "0x2DAFDA0", VA = "0x182DB0FA0", Slot = "20")]
protected override byte[] HashFinal()
{
return null;
}
// Token: 0x06002273 RID: 8819 RVA: 0x00002050 File Offset: 0x00000250
[Token(Token = "0x6002273")]
[Address(RVA = "0x2DB0FB0", Offset = "0x2DAFDB0", VA = "0x182DB0FB0")]
private void InitializeState()
{
}
// Token: 0x06002274 RID: 8820 RVA: 0x00002050 File Offset: 0x00000250
[Token(Token = "0x6002274")]
[Address(RVA = "0x2DB34D0", Offset = "0x2DB22D0", VA = "0x182DB34D0")]
private void _HashData(byte[] partIn, int ibStart, int cbSize)
{
}
// Token: 0x06002275 RID: 8821 RVA: 0x00002082 File Offset: 0x00000282
[Token(Token = "0x6002275")]
[Address(RVA = "0x2DB3280", Offset = "0x2DB2080", VA = "0x182DB3280")]
private byte[] _EndHash()
{
return null;
}
// Token: 0x06002276 RID: 8822 RVA: 0x00002050 File Offset: 0x00000250
[Token(Token = "0x6002276")]
[Address(RVA = "0x2DB10F0", Offset = "0x2DAFEF0", VA = "0x182DB10F0")]
private unsafe static void MDTransform(uint* blockDWords, uint* state, byte* block)
{
}
// Token: 0x06002277 RID: 8823 RVA: 0x00014D30 File Offset: 0x00012F30
[Token(Token = "0x6002277")]
[Address(RVA = "0x1B448F0", Offset = "0x1B436F0", VA = "0x181B448F0")]
private static uint F(uint x, uint y, uint z)
{
return 0U;
}
// Token: 0x06002278 RID: 8824 RVA: 0x00014D48 File Offset: 0x00012F48
[Token(Token = "0x6002278")]
[Address(RVA = "0x1B448D0", Offset = "0x1B436D0", VA = "0x181B448D0")]
private static uint G(uint x, uint y, uint z)
{
return 0U;
}
// Token: 0x06002279 RID: 8825 RVA: 0x00014D60 File Offset: 0x00012F60
[Token(Token = "0x6002279")]
[Address(RVA = "0x2DB0F80", Offset = "0x2DAFD80", VA = "0x182DB0F80")]
private static uint H(uint x, uint y, uint z)
{
return 0U;
}
// Token: 0x0600227A RID: 8826 RVA: 0x00014D78 File Offset: 0x00012F78
[Token(Token = "0x600227A")]
[Address(RVA = "0x1B448E0", Offset = "0x1B436E0", VA = "0x181B448E0")]
private static uint I(uint x, uint y, uint z)
{
return 0U;
}
// Token: 0x0600227B RID: 8827 RVA: 0x00014D90 File Offset: 0x00012F90
[Token(Token = "0x600227B")]
[Address(RVA = "0x2DB10E0", Offset = "0x2DAFEE0", VA = "0x182DB10E0")]
private static uint J(uint x, uint y, uint z)
{
return 0U;
}
// Token: 0x040013A3 RID: 5027
[global::Cpp2IlInjected.FieldOffset(Offset = "0x28")]
[Token(Token = "0x40013A3")]
private byte[] _buffer;
// Token: 0x040013A4 RID: 5028
[global::Cpp2IlInjected.FieldOffset(Offset = "0x30")]
[Token(Token = "0x40013A4")]
private long _count;
// Token: 0x040013A5 RID: 5029
[global::Cpp2IlInjected.FieldOffset(Offset = "0x38")]
[Token(Token = "0x40013A5")]
private uint[] _stateMD160;
// Token: 0x040013A6 RID: 5030
[global::Cpp2IlInjected.FieldOffset(Offset = "0x40")]
[Token(Token = "0x40013A6")]
private uint[] _blockDWords;
}
}
@@ -0,0 +1,131 @@
using System;
using Cpp2IlInjected;
namespace System.Security.Cryptography
{
/// <summary>Implements a cryptographic Random Number Generator (RNG) using the implementation provided by the cryptographic service provider (CSP). This class cannot be inherited.</summary>
// Token: 0x02000428 RID: 1064
[Token(Token = "0x2000428")]
public sealed class RNGCryptoServiceProvider : RandomNumberGenerator
{
/// <summary>Initializes a new instance of the <see cref="T:System.Security.Cryptography.RNGCryptoServiceProvider" /> class.</summary>
// Token: 0x060023E7 RID: 9191 RVA: 0x00002050 File Offset: 0x00000250
[Token(Token = "0x60023E7")]
[Address(RVA = "0x2DB3DF0", Offset = "0x2DB2BF0", VA = "0x182DB3DF0")]
public RNGCryptoServiceProvider()
{
}
/// <summary>Initializes a new instance of the <see cref="T:System.Security.Cryptography.RNGCryptoServiceProvider" /> class.</summary>
/// <param name="rgb">A byte array. This value is ignored.</param>
// Token: 0x060023E8 RID: 9192 RVA: 0x00002050 File Offset: 0x00000250
[Token(Token = "0x60023E8")]
[Address(RVA = "0x2DB3D70", Offset = "0x2DB2B70", VA = "0x182DB3D70")]
public RNGCryptoServiceProvider(byte[] rgb)
{
}
/// <summary>Initializes a new instance of the <see cref="T:System.Security.Cryptography.RNGCryptoServiceProvider" /> class with the specified parameters.</summary>
/// <param name="cspParams">The parameters to pass to the cryptographic service provider (CSP).</param>
// Token: 0x060023E9 RID: 9193 RVA: 0x00002050 File Offset: 0x00000250
[Token(Token = "0x60023E9")]
[Address(RVA = "0x2DB3F30", Offset = "0x2DB2D30", VA = "0x182DB3F30")]
public RNGCryptoServiceProvider(CspParameters cspParams)
{
}
/// <summary>Initializes a new instance of the <see cref="T:System.Security.Cryptography.RNGCryptoServiceProvider" /> class.</summary>
/// <param name="str">The string input. This parameter is ignored.</param>
// Token: 0x060023EA RID: 9194 RVA: 0x00002050 File Offset: 0x00000250
[Token(Token = "0x60023EA")]
[Address(RVA = "0x2DB3E60", Offset = "0x2DB2C60", VA = "0x182DB3E60")]
public RNGCryptoServiceProvider(string str)
{
}
// Token: 0x060023EB RID: 9195 RVA: 0x00002050 File Offset: 0x00000250
[Token(Token = "0x60023EB")]
[Address(RVA = "0x2DB3850", Offset = "0x2DB2650", VA = "0x182DB3850")]
private void Check()
{
}
// Token: 0x060023EC RID: 9196 RVA: 0x00015528 File Offset: 0x00013728
[Token(Token = "0x60023EC")]
[Address(RVA = "0x2532F40", Offset = "0x2531D40", VA = "0x182532F40")]
private static bool RngOpen()
{
return default(bool);
}
// Token: 0x060023ED RID: 9197 RVA: 0x00015540 File Offset: 0x00013740
[Token(Token = "0x60023ED")]
[Address(RVA = "0x2DB3CF0", Offset = "0x2DB2AF0", VA = "0x182DB3CF0")]
private static IntPtr RngInitialize(byte[] seed)
{
return 0;
}
// Token: 0x060023EE RID: 9198 RVA: 0x00015558 File Offset: 0x00013758
[Token(Token = "0x60023EE")]
[Address(RVA = "0x2DB3CE0", Offset = "0x2DB2AE0", VA = "0x182DB3CE0")]
private static IntPtr RngGetBytes(IntPtr handle, byte[] data)
{
return 0;
}
// Token: 0x060023EF RID: 9199 RVA: 0x00002050 File Offset: 0x00000250
[Token(Token = "0x60023EF")]
[Address(RVA = "0x2DB3CD0", Offset = "0x2DB2AD0", VA = "0x182DB3CD0")]
private static void RngClose(IntPtr handle)
{
}
/// <summary>Fills an array of bytes with a cryptographically strong sequence of random values.</summary>
/// <param name="data">The array to fill with a cryptographically strong sequence of random values.</param>
/// <exception cref="T:System.Security.Cryptography.CryptographicException">The cryptographic service provider (CSP) cannot be acquired.</exception>
/// <exception cref="T:System.ArgumentNullException">
/// <paramref name="data" /> is <see langword="null" />.</exception>
// Token: 0x060023F0 RID: 9200 RVA: 0x00002050 File Offset: 0x00000250
[Token(Token = "0x60023F0")]
[Address(RVA = "0x2DB39C0", Offset = "0x2DB27C0", VA = "0x182DB39C0", Slot = "6")]
public override void GetBytes(byte[] data)
{
}
/// <summary>Fills an array of bytes with a cryptographically strong sequence of random nonzero values.</summary>
/// <param name="data">The array to fill with a cryptographically strong sequence of random nonzero values.</param>
/// <exception cref="T:System.Security.Cryptography.CryptographicException">The cryptographic service provider (CSP) cannot be acquired.</exception>
/// <exception cref="T:System.ArgumentNullException">
/// <paramref name="data" /> is <see langword="null" />.</exception>
// Token: 0x060023F1 RID: 9201 RVA: 0x00002050 File Offset: 0x00000250
[Token(Token = "0x60023F1")]
[Address(RVA = "0x2DB3B70", Offset = "0x2DB2970", VA = "0x182DB3B70", Slot = "8")]
public override void GetNonZeroBytes(byte[] data)
{
}
// Token: 0x060023F2 RID: 9202 RVA: 0x00002050 File Offset: 0x00000250
[Token(Token = "0x60023F2")]
[Address(RVA = "0x2DB38F0", Offset = "0x2DB26F0", VA = "0x182DB38F0", Slot = "1")]
protected override void Finalize()
{
}
// Token: 0x060023F3 RID: 9203 RVA: 0x00002050 File Offset: 0x00000250
[Token(Token = "0x60023F3")]
[Address(RVA = "0x2DB38E0", Offset = "0x2DB26E0", VA = "0x182DB38E0", Slot = "5")]
protected override void Dispose(bool disposing)
{
}
// Token: 0x0400145B RID: 5211
[Token(Token = "0x400145B")]
private static object _lock;
// Token: 0x0400145C RID: 5212
[FieldOffset(Offset = "0x10")]
[Token(Token = "0x400145C")]
private IntPtr _handle;
}
}
@@ -0,0 +1,380 @@
using System;
using System.IO;
using System.Runtime.InteropServices;
using Cpp2IlInjected;
namespace System.Security.Cryptography
{
/// <summary>Represents the base class from which all implementations of the <see cref="T:System.Security.Cryptography.RSA" /> algorithm inherit.</summary>
// Token: 0x02000404 RID: 1028
[Token(Token = "0x2000404")]
[ComVisible(true)]
public abstract class RSA : AsymmetricAlgorithm
{
/// <summary>Initializes a new instance of the <see cref="T:System.Security.Cryptography.RSA" /> class.</summary>
// Token: 0x0600227C RID: 8828 RVA: 0x00002050 File Offset: 0x00000250
[Token(Token = "0x600227C")]
[Address(RVA = "0x4093D0", Offset = "0x4081D0", VA = "0x1804093D0")]
protected RSA()
{
}
/// <summary>Creates an instance of the default implementation of the <see cref="T:System.Security.Cryptography.RSA" /> algorithm.</summary>
/// <returns>A new instance of the default implementation of <see cref="T:System.Security.Cryptography.RSA" />.</returns>
// Token: 0x0600227D RID: 8829 RVA: 0x00002082 File Offset: 0x00000282
[Token(Token = "0x600227D")]
[Address(RVA = "0x2DB6A80", Offset = "0x2DB5880", VA = "0x182DB6A80")]
public new static RSA Create()
{
return null;
}
/// <summary>Creates an instance of the specified implementation of <see cref="T:System.Security.Cryptography.RSA" />.</summary>
/// <param name="algName">The name of the implementation of <see cref="T:System.Security.Cryptography.RSA" /> to use.</param>
/// <returns>A new instance of the specified implementation of <see cref="T:System.Security.Cryptography.RSA" />.</returns>
// Token: 0x0600227E RID: 8830 RVA: 0x00002082 File Offset: 0x00000282
[Token(Token = "0x600227E")]
[Address(RVA = "0x2DB69F0", Offset = "0x2DB57F0", VA = "0x182DB69F0")]
public new static RSA Create(string algName)
{
return null;
}
/// <summary>When overridden in a derived class, encrypts the input data using the specified padding mode.</summary>
/// <param name="data">The data to encrypt.</param>
/// <param name="padding">The padding mode.</param>
/// <returns>The encrypted data.</returns>
/// <exception cref="T:System.NotImplementedException">A derived class must override this method.</exception>
// Token: 0x0600227F RID: 8831 RVA: 0x00002082 File Offset: 0x00000282
[Token(Token = "0x600227F")]
[Address(RVA = "0x2DB6C70", Offset = "0x2DB5A70", VA = "0x182DB6C70", Slot = "13")]
public virtual byte[] Encrypt(byte[] data, RSAEncryptionPadding padding)
{
return null;
}
/// <summary>When overridden in a derived class, decrypts the input data using the specified padding mode.</summary>
/// <param name="data">The data to decrypt.</param>
/// <param name="padding">The padding mode.</param>
/// <returns>The decrypted data.</returns>
/// <exception cref="T:System.NotImplementedException">A derived class must override this method.</exception>
// Token: 0x06002280 RID: 8832 RVA: 0x00002082 File Offset: 0x00000282
[Token(Token = "0x6002280")]
[Address(RVA = "0x2DB6B50", Offset = "0x2DB5950", VA = "0x182DB6B50", Slot = "14")]
public virtual byte[] Decrypt(byte[] data, RSAEncryptionPadding padding)
{
return null;
}
/// <summary>When overridden in a derived class, computes the signature for the specified hash value by encrypting it with the private key using the specified padding.</summary>
/// <param name="hash">The hash value of the data to be signed.</param>
/// <param name="hashAlgorithm">The hash algorithm used to create the hash value of the data.</param>
/// <param name="padding">The padding.</param>
/// <returns>The RSA signature for the specified hash value.</returns>
/// <exception cref="T:System.NotImplementedException">A derived class must override this method.</exception>
// Token: 0x06002281 RID: 8833 RVA: 0x00002082 File Offset: 0x00000282
[Token(Token = "0x6002281")]
[Address(RVA = "0x2DB77D0", Offset = "0x2DB65D0", VA = "0x182DB77D0", Slot = "15")]
public virtual byte[] SignHash(byte[] hash, HashAlgorithmName hashAlgorithm, RSASignaturePadding padding)
{
return null;
}
/// <summary>Verifies that a digital signature is valid by determining the hash value in the signature using the specified hash algorithm and padding, and comparing it to the provided hash value.</summary>
/// <param name="hash">The hash value of the signed data.</param>
/// <param name="signature">The signature data to be verified.</param>
/// <param name="hashAlgorithm">The hash algorithm used to create the hash value.</param>
/// <param name="padding">The padding mode.</param>
/// <returns>
/// <see langword="true" /> if the signature is valid; otherwise, <see langword="false" />.</returns>
/// <exception cref="T:System.NotImplementedException">A derived class must override this method.</exception>
// Token: 0x06002282 RID: 8834 RVA: 0x00014DA8 File Offset: 0x00012FA8
[Token(Token = "0x6002282")]
[Address(RVA = "0x2DB7F60", Offset = "0x2DB6D60", VA = "0x182DB7F60", Slot = "16")]
public virtual bool VerifyHash(byte[] hash, byte[] signature, HashAlgorithmName hashAlgorithm, RSASignaturePadding padding)
{
return default(bool);
}
/// <summary>When overridden in a derived class, computes the hash value of a specified portion of a byte array by using a specified hashing algorithm.</summary>
/// <param name="data">The data to be hashed.</param>
/// <param name="offset">The index of the first byte in <paramref name="data" /> that is to be hashed.</param>
/// <param name="count">The number of bytes to hash.</param>
/// <param name="hashAlgorithm">The algorithm to use in hash the data.</param>
/// <returns>The hashed data.</returns>
/// <exception cref="T:System.NotImplementedException">A derived class must override this method.</exception>
// Token: 0x06002283 RID: 8835 RVA: 0x00002082 File Offset: 0x00000282
[Token(Token = "0x6002283")]
[Address(RVA = "0x2DB7380", Offset = "0x2DB6180", VA = "0x182DB7380", Slot = "17")]
protected virtual byte[] HashData(byte[] data, int offset, int count, HashAlgorithmName hashAlgorithm)
{
return null;
}
/// <summary>When overridden in a derived class, computes the hash value of a specified binary stream by using a specified hashing algorithm.</summary>
/// <param name="data">The binary stream to hash.</param>
/// <param name="hashAlgorithm">The hash algorithm.</param>
/// <returns>The hashed data.</returns>
/// <exception cref="T:System.NotImplementedException">A derived class must override this method.</exception>
// Token: 0x06002284 RID: 8836 RVA: 0x00002082 File Offset: 0x00000282
[Token(Token = "0x6002284")]
[Address(RVA = "0x2DB7340", Offset = "0x2DB6140", VA = "0x182DB7340", Slot = "18")]
protected virtual byte[] HashData(Stream data, HashAlgorithmName hashAlgorithm)
{
return null;
}
/// <summary>Computes the hash value of the specified byte array using the specified hash algorithm and padding mode, and signs the resulting hash value.</summary>
/// <param name="data">The input data for which to compute the hash.</param>
/// <param name="hashAlgorithm">The hash algorithm to use to create the hash value.</param>
/// <param name="padding">The padding mode.</param>
/// <returns>The RSA signature for the specified data.</returns>
/// <exception cref="T:System.ArgumentNullException">
/// <paramref name="data" /> is <see langword="null" />.
/// -or-
/// <paramref name="padding" /> is <see langword="null" />.</exception>
/// <exception cref="T:System.ArgumentException">
/// <paramref name="hashAlgorithm" />.<see cref="P:System.Security.Cryptography.HashAlgorithmName.Name" /> is <see langword="null" /> or <see cref="F:System.String.Empty" />.</exception>
// Token: 0x06002285 RID: 8837 RVA: 0x00002082 File Offset: 0x00000282
[Token(Token = "0x6002285")]
[Address(RVA = "0x2DB73C0", Offset = "0x2DB61C0", VA = "0x182DB73C0")]
public byte[] SignData(byte[] data, HashAlgorithmName hashAlgorithm, RSASignaturePadding padding)
{
return null;
}
/// <summary>Computes the hash value of a portion of the specified byte array using the specified hash algorithm and padding mode, and signs the resulting hash value.</summary>
/// <param name="data">The input data for which to compute the hash.</param>
/// <param name="offset">The offset into the array at which to begin using data.</param>
/// <param name="count">The number of bytes in the array to use as data.</param>
/// <param name="hashAlgorithm">The hash algorithm to use to create the hash value.</param>
/// <param name="padding">The padding mode.</param>
/// <returns>The RSA signature for the specified data.</returns>
/// <exception cref="T:System.ArgumentNullException">
/// <paramref name="data" /> is <see langword="null" />.
/// -or-
/// <paramref name="padding" /> is <see langword="null" />.</exception>
/// <exception cref="T:System.ArgumentException">
/// <paramref name="hashAlgorithm" />.<see cref="P:System.Security.Cryptography.HashAlgorithmName.Name" /> is <see langword="null" /> or <see cref="F:System.String.Empty" />.</exception>
/// <exception cref="T:System.ArgumentOutOfRangeException">
/// <paramref name="offset" /> is less than zero.
/// -or-
/// <paramref name="count" /> is less than zero.
/// -or-
/// <paramref name="offset" /> + <paramref name="count" /> - 1 results in an index that is beyond the upper bound of <paramref name="data" />.</exception>
// Token: 0x06002286 RID: 8838 RVA: 0x00002082 File Offset: 0x00000282
[Token(Token = "0x6002286")]
[Address(RVA = "0x2DB7480", Offset = "0x2DB6280", VA = "0x182DB7480", Slot = "19")]
public virtual byte[] SignData(byte[] data, int offset, int count, HashAlgorithmName hashAlgorithm, RSASignaturePadding padding)
{
return null;
}
/// <summary>Computes the hash value of the specified stream using the specified hash algorithm and padding mode, and signs the resulting hash value.</summary>
/// <param name="data">The input stream for which to compute the hash.</param>
/// <param name="hashAlgorithm">The hash algorithm to use to create the hash value.</param>
/// <param name="padding">The padding mode.</param>
/// <returns>The RSA signature for the specified data.</returns>
/// <exception cref="T:System.ArgumentNullException">
/// <paramref name="data" /> is <see langword="null" />.
/// -or-
/// <paramref name="padding" /> is <see langword="null" />.</exception>
/// <exception cref="T:System.ArgumentException">
/// <paramref name="hashAlgorithm" />.<see cref="P:System.Security.Cryptography.HashAlgorithmName.Name" /> is <see langword="null" /> or <see cref="F:System.String.Empty" />.</exception>
// Token: 0x06002287 RID: 8839 RVA: 0x00002082 File Offset: 0x00000282
[Token(Token = "0x6002287")]
[Address(RVA = "0x2DB7670", Offset = "0x2DB6470", VA = "0x182DB7670", Slot = "20")]
public virtual byte[] SignData(Stream data, HashAlgorithmName hashAlgorithm, RSASignaturePadding padding)
{
return null;
}
/// <summary>Verifies that a digital signature is valid by calculating the hash value of the specified data using the specified hash algorithm and padding, and comparing it to the provided signature.</summary>
/// <param name="data">The signed data.</param>
/// <param name="signature">The signature data to be verified.</param>
/// <param name="hashAlgorithm">The hash algorithm used to create the hash value of the data.</param>
/// <param name="padding">The padding mode.</param>
/// <returns>
/// <see langword="true" /> if the signature is valid; otherwise, <see langword="false" />.</returns>
/// <exception cref="T:System.ArgumentNullException">
/// <paramref name="data" /> is <see langword="null" />.
/// -or-
/// <paramref name="signature" /> is <see langword="null" />.
/// -or-
/// <paramref name="padding" /> is <see langword="null" />.</exception>
/// <exception cref="T:System.ArgumentException">
/// <paramref name="hashAlgorithm" />.<see cref="P:System.Security.Cryptography.HashAlgorithmName.Name" /> is <see langword="null" /> or <see cref="F:System.String.Empty" />.</exception>
// Token: 0x06002288 RID: 8840 RVA: 0x00014DC0 File Offset: 0x00012FC0
[Token(Token = "0x6002288")]
[Address(RVA = "0x2DB7C70", Offset = "0x2DB6A70", VA = "0x182DB7C70")]
public bool VerifyData(byte[] data, byte[] signature, HashAlgorithmName hashAlgorithm, RSASignaturePadding padding)
{
return default(bool);
}
/// <summary>Verifies that a digital signature is valid by calculating the hash value of the data in a portion of a byte array using the specified hash algorithm and padding, and comparing it to the provided signature.</summary>
/// <param name="data">The signed data.</param>
/// <param name="offset">The starting index at which to compute the hash.</param>
/// <param name="count">The number of bytes to hash.</param>
/// <param name="signature">The signature data to be verified.</param>
/// <param name="hashAlgorithm">The hash algorithm used to create the hash value of the data.</param>
/// <param name="padding">The padding mode.</param>
/// <returns>
/// <see langword="true" /> if the signature is valid; otherwise, <see langword="false" />.</returns>
/// <exception cref="T:System.ArgumentNullException">
/// <paramref name="data" /> is <see langword="null" />.
/// -or-
/// <paramref name="signature" /> is <see langword="null" />.
/// -or-
/// <paramref name="padding" /> is <see langword="null" />.</exception>
/// <exception cref="T:System.ArgumentException">
/// <paramref name="hashAlgorithm" />.<see cref="P:System.Security.Cryptography.HashAlgorithmName.Name" /> is <see langword="null" /> or <see cref="F:System.String.Empty" />.</exception>
/// <exception cref="T:System.ArgumentOutOfRangeException">
/// <paramref name="offset" /> is less than zero.
/// -or-
/// <paramref name="count" /> is less than zero.
/// -or-
/// <paramref name="offset" /> + <paramref name="count" /> - 1 results in an index that is beyond the upper bound of <paramref name="data" />.</exception>
// Token: 0x06002289 RID: 8841 RVA: 0x00014DD8 File Offset: 0x00012FD8
[Token(Token = "0x6002289")]
[Address(RVA = "0x2DB7D30", Offset = "0x2DB6B30", VA = "0x182DB7D30", Slot = "21")]
public virtual bool VerifyData(byte[] data, int offset, int count, byte[] signature, HashAlgorithmName hashAlgorithm, RSASignaturePadding padding)
{
return default(bool);
}
/// <summary>Verifies that a digital signature is valid by calculating the hash value of the specified stream using the specified hash algorithm and padding, and comparing it to the provided signature.</summary>
/// <param name="data">The signed data.</param>
/// <param name="signature">The signature data to be verified.</param>
/// <param name="hashAlgorithm">The hash algorithm used to create the hash value of the data.</param>
/// <param name="padding">The padding mode.</param>
/// <returns>
/// <see langword="true" /> if the signature is valid; otherwise, <see langword="false" />.</returns>
/// <exception cref="T:System.ArgumentNullException">
/// <paramref name="data" /> is <see langword="null" />.
/// -or-
/// <paramref name="signature" /> is <see langword="null" />.
/// -or-
/// <paramref name="padding" /> is <see langword="null" />.</exception>
/// <exception cref="T:System.ArgumentException">
/// <paramref name="hashAlgorithm" />.<see cref="P:System.Security.Cryptography.HashAlgorithmName.Name" /> is <see langword="null" /> or <see cref="F:System.String.Empty" />.</exception>
// Token: 0x0600228A RID: 8842 RVA: 0x00014DF0 File Offset: 0x00012FF0
[Token(Token = "0x600228A")]
[Address(RVA = "0x2DB7AD0", Offset = "0x2DB68D0", VA = "0x182DB7AD0")]
public bool VerifyData(Stream data, byte[] signature, HashAlgorithmName hashAlgorithm, RSASignaturePadding padding)
{
return default(bool);
}
// Token: 0x0600228B RID: 8843 RVA: 0x00002082 File Offset: 0x00000282
[Token(Token = "0x600228B")]
[Address(RVA = "0x2DB6B90", Offset = "0x2DB5990", VA = "0x182DB6B90")]
private static Exception DerivedClassMustOverride()
{
return null;
}
// Token: 0x0600228C RID: 8844 RVA: 0x00002082 File Offset: 0x00000282
[Token(Token = "0x600228C")]
[Address(RVA = "0x2DB72D0", Offset = "0x2DB60D0", VA = "0x182DB72D0")]
internal static Exception HashAlgorithmNameNullOrEmpty()
{
return null;
}
/// <summary>When overridden in a derived class, decrypts the input data using the private key.</summary>
/// <param name="rgb">The cipher text to be decrypted.</param>
/// <returns>The resulting decryption of the <paramref name="rgb" /> parameter in plain text.</returns>
/// <exception cref="T:System.NotSupportedException">This method call is not supported. This exception is thrown starting with the .NET Framework 4.6.</exception>
// Token: 0x0600228D RID: 8845 RVA: 0x00002082 File Offset: 0x00000282
[Token(Token = "0x600228D")]
[Address(RVA = "0x2DB6AE0", Offset = "0x2DB58E0", VA = "0x182DB6AE0", Slot = "22")]
public virtual byte[] DecryptValue(byte[] rgb)
{
return null;
}
/// <summary>When overridden in a derived class, encrypts the input data using the public key.</summary>
/// <param name="rgb">The plain text to be encrypted.</param>
/// <returns>The resulting encryption of the <paramref name="rgb" /> parameter as cipher text.</returns>
/// <exception cref="T:System.NotSupportedException">This method call is not supported. This exception is thrown starting with the .NET Framework 4.6.</exception>
// Token: 0x0600228E RID: 8846 RVA: 0x00002082 File Offset: 0x00000282
[Token(Token = "0x600228E")]
[Address(RVA = "0x2DB6C00", Offset = "0x2DB5A00", VA = "0x182DB6C00", Slot = "23")]
public virtual byte[] EncryptValue(byte[] rgb)
{
return null;
}
/// <summary>Gets the name of the key exchange algorithm available with this implementation of <see cref="T:System.Security.Cryptography.RSA" />.</summary>
/// <returns>Returns "RSA".</returns>
// Token: 0x170004BF RID: 1215
// (get) Token: 0x0600228F RID: 8847 RVA: 0x00002082 File Offset: 0x00000282
[Token(Token = "0x170004BF")]
public override string KeyExchangeAlgorithm
{
[Token(Token = "0x600228F")]
[Address(RVA = "0x2DB7FA0", Offset = "0x2DB6DA0", VA = "0x182DB7FA0", Slot = "10")]
get
{
return null;
}
}
/// <summary>Gets the name of the signature algorithm available with this implementation of <see cref="T:System.Security.Cryptography.RSA" />.</summary>
/// <returns>Returns "RSA".</returns>
// Token: 0x170004C0 RID: 1216
// (get) Token: 0x06002290 RID: 8848 RVA: 0x00002082 File Offset: 0x00000282
[Token(Token = "0x170004C0")]
public override string SignatureAlgorithm
{
[Token(Token = "0x6002290")]
[Address(RVA = "0x2DB7FD0", Offset = "0x2DB6DD0", VA = "0x182DB7FD0", Slot = "9")]
get
{
return null;
}
}
/// <summary>Initializes an <see cref="T:System.Security.Cryptography.RSA" /> object from the key information from an XML string.</summary>
/// <param name="xmlString">The XML string containing <see cref="T:System.Security.Cryptography.RSA" /> key information.</param>
/// <exception cref="T:System.ArgumentNullException">The <paramref name="xmlString" /> parameter is <see langword="null" />.</exception>
/// <exception cref="T:System.Security.Cryptography.CryptographicException">The format of the <paramref name="xmlString" /> parameter is not valid.</exception>
/// <exception cref="T:System.PlatformNotSupportedException">.NET Core only: This member is not supported.</exception>
// Token: 0x06002291 RID: 8849 RVA: 0x00002050 File Offset: 0x00000250
[Token(Token = "0x6002291")]
[Address(RVA = "0x2DB6CB0", Offset = "0x2DB5AB0", VA = "0x182DB6CB0", Slot = "11")]
public override void FromXmlString(string xmlString)
{
}
/// <summary>Creates and returns an XML string containing the key of the current <see cref="T:System.Security.Cryptography.RSA" /> object.</summary>
/// <param name="includePrivateParameters">
/// <see langword="true" /> to include a public and private RSA key; <see langword="false" /> to include only the public key.</param>
/// <returns>An XML string containing the key of the current <see cref="T:System.Security.Cryptography.RSA" /> object.</returns>
/// <exception cref="T:System.PlatformNotSupportedException">.NET Core only: This member is not supported.</exception>
// Token: 0x06002292 RID: 8850 RVA: 0x00002082 File Offset: 0x00000282
[Token(Token = "0x6002292")]
[Address(RVA = "0x2DB7810", Offset = "0x2DB6610", VA = "0x182DB7810", Slot = "12")]
public override string ToXmlString(bool includePrivateParameters)
{
return null;
}
/// <summary>When overridden in a derived class, exports the <see cref="T:System.Security.Cryptography.RSAParameters" />.</summary>
/// <param name="includePrivateParameters">
/// <see langword="true" /> to include private parameters; otherwise, <see langword="false" />.</param>
/// <returns>The parameters for <see cref="T:System.Security.Cryptography.RSA" />.</returns>
// Token: 0x06002293 RID: 8851
[Token(Token = "0x6002293")]
[Address(Slot = "24")]
public abstract RSAParameters ExportParameters(bool includePrivateParameters);
/// <summary>When overridden in a derived class, imports the specified <see cref="T:System.Security.Cryptography.RSAParameters" />.</summary>
/// <param name="parameters">The parameters for <see cref="T:System.Security.Cryptography.RSA" />.</param>
// Token: 0x06002294 RID: 8852
[Token(Token = "0x6002294")]
[Address(Slot = "25")]
public abstract void ImportParameters(RSAParameters parameters);
}
}
@@ -0,0 +1,628 @@
using System;
using System.IO;
using System.Runtime.InteropServices;
using Cpp2IlInjected;
using Mono.Security.Cryptography;
namespace System.Security.Cryptography
{
/// <summary>Performs asymmetric encryption and decryption using the implementation of the <see cref="T:System.Security.Cryptography.RSA" /> algorithm provided by the cryptographic service provider (CSP). This class cannot be inherited.</summary>
// Token: 0x02000405 RID: 1029
[Token(Token = "0x2000405")]
[ComVisible(true)]
public sealed class RSACryptoServiceProvider : RSA, ICspAsymmetricAlgorithm
{
/// <summary>Gets the name of the signature algorithm available with this implementation of <see cref="T:System.Security.Cryptography.RSA" />.</summary>
/// <returns>The name of the signature algorithm.</returns>
// Token: 0x170004C1 RID: 1217
// (get) Token: 0x06002295 RID: 8853 RVA: 0x00002082 File Offset: 0x00000282
[Token(Token = "0x170004C1")]
public override string SignatureAlgorithm
{
[Token(Token = "0x6002295")]
[Address(RVA = "0x2DB67B0", Offset = "0x2DB55B0", VA = "0x182DB67B0", Slot = "9")]
get
{
return null;
}
}
/// <summary>Gets or sets a value indicating whether the key should be persisted in the computer's key store instead of the user profile store.</summary>
/// <returns>
/// <see langword="true" /> if the key should be persisted in the computer key store; otherwise, <see langword="false" />.</returns>
// Token: 0x170004C2 RID: 1218
// (get) Token: 0x06002296 RID: 8854 RVA: 0x00014E08 File Offset: 0x00013008
// (set) Token: 0x06002297 RID: 8855 RVA: 0x00002050 File Offset: 0x00000250
[Token(Token = "0x170004C2")]
public static bool UseMachineKeyStore
{
[Token(Token = "0x6002296")]
[Address(RVA = "0x2DB67E0", Offset = "0x2DB55E0", VA = "0x182DB67E0")]
get
{
return default(bool);
}
[Token(Token = "0x6002297")]
[Address(RVA = "0x2DB68D0", Offset = "0x2DB56D0", VA = "0x182DB68D0")]
set
{
}
}
// Token: 0x06002298 RID: 8856 RVA: 0x00002082 File Offset: 0x00000282
[Token(Token = "0x6002298")]
[Address(RVA = "0x2DB5290", Offset = "0x2DB4090", VA = "0x182DB5290", Slot = "17")]
protected override byte[] HashData(byte[] data, int offset, int count, HashAlgorithmName hashAlgorithm)
{
return null;
}
// Token: 0x06002299 RID: 8857 RVA: 0x00002082 File Offset: 0x00000282
[Token(Token = "0x6002299")]
[Address(RVA = "0x2DB52F0", Offset = "0x2DB40F0", VA = "0x182DB52F0", Slot = "18")]
protected override byte[] HashData(Stream data, HashAlgorithmName hashAlgorithm)
{
return null;
}
// Token: 0x0600229A RID: 8858 RVA: 0x00014E20 File Offset: 0x00013020
[Token(Token = "0x600229A")]
[Address(RVA = "0x2DB4C70", Offset = "0x2DB3A70", VA = "0x182DB4C70")]
private static int GetAlgorithmId(HashAlgorithmName hashAlgorithm)
{
return 0;
}
/// <summary>Encrypts data with the <see cref="T:System.Security.Cryptography.RSA" /> algorithm using the specified padding.</summary>
/// <param name="data">The data to encrypt.</param>
/// <param name="padding">The padding.</param>
/// <returns>The encrypted data.</returns>
/// <exception cref="T:System.ArgumentNullException">
/// <paramref name="data" /> is <see langword="null" />.
/// -or-
/// <paramref name="padding" /> is <see langword="null" />.</exception>
/// <exception cref="T:System.Security.Cryptography.CryptographicException">The padding mode is not supported.</exception>
// Token: 0x0600229B RID: 8859 RVA: 0x00002082 File Offset: 0x00000282
[Token(Token = "0x600229B")]
[Address(RVA = "0x2DB4700", Offset = "0x2DB3500", VA = "0x182DB4700", Slot = "13")]
public override byte[] Encrypt(byte[] data, RSAEncryptionPadding padding)
{
return null;
}
/// <summary>Decrypts data that was previously encrypted with the <see cref="T:System.Security.Cryptography.RSA" /> algorithm by using the specified padding.</summary>
/// <param name="data">The data to decrypt.</param>
/// <param name="padding">The padding.</param>
/// <returns>The decrypted data.</returns>
/// <exception cref="T:System.ArgumentNullException">
/// <paramref name="data" /> is <see langword="null" />.
/// -or-
/// <paramref name="padding" /> is <see langword="null" />.</exception>
/// <exception cref="T:System.Security.Cryptography.CryptographicException">The padding mode is not supported.</exception>
// Token: 0x0600229C RID: 8860 RVA: 0x00002082 File Offset: 0x00000282
[Token(Token = "0x600229C")]
[Address(RVA = "0x2DB4360", Offset = "0x2DB3160", VA = "0x182DB4360", Slot = "14")]
public override byte[] Decrypt(byte[] data, RSAEncryptionPadding padding)
{
return null;
}
/// <summary>Computes the signature for the specified hash value by encrypting it with the private key using the specified padding.</summary>
/// <param name="hash">The hash value of the data to be signed.</param>
/// <param name="hashAlgorithm">The hash algorithm name used to create the hash value of the data.</param>
/// <param name="padding">The padding.</param>
/// <returns>The <see cref="T:System.Security.Cryptography.RSA" /> signature for the specified hash value.</returns>
/// <exception cref="T:System.ArgumentException">
/// <paramref name="hashAlgorithm" /> is <see langword="null" /> or <see cref="F:System.String.Empty" />.</exception>
/// <exception cref="T:System.ArgumentNullException">
/// <paramref name="hash" /> is <see langword="null" />.
/// -or-
/// <paramref name="padding" /> is <see langword="null" />.</exception>
/// <exception cref="T:System.Security.Cryptography.CryptographicException">
/// <paramref name="padding" /> does not equal <see cref="P:System.Security.Cryptography.RSASignaturePadding.Pkcs1" />.</exception>
// Token: 0x0600229D RID: 8861 RVA: 0x00002082 File Offset: 0x00000282
[Token(Token = "0x600229D")]
[Address(RVA = "0x2DB5B90", Offset = "0x2DB4990", VA = "0x182DB5B90", Slot = "15")]
public override byte[] SignHash(byte[] hash, HashAlgorithmName hashAlgorithm, RSASignaturePadding padding)
{
return null;
}
/// <summary>Verifies that a digital signature is valid by determining the hash value in the signature using the specified hashing algorithm and padding, and comparing it to the provided hash value.</summary>
/// <param name="hash">The hash value of the signed data.</param>
/// <param name="signature">The signature data to be verified.</param>
/// <param name="hashAlgorithm">The hash algorithm name used to create the hash value.</param>
/// <param name="padding">The padding.</param>
/// <returns>
/// <see langword="true" /> if the signature is valid; otherwise, <see langword="false" />.</returns>
/// <exception cref="T:System.ArgumentException">
/// <paramref name="hashAlgorithm" /> is <see langword="null" /> or <see cref="F:System.String.Empty" />.</exception>
/// <exception cref="T:System.ArgumentNullException">
/// <paramref name="hash" /> is <see langword="null" />.
/// -or-
/// <paramref name="padding" /> is <see langword="null" />.</exception>
/// <exception cref="T:System.Security.Cryptography.CryptographicException">
/// <paramref name="padding" /> does not equal <see cref="P:System.Security.Cryptography.RSASignaturePadding.Pkcs1" />.</exception>
// Token: 0x0600229E RID: 8862 RVA: 0x00014E38 File Offset: 0x00013038
[Token(Token = "0x600229E")]
[Address(RVA = "0x2DB5FB0", Offset = "0x2DB4DB0", VA = "0x182DB5FB0", Slot = "16")]
public override bool VerifyHash(byte[] hash, byte[] signature, HashAlgorithmName hashAlgorithm, RSASignaturePadding padding)
{
return default(bool);
}
// Token: 0x0600229F RID: 8863 RVA: 0x00002082 File Offset: 0x00000282
[Token(Token = "0x600229F")]
[Address(RVA = "0x2DB5800", Offset = "0x2DB4600", VA = "0x182DB5800")]
private static Exception PaddingModeNotSupported()
{
return null;
}
/// <summary>Initializes a new instance of the <see cref="T:System.Security.Cryptography.RSACryptoServiceProvider" /> class using the default key.</summary>
/// <exception cref="T:System.Security.Cryptography.CryptographicException">The cryptographic service provider (CSP) cannot be acquired.</exception>
// Token: 0x060022A0 RID: 8864 RVA: 0x00002050 File Offset: 0x00000250
[Token(Token = "0x60022A0")]
[Address(RVA = "0x2DB6520", Offset = "0x2DB5320", VA = "0x182DB6520")]
public RSACryptoServiceProvider()
{
}
/// <summary>Initializes a new instance of the <see cref="T:System.Security.Cryptography.RSACryptoServiceProvider" /> class with the specified parameters.</summary>
/// <param name="parameters">The parameters to be passed to the cryptographic service provider (CSP).</param>
/// <exception cref="T:System.Security.Cryptography.CryptographicException">The CSP cannot be acquired.</exception>
// Token: 0x060022A1 RID: 8865 RVA: 0x00002050 File Offset: 0x00000250
[Token(Token = "0x60022A1")]
[Address(RVA = "0x2DB6400", Offset = "0x2DB5200", VA = "0x182DB6400")]
public RSACryptoServiceProvider(CspParameters parameters)
{
}
/// <summary>Initializes a new instance of the <see cref="T:System.Security.Cryptography.RSACryptoServiceProvider" /> class with the specified key size.</summary>
/// <param name="dwKeySize">The size of the key to use in bits.</param>
/// <exception cref="T:System.Security.Cryptography.CryptographicException">The cryptographic service provider (CSP) cannot be acquired.</exception>
// Token: 0x060022A2 RID: 8866 RVA: 0x00002050 File Offset: 0x00000250
[Token(Token = "0x60022A2")]
[Address(RVA = "0x2DB6670", Offset = "0x2DB5470", VA = "0x182DB6670")]
public RSACryptoServiceProvider(int dwKeySize)
{
}
/// <summary>Initializes a new instance of the <see cref="T:System.Security.Cryptography.RSACryptoServiceProvider" /> class with the specified key size and parameters.</summary>
/// <param name="dwKeySize">The size of the key to use in bits.</param>
/// <param name="parameters">The parameters to be passed to the cryptographic service provider (CSP).</param>
/// <exception cref="T:System.Security.Cryptography.CryptographicException">The CSP cannot be acquired.
/// -or-
/// The key cannot be created.</exception>
// Token: 0x060022A3 RID: 8867 RVA: 0x00002050 File Offset: 0x00000250
[Token(Token = "0x60022A3")]
[Address(RVA = "0x2DB6550", Offset = "0x2DB5350", VA = "0x182DB6550")]
public RSACryptoServiceProvider(int dwKeySize, CspParameters parameters)
{
}
// Token: 0x060022A4 RID: 8868 RVA: 0x00002050 File Offset: 0x00000250
[Token(Token = "0x60022A4")]
[Address(RVA = "0x2DB3FA0", Offset = "0x2DB2DA0", VA = "0x182DB3FA0")]
private void Common(int dwKeySize, bool parameters)
{
}
// Token: 0x060022A5 RID: 8869 RVA: 0x00002050 File Offset: 0x00000250
[Token(Token = "0x60022A5")]
[Address(RVA = "0x2DB41C0", Offset = "0x2DB2FC0", VA = "0x182DB41C0")]
private void Common(CspParameters p)
{
}
// Token: 0x060022A6 RID: 8870 RVA: 0x00002050 File Offset: 0x00000250
[Token(Token = "0x60022A6")]
[Address(RVA = "0x2DB4BF0", Offset = "0x2DB39F0", VA = "0x182DB4BF0", Slot = "1")]
protected override void Finalize()
{
}
/// <summary>Gets the name of the key exchange algorithm available with this implementation of <see cref="T:System.Security.Cryptography.RSA" />.</summary>
/// <returns>The name of the key exchange algorithm if it exists; otherwise, <see langword="null" />.</returns>
// Token: 0x170004C3 RID: 1219
// (get) Token: 0x060022A7 RID: 8871 RVA: 0x00002082 File Offset: 0x00000282
[Token(Token = "0x170004C3")]
public override string KeyExchangeAlgorithm
{
[Token(Token = "0x60022A7")]
[Address(RVA = "0x2DB6730", Offset = "0x2DB5530", VA = "0x182DB6730", Slot = "10")]
get
{
return null;
}
}
/// <summary>Gets the size of the current key.</summary>
/// <returns>The size of the key in bits.</returns>
// Token: 0x170004C4 RID: 1220
// (get) Token: 0x060022A8 RID: 8872 RVA: 0x00014E50 File Offset: 0x00013050
[Token(Token = "0x170004C4")]
public override int KeySize
{
[Token(Token = "0x60022A8")]
[Address(RVA = "0x2DB6760", Offset = "0x2DB5560", VA = "0x182DB6760", Slot = "6")]
get
{
return 0;
}
}
/// <summary>Gets or sets a value indicating whether the key should be persisted in the cryptographic service provider (CSP).</summary>
/// <returns>
/// <see langword="true" /> if the key should be persisted in the CSP; otherwise, <see langword="false" />.</returns>
// Token: 0x170004C5 RID: 1221
// (get) Token: 0x060022A9 RID: 8873 RVA: 0x00014E68 File Offset: 0x00013068
// (set) Token: 0x060022AA RID: 8874 RVA: 0x00002050 File Offset: 0x00000250
[Token(Token = "0x170004C5")]
public bool PersistKeyInCsp
{
[Token(Token = "0x60022A9")]
[Address(RVA = "0x494270", Offset = "0x493070", VA = "0x180494270")]
get
{
return default(bool);
}
[Token(Token = "0x60022AA")]
[Address(RVA = "0x2DB6850", Offset = "0x2DB5650", VA = "0x182DB6850")]
set
{
}
}
/// <summary>Gets a value that indicates whether the <see cref="T:System.Security.Cryptography.RSACryptoServiceProvider" /> object contains only a public key.</summary>
/// <returns>
/// <see langword="true" /> if the <see cref="T:System.Security.Cryptography.RSACryptoServiceProvider" /> object contains only a public key; otherwise, <see langword="false" />.</returns>
// Token: 0x170004C6 RID: 1222
// (get) Token: 0x060022AB RID: 8875 RVA: 0x00014E80 File Offset: 0x00013080
[Token(Token = "0x170004C6")]
[ComVisible(false)]
public bool PublicOnly
{
[Token(Token = "0x60022AB")]
[Address(RVA = "0x2DB6790", Offset = "0x2DB5590", VA = "0x182DB6790")]
get
{
return default(bool);
}
}
/// <summary>Decrypts data with the <see cref="T:System.Security.Cryptography.RSA" /> algorithm.</summary>
/// <param name="rgb">The data to be decrypted.</param>
/// <param name="fOAEP">
/// <see langword="true" /> to perform direct <see cref="T:System.Security.Cryptography.RSA" /> decryption using OAEP padding (only available on a computer running Microsoft Windows XP or later); otherwise, <see langword="false" /> to use PKCS#1 v1.5 padding.</param>
/// <returns>The decrypted data, which is the original plain text before encryption.</returns>
/// <exception cref="T:System.Security.Cryptography.CryptographicException">The cryptographic service provider (CSP) cannot be acquired.
/// -or-
/// The <paramref name="fOAEP" /> parameter is <see langword="true" /> and the length of the <paramref name="rgb" /> parameter is greater than <see cref="P:System.Security.Cryptography.RSACryptoServiceProvider.KeySize" />.
/// -or-
/// The <paramref name="fOAEP" /> parameter is <see langword="true" /> and OAEP is not supported.
/// -or-
/// The key does not match the encrypted data. However, the exception wording may not be accurate. For example, it may say Not enough storage is available to process this command.</exception>
/// <exception cref="T:System.ArgumentNullException">
/// <paramref name="rgb" /> is <see langword="null" />.</exception>
// Token: 0x060022AC RID: 8876 RVA: 0x00002082 File Offset: 0x00000282
[Token(Token = "0x60022AC")]
[Address(RVA = "0x2DB4500", Offset = "0x2DB3300", VA = "0x182DB4500")]
public byte[] Decrypt(byte[] rgb, bool fOAEP)
{
return null;
}
/// <summary>This method is not supported in the current version.</summary>
/// <param name="rgb">The data to be decrypted.</param>
/// <returns>The decrypted data, which is the original plain text before encryption.</returns>
/// <exception cref="T:System.NotSupportedException">This method is not supported in the current version.</exception>
// Token: 0x060022AD RID: 8877 RVA: 0x00002082 File Offset: 0x00000282
[Token(Token = "0x60022AD")]
[Address(RVA = "0x2DB42C0", Offset = "0x2DB30C0", VA = "0x182DB42C0", Slot = "22")]
public override byte[] DecryptValue(byte[] rgb)
{
return null;
}
/// <summary>Encrypts data with the <see cref="T:System.Security.Cryptography.RSA" /> algorithm.</summary>
/// <param name="rgb">The data to be encrypted.</param>
/// <param name="fOAEP">
/// <see langword="true" /> to perform direct <see cref="T:System.Security.Cryptography.RSA" /> encryption using OAEP padding (only available on a computer running Windows XP or later); otherwise, <see langword="false" /> to use PKCS#1 v1.5 padding.</param>
/// <returns>The encrypted data.</returns>
/// <exception cref="T:System.Security.Cryptography.CryptographicException">The cryptographic service provider (CSP) cannot be acquired.
/// -or-
/// The length of the <paramref name="rgb" /> parameter is greater than the maximum allowed length.
/// -or-
/// The <paramref name="fOAEP" /> parameter is <see langword="true" /> and OAEP padding is not supported.</exception>
/// <exception cref="T:System.ArgumentNullException">
/// <paramref name="rgb" /> is <see langword="null" />.</exception>
// Token: 0x060022AE RID: 8878 RVA: 0x00002082 File Offset: 0x00000282
[Token(Token = "0x60022AE")]
[Address(RVA = "0x2DB4910", Offset = "0x2DB3710", VA = "0x182DB4910")]
public byte[] Encrypt(byte[] rgb, bool fOAEP)
{
return null;
}
/// <summary>This method is not supported in the current version.</summary>
/// <param name="rgb">The data to be encrypted.</param>
/// <returns>The encrypted data.</returns>
/// <exception cref="T:System.NotSupportedException">This method is not supported in the current version.</exception>
// Token: 0x060022AF RID: 8879 RVA: 0x00002082 File Offset: 0x00000282
[Token(Token = "0x60022AF")]
[Address(RVA = "0x2437360", Offset = "0x2436160", VA = "0x182437360", Slot = "23")]
public override byte[] EncryptValue(byte[] rgb)
{
return null;
}
/// <summary>Exports the <see cref="T:System.Security.Cryptography.RSAParameters" />.</summary>
/// <param name="includePrivateParameters">
/// <see langword="true" /> to include private parameters; otherwise, <see langword="false" />.</param>
/// <returns>The parameters for <see cref="T:System.Security.Cryptography.RSA" />.</returns>
/// <exception cref="T:System.Security.Cryptography.CryptographicException">The key cannot be exported.</exception>
// Token: 0x060022B0 RID: 8880 RVA: 0x00014E98 File Offset: 0x00013098
[Token(Token = "0x60022B0")]
[Address(RVA = "0x2DB4A40", Offset = "0x2DB3840", VA = "0x182DB4A40", Slot = "24")]
public override RSAParameters ExportParameters(bool includePrivateParameters)
{
return default(RSAParameters);
}
/// <summary>Imports the specified <see cref="T:System.Security.Cryptography.RSAParameters" />.</summary>
/// <param name="parameters">The parameters for <see cref="T:System.Security.Cryptography.RSA" />.</param>
/// <exception cref="T:System.Security.Cryptography.CryptographicException">The cryptographic service provider (CSP) cannot be acquired.
/// -or-
/// The <paramref name="parameters" /> parameter has missing fields.</exception>
// Token: 0x060022B1 RID: 8881 RVA: 0x00002050 File Offset: 0x00000250
[Token(Token = "0x60022B1")]
[Address(RVA = "0x2DB5610", Offset = "0x2DB4410", VA = "0x182DB5610", Slot = "25")]
public override void ImportParameters(RSAParameters parameters)
{
}
// Token: 0x060022B2 RID: 8882 RVA: 0x00002082 File Offset: 0x00000282
[Token(Token = "0x60022B2")]
[Address(RVA = "0x2DB4FD0", Offset = "0x2DB3DD0", VA = "0x182DB4FD0")]
private HashAlgorithm GetHash(object halg)
{
return null;
}
// Token: 0x060022B3 RID: 8883 RVA: 0x00002082 File Offset: 0x00000282
[Token(Token = "0x60022B3")]
[Address(RVA = "0x2DB4DD0", Offset = "0x2DB3BD0", VA = "0x182DB4DD0")]
private HashAlgorithm GetHashFromString(string name)
{
return null;
}
/// <summary>Computes the hash value of the specified byte array using the specified hash algorithm, and signs the resulting hash value.</summary>
/// <param name="buffer">The input data for which to compute the hash.</param>
/// <param name="halg">The hash algorithm to use to create the hash value.</param>
/// <returns>The <see cref="T:System.Security.Cryptography.RSA" /> signature for the specified data.</returns>
/// <exception cref="T:System.ArgumentNullException">The <paramref name="halg" /> parameter is <see langword="null" />.</exception>
/// <exception cref="T:System.ArgumentException">The <paramref name="halg" /> parameter is not a valid type.</exception>
// Token: 0x060022B4 RID: 8884 RVA: 0x00002082 File Offset: 0x00000282
[Token(Token = "0x60022B4")]
[Address(RVA = "0x2DB5910", Offset = "0x2DB4710", VA = "0x182DB5910")]
public byte[] SignData(byte[] buffer, object halg)
{
return null;
}
/// <summary>Computes the hash value of the specified input stream using the specified hash algorithm, and signs the resulting hash value.</summary>
/// <param name="inputStream">The input data for which to compute the hash.</param>
/// <param name="halg">The hash algorithm to use to create the hash value.</param>
/// <returns>The <see cref="T:System.Security.Cryptography.RSA" /> signature for the specified data.</returns>
/// <exception cref="T:System.ArgumentNullException">The <paramref name="halg" /> parameter is <see langword="null" />.</exception>
/// <exception cref="T:System.ArgumentException">The <paramref name="halg" /> parameter is not a valid type.</exception>
// Token: 0x060022B5 RID: 8885 RVA: 0x00002082 File Offset: 0x00000282
[Token(Token = "0x60022B5")]
[Address(RVA = "0x2DB5870", Offset = "0x2DB4670", VA = "0x182DB5870")]
public byte[] SignData(Stream inputStream, object halg)
{
return null;
}
/// <summary>Computes the hash value of a subset of the specified byte array using the specified hash algorithm, and signs the resulting hash value.</summary>
/// <param name="buffer">The input data for which to compute the hash.</param>
/// <param name="offset">The offset into the array from which to begin using data.</param>
/// <param name="count">The number of bytes in the array to use as data.</param>
/// <param name="halg">The hash algorithm to use to create the hash value.</param>
/// <returns>The <see cref="T:System.Security.Cryptography.RSA" /> signature for the specified data.</returns>
/// <exception cref="T:System.ArgumentNullException">The <paramref name="halg" /> parameter is <see langword="null" />.</exception>
/// <exception cref="T:System.ArgumentException">The <paramref name="halg" /> parameter is not a valid type.</exception>
// Token: 0x060022B6 RID: 8886 RVA: 0x00002082 File Offset: 0x00000282
[Token(Token = "0x60022B6")]
[Address(RVA = "0x2DB5A20", Offset = "0x2DB4820", VA = "0x182DB5A20")]
public byte[] SignData(byte[] buffer, int offset, int count, object halg)
{
return null;
}
// Token: 0x060022B7 RID: 8887 RVA: 0x00002082 File Offset: 0x00000282
[Token(Token = "0x60022B7")]
[Address(RVA = "0x2DB4EB0", Offset = "0x2DB3CB0", VA = "0x182DB4EB0")]
private string GetHashNameFromOID(string oid)
{
return null;
}
/// <summary>Computes the signature for the specified hash value by encrypting it with the private key.</summary>
/// <param name="rgbHash">The hash value of the data to be signed.</param>
/// <param name="str">The hash algorithm identifier (OID) used to create the hash value of the data.</param>
/// <returns>The <see cref="T:System.Security.Cryptography.RSA" /> signature for the specified hash value.</returns>
/// <exception cref="T:System.ArgumentNullException">The <paramref name="rgbHash" /> parameter is <see langword="null" />.</exception>
/// <exception cref="T:System.Security.Cryptography.CryptographicException">The cryptographic service provider (CSP) cannot be acquired.
/// -or-
/// There is no private key.</exception>
// Token: 0x060022B8 RID: 8888 RVA: 0x00002082 File Offset: 0x00000282
[Token(Token = "0x60022B8")]
[Address(RVA = "0x2DB5DB0", Offset = "0x2DB4BB0", VA = "0x182DB5DB0")]
public byte[] SignHash(byte[] rgbHash, string str)
{
return null;
}
// Token: 0x060022B9 RID: 8889 RVA: 0x00002082 File Offset: 0x00000282
[Token(Token = "0x60022B9")]
[Address(RVA = "0x2DB5AF0", Offset = "0x2DB48F0", VA = "0x182DB5AF0")]
private byte[] SignHash(byte[] rgbHash, int calgHash)
{
return null;
}
// Token: 0x060022BA RID: 8890 RVA: 0x00002082 File Offset: 0x00000282
[Token(Token = "0x60022BA")]
[Address(RVA = "0x2DB5660", Offset = "0x2DB4460", VA = "0x182DB5660")]
private static HashAlgorithm InternalHashToHashAlgorithm(int calgHash)
{
return null;
}
/// <summary>Verifies that a digital signature is valid by determining the hash value in the signature using the provided public key and comparing it to the hash value of the provided data.</summary>
/// <param name="buffer">The data that was signed.</param>
/// <param name="halg">The name of the hash algorithm used to create the hash value of the data.</param>
/// <param name="signature">The signature data to be verified.</param>
/// <returns>
/// <see langword="true" /> if the signature is valid; otherwise, <see langword="false" />.</returns>
/// <exception cref="T:System.ArgumentNullException">The <paramref name="halg" /> parameter is <see langword="null" />.</exception>
/// <exception cref="T:System.ArgumentException">The <paramref name="halg" /> parameter is not a valid type.</exception>
// Token: 0x060022BB RID: 8891 RVA: 0x00014EB0 File Offset: 0x000130B0
[Token(Token = "0x60022BB")]
[Address(RVA = "0x2DB5E80", Offset = "0x2DB4C80", VA = "0x182DB5E80")]
public bool VerifyData(byte[] buffer, object halg, byte[] signature)
{
return default(bool);
}
/// <summary>Verifies that a digital signature is valid by determining the hash value in the signature using the provided public key and comparing it to the provided hash value.</summary>
/// <param name="rgbHash">The hash value of the signed data.</param>
/// <param name="str">The hash algorithm identifier (OID) used to create the hash value of the data.</param>
/// <param name="rgbSignature">The signature data to be verified.</param>
/// <returns>
/// <see langword="true" /> if the signature is valid; otherwise, <see langword="false" />.</returns>
/// <exception cref="T:System.ArgumentNullException">The <paramref name="rgbHash" /> parameter is <see langword="null" />.
/// -or-
/// The <paramref name="rgbSignature" /> parameter is <see langword="null" />.</exception>
/// <exception cref="T:System.Security.Cryptography.CryptographicException">The cryptographic service provider (CSP) cannot be acquired.
/// -or-
/// The signature cannot be verified.</exception>
// Token: 0x060022BC RID: 8892 RVA: 0x00014EC8 File Offset: 0x000130C8
[Token(Token = "0x60022BC")]
[Address(RVA = "0x2DB62E0", Offset = "0x2DB50E0", VA = "0x182DB62E0")]
public bool VerifyHash(byte[] rgbHash, string str, byte[] rgbSignature)
{
return default(bool);
}
// Token: 0x060022BD RID: 8893 RVA: 0x00014EE0 File Offset: 0x000130E0
[Token(Token = "0x60022BD")]
[Address(RVA = "0x2DB6220", Offset = "0x2DB5020", VA = "0x182DB6220")]
private bool VerifyHash(byte[] rgbHash, int calgHash, byte[] rgbSignature)
{
return default(bool);
}
// Token: 0x060022BE RID: 8894 RVA: 0x00002050 File Offset: 0x00000250
[Token(Token = "0x60022BE")]
[Address(RVA = "0x2DA4F90", Offset = "0x2DA3D90", VA = "0x182DA4F90", Slot = "5")]
protected override void Dispose(bool disposing)
{
}
// Token: 0x060022BF RID: 8895 RVA: 0x00002050 File Offset: 0x00000250
[Token(Token = "0x60022BF")]
[Address(RVA = "0x2DB5780", Offset = "0x2DB4580", VA = "0x182DB5780")]
private void OnKeyGenerated(object sender, EventArgs e)
{
}
/// <summary>Gets a <see cref="T:System.Security.Cryptography.CspKeyContainerInfo" /> object that describes additional information about a cryptographic key pair.</summary>
/// <returns>A <see cref="T:System.Security.Cryptography.CspKeyContainerInfo" /> object that describes additional information about a cryptographic key pair.</returns>
// Token: 0x170004C7 RID: 1223
// (get) Token: 0x060022C0 RID: 8896 RVA: 0x00002082 File Offset: 0x00000282
[Token(Token = "0x170004C7")]
[ComVisible(false)]
public CspKeyContainerInfo CspKeyContainerInfo
{
[Token(Token = "0x60022C0")]
[Address(RVA = "0x2DB66B0", Offset = "0x2DB54B0", VA = "0x182DB66B0", Slot = "28")]
get
{
return null;
}
}
/// <summary>Exports a blob containing the key information associated with an <see cref="T:System.Security.Cryptography.RSACryptoServiceProvider" /> object.</summary>
/// <param name="includePrivateParameters">
/// <see langword="true" /> to include the private key; otherwise, <see langword="false" />.</param>
/// <returns>A byte array containing the key information associated with an <see cref="T:System.Security.Cryptography.RSACryptoServiceProvider" /> object.</returns>
// Token: 0x060022C1 RID: 8897 RVA: 0x00002082 File Offset: 0x00000282
[Token(Token = "0x60022C1")]
[Address(RVA = "0x2DB49C0", Offset = "0x2DB37C0", VA = "0x182DB49C0", Slot = "26")]
[ComVisible(false)]
public byte[] ExportCspBlob(bool includePrivateParameters)
{
return null;
}
/// <summary>Imports a blob that represents RSA key information.</summary>
/// <param name="keyBlob">A byte array that represents an RSA key blob.</param>
// Token: 0x060022C2 RID: 8898 RVA: 0x00002050 File Offset: 0x00000250
[Token(Token = "0x60022C2")]
[Address(RVA = "0x2DB5330", Offset = "0x2DB4130", VA = "0x182DB5330", Slot = "27")]
[ComVisible(false)]
public void ImportCspBlob(byte[] keyBlob)
{
}
// Token: 0x040013AF RID: 5039
[Token(Token = "0x40013AF")]
private static CspProviderFlags s_UseMachineKeyStore;
// Token: 0x040013B0 RID: 5040
[Token(Token = "0x40013B0")]
private const int PROV_RSA_FULL = 1;
// Token: 0x040013B1 RID: 5041
[Token(Token = "0x40013B1")]
private const int AT_KEYEXCHANGE = 1;
// Token: 0x040013B2 RID: 5042
[Token(Token = "0x40013B2")]
private const int AT_SIGNATURE = 2;
// Token: 0x040013B3 RID: 5043
[global::Cpp2IlInjected.FieldOffset(Offset = "0x20")]
[Token(Token = "0x40013B3")]
private KeyPairPersistence store;
// Token: 0x040013B4 RID: 5044
[global::Cpp2IlInjected.FieldOffset(Offset = "0x28")]
[Token(Token = "0x40013B4")]
private bool persistKey;
// Token: 0x040013B5 RID: 5045
[global::Cpp2IlInjected.FieldOffset(Offset = "0x29")]
[Token(Token = "0x40013B5")]
private bool persisted;
// Token: 0x040013B6 RID: 5046
[global::Cpp2IlInjected.FieldOffset(Offset = "0x2A")]
[Token(Token = "0x40013B6")]
private bool privateKeyExportable;
// Token: 0x040013B7 RID: 5047
[global::Cpp2IlInjected.FieldOffset(Offset = "0x2B")]
[Token(Token = "0x40013B7")]
private bool m_disposed;
// Token: 0x040013B8 RID: 5048
[global::Cpp2IlInjected.FieldOffset(Offset = "0x30")]
[Token(Token = "0x40013B8")]
private RSAManaged rsa;
}
}
@@ -0,0 +1,250 @@
using System;
using Cpp2IlInjected;
namespace System.Security.Cryptography
{
/// <summary>Specifies the padding mode and parameters to use with RSA encryption or decryption operations.</summary>
// Token: 0x020003C9 RID: 969
[Token(Token = "0x20003C9")]
public sealed class RSAEncryptionPadding : IEquatable<RSAEncryptionPadding>
{
/// <summary>Gets an object that represents the PKCS #1 encryption standard.</summary>
/// <returns>An object that represents the PKCS #1 encryption standard.</returns>
// Token: 0x17000470 RID: 1136
// (get) Token: 0x060020DB RID: 8411 RVA: 0x00002082 File Offset: 0x00000282
[Token(Token = "0x17000470")]
public static RSAEncryptionPadding Pkcs1
{
[Token(Token = "0x60020DB")]
[Address(RVA = "0x2DF1430", Offset = "0x2DF0230", VA = "0x182DF1430")]
get
{
return null;
}
}
/// <summary>Gets an object that represents the Optimal Asymmetric Encryption Padding (OAEP) encryption standard with a SHA1 hash algorithm.</summary>
/// <returns>An object that represents the OAEP encryption standard with a SHA1 hash algorithm.</returns>
// Token: 0x17000471 RID: 1137
// (get) Token: 0x060020DC RID: 8412 RVA: 0x00002082 File Offset: 0x00000282
[Token(Token = "0x17000471")]
public static RSAEncryptionPadding OaepSHA1
{
[Token(Token = "0x60020DC")]
[Address(RVA = "0x2DF12B0", Offset = "0x2DF00B0", VA = "0x182DF12B0")]
get
{
return null;
}
}
/// <summary>Gets an object that represents the Optimal Asymmetric Encryption Padding (OAEP) encryption standard with a SHA256 hash algorithm.</summary>
/// <returns>An object that represents the OAEP encryption standard with a SHA256 hash algorithm.</returns>
// Token: 0x17000472 RID: 1138
// (get) Token: 0x060020DD RID: 8413 RVA: 0x00002082 File Offset: 0x00000282
[Token(Token = "0x17000472")]
public static RSAEncryptionPadding OaepSHA256
{
[Token(Token = "0x60020DD")]
[Address(RVA = "0x2DF1310", Offset = "0x2DF0110", VA = "0x182DF1310")]
get
{
return null;
}
}
/// <summary>Gets an object that represents the Optimal Asymmetric Encryption Padding (OAEP) encryption standard with a SHA-384 hash algorithm.</summary>
/// <returns>An object that represents the OAEP encryption standard with a SHA384 hash algorithm.</returns>
// Token: 0x17000473 RID: 1139
// (get) Token: 0x060020DE RID: 8414 RVA: 0x00002082 File Offset: 0x00000282
[Token(Token = "0x17000473")]
public static RSAEncryptionPadding OaepSHA384
{
[Token(Token = "0x60020DE")]
[Address(RVA = "0x2DF1370", Offset = "0x2DF0170", VA = "0x182DF1370")]
get
{
return null;
}
}
/// <summary>Gets an object that represents the Optimal Asymmetric Encryption Padding (OAEP) encryption standard with a SHA512 hash algorithm.</summary>
/// <returns>An object that represents the OAEP encryption standard with a SHA512 hash algorithm.</returns>
// Token: 0x17000474 RID: 1140
// (get) Token: 0x060020DF RID: 8415 RVA: 0x00002082 File Offset: 0x00000282
[Token(Token = "0x17000474")]
public static RSAEncryptionPadding OaepSHA512
{
[Token(Token = "0x60020DF")]
[Address(RVA = "0x2DF13D0", Offset = "0x2DF01D0", VA = "0x182DF13D0")]
get
{
return null;
}
}
// Token: 0x060020E0 RID: 8416 RVA: 0x00002050 File Offset: 0x00000250
[Token(Token = "0x60020E0")]
[Address(RVA = "0x2DF1240", Offset = "0x2DF0040", VA = "0x182DF1240")]
private RSAEncryptionPadding(RSAEncryptionPaddingMode mode, HashAlgorithmName oaepHashAlgorithm)
{
}
/// <summary>Creates a new <see cref="T:System.Security.Cryptography.RSAEncryptionPadding" /> instance whose <see cref="P:System.Security.Cryptography.RSAEncryptionPadding.Mode" /> is <see cref="F:System.Security.Cryptography.RSAEncryptionPaddingMode.Oaep" /> with the given hash algorithm.</summary>
/// <param name="hashAlgorithm">The hash algorithm.</param>
/// <returns>An object whose mode is <see cref="P:System.Security.Cryptography.RSAEncryptionPadding.Mode" /> is <see cref="F:System.Security.Cryptography.RSAEncryptionPaddingMode.Oaep" /> with the hash algorithm specified by <paramref name="hashAlgorithm" />.</returns>
/// <exception cref="T:System.ArgumentException">The <see cref="P:System.Security.Cryptography.HashAlgorithmName.Name" /> property of <paramref name="hashAlgorithm" /> is either <see langword="null" /> or <see cref="F:System.String.Empty" />.</exception>
// Token: 0x060020E1 RID: 8417 RVA: 0x00002082 File Offset: 0x00000282
[Token(Token = "0x60020E1")]
[Address(RVA = "0x2DF0E60", Offset = "0x2DEFC60", VA = "0x182DF0E60")]
public static RSAEncryptionPadding CreateOaep(HashAlgorithmName hashAlgorithm)
{
return null;
}
/// <summary>Gets the padding mode represented by this <see cref="T:System.Security.Cryptography.RSAEncryptionPadding" /> instance.</summary>
/// <returns>A padding mode.</returns>
// Token: 0x17000475 RID: 1141
// (get) Token: 0x060020E2 RID: 8418 RVA: 0x000144D8 File Offset: 0x000126D8
[Token(Token = "0x17000475")]
public RSAEncryptionPaddingMode Mode
{
[Token(Token = "0x60020E2")]
[Address(RVA = "0x3FA560", Offset = "0x3F9360", VA = "0x1803FA560")]
get
{
return RSAEncryptionPaddingMode.Pkcs1;
}
}
/// <summary>Gets the hash algorithm used in conjunction with the <see cref="F:System.Security.Cryptography.RSAEncryptionPaddingMode.Oaep" /> padding mode. If the value of the <see cref="P:System.Security.Cryptography.RSAEncryptionPadding.Mode" /> property is not <see cref="F:System.Security.Cryptography.RSAEncryptionPaddingMode.Oaep" />, <see cref="P:System.Security.Cryptography.HashAlgorithmName.Name" /> is <see langword="null" />.</summary>
/// <returns>The hash algorithm.</returns>
// Token: 0x17000476 RID: 1142
// (get) Token: 0x060020E3 RID: 8419 RVA: 0x000144F0 File Offset: 0x000126F0
[Token(Token = "0x17000476")]
public HashAlgorithmName OaepHashAlgorithm
{
[Token(Token = "0x60020E3")]
[Address(RVA = "0x3F5F40", Offset = "0x3F4D40", VA = "0x1803F5F40")]
get
{
return default(HashAlgorithmName);
}
}
/// <summary>Returns the hash code of this <see cref="T:System.Security.Cryptography.RSAEncryptionPadding" /> object.</summary>
/// <returns>The hash code of this instance.</returns>
// Token: 0x060020E4 RID: 8420 RVA: 0x00014508 File Offset: 0x00012708
[Token(Token = "0x60020E4")]
[Address(RVA = "0x2DF1040", Offset = "0x2DEFE40", VA = "0x182DF1040", Slot = "2")]
public override int GetHashCode()
{
return 0;
}
// Token: 0x060020E5 RID: 8421 RVA: 0x00014520 File Offset: 0x00012720
[Token(Token = "0x60020E5")]
[Address(RVA = "0x26C05C0", Offset = "0x26BF3C0", VA = "0x1826C05C0")]
private static int CombineHashCodes(int h1, int h2)
{
return 0;
}
/// <summary>Determines whether the current instance is equal to the specified object.</summary>
/// <param name="obj">The object to compare.</param>
/// <returns>
/// <see langword="true" /> if <paramref name="obj" /> is equal to the current instance; otherwise, <see langword="false" />.</returns>
// Token: 0x060020E6 RID: 8422 RVA: 0x00014538 File Offset: 0x00012738
[Token(Token = "0x60020E6")]
[Address(RVA = "0x2DF0FE0", Offset = "0x2DEFDE0", VA = "0x182DF0FE0", Slot = "0")]
public override bool Equals(object obj)
{
return default(bool);
}
/// <summary>Determines whether the current instance is equal to the specified <see cref="T:System.Security.Cryptography.RSAEncryptionPadding" /> object.</summary>
/// <param name="other">The object to compare.</param>
/// <returns>
/// <see langword="true" /> if <paramref name="other" /> is equal to the current instance; otherwise, <see langword="false" />.</returns>
// Token: 0x060020E7 RID: 8423 RVA: 0x00014550 File Offset: 0x00012750
[Token(Token = "0x60020E7")]
[Address(RVA = "0x2DF0F10", Offset = "0x2DEFD10", VA = "0x182DF0F10", Slot = "4")]
public bool Equals(RSAEncryptionPadding other)
{
return default(bool);
}
/// <summary>Indicates whether two specified <see cref="T:System.Security.Cryptography.RSAEncryptionPadding" /> objects are equal.</summary>
/// <param name="left">The first object to compare.</param>
/// <param name="right">The second object to compare.</param>
/// <returns>
/// <see langword="true" /> if <see langword="left" /> and <see langword="right" /> are equal; otherwise, <see langword="false" />.</returns>
// Token: 0x060020E8 RID: 8424 RVA: 0x00014568 File Offset: 0x00012768
[Token(Token = "0x60020E8")]
[Address(RVA = "0x2DF1490", Offset = "0x2DF0290", VA = "0x182DF1490")]
public static bool operator ==(RSAEncryptionPadding left, RSAEncryptionPadding right)
{
return default(bool);
}
/// <summary>Indicates whether two specified <see cref="T:System.Security.Cryptography.RSAEncryptionPadding" /> objects are unequal.</summary>
/// <param name="left">The first object to compare.</param>
/// <param name="right">The second object to compare.</param>
/// <returns>
/// <see langword="true" /> if <see langword="left" /> and <see langword="right" /> are not equal; otherwise, <see langword="false" />.</returns>
// Token: 0x060020E9 RID: 8425 RVA: 0x00014580 File Offset: 0x00012780
[Token(Token = "0x60020E9")]
[Address(RVA = "0x2DF14B0", Offset = "0x2DF02B0", VA = "0x182DF14B0")]
public static bool operator !=(RSAEncryptionPadding left, RSAEncryptionPadding right)
{
return default(bool);
}
/// <summary>Returns the string representation of the current <see cref="T:System.Security.Cryptography.RSAEncryptionPadding" /> instance.</summary>
/// <returns>The string representation of the current object.</returns>
// Token: 0x060020EA RID: 8426 RVA: 0x00002082 File Offset: 0x00000282
[Token(Token = "0x60020EA")]
[Address(RVA = "0x2DF10B0", Offset = "0x2DEFEB0", VA = "0x182DF10B0", Slot = "3")]
public override string ToString()
{
return null;
}
// Token: 0x060020EC RID: 8428 RVA: 0x00002050 File Offset: 0x00000250
[Token(Token = "0x60020EC")]
[Address(RVA = "0x2DF1280", Offset = "0x2DF0080", VA = "0x182DF1280")]
internal RSAEncryptionPadding()
{
}
// Token: 0x040012DF RID: 4831
[Token(Token = "0x40012DF")]
private static readonly RSAEncryptionPadding s_pkcs1;
// Token: 0x040012E0 RID: 4832
[Token(Token = "0x40012E0")]
private static readonly RSAEncryptionPadding s_oaepSHA1;
// Token: 0x040012E1 RID: 4833
[Token(Token = "0x40012E1")]
private static readonly RSAEncryptionPadding s_oaepSHA256;
// Token: 0x040012E2 RID: 4834
[Token(Token = "0x40012E2")]
private static readonly RSAEncryptionPadding s_oaepSHA384;
// Token: 0x040012E3 RID: 4835
[Token(Token = "0x40012E3")]
private static readonly RSAEncryptionPadding s_oaepSHA512;
// Token: 0x040012E4 RID: 4836
[FieldOffset(Offset = "0x10")]
[Token(Token = "0x40012E4")]
private RSAEncryptionPaddingMode _mode;
// Token: 0x040012E5 RID: 4837
[FieldOffset(Offset = "0x18")]
[Token(Token = "0x40012E5")]
private HashAlgorithmName _oaepHashAlgorithm;
}
}
@@ -0,0 +1,20 @@
using System;
using Cpp2IlInjected;
namespace System.Security.Cryptography
{
/// <summary>Specifies the padding mode to use with RSA encryption or decryption operations.</summary>
// Token: 0x020003CA RID: 970
[Token(Token = "0x20003CA")]
public enum RSAEncryptionPaddingMode
{
/// <summary>PKCS #1 v1.5.</summary>
// Token: 0x040012E7 RID: 4839
[Token(Token = "0x40012E7")]
Pkcs1,
/// <summary>Optimal Asymmetric Encryption Padding.</summary>
// Token: 0x040012E8 RID: 4840
[Token(Token = "0x40012E8")]
Oaep
}
}
@@ -0,0 +1,100 @@
using System;
using System.Runtime.InteropServices;
using Cpp2IlInjected;
namespace System.Security.Cryptography
{
/// <summary>Decrypts Optimal Asymmetric Encryption Padding (OAEP) key exchange data.</summary>
// Token: 0x02000406 RID: 1030
[Token(Token = "0x2000406")]
[ComVisible(true)]
public class RSAOAEPKeyExchangeDeformatter : AsymmetricKeyExchangeDeformatter
{
/// <summary>Initializes a new instance of the <see cref="T:System.Security.Cryptography.RSAOAEPKeyExchangeDeformatter" /> class.</summary>
// Token: 0x060022C4 RID: 8900 RVA: 0x00002050 File Offset: 0x00000250
[Token(Token = "0x60022C4")]
[Address(RVA = "0x4093D0", Offset = "0x4081D0", VA = "0x1804093D0")]
public RSAOAEPKeyExchangeDeformatter()
{
}
/// <summary>Initializes a new instance of the <see cref="T:System.Security.Cryptography.RSAOAEPKeyExchangeDeformatter" /> 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: 0x060022C5 RID: 8901 RVA: 0x00002050 File Offset: 0x00000250
[Token(Token = "0x60022C5")]
[Address(RVA = "0x2DF17B0", Offset = "0x2DF05B0", VA = "0x182DF17B0")]
public RSAOAEPKeyExchangeDeformatter(AsymmetricAlgorithm key)
{
}
/// <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: 0x170004C8 RID: 1224
// (get) Token: 0x060022C6 RID: 8902 RVA: 0x00002082 File Offset: 0x00000282
// (set) Token: 0x060022C7 RID: 8903 RVA: 0x00002050 File Offset: 0x00000250
[Token(Token = "0x170004C8")]
public override string Parameters
{
[Token(Token = "0x60022C6")]
[Address(RVA = "0x43E630", Offset = "0x43D430", VA = "0x18043E630", Slot = "4")]
get
{
return null;
}
[Token(Token = "0x60022C7")]
[Address(RVA = "0x402080", Offset = "0x400E80", VA = "0x180402080", Slot = "5")]
set
{
}
}
/// <summary>Extracts secret information from the encrypted key exchange data.</summary>
/// <param name="rgbData">The key exchange data within which the secret information is hidden.</param>
/// <returns>The secret information derived from the key exchange data.</returns>
/// <exception cref="T:System.Security.Cryptography.CryptographicException">The key exchange data verification has failed.</exception>
/// <exception cref="T:System.Security.Cryptography.CryptographicUnexpectedOperationException">The key is missing.</exception>
// Token: 0x060022C8 RID: 8904 RVA: 0x00002082 File Offset: 0x00000282
[Token(Token = "0x60022C8")]
[Address(RVA = "0x2DF1530", Offset = "0x2DF0330", VA = "0x182DF1530", Slot = "7")]
public override byte[] DecryptKeyExchange(byte[] rgbData)
{
return null;
}
/// <summary>Sets the private key to use for decrypting the secret information.</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: 0x060022C9 RID: 8905 RVA: 0x00002050 File Offset: 0x00000250
[Token(Token = "0x60022C9")]
[Address(RVA = "0x2DF16F0", Offset = "0x2DF04F0", VA = "0x182DF16F0", Slot = "6")]
public override void SetKey(AsymmetricAlgorithm key)
{
}
// Token: 0x170004C9 RID: 1225
// (get) Token: 0x060022CA RID: 8906 RVA: 0x00014EF8 File Offset: 0x000130F8
[Token(Token = "0x170004C9")]
private bool OverridesDecrypt
{
[Token(Token = "0x60022CA")]
[Address(RVA = "0x2DF1870", Offset = "0x2DF0670", VA = "0x182DF1870")]
get
{
return default(bool);
}
}
// Token: 0x040013B9 RID: 5049
[global::Cpp2IlInjected.FieldOffset(Offset = "0x10")]
[Token(Token = "0x40013B9")]
private RSA _rsaKey;
// Token: 0x040013BA RID: 5050
[global::Cpp2IlInjected.FieldOffset(Offset = "0x18")]
[Token(Token = "0x40013BA")]
private bool? _rsaOverridesDecrypt;
}
}
@@ -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;
}
}
@@ -0,0 +1,125 @@
using System;
using System.Runtime.InteropServices;
using Cpp2IlInjected;
namespace System.Security.Cryptography
{
/// <summary>Decrypts the PKCS #1 key exchange data.</summary>
// Token: 0x02000408 RID: 1032
[Token(Token = "0x2000408")]
[ComVisible(true)]
public class RSAPKCS1KeyExchangeDeformatter : AsymmetricKeyExchangeDeformatter
{
/// <summary>Initializes a new instance of the <see cref="T:System.Security.Cryptography.RSAPKCS1KeyExchangeDeformatter" /> class.</summary>
// Token: 0x060022D6 RID: 8918 RVA: 0x00002050 File Offset: 0x00000250
[Token(Token = "0x60022D6")]
[Address(RVA = "0x4093D0", Offset = "0x4081D0", VA = "0x1804093D0")]
public RSAPKCS1KeyExchangeDeformatter()
{
}
/// <summary>Initializes a new instance of the <see cref="T:System.Security.Cryptography.RSAPKCS1KeyExchangeDeformatter" /> 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: 0x060022D7 RID: 8919 RVA: 0x00002050 File Offset: 0x00000250
[Token(Token = "0x60022D7")]
[Address(RVA = "0x2DF2300", Offset = "0x2DF1100", VA = "0x182DF2300")]
public RSAPKCS1KeyExchangeDeformatter(AsymmetricAlgorithm key)
{
}
/// <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: 0x170004CE RID: 1230
// (get) Token: 0x060022D8 RID: 8920 RVA: 0x00002082 File Offset: 0x00000282
// (set) Token: 0x060022D9 RID: 8921 RVA: 0x00002050 File Offset: 0x00000250
[Token(Token = "0x170004CE")]
public RandomNumberGenerator RNG
{
[Token(Token = "0x60022D8")]
[Address(RVA = "0x3F6400", Offset = "0x3F5200", VA = "0x1803F6400")]
get
{
return null;
}
[Token(Token = "0x60022D9")]
[Address(RVA = "0x460F90", Offset = "0x45FD90", VA = "0x180460F90")]
set
{
}
}
/// <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: 0x170004CF RID: 1231
// (get) Token: 0x060022DA RID: 8922 RVA: 0x00002082 File Offset: 0x00000282
// (set) Token: 0x060022DB RID: 8923 RVA: 0x00002050 File Offset: 0x00000250
[Token(Token = "0x170004CF")]
public override string Parameters
{
[Token(Token = "0x60022DA")]
[Address(RVA = "0x43E630", Offset = "0x43D430", VA = "0x18043E630", Slot = "4")]
get
{
return null;
}
[Token(Token = "0x60022DB")]
[Address(RVA = "0x402080", Offset = "0x400E80", VA = "0x180402080", Slot = "5")]
set
{
}
}
/// <summary>Extracts secret information from the encrypted key exchange data.</summary>
/// <param name="rgbIn">The key exchange data within which the secret information is hidden.</param>
/// <returns>The secret information derived from the key exchange data.</returns>
/// <exception cref="T:System.Security.Cryptography.CryptographicUnexpectedOperationException">The key is missing.</exception>
// Token: 0x060022DC RID: 8924 RVA: 0x00002082 File Offset: 0x00000282
[Token(Token = "0x60022DC")]
[Address(RVA = "0x2DF2050", Offset = "0x2DF0E50", VA = "0x182DF2050", Slot = "7")]
public override byte[] DecryptKeyExchange(byte[] rgbIn)
{
return null;
}
/// <summary>Sets the private key to use for decrypting the secret information.</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: 0x060022DD RID: 8925 RVA: 0x00002050 File Offset: 0x00000250
[Token(Token = "0x60022DD")]
[Address(RVA = "0x2DF2240", Offset = "0x2DF1040", VA = "0x182DF2240", Slot = "6")]
public override void SetKey(AsymmetricAlgorithm key)
{
}
// Token: 0x170004D0 RID: 1232
// (get) Token: 0x060022DE RID: 8926 RVA: 0x00014F28 File Offset: 0x00013128
[Token(Token = "0x170004D0")]
private bool OverridesDecrypt
{
[Token(Token = "0x60022DE")]
[Address(RVA = "0x2DF23C0", Offset = "0x2DF11C0", VA = "0x182DF23C0")]
get
{
return default(bool);
}
}
// Token: 0x040013BF RID: 5055
[global::Cpp2IlInjected.FieldOffset(Offset = "0x10")]
[Token(Token = "0x40013BF")]
private RSA _rsaKey;
// Token: 0x040013C0 RID: 5056
[global::Cpp2IlInjected.FieldOffset(Offset = "0x18")]
[Token(Token = "0x40013C0")]
private bool? _rsaOverridesDecrypt;
// Token: 0x040013C1 RID: 5057
[global::Cpp2IlInjected.FieldOffset(Offset = "0x20")]
[Token(Token = "0x40013C1")]
private RandomNumberGenerator RngValue;
}
}
@@ -0,0 +1,133 @@
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;
}
}
@@ -0,0 +1,17 @@
using System;
using Cpp2IlInjected;
namespace System.Security.Cryptography
{
// Token: 0x02000414 RID: 1044
[Token(Token = "0x2000414")]
internal class RSAPKCS1SHA1SignatureDescription : RSAPKCS1SignatureDescription
{
// Token: 0x06002340 RID: 9024 RVA: 0x00002050 File Offset: 0x00000250
[Token(Token = "0x6002340")]
[Address(RVA = "0x2DF2BF0", Offset = "0x2DF19F0", VA = "0x182DF2BF0")]
public RSAPKCS1SHA1SignatureDescription()
{
}
}
}
@@ -0,0 +1,17 @@
using System;
using Cpp2IlInjected;
namespace System.Security.Cryptography
{
// Token: 0x02000415 RID: 1045
[Token(Token = "0x2000415")]
internal class RSAPKCS1SHA256SignatureDescription : RSAPKCS1SignatureDescription
{
// Token: 0x06002341 RID: 9025 RVA: 0x00002050 File Offset: 0x00000250
[Token(Token = "0x6002341")]
[Address(RVA = "0x2DF2C90", Offset = "0x2DF1A90", VA = "0x182DF2C90")]
public RSAPKCS1SHA256SignatureDescription()
{
}
}
}
@@ -0,0 +1,17 @@
using System;
using Cpp2IlInjected;
namespace System.Security.Cryptography
{
// Token: 0x02000416 RID: 1046
[Token(Token = "0x2000416")]
internal class RSAPKCS1SHA384SignatureDescription : RSAPKCS1SignatureDescription
{
// Token: 0x06002342 RID: 9026 RVA: 0x00002050 File Offset: 0x00000250
[Token(Token = "0x6002342")]
[Address(RVA = "0x2DF2D30", Offset = "0x2DF1B30", VA = "0x182DF2D30")]
public RSAPKCS1SHA384SignatureDescription()
{
}
}
}
@@ -0,0 +1,17 @@
using System;
using Cpp2IlInjected;
namespace System.Security.Cryptography
{
// Token: 0x02000417 RID: 1047
[Token(Token = "0x2000417")]
internal class RSAPKCS1SHA512SignatureDescription : RSAPKCS1SignatureDescription
{
// Token: 0x06002343 RID: 9027 RVA: 0x00002050 File Offset: 0x00000250
[Token(Token = "0x6002343")]
[Address(RVA = "0x2DF2DD0", Offset = "0x2DF1BD0", VA = "0x182DF2DD0")]
public RSAPKCS1SHA512SignatureDescription()
{
}
}
}
@@ -0,0 +1,81 @@
using System;
using System.Runtime.InteropServices;
using Cpp2IlInjected;
namespace System.Security.Cryptography
{
/// <summary>Verifies an <see cref="T:System.Security.Cryptography.RSA" /> PKCS #1 version 1.5 signature.</summary>
// Token: 0x02000429 RID: 1065
[Token(Token = "0x2000429")]
[ComVisible(true)]
public class RSAPKCS1SignatureDeformatter : AsymmetricSignatureDeformatter
{
/// <summary>Initializes a new instance of the <see cref="T:System.Security.Cryptography.RSAPKCS1SignatureDeformatter" /> class.</summary>
// Token: 0x060023F4 RID: 9204 RVA: 0x00002050 File Offset: 0x00000250
[Token(Token = "0x60023F4")]
[Address(RVA = "0x4093D0", Offset = "0x4081D0", VA = "0x1804093D0")]
public RSAPKCS1SignatureDeformatter()
{
}
/// <summary>Initializes a new instance of the <see cref="T:System.Security.Cryptography.RSAPKCS1SignatureDeformatter" /> class with the specified key.</summary>
/// <param name="key">The instance of <see cref="T:System.Security.Cryptography.RSA" /> that holds the public key.</param>
/// <exception cref="T:System.ArgumentNullException">
/// <paramref name="key" /> is <see langword="null" />.</exception>
// Token: 0x060023F5 RID: 9205 RVA: 0x00002050 File Offset: 0x00000250
[Token(Token = "0x60023F5")]
[Address(RVA = "0x2DF3130", Offset = "0x2DF1F30", VA = "0x182DF3130")]
public RSAPKCS1SignatureDeformatter(AsymmetricAlgorithm key)
{
}
/// <summary>Sets the hash algorithm to use for verifying the signature.</summary>
/// <param name="strName">The name of the hash algorithm to use for verifying the signature.</param>
// Token: 0x060023F6 RID: 9206 RVA: 0x00002050 File Offset: 0x00000250
[Token(Token = "0x60023F6")]
[Address(RVA = "0x2DF2E70", Offset = "0x2DF1C70", VA = "0x182DF2E70", Slot = "5")]
public override void SetHashAlgorithm(string strName)
{
}
/// <summary>Sets the public key to use for verifying the signature.</summary>
/// <param name="key">The instance of <see cref="T:System.Security.Cryptography.RSA" /> that holds the public key.</param>
/// <exception cref="T:System.ArgumentNullException">
/// <paramref name="key" /> is <see langword="null" />.</exception>
// Token: 0x060023F7 RID: 9207 RVA: 0x00002050 File Offset: 0x00000250
[Token(Token = "0x60023F7")]
[Address(RVA = "0x2DF2EE0", Offset = "0x2DF1CE0", VA = "0x182DF2EE0", Slot = "4")]
public override void SetKey(AsymmetricAlgorithm key)
{
}
/// <summary>Verifies the <see cref="T:System.Security.Cryptography.RSA" /> PKCS#1 signature for the specified data.</summary>
/// <param name="rgbHash">The data signed with <paramref name="rgbSignature" />.</param>
/// <param name="rgbSignature">The signature to be verified for <paramref name="rgbHash" />.</param>
/// <returns>
/// <see langword="true" /> if <paramref name="rgbSignature" /> matches the signature computed using the specified hash algorithm and key on <paramref name="rgbHash" />; otherwise, <see langword="false" />.</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" />.
/// -or-
/// The <paramref name="rgbSignature" /> parameter is <see langword="null" />.</exception>
// Token: 0x060023F8 RID: 9208 RVA: 0x00015570 File Offset: 0x00013770
[Token(Token = "0x60023F8")]
[Address(RVA = "0x2DF2FA0", Offset = "0x2DF1DA0", VA = "0x182DF2FA0", Slot = "7")]
public override bool VerifySignature(byte[] rgbHash, byte[] rgbSignature)
{
return default(bool);
}
// Token: 0x0400145D RID: 5213
[global::Cpp2IlInjected.FieldOffset(Offset = "0x10")]
[Token(Token = "0x400145D")]
private RSA rsa;
// Token: 0x0400145E RID: 5214
[global::Cpp2IlInjected.FieldOffset(Offset = "0x18")]
[Token(Token = "0x400145E")]
private string hashName;
}
}
@@ -0,0 +1,38 @@
using System;
using Cpp2IlInjected;
namespace System.Security.Cryptography
{
// Token: 0x02000413 RID: 1043
[Token(Token = "0x2000413")]
internal abstract class RSAPKCS1SignatureDescription : SignatureDescription
{
// Token: 0x0600233D RID: 9021 RVA: 0x00002050 File Offset: 0x00000250
[Token(Token = "0x600233D")]
[Address(RVA = "0x2DF3330", Offset = "0x2DF2130", VA = "0x182DF3330")]
protected RSAPKCS1SignatureDescription(string hashAlgorithm, string digestAlgorithm)
{
}
// Token: 0x0600233E RID: 9022 RVA: 0x00002082 File Offset: 0x00000282
[Token(Token = "0x600233E")]
[Address(RVA = "0x2DF3170", Offset = "0x2DF1F70", VA = "0x182DF3170", Slot = "4")]
public sealed override AsymmetricSignatureDeformatter CreateDeformatter(AsymmetricAlgorithm key)
{
return null;
}
// Token: 0x0600233F RID: 9023 RVA: 0x00002082 File Offset: 0x00000282
[Token(Token = "0x600233F")]
[Address(RVA = "0x2DF3250", Offset = "0x2DF2050", VA = "0x182DF3250", Slot = "5")]
public sealed override AsymmetricSignatureFormatter CreateFormatter(AsymmetricAlgorithm key)
{
return null;
}
// Token: 0x040013DC RID: 5084
[FieldOffset(Offset = "0x30")]
[Token(Token = "0x40013DC")]
private string _hashAlgorithm;
}
}
@@ -0,0 +1,77 @@
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;
}
}
@@ -0,0 +1,68 @@
using System;
using System.Runtime.InteropServices;
using Cpp2IlInjected;
namespace System.Security.Cryptography
{
/// <summary>Represents the standard parameters for the <see cref="T:System.Security.Cryptography.RSA" /> algorithm.</summary>
// Token: 0x02000403 RID: 1027
[Token(Token = "0x2000403")]
[ComVisible(true)]
[Serializable]
public struct RSAParameters
{
/// <summary>Represents the <see langword="Exponent" /> parameter for the <see cref="T:System.Security.Cryptography.RSA" /> algorithm.</summary>
// Token: 0x040013A7 RID: 5031
[global::Cpp2IlInjected.FieldOffset(Offset = "0x0")]
[Token(Token = "0x40013A7")]
public byte[] Exponent;
/// <summary>Represents the <see langword="Modulus" /> parameter for the <see cref="T:System.Security.Cryptography.RSA" /> algorithm.</summary>
// Token: 0x040013A8 RID: 5032
[global::Cpp2IlInjected.FieldOffset(Offset = "0x8")]
[Token(Token = "0x40013A8")]
public byte[] Modulus;
/// <summary>Represents the <see langword="P" /> parameter for the <see cref="T:System.Security.Cryptography.RSA" /> algorithm.</summary>
// Token: 0x040013A9 RID: 5033
[global::Cpp2IlInjected.FieldOffset(Offset = "0x10")]
[Token(Token = "0x40013A9")]
[NonSerialized]
public byte[] P;
/// <summary>Represents the <see langword="Q" /> parameter for the <see cref="T:System.Security.Cryptography.RSA" /> algorithm.</summary>
// Token: 0x040013AA RID: 5034
[global::Cpp2IlInjected.FieldOffset(Offset = "0x18")]
[Token(Token = "0x40013AA")]
[NonSerialized]
public byte[] Q;
/// <summary>Represents the <see langword="DP" /> parameter for the <see cref="T:System.Security.Cryptography.RSA" /> algorithm.</summary>
// Token: 0x040013AB RID: 5035
[global::Cpp2IlInjected.FieldOffset(Offset = "0x20")]
[Token(Token = "0x40013AB")]
[NonSerialized]
public byte[] DP;
/// <summary>Represents the <see langword="DQ" /> parameter for the <see cref="T:System.Security.Cryptography.RSA" /> algorithm.</summary>
// Token: 0x040013AC RID: 5036
[global::Cpp2IlInjected.FieldOffset(Offset = "0x28")]
[Token(Token = "0x40013AC")]
[NonSerialized]
public byte[] DQ;
/// <summary>Represents the <see langword="InverseQ" /> parameter for the <see cref="T:System.Security.Cryptography.RSA" /> algorithm.</summary>
// Token: 0x040013AD RID: 5037
[global::Cpp2IlInjected.FieldOffset(Offset = "0x30")]
[Token(Token = "0x40013AD")]
[NonSerialized]
public byte[] InverseQ;
/// <summary>Represents the <see langword="D" /> parameter for the <see cref="T:System.Security.Cryptography.RSA" /> algorithm.</summary>
// Token: 0x040013AE RID: 5038
[global::Cpp2IlInjected.FieldOffset(Offset = "0x38")]
[Token(Token = "0x40013AE")]
[NonSerialized]
public byte[] D;
}
}
@@ -0,0 +1,153 @@
using System;
using Cpp2IlInjected;
namespace System.Security.Cryptography
{
/// <summary>Specifies the padding mode and parameters to use with RSA signature creation or verification operations.</summary>
// Token: 0x020003CB RID: 971
[Token(Token = "0x20003CB")]
public sealed class RSASignaturePadding : IEquatable<RSASignaturePadding>
{
// Token: 0x060020ED RID: 8429 RVA: 0x00002050 File Offset: 0x00000250
[Token(Token = "0x60020ED")]
[Address(RVA = "0x445B90", Offset = "0x444990", VA = "0x180445B90")]
private RSASignaturePadding(RSASignaturePaddingMode mode)
{
}
/// <summary>Gets an object that uses the PKCS #1 v1.5 padding mode.</summary>
/// <returns>An object that uses the <see cref="F:System.Security.Cryptography.RSASignaturePaddingMode.Pkcs1" /> padding mode.</returns>
// Token: 0x17000477 RID: 1143
// (get) Token: 0x060020EE RID: 8430 RVA: 0x00002082 File Offset: 0x00000282
[Token(Token = "0x17000477")]
public static RSASignaturePadding Pkcs1
{
[Token(Token = "0x60020EE")]
[Address(RVA = "0x2DF38A0", Offset = "0x2DF26A0", VA = "0x182DF38A0")]
get
{
return null;
}
}
/// <summary>Gets an object that uses PSS padding mode.</summary>
/// <returns>An object that uses the <see cref="F:System.Security.Cryptography.RSASignaturePaddingMode.Pss" /> padding mode with the number of salt bytes equal to the size of the hash.</returns>
// Token: 0x17000478 RID: 1144
// (get) Token: 0x060020EF RID: 8431 RVA: 0x00002082 File Offset: 0x00000282
[Token(Token = "0x17000478")]
public static RSASignaturePadding Pss
{
[Token(Token = "0x60020EF")]
[Address(RVA = "0x2DF3900", Offset = "0x2DF2700", VA = "0x182DF3900")]
get
{
return null;
}
}
/// <summary>Gets the padding mode of this <see cref="T:System.Security.Cryptography.RSASignaturePadding" /> instance.</summary>
/// <returns>The padding mode (either <see cref="F:System.Security.Cryptography.RSASignaturePaddingMode.Pkcs1" /> or <see cref="F:System.Security.Cryptography.RSASignaturePaddingMode.Pss" />) of this instance.</returns>
// Token: 0x17000479 RID: 1145
// (get) Token: 0x060020F0 RID: 8432 RVA: 0x00014598 File Offset: 0x00012798
[Token(Token = "0x17000479")]
public RSASignaturePaddingMode Mode
{
[Token(Token = "0x60020F0")]
[Address(RVA = "0x3FA560", Offset = "0x3F9360", VA = "0x1803FA560")]
get
{
return RSASignaturePaddingMode.Pkcs1;
}
}
/// <summary>Returns the hash code for this <see cref="T:System.Security.Cryptography.RSASignaturePadding" /> instance.</summary>
/// <returns>The hash code for this <see cref="T:System.Security.Cryptography.RSASignaturePadding" /> instance.</returns>
// Token: 0x060020F1 RID: 8433 RVA: 0x000145B0 File Offset: 0x000127B0
[Token(Token = "0x60020F1")]
[Address(RVA = "0x2DF3740", Offset = "0x2DF2540", VA = "0x182DF3740", Slot = "2")]
public override int GetHashCode()
{
return 0;
}
/// <summary>Returns a value that indicates whether this instance is equal to a specified object.</summary>
/// <param name="obj">The object to compare with the current instance.</param>
/// <returns>
/// <see langword="true" /> if the specified object is equal to the current object; otherwise, <see langword="false" />.</returns>
// Token: 0x060020F2 RID: 8434 RVA: 0x000145C8 File Offset: 0x000127C8
[Token(Token = "0x60020F2")]
[Address(RVA = "0x2DF36E0", Offset = "0x2DF24E0", VA = "0x182DF36E0", Slot = "0")]
public override bool Equals(object obj)
{
return default(bool);
}
/// <summary>Returns a value that indicates whether this instance is equal to a specified <see cref="T:System.Security.Cryptography.RSASignaturePadding" /> object.</summary>
/// <param name="other">The object to compare with the current instance.</param>
/// <returns>
/// <see langword="true" /> if the specified object is equal to the current object; otherwise, <see langword="false" />.</returns>
// Token: 0x060020F3 RID: 8435 RVA: 0x000145E0 File Offset: 0x000127E0
[Token(Token = "0x60020F3")]
[Address(RVA = "0x2DF3620", Offset = "0x2DF2420", VA = "0x182DF3620", Slot = "4")]
public bool Equals(RSASignaturePadding other)
{
return default(bool);
}
/// <summary>Indicates whether two specified <see cref="T:System.Security.Cryptography.RSASignaturePadding" /> objects are equal.</summary>
/// <param name="left">The first object to compare.</param>
/// <param name="right">The second object to compare.</param>
/// <returns>
/// <see langword="true" /> if <see langword="left" /> and <see langword="right" /> are equal; otherwise, <see langword="false" />.</returns>
// Token: 0x060020F4 RID: 8436 RVA: 0x000145F8 File Offset: 0x000127F8
[Token(Token = "0x60020F4")]
[Address(RVA = "0x2DF3960", Offset = "0x2DF2760", VA = "0x182DF3960")]
public static bool operator ==(RSASignaturePadding left, RSASignaturePadding right)
{
return default(bool);
}
/// <summary>Indicates whether two specified <see cref="T:System.Security.Cryptography.RSASignaturePadding" /> objects are unequal.</summary>
/// <param name="left">The first object to compare.</param>
/// <param name="right">The second object to compare.</param>
/// <returns>
/// <see langword="true" /> if <see langword="left" /> and <see langword="right" /> are unequal; otherwise, <see langword="false" />.</returns>
// Token: 0x060020F5 RID: 8437 RVA: 0x00014610 File Offset: 0x00012810
[Token(Token = "0x60020F5")]
[Address(RVA = "0x2DF3980", Offset = "0x2DF2780", VA = "0x182DF3980")]
public static bool operator !=(RSASignaturePadding left, RSASignaturePadding right)
{
return default(bool);
}
/// <summary>Returns the string representation of the current <see cref="T:System.Security.Cryptography.RSASignaturePadding" /> instance.</summary>
/// <returns>The string representation of the current object.</returns>
// Token: 0x060020F6 RID: 8438 RVA: 0x00002082 File Offset: 0x00000282
[Token(Token = "0x60020F6")]
[Address(RVA = "0x2DF3760", Offset = "0x2DF2560", VA = "0x182DF3760", Slot = "3")]
public override string ToString()
{
return null;
}
// Token: 0x060020F8 RID: 8440 RVA: 0x00002050 File Offset: 0x00000250
[Token(Token = "0x60020F8")]
[Address(RVA = "0x2DF3870", Offset = "0x2DF2670", VA = "0x182DF3870")]
internal RSASignaturePadding()
{
}
// Token: 0x040012E9 RID: 4841
[Token(Token = "0x40012E9")]
private static readonly RSASignaturePadding s_pkcs1;
// Token: 0x040012EA RID: 4842
[Token(Token = "0x40012EA")]
private static readonly RSASignaturePadding s_pss;
// Token: 0x040012EB RID: 4843
[FieldOffset(Offset = "0x10")]
[Token(Token = "0x40012EB")]
private readonly RSASignaturePaddingMode _mode;
}
}
@@ -0,0 +1,20 @@
using System;
using Cpp2IlInjected;
namespace System.Security.Cryptography
{
/// <summary>Specifies the padding mode to use with RSA signature creation or verification operations.</summary>
// Token: 0x020003CC RID: 972
[Token(Token = "0x20003CC")]
public enum RSASignaturePaddingMode
{
/// <summary>PKCS #1 v1.5</summary>
// Token: 0x040012ED RID: 4845
[Token(Token = "0x40012ED")]
Pkcs1,
/// <summary>Probabilistic Signature Scheme</summary>
// Token: 0x040012EE RID: 4846
[Token(Token = "0x40012EE")]
Pss
}
}
@@ -0,0 +1,93 @@
using System;
using System.Runtime.InteropServices;
using Cpp2IlInjected;
namespace System.Security.Cryptography
{
/// <summary>Represents the abstract class from which all implementations of cryptographic random number generators derive.</summary>
// Token: 0x020003F9 RID: 1017
[Token(Token = "0x20003F9")]
[ComVisible(true)]
public abstract class RandomNumberGenerator : IDisposable
{
/// <summary>Initializes a new instance of <see cref="T:System.Security.Cryptography.RandomNumberGenerator" />.</summary>
// Token: 0x06002221 RID: 8737 RVA: 0x00002050 File Offset: 0x00000250
[Token(Token = "0x6002221")]
[Address(RVA = "0x3F5100", Offset = "0x3F3F00", VA = "0x1803F5100")]
protected RandomNumberGenerator()
{
}
/// <summary>Creates an instance of the default implementation of a cryptographic random number generator that can be used to generate random data.</summary>
/// <returns>A new instance of a cryptographic random number generator.</returns>
// Token: 0x06002222 RID: 8738 RVA: 0x00002082 File Offset: 0x00000282
[Token(Token = "0x6002222")]
[Address(RVA = "0x2DF3A90", Offset = "0x2DF2890", VA = "0x182DF3A90")]
public static RandomNumberGenerator Create()
{
return null;
}
/// <summary>Creates an instance of the specified implementation of a cryptographic random number generator.</summary>
/// <param name="rngName">The name of the random number generator implementation to use.</param>
/// <returns>A new instance of a cryptographic random number generator.</returns>
// Token: 0x06002223 RID: 8739 RVA: 0x00002082 File Offset: 0x00000282
[Token(Token = "0x6002223")]
[Address(RVA = "0x2DF3A00", Offset = "0x2DF2800", VA = "0x182DF3A00")]
public static RandomNumberGenerator Create(string rngName)
{
return null;
}
/// <summary>When overridden in a derived class, releases all resources used by the current instance of the <see cref="T:System.Security.Cryptography.RandomNumberGenerator" /> class.</summary>
// Token: 0x06002224 RID: 8740 RVA: 0x00002050 File Offset: 0x00000250
[Token(Token = "0x6002224")]
[Address(RVA = "0x2DF3AE0", Offset = "0x2DF28E0", VA = "0x182DF3AE0", Slot = "4")]
public void Dispose()
{
}
/// <summary>When overridden in a derived class, releases the unmanaged resources used by the <see cref="T:System.Security.Cryptography.RandomNumberGenerator" /> 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: 0x06002225 RID: 8741 RVA: 0x00002050 File Offset: 0x00000250
[Token(Token = "0x6002225")]
[Address(RVA = "0x402080", Offset = "0x400E80", VA = "0x180402080", Slot = "5")]
protected virtual void Dispose(bool disposing)
{
}
/// <summary>When overridden in a derived class, fills an array of bytes with a cryptographically strong random sequence of values.</summary>
/// <param name="data">The array to fill with cryptographically strong random bytes.</param>
// Token: 0x06002226 RID: 8742
[Token(Token = "0x6002226")]
[Address(Slot = "6")]
public abstract void GetBytes(byte[] data);
/// <summary>Fills the specified byte array with a cryptographically strong random sequence of values.</summary>
/// <param name="data">The array to fill with cryptographically strong random bytes.</param>
/// <param name="offset">The index of the array to start the fill operation.</param>
/// <param name="count">The number of bytes to fill.</param>
/// <exception cref="T:System.ArgumentNullException">
/// <paramref name="data" /> is <see langword="null" />.</exception>
/// <exception cref="T:System.ArgumentOutOfRangeException">
/// <paramref name="offset" /> or <paramref name="count" /> is less than 0</exception>
/// <exception cref="T:System.ArgumentException">
/// <paramref name="offset" /> plus <paramref name="count" /> exceeds the length of <paramref name="data" />.</exception>
// Token: 0x06002227 RID: 8743 RVA: 0x00002050 File Offset: 0x00000250
[Token(Token = "0x6002227")]
[Address(RVA = "0x2DF3B50", Offset = "0x2DF2950", VA = "0x182DF3B50", Slot = "7")]
public virtual void GetBytes(byte[] data, int offset, int count)
{
}
/// <summary>When overridden in a derived class, fills an array of bytes with a cryptographically strong random sequence of nonzero values.</summary>
/// <param name="data">The array to fill with cryptographically strong random nonzero bytes.</param>
// Token: 0x06002228 RID: 8744 RVA: 0x00002050 File Offset: 0x00000250
[Token(Token = "0x6002228")]
[Address(RVA = "0x2DF3D20", Offset = "0x2DF2B20", VA = "0x182DF3D20", Slot = "8")]
public virtual void GetNonZeroBytes(byte[] data)
{
}
}
}
@@ -0,0 +1,234 @@
using System;
using System.Runtime.InteropServices;
using Cpp2IlInjected;
namespace System.Security.Cryptography
{
/// <summary>Implements password-based key derivation functionality, PBKDF2, by using a pseudo-random number generator based on <see cref="T:System.Security.Cryptography.HMACSHA1" />.</summary>
// Token: 0x020003FC RID: 1020
[Token(Token = "0x20003FC")]
[ComVisible(true)]
public class Rfc2898DeriveBytes : DeriveBytes
{
/// <summary>Initializes a new instance of the <see cref="T:System.Security.Cryptography.Rfc2898DeriveBytes" /> class using the password and salt size to derive the key.</summary>
/// <param name="password">The password used to derive the key.</param>
/// <param name="saltSize">The size of the random salt that you want the class to generate.</param>
/// <exception cref="T:System.ArgumentException">The specified salt size is smaller than 8 bytes.</exception>
/// <exception cref="T:System.ArgumentNullException">The password or salt is <see langword="null" />.</exception>
// Token: 0x0600223B RID: 8763 RVA: 0x00002050 File Offset: 0x00000250
[Token(Token = "0x600223B")]
[Address(RVA = "0x2DF4A80", Offset = "0x2DF3880", VA = "0x182DF4A80")]
public Rfc2898DeriveBytes(string password, int saltSize)
{
}
/// <summary>Initializes a new instance of the <see cref="T:System.Security.Cryptography.Rfc2898DeriveBytes" /> class using a password, a salt size, and number of iterations to derive the key.</summary>
/// <param name="password">The password used to derive the key.</param>
/// <param name="saltSize">The size of the random salt that you want the class to generate.</param>
/// <param name="iterations">The number of iterations for the operation.</param>
/// <exception cref="T:System.ArgumentException">The specified salt size is smaller than 8 bytes or the iteration count is less than 1.</exception>
/// <exception cref="T:System.ArgumentNullException">The password or salt is <see langword="null" />.</exception>
/// <exception cref="T:System.ArgumentOutOfRangeException">
/// <paramref name="iterations" /> is out of range. This parameter requires a non-negative number.</exception>
// Token: 0x0600223C RID: 8764 RVA: 0x00002050 File Offset: 0x00000250
[Token(Token = "0x600223C")]
[Address(RVA = "0x2DF4AA0", Offset = "0x2DF38A0", VA = "0x182DF4AA0")]
public Rfc2898DeriveBytes(string password, int saltSize, int iterations)
{
}
/// <summary>Initializes a new instance of the <see cref="T:System.Security.Cryptography.Rfc2898DeriveBytes" /> class using a password and salt to derive the key.</summary>
/// <param name="password">The password used to derive the key.</param>
/// <param name="salt">The key salt used to derive the key.</param>
/// <exception cref="T:System.ArgumentException">The specified salt size is smaller than 8 bytes or the iteration count is less than 1.</exception>
/// <exception cref="T:System.ArgumentNullException">The password or salt is <see langword="null" />.</exception>
// Token: 0x0600223D RID: 8765 RVA: 0x00002050 File Offset: 0x00000250
[Token(Token = "0x600223D")]
[Address(RVA = "0x2DF4C80", Offset = "0x2DF3A80", VA = "0x182DF4C80")]
public Rfc2898DeriveBytes(string password, byte[] salt)
{
}
/// <summary>Initializes a new instance of the <see cref="T:System.Security.Cryptography.Rfc2898DeriveBytes" /> class using a password, a salt, and number of iterations to derive the key.</summary>
/// <param name="password">The password used to derive the key.</param>
/// <param name="salt">The key salt used to derive the key.</param>
/// <param name="iterations">The number of iterations for the operation.</param>
/// <exception cref="T:System.ArgumentException">The specified salt size is smaller than 8 bytes or the iteration count is less than 1.</exception>
/// <exception cref="T:System.ArgumentNullException">The password or salt is <see langword="null" />.</exception>
// Token: 0x0600223E RID: 8766 RVA: 0x00002050 File Offset: 0x00000250
[Token(Token = "0x600223E")]
[Address(RVA = "0x2DF4920", Offset = "0x2DF3720", VA = "0x182DF4920")]
public Rfc2898DeriveBytes(string password, byte[] salt, int iterations)
{
}
/// <summary>Initializes a new instance of the <see cref="T:System.Security.Cryptography.Rfc2898DeriveBytes" /> class using a password, a salt, and number of iterations to derive the key.</summary>
/// <param name="password">The password used to derive the key.</param>
/// <param name="salt">The key salt used to derive the key.</param>
/// <param name="iterations">The number of iterations for the operation.</param>
/// <exception cref="T:System.ArgumentException">The specified salt size is smaller than 8 bytes or the iteration count is less than 1.</exception>
/// <exception cref="T:System.ArgumentNullException">The password or salt is <see langword="null" />.</exception>
// Token: 0x0600223F RID: 8767 RVA: 0x00002050 File Offset: 0x00000250
[Token(Token = "0x600223F")]
[Address(RVA = "0x2DF4830", Offset = "0x2DF3630", VA = "0x182DF4830")]
public Rfc2898DeriveBytes(byte[] password, byte[] salt, int iterations)
{
}
/// <summary>Gets or sets the number of iterations for the operation.</summary>
/// <returns>The number of iterations for the operation.</returns>
/// <exception cref="T:System.ArgumentOutOfRangeException">The number of iterations is less than 1.</exception>
// Token: 0x170004B8 RID: 1208
// (get) Token: 0x06002240 RID: 8768 RVA: 0x00014BE0 File Offset: 0x00012DE0
// (set) Token: 0x06002241 RID: 8769 RVA: 0x00002050 File Offset: 0x00000250
[Token(Token = "0x170004B8")]
public int IterationCount
{
[Token(Token = "0x6002240")]
[Address(RVA = "0x4730E0", Offset = "0x471EE0", VA = "0x1804730E0")]
get
{
return 0;
}
[Token(Token = "0x6002241")]
[Address(RVA = "0x2DF4E50", Offset = "0x2DF3C50", VA = "0x182DF4E50")]
set
{
}
}
/// <summary>Gets or sets the key salt value for the operation.</summary>
/// <returns>The key salt value for the operation.</returns>
/// <exception cref="T:System.ArgumentException">The specified salt size is smaller than 8 bytes.</exception>
/// <exception cref="T:System.ArgumentNullException">The salt is <see langword="null" />.</exception>
// Token: 0x170004B9 RID: 1209
// (get) Token: 0x06002242 RID: 8770 RVA: 0x00002082 File Offset: 0x00000282
// (set) Token: 0x06002243 RID: 8771 RVA: 0x00002050 File Offset: 0x00000250
[Token(Token = "0x170004B9")]
public byte[] Salt
{
[Token(Token = "0x6002242")]
[Address(RVA = "0x2DF4DD0", Offset = "0x2DF3BD0", VA = "0x182DF4DD0")]
get
{
return null;
}
[Token(Token = "0x6002243")]
[Address(RVA = "0x2DF4F30", Offset = "0x2DF3D30", VA = "0x182DF4F30")]
set
{
}
}
/// <summary>Returns the pseudo-random key for this object.</summary>
/// <param name="cb">The number of pseudo-random key bytes to generate.</param>
/// <returns>A byte array filled with pseudo-random key bytes.</returns>
/// <exception cref="T:System.ArgumentOutOfRangeException">
/// <paramref name="cb" /> is out of range. This parameter requires a non-negative number.</exception>
// Token: 0x06002244 RID: 8772 RVA: 0x00002082 File Offset: 0x00000282
[Token(Token = "0x6002244")]
[Address(RVA = "0x2DF4630", Offset = "0x2DF3430", VA = "0x182DF4630", Slot = "5")]
public override byte[] GetBytes(int cb)
{
return null;
}
/// <summary>Resets the state of the operation.</summary>
// Token: 0x06002245 RID: 8773 RVA: 0x00002050 File Offset: 0x00000250
[Token(Token = "0x6002245")]
[Address(RVA = "0x2DF47C0", Offset = "0x2DF35C0", VA = "0x182DF47C0", Slot = "6")]
public override void Reset()
{
}
/// <summary>Releases the unmanaged resources used by the <see cref="T:System.Security.Cryptography.Rfc2898DeriveBytes" /> 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: 0x06002246 RID: 8774 RVA: 0x00002050 File Offset: 0x00000250
[Token(Token = "0x6002246")]
[Address(RVA = "0x2DF4260", Offset = "0x2DF3060", VA = "0x182DF4260", Slot = "7")]
protected override void Dispose(bool disposing)
{
}
// Token: 0x06002247 RID: 8775 RVA: 0x00002050 File Offset: 0x00000250
[Token(Token = "0x6002247")]
[Address(RVA = "0x2DF47C0", Offset = "0x2DF35C0", VA = "0x182DF47C0")]
private void Initialize()
{
}
// Token: 0x06002248 RID: 8776 RVA: 0x00002082 File Offset: 0x00000282
[Token(Token = "0x6002248")]
[Address(RVA = "0x2DF42F0", Offset = "0x2DF30F0", VA = "0x182DF42F0")]
private byte[] Func()
{
return null;
}
/// <summary>Derives a cryptographic key from the <see cref="T:System.Security.Cryptography.Rfc2898DeriveBytes" /> object.</summary>
/// <param name="algname">The algorithm name for which to derive the key.</param>
/// <param name="alghashname">The hash algorithm name to use to derive the key.</param>
/// <param name="keySize">The size of the key, in bits, to derive.</param>
/// <param name="rgbIV">The initialization vector (IV) to use to derive the key.</param>
/// <returns>The derived key.</returns>
/// <exception cref="T:System.Security.Cryptography.CryptographicException">The <paramref name="keySize" /> parameter is incorrect.
/// -or-
/// The cryptographic service provider (CSP) cannot be acquired.
/// -or-
/// The <paramref name="algname" /> parameter is not a valid algorithm name.
/// -or-
/// The <paramref name="alghashname" /> parameter is not a valid hash algorithm name.</exception>
// Token: 0x06002249 RID: 8777 RVA: 0x00002082 File Offset: 0x00000282
[Token(Token = "0x6002249")]
[Address(RVA = "0x2DF41C0", Offset = "0x2DF2FC0", VA = "0x182DF41C0")]
public byte[] CryptDeriveKey(string algname, string alghashname, int keySize, byte[] rgbIV)
{
return null;
}
// Token: 0x0400137D RID: 4989
[global::Cpp2IlInjected.FieldOffset(Offset = "0x10")]
[Token(Token = "0x400137D")]
private byte[] m_buffer;
// Token: 0x0400137E RID: 4990
[global::Cpp2IlInjected.FieldOffset(Offset = "0x18")]
[Token(Token = "0x400137E")]
private byte[] m_salt;
// Token: 0x0400137F RID: 4991
[global::Cpp2IlInjected.FieldOffset(Offset = "0x20")]
[Token(Token = "0x400137F")]
private HMACSHA1 m_hmacsha1;
// Token: 0x04001380 RID: 4992
[global::Cpp2IlInjected.FieldOffset(Offset = "0x28")]
[Token(Token = "0x4001380")]
private byte[] m_password;
// Token: 0x04001381 RID: 4993
[global::Cpp2IlInjected.FieldOffset(Offset = "0x30")]
[Token(Token = "0x4001381")]
private uint m_iterations;
// Token: 0x04001382 RID: 4994
[global::Cpp2IlInjected.FieldOffset(Offset = "0x34")]
[Token(Token = "0x4001382")]
private uint m_block;
// Token: 0x04001383 RID: 4995
[global::Cpp2IlInjected.FieldOffset(Offset = "0x38")]
[Token(Token = "0x4001383")]
private int m_startIndex;
// Token: 0x04001384 RID: 4996
[global::Cpp2IlInjected.FieldOffset(Offset = "0x3C")]
[Token(Token = "0x4001384")]
private int m_endIndex;
// Token: 0x04001385 RID: 4997
[Token(Token = "0x4001385")]
private const int BlockSize = 20;
}
}
@@ -0,0 +1,52 @@
using System;
using System.Runtime.InteropServices;
using Cpp2IlInjected;
namespace System.Security.Cryptography
{
/// <summary>Represents the base class from which all implementations of the <see cref="T:System.Security.Cryptography.Rijndael" /> symmetric encryption algorithm must inherit.</summary>
// Token: 0x020003FD RID: 1021
[Token(Token = "0x20003FD")]
[ComVisible(true)]
public abstract class Rijndael : SymmetricAlgorithm
{
/// <summary>Initializes a new instance of <see cref="T:System.Security.Cryptography.Rijndael" />.</summary>
// Token: 0x0600224A RID: 8778 RVA: 0x00002050 File Offset: 0x00000250
[Token(Token = "0x600224A")]
[Address(RVA = "0x2DF9050", Offset = "0x2DF7E50", VA = "0x182DF9050")]
protected Rijndael()
{
}
/// <summary>Creates a cryptographic object to perform the <see cref="T:System.Security.Cryptography.Rijndael" /> algorithm.</summary>
/// <returns>A cryptographic object.</returns>
/// <exception cref="T:System.Reflection.TargetInvocationException">The algorithm was used with Federal Information Processing Standards (FIPS) mode enabled, but is not FIPS compatible.</exception>
// Token: 0x0600224B RID: 8779 RVA: 0x00002082 File Offset: 0x00000282
[Token(Token = "0x600224B")]
[Address(RVA = "0x2DF8DF0", Offset = "0x2DF7BF0", VA = "0x182DF8DF0")]
public new static Rijndael Create()
{
return null;
}
/// <summary>Creates a cryptographic object to perform the specified implementation of the <see cref="T:System.Security.Cryptography.Rijndael" /> algorithm.</summary>
/// <param name="algName">The name of the specific implementation of <see cref="T:System.Security.Cryptography.Rijndael" /> to create.</param>
/// <returns>A cryptographic object.</returns>
/// <exception cref="T:System.Reflection.TargetInvocationException">The algorithm described by the <paramref name="algName" /> parameter was used with Federal Information Processing Standards (FIPS) mode enabled, but is not FIPS compatible.</exception>
// Token: 0x0600224C RID: 8780 RVA: 0x00002082 File Offset: 0x00000282
[Token(Token = "0x600224C")]
[Address(RVA = "0x2DF8E40", Offset = "0x2DF7C40", VA = "0x182DF8E40")]
public new static Rijndael Create(string algName)
{
return null;
}
// Token: 0x04001386 RID: 4998
[Token(Token = "0x4001386")]
private static KeySizes[] s_legalBlockSizes;
// Token: 0x04001387 RID: 4999
[Token(Token = "0x4001387")]
private static KeySizes[] s_legalKeySizes;
}
}
@@ -0,0 +1,78 @@
using System;
using System.Runtime.InteropServices;
using Cpp2IlInjected;
namespace System.Security.Cryptography
{
/// <summary>Accesses the managed version of the <see cref="T:System.Security.Cryptography.Rijndael" /> algorithm. This class cannot be inherited.</summary>
// Token: 0x020003FE RID: 1022
[Token(Token = "0x20003FE")]
[ComVisible(true)]
public sealed class RijndaelManaged : Rijndael
{
/// <summary>Initializes a new instance of the <see cref="T:System.Security.Cryptography.RijndaelManaged" /> class.</summary>
/// <exception cref="T:System.InvalidOperationException">This class is not compliant with the FIPS algorithm.</exception>
// Token: 0x0600224E RID: 8782 RVA: 0x00002050 File Offset: 0x00000250
[Token(Token = "0x600224E")]
[Address(RVA = "0x2DF8CC0", Offset = "0x2DF7AC0", VA = "0x182DF8CC0")]
public RijndaelManaged()
{
}
/// <summary>Creates a symmetric <see cref="T:System.Security.Cryptography.Rijndael" /> encryptor object with the specified <see cref="P:System.Security.Cryptography.SymmetricAlgorithm.Key" /> and initialization vector (<see cref="P:System.Security.Cryptography.SymmetricAlgorithm.IV" />).</summary>
/// <param name="rgbKey">The secret key to be used for the symmetric algorithm. The key size must be 128, 192, or 256 bits.</param>
/// <param name="rgbIV">The IV to be used for the symmetric algorithm.</param>
/// <returns>A symmetric <see cref="T:System.Security.Cryptography.Rijndael" /> encryptor object.</returns>
/// <exception cref="T:System.ArgumentNullException">The <paramref name="rgbKey" /> parameter is <see langword="null" />.
/// -or-
/// The <paramref name="rgbIV" /> parameter is <see langword="null" />.</exception>
/// <exception cref="T:System.Security.Cryptography.CryptographicException">The value of the <see cref="P:System.Security.Cryptography.SymmetricAlgorithm.Mode" /> property is not <see cref="F:System.Security.Cryptography.CipherMode.ECB" />, <see cref="F:System.Security.Cryptography.CipherMode.CBC" />, or <see cref="F:System.Security.Cryptography.CipherMode.CFB" />.</exception>
// Token: 0x0600224F RID: 8783 RVA: 0x00002082 File Offset: 0x00000282
[Token(Token = "0x600224F")]
[Address(RVA = "0x2DF8A80", Offset = "0x2DF7880", VA = "0x182DF8A80", Slot = "23")]
public override ICryptoTransform CreateEncryptor(byte[] rgbKey, byte[] rgbIV)
{
return null;
}
/// <summary>Creates a symmetric <see cref="T:System.Security.Cryptography.Rijndael" /> decryptor object with the specified <see cref="P:System.Security.Cryptography.SymmetricAlgorithm.Key" /> and initialization vector (<see cref="P:System.Security.Cryptography.SymmetricAlgorithm.IV" />).</summary>
/// <param name="rgbKey">The secret key to be used for the symmetric algorithm. The key size must be 128, 192, or 256 bits.</param>
/// <param name="rgbIV">The IV to be used for the symmetric algorithm.</param>
/// <returns>A symmetric <see cref="T:System.Security.Cryptography.Rijndael" /> decryptor object.</returns>
/// <exception cref="T:System.ArgumentNullException">The <paramref name="rgbKey" /> parameter is <see langword="null" />.
/// -or-
/// The <paramref name="rgbIV" /> parameter is <see langword="null" />.</exception>
/// <exception cref="T:System.Security.Cryptography.CryptographicException">The value of the <see cref="P:System.Security.Cryptography.SymmetricAlgorithm.Mode" /> property is not <see cref="F:System.Security.Cryptography.CipherMode.ECB" />, <see cref="F:System.Security.Cryptography.CipherMode.CBC" />, or <see cref="F:System.Security.Cryptography.CipherMode.CFB" />.</exception>
// Token: 0x06002250 RID: 8784 RVA: 0x00002082 File Offset: 0x00000282
[Token(Token = "0x6002250")]
[Address(RVA = "0x2DF8A50", Offset = "0x2DF7850", VA = "0x182DF8A50", Slot = "25")]
public override ICryptoTransform CreateDecryptor(byte[] rgbKey, byte[] rgbIV)
{
return null;
}
/// <summary>Generates a random <see cref="P:System.Security.Cryptography.SymmetricAlgorithm.Key" /> to be used for the algorithm.</summary>
// Token: 0x06002251 RID: 8785 RVA: 0x00002050 File Offset: 0x00000250
[Token(Token = "0x6002251")]
[Address(RVA = "0x2DF8B20", Offset = "0x2DF7920", VA = "0x182DF8B20", Slot = "26")]
public override void GenerateKey()
{
}
/// <summary>Generates a random initialization vector (<see cref="P:System.Security.Cryptography.SymmetricAlgorithm.IV" />) to be used for the algorithm.</summary>
// Token: 0x06002252 RID: 8786 RVA: 0x00002050 File Offset: 0x00000250
[Token(Token = "0x6002252")]
[Address(RVA = "0x2DF8AB0", Offset = "0x2DF78B0", VA = "0x182DF8AB0", Slot = "27")]
public override void GenerateIV()
{
}
// Token: 0x06002253 RID: 8787 RVA: 0x00002082 File Offset: 0x00000282
[Token(Token = "0x6002253")]
[Address(RVA = "0x2DF8B90", Offset = "0x2DF7990", VA = "0x182DF8B90")]
private ICryptoTransform NewEncryptor(byte[] rgbKey, CipherMode mode, byte[] rgbIV, int feedbackSize, RijndaelManagedTransformMode encryptMode)
{
return null;
}
}
}
@@ -0,0 +1,370 @@
using System;
using System.Runtime.InteropServices;
using Cpp2IlInjected;
namespace System.Security.Cryptography
{
/// <summary>Performs a cryptographic transformation of data using the Rijndael algorithm. This class cannot be inherited.</summary>
// Token: 0x02000400 RID: 1024
[Token(Token = "0x2000400")]
[ComVisible(true)]
public sealed class RijndaelManagedTransform : ICryptoTransform, IDisposable
{
// Token: 0x06002254 RID: 8788 RVA: 0x00002050 File Offset: 0x00000250
[Token(Token = "0x6002254")]
[Address(RVA = "0x2DF8360", Offset = "0x2DF7160", VA = "0x182DF8360")]
internal RijndaelManagedTransform(byte[] rgbKey, CipherMode mode, byte[] rgbIV, int blockSize, int feedbackSize, PaddingMode PaddingValue, RijndaelManagedTransformMode transformMode)
{
}
/// <summary>Releases all resources used by the current instance of the <see cref="T:System.Security.Cryptography.RijndaelManagedTransform" /> class.</summary>
// Token: 0x06002255 RID: 8789 RVA: 0x00002050 File Offset: 0x00000250
[Token(Token = "0x6002255")]
[Address(RVA = "0x2DF5030", Offset = "0x2DF3E30", VA = "0x182DF5030", Slot = "10")]
public void Dispose()
{
}
/// <summary>Releases all resources used by the <see cref="T:System.Security.Cryptography.RijndaelManagedTransform" /> class.</summary>
// Token: 0x06002256 RID: 8790 RVA: 0x00002050 File Offset: 0x00000250
[Token(Token = "0x6002256")]
[Address(RVA = "0x2DF5030", Offset = "0x2DF3E30", VA = "0x182DF5030")]
public void Clear()
{
}
// Token: 0x06002257 RID: 8791 RVA: 0x00002050 File Offset: 0x00000250
[Token(Token = "0x6002257")]
[Address(RVA = "0x2DF6190", Offset = "0x2DF4F90", VA = "0x182DF6190")]
private void Dispose(bool disposing)
{
}
/// <summary>Gets the block size.</summary>
/// <returns>The size of the data blocks in bytes.</returns>
// Token: 0x170004BA RID: 1210
// (get) Token: 0x06002258 RID: 8792 RVA: 0x00014BF8 File Offset: 0x00012DF8
[Token(Token = "0x170004BA")]
public int BlockSizeValue
{
[Token(Token = "0x6002258")]
[Address(RVA = "0x41F5B0", Offset = "0x41E3B0", VA = "0x18041F5B0")]
get
{
return 0;
}
}
/// <summary>Gets the input block size.</summary>
/// <returns>The size of the input data blocks in bytes.</returns>
// Token: 0x170004BB RID: 1211
// (get) Token: 0x06002259 RID: 8793 RVA: 0x00014C10 File Offset: 0x00012E10
[Token(Token = "0x170004BB")]
public int InputBlockSize
{
[Token(Token = "0x6002259")]
[Address(RVA = "0x430CB0", Offset = "0x42FAB0", VA = "0x180430CB0", Slot = "4")]
get
{
return 0;
}
}
/// <summary>Gets the output block size.</summary>
/// <returns>The size of the output data blocks in bytes.</returns>
// Token: 0x170004BC RID: 1212
// (get) Token: 0x0600225A RID: 8794 RVA: 0x00014C28 File Offset: 0x00012E28
[Token(Token = "0x170004BC")]
public int OutputBlockSize
{
[Token(Token = "0x600225A")]
[Address(RVA = "0x42EE50", Offset = "0x42DC50", VA = "0x18042EE50", Slot = "5")]
get
{
return 0;
}
}
/// <summary>Gets a value indicating whether multiple blocks can be transformed.</summary>
/// <returns>
/// <see langword="true" /> if multiple blocks can be transformed; otherwise, <see langword="false" />.</returns>
// Token: 0x170004BD RID: 1213
// (get) Token: 0x0600225B RID: 8795 RVA: 0x00014C40 File Offset: 0x00012E40
[Token(Token = "0x170004BD")]
public bool CanTransformMultipleBlocks
{
[Token(Token = "0x600225B")]
[Address(RVA = "0x460D40", Offset = "0x45FB40", VA = "0x180460D40", Slot = "6")]
get
{
return default(bool);
}
}
/// <summary>Gets a value indicating whether the current transform can be reused.</summary>
/// <returns>Always <see langword="true" />.</returns>
// Token: 0x170004BE RID: 1214
// (get) Token: 0x0600225C RID: 8796 RVA: 0x00014C58 File Offset: 0x00012E58
[Token(Token = "0x170004BE")]
public bool CanReuseTransform
{
[Token(Token = "0x600225C")]
[Address(RVA = "0x460D40", Offset = "0x45FB40", VA = "0x180460D40", Slot = "7")]
get
{
return default(bool);
}
}
/// <summary>Computes the transformation for the specified region of the input byte array and copies the resulting transformation to the specified region of the output byte array.</summary>
/// <param name="inputBuffer">The input to perform the operation on.</param>
/// <param name="inputOffset">The offset into the input byte array to begin using data from.</param>
/// <param name="inputCount">The number of bytes in the input byte array to use as data.</param>
/// <param name="outputBuffer">The output to write the data to.</param>
/// <param name="outputOffset">The offset into the output byte array to begin writing data from.</param>
/// <returns>The number of bytes written.</returns>
/// <exception cref="T:System.ArgumentNullException">The <paramref name="inputBuffer" /> parameter is <see langword="null" />.
/// -or-
/// The <paramref name="outputBuffer" /> parameter is <see langword="null" />.</exception>
/// <exception cref="T:System.ArgumentException">The length of the input buffer is less than the sum of the input offset and the input count.
/// -or-
/// The value of the <paramref name="inputCount" /> parameter is less than or equal to 0.
/// -or-
/// The value of the <paramref name="inputCount" /> parameter is greater than the length of the <paramref name="inputBuffer" /> parameter.
/// -or-
/// The length of the <paramref name="inputCount" /> parameter is not evenly devisable by input block size.</exception>
/// <exception cref="T:System.ArgumentOutOfRangeException">The value of the <paramref name="inputOffset" /> parameter is negative.</exception>
// Token: 0x0600225D RID: 8797 RVA: 0x00014C70 File Offset: 0x00012E70
[Token(Token = "0x600225D")]
[Address(RVA = "0x2DF7B40", Offset = "0x2DF6940", VA = "0x182DF7B40", Slot = "8")]
public int TransformBlock(byte[] inputBuffer, int inputOffset, int inputCount, byte[] outputBuffer, int outputOffset)
{
return 0;
}
/// <summary>Computes the transformation for the specified region of the specified byte array.</summary>
/// <param name="inputBuffer">The input to perform the operation on.</param>
/// <param name="inputOffset">The offset into the byte array to begin using data from.</param>
/// <param name="inputCount">The number of bytes in the byte array to use as data.</param>
/// <returns>The computed transformation.</returns>
/// <exception cref="T:System.ArgumentNullException">The <paramref name="inputBuffer" /> parameter is <see langword="null" />.</exception>
/// <exception cref="T:System.ArgumentException">The value of the <paramref name="inputCount" /> parameter is less than 0.
/// -or-
/// The value of the <paramref name="inputCount" /> parameter is grater than the length of <paramref name="inputBuffer" /> parameter.</exception>
/// <exception cref="T:System.ArgumentOutOfRangeException">The value of the <paramref name="inputOffset" /> parameter is negative.</exception>
/// <exception cref="T:System.Security.Cryptography.CryptographicException">The length of the <paramref name="inputCount" /> parameter is not evenly devisable by input block size.</exception>
// Token: 0x0600225E RID: 8798 RVA: 0x00002082 File Offset: 0x00000282
[Token(Token = "0x600225E")]
[Address(RVA = "0x2DF7EB0", Offset = "0x2DF6CB0", VA = "0x182DF7EB0", Slot = "9")]
public byte[] TransformFinalBlock(byte[] inputBuffer, int inputOffset, int inputCount)
{
return null;
}
/// <summary>Resets the internal state of <see cref="T:System.Security.Cryptography.RijndaelManagedTransform" /> so it can be used again to do a different encryption or decryption.</summary>
// Token: 0x0600225F RID: 8799 RVA: 0x00002050 File Offset: 0x00000250
[Token(Token = "0x600225F")]
[Address(RVA = "0x2DF79A0", Offset = "0x2DF67A0", VA = "0x182DF79A0")]
public void Reset()
{
}
// Token: 0x06002260 RID: 8800 RVA: 0x00014C88 File Offset: 0x00012E88
[Token(Token = "0x6002260")]
[Address(RVA = "0x2DF6460", Offset = "0x2DF5260", VA = "0x182DF6460")]
private int EncryptData(byte[] inputBuffer, int inputOffset, int inputCount, ref byte[] outputBuffer, int outputOffset, PaddingMode paddingMode, bool fLast)
{
return 0;
}
// Token: 0x06002261 RID: 8801 RVA: 0x00014CA0 File Offset: 0x00012EA0
[Token(Token = "0x6002261")]
[Address(RVA = "0x2DF5280", Offset = "0x2DF4080", VA = "0x182DF5280")]
private int DecryptData(byte[] inputBuffer, int inputOffset, int inputCount, ref byte[] outputBuffer, int outputOffset, PaddingMode paddingMode, bool fLast)
{
return 0;
}
// Token: 0x06002262 RID: 8802 RVA: 0x00002050 File Offset: 0x00000250
[Token(Token = "0x6002262")]
[Address(RVA = "0x2DF6260", Offset = "0x2DF5060", VA = "0x182DF6260")]
private unsafe void Enc(int* encryptindex, int* encryptKeyExpansion, int* T, int* TF, int* work, int* temp)
{
}
// Token: 0x06002263 RID: 8803 RVA: 0x00002050 File Offset: 0x00000250
[Token(Token = "0x6002263")]
[Address(RVA = "0x2DF5040", Offset = "0x2DF3E40", VA = "0x182DF5040")]
private unsafe void Dec(int* decryptindex, int* decryptKeyExpansion, int* iT, int* iTF, int* work, int* temp)
{
}
// Token: 0x06002264 RID: 8804 RVA: 0x00002050 File Offset: 0x00000250
[Token(Token = "0x6002264")]
[Address(RVA = "0x2DF7260", Offset = "0x2DF6060", VA = "0x182DF7260")]
private void GenerateKeyExpansion(byte[] rgbKey)
{
}
// Token: 0x06002265 RID: 8805 RVA: 0x00014CB8 File Offset: 0x00012EB8
[Token(Token = "0x6002265")]
[Address(RVA = "0x2DF8A20", Offset = "0x2DF7820", VA = "0x182DF8A20")]
private static int rot1(int val)
{
return 0;
}
// Token: 0x06002266 RID: 8806 RVA: 0x00014CD0 File Offset: 0x00012ED0
[Token(Token = "0x6002266")]
[Address(RVA = "0x2DF8A30", Offset = "0x2DF7830", VA = "0x182DF8A30")]
private static int rot2(int val)
{
return 0;
}
// Token: 0x06002267 RID: 8807 RVA: 0x00014CE8 File Offset: 0x00012EE8
[Token(Token = "0x6002267")]
[Address(RVA = "0x2DF8A40", Offset = "0x2DF7840", VA = "0x182DF8A40")]
private static int rot3(int val)
{
return 0;
}
// Token: 0x06002268 RID: 8808 RVA: 0x00014D00 File Offset: 0x00012F00
[Token(Token = "0x6002268")]
[Address(RVA = "0x2DF7A10", Offset = "0x2DF6810", VA = "0x182DF7A10")]
private static int SubWord(int a)
{
return 0;
}
// Token: 0x06002269 RID: 8809 RVA: 0x00014D18 File Offset: 0x00012F18
[Token(Token = "0x6002269")]
[Address(RVA = "0x2DF7970", Offset = "0x2DF6770", VA = "0x182DF7970")]
private static int MulX(int x)
{
return 0;
}
// Token: 0x0600226B RID: 8811 RVA: 0x00002050 File Offset: 0x00000250
[Token(Token = "0x600226B")]
[Address(RVA = "0x2DF89F0", Offset = "0x2DF77F0", VA = "0x182DF89F0")]
internal RijndaelManagedTransform()
{
}
// Token: 0x0400138B RID: 5003
[global::Cpp2IlInjected.FieldOffset(Offset = "0x10")]
[Token(Token = "0x400138B")]
private CipherMode m_cipherMode;
// Token: 0x0400138C RID: 5004
[global::Cpp2IlInjected.FieldOffset(Offset = "0x14")]
[Token(Token = "0x400138C")]
private PaddingMode m_paddingValue;
// Token: 0x0400138D RID: 5005
[global::Cpp2IlInjected.FieldOffset(Offset = "0x18")]
[Token(Token = "0x400138D")]
private RijndaelManagedTransformMode m_transformMode;
// Token: 0x0400138E RID: 5006
[global::Cpp2IlInjected.FieldOffset(Offset = "0x1C")]
[Token(Token = "0x400138E")]
private int m_blockSizeBits;
// Token: 0x0400138F RID: 5007
[global::Cpp2IlInjected.FieldOffset(Offset = "0x20")]
[Token(Token = "0x400138F")]
private int m_blockSizeBytes;
// Token: 0x04001390 RID: 5008
[global::Cpp2IlInjected.FieldOffset(Offset = "0x24")]
[Token(Token = "0x4001390")]
private int m_inputBlockSize;
// Token: 0x04001391 RID: 5009
[global::Cpp2IlInjected.FieldOffset(Offset = "0x28")]
[Token(Token = "0x4001391")]
private int m_outputBlockSize;
// Token: 0x04001392 RID: 5010
[global::Cpp2IlInjected.FieldOffset(Offset = "0x30")]
[Token(Token = "0x4001392")]
private int[] m_encryptKeyExpansion;
// Token: 0x04001393 RID: 5011
[global::Cpp2IlInjected.FieldOffset(Offset = "0x38")]
[Token(Token = "0x4001393")]
private int[] m_decryptKeyExpansion;
// Token: 0x04001394 RID: 5012
[global::Cpp2IlInjected.FieldOffset(Offset = "0x40")]
[Token(Token = "0x4001394")]
private int m_Nr;
// Token: 0x04001395 RID: 5013
[global::Cpp2IlInjected.FieldOffset(Offset = "0x44")]
[Token(Token = "0x4001395")]
private int m_Nb;
// Token: 0x04001396 RID: 5014
[global::Cpp2IlInjected.FieldOffset(Offset = "0x48")]
[Token(Token = "0x4001396")]
private int m_Nk;
// Token: 0x04001397 RID: 5015
[global::Cpp2IlInjected.FieldOffset(Offset = "0x50")]
[Token(Token = "0x4001397")]
private int[] m_encryptindex;
// Token: 0x04001398 RID: 5016
[global::Cpp2IlInjected.FieldOffset(Offset = "0x58")]
[Token(Token = "0x4001398")]
private int[] m_decryptindex;
// Token: 0x04001399 RID: 5017
[global::Cpp2IlInjected.FieldOffset(Offset = "0x60")]
[Token(Token = "0x4001399")]
private int[] m_IV;
// Token: 0x0400139A RID: 5018
[global::Cpp2IlInjected.FieldOffset(Offset = "0x68")]
[Token(Token = "0x400139A")]
private int[] m_lastBlockBuffer;
// Token: 0x0400139B RID: 5019
[global::Cpp2IlInjected.FieldOffset(Offset = "0x70")]
[Token(Token = "0x400139B")]
private byte[] m_depadBuffer;
// Token: 0x0400139C RID: 5020
[global::Cpp2IlInjected.FieldOffset(Offset = "0x78")]
[Token(Token = "0x400139C")]
private byte[] m_shiftRegister;
// Token: 0x0400139D RID: 5021
[Token(Token = "0x400139D")]
private static readonly byte[] s_Sbox;
// Token: 0x0400139E RID: 5022
[Token(Token = "0x400139E")]
private static readonly int[] s_Rcon;
// Token: 0x0400139F RID: 5023
[Token(Token = "0x400139F")]
private static readonly int[] s_T;
// Token: 0x040013A0 RID: 5024
[Token(Token = "0x40013A0")]
private static readonly int[] s_TF;
// Token: 0x040013A1 RID: 5025
[Token(Token = "0x40013A1")]
private static readonly int[] s_iT;
// Token: 0x040013A2 RID: 5026
[Token(Token = "0x40013A2")]
private static readonly int[] s_iTF;
}
}
@@ -0,0 +1,18 @@
using System;
using Cpp2IlInjected;
namespace System.Security.Cryptography
{
// Token: 0x020003FF RID: 1023
[Token(Token = "0x20003FF")]
[Serializable]
internal enum RijndaelManagedTransformMode
{
// Token: 0x04001389 RID: 5001
[Token(Token = "0x4001389")]
Encrypt,
// Token: 0x0400138A RID: 5002
[Token(Token = "0x400138A")]
Decrypt
}
}
@@ -0,0 +1,43 @@
using System;
using System.Runtime.InteropServices;
using Cpp2IlInjected;
namespace System.Security.Cryptography
{
/// <summary>Computes the <see cref="T:System.Security.Cryptography.SHA1" /> hash for the input data.</summary>
// Token: 0x0200040A RID: 1034
[Token(Token = "0x200040A")]
[ComVisible(true)]
public abstract class SHA1 : HashAlgorithm
{
/// <summary>Initializes a new instance of <see cref="T:System.Security.Cryptography.SHA1" />.</summary>
/// <exception cref="T:System.InvalidOperationException">The policy on this object is not compliant with the FIPS algorithm.</exception>
// Token: 0x060022E8 RID: 8936 RVA: 0x00002050 File Offset: 0x00000250
[Token(Token = "0x60022E8")]
[Address(RVA = "0x2DFC3A0", Offset = "0x2DFB1A0", VA = "0x182DFC3A0")]
protected SHA1()
{
}
/// <summary>Creates an instance of the default implementation of <see cref="T:System.Security.Cryptography.SHA1" />.</summary>
/// <returns>A new instance of <see cref="T:System.Security.Cryptography.SHA1" />.</returns>
// Token: 0x060022E9 RID: 8937 RVA: 0x00002082 File Offset: 0x00000282
[Token(Token = "0x60022E9")]
[Address(RVA = "0x2DFC2B0", Offset = "0x2DFB0B0", VA = "0x182DFC2B0")]
public new static SHA1 Create()
{
return null;
}
/// <summary>Creates an instance of the specified implementation of <see cref="T:System.Security.Cryptography.SHA1" />.</summary>
/// <param name="hashName">The name of the specific implementation of <see cref="T:System.Security.Cryptography.SHA1" /> to be used.</param>
/// <returns>A new instance of <see cref="T:System.Security.Cryptography.SHA1" /> using the specified implementation.</returns>
// Token: 0x060022EA RID: 8938 RVA: 0x00002082 File Offset: 0x00000282
[Token(Token = "0x60022EA")]
[Address(RVA = "0x2DFC220", Offset = "0x2DFB020", VA = "0x182DFC220")]
public new static SHA1 Create(string hashName)
{
return null;
}
}
}
@@ -0,0 +1,63 @@
using System;
using System.Runtime.InteropServices;
using Cpp2IlInjected;
namespace System.Security.Cryptography
{
/// <summary>Computes the <see cref="T:System.Security.Cryptography.SHA1" /> hash value for the input data using the implementation provided by the cryptographic service provider (CSP). This class cannot be inherited.</summary>
// Token: 0x0200042C RID: 1068
[Token(Token = "0x200042C")]
[ComVisible(true)]
public sealed class SHA1CryptoServiceProvider : SHA1
{
/// <summary>Initializes a new instance of the <see cref="T:System.Security.Cryptography.SHA1CryptoServiceProvider" /> class.</summary>
// Token: 0x06002407 RID: 9223 RVA: 0x00002050 File Offset: 0x00000250
[Token(Token = "0x6002407")]
[Address(RVA = "0x2DF9400", Offset = "0x2DF8200", VA = "0x182DF9400")]
public SHA1CryptoServiceProvider()
{
}
// Token: 0x06002408 RID: 9224 RVA: 0x00002050 File Offset: 0x00000250
[Token(Token = "0x6002408")]
[Address(RVA = "0x2DF9110", Offset = "0x2DF7F10", VA = "0x182DF9110", Slot = "1")]
protected override void Finalize()
{
}
// Token: 0x06002409 RID: 9225 RVA: 0x00002050 File Offset: 0x00000250
[Token(Token = "0x6002409")]
[Address(RVA = "0x2DF9100", Offset = "0x2DF7F00", VA = "0x182DF9100", Slot = "17")]
protected override void Dispose(bool disposing)
{
}
// Token: 0x0600240A RID: 9226 RVA: 0x00002050 File Offset: 0x00000250
[Token(Token = "0x600240A")]
[Address(RVA = "0x2DF9190", Offset = "0x2DF7F90", VA = "0x182DF9190", Slot = "19")]
protected override void HashCore(byte[] rgb, int ibStart, int cbSize)
{
}
// Token: 0x0600240B RID: 9227 RVA: 0x00002082 File Offset: 0x00000282
[Token(Token = "0x600240B")]
[Address(RVA = "0x2DF92C0", Offset = "0x2DF80C0", VA = "0x182DF92C0", Slot = "20")]
protected override byte[] HashFinal()
{
return null;
}
/// <summary>Initializes an instance of <see cref="T:System.Security.Cryptography.SHA1CryptoServiceProvider" />.</summary>
// Token: 0x0600240C RID: 9228 RVA: 0x00002050 File Offset: 0x00000250
[Token(Token = "0x600240C")]
[Address(RVA = "0x2DF93E0", Offset = "0x2DF81E0", VA = "0x182DF93E0", Slot = "18")]
public override void Initialize()
{
}
// Token: 0x04001467 RID: 5223
[global::Cpp2IlInjected.FieldOffset(Offset = "0x28")]
[Token(Token = "0x4001467")]
private SHA1Internal sha;
}
}
@@ -0,0 +1,103 @@
using System;
using Cpp2IlInjected;
namespace System.Security.Cryptography
{
// Token: 0x0200042B RID: 1067
[Token(Token = "0x200042B")]
internal class SHA1Internal
{
// Token: 0x060023FE RID: 9214 RVA: 0x00002050 File Offset: 0x00000250
[Token(Token = "0x60023FE")]
[Address(RVA = "0x2DFB630", Offset = "0x2DFA430", VA = "0x182DFB630")]
public SHA1Internal()
{
}
// Token: 0x060023FF RID: 9215 RVA: 0x00002050 File Offset: 0x00000250
[Token(Token = "0x60023FF")]
[Address(RVA = "0x2DF9C20", Offset = "0x2DF8A20", VA = "0x182DF9C20")]
public void HashCore(byte[] rgb, int ibStart, int cbSize)
{
}
// Token: 0x06002400 RID: 9216 RVA: 0x00002082 File Offset: 0x00000282
[Token(Token = "0x6002400")]
[Address(RVA = "0x2DF9D40", Offset = "0x2DF8B40", VA = "0x182DF9D40")]
public byte[] HashFinal()
{
return null;
}
// Token: 0x06002401 RID: 9217 RVA: 0x00002050 File Offset: 0x00000250
[Token(Token = "0x6002401")]
[Address(RVA = "0x2DFAAF0", Offset = "0x2DF98F0", VA = "0x182DFAAF0")]
public void Initialize()
{
}
// Token: 0x06002402 RID: 9218 RVA: 0x00002050 File Offset: 0x00000250
[Token(Token = "0x6002402")]
[Address(RVA = "0x2DFABD0", Offset = "0x2DF99D0", VA = "0x182DFABD0")]
private void ProcessBlock(byte[] inputBuffer, uint inputOffset)
{
}
// Token: 0x06002403 RID: 9219 RVA: 0x00002050 File Offset: 0x00000250
[Token(Token = "0x6002403")]
[Address(RVA = "0x2DF9E50", Offset = "0x2DF8C50", VA = "0x182DF9E50")]
private static void InitialiseBuff(uint[] buff, byte[] input, uint inputOffset)
{
}
// Token: 0x06002404 RID: 9220 RVA: 0x00002050 File Offset: 0x00000250
[Token(Token = "0x6002404")]
[Address(RVA = "0x2DF9640", Offset = "0x2DF8440", VA = "0x182DF9640")]
private static void FillBuff(uint[] buff)
{
}
// Token: 0x06002405 RID: 9221 RVA: 0x00002050 File Offset: 0x00000250
[Token(Token = "0x6002405")]
[Address(RVA = "0x2DFB470", Offset = "0x2DFA270", VA = "0x182DFB470")]
private void ProcessFinalBlock(byte[] inputBuffer, int inputOffset, int inputCount)
{
}
// Token: 0x06002406 RID: 9222 RVA: 0x00002050 File Offset: 0x00000250
[Token(Token = "0x6002406")]
[Address(RVA = "0x2DF94D0", Offset = "0x2DF82D0", VA = "0x182DF94D0")]
internal void AddLength(ulong length, byte[] buffer, int position)
{
}
// Token: 0x04001461 RID: 5217
[Token(Token = "0x4001461")]
private const int BLOCK_SIZE_BYTES = 64;
// Token: 0x04001462 RID: 5218
[FieldOffset(Offset = "0x10")]
[Token(Token = "0x4001462")]
private uint[] _H;
// Token: 0x04001463 RID: 5219
[FieldOffset(Offset = "0x18")]
[Token(Token = "0x4001463")]
private ulong count;
// Token: 0x04001464 RID: 5220
[FieldOffset(Offset = "0x20")]
[Token(Token = "0x4001464")]
private byte[] _ProcessingBuffer;
// Token: 0x04001465 RID: 5221
[FieldOffset(Offset = "0x28")]
[Token(Token = "0x4001465")]
private int _ProcessingBufferCount;
// Token: 0x04001466 RID: 5222
[FieldOffset(Offset = "0x30")]
[Token(Token = "0x4001466")]
private uint[] buff;
}
}
@@ -0,0 +1,107 @@
using System;
using System.Runtime.InteropServices;
using Cpp2IlInjected;
namespace System.Security.Cryptography
{
/// <summary>Computes the <see cref="T:System.Security.Cryptography.SHA1" /> hash for the input data using the managed library.</summary>
// Token: 0x0200040B RID: 1035
[Token(Token = "0x200040B")]
[ComVisible(true)]
public class SHA1Managed : SHA1
{
/// <summary>Initializes a new instance of the <see cref="T:System.Security.Cryptography.SHA1Managed" /> class.</summary>
/// <exception cref="T:System.InvalidOperationException">This class is not compliant with the FIPS algorithm.</exception>
// Token: 0x060022EB RID: 8939 RVA: 0x00002050 File Offset: 0x00000250
[Token(Token = "0x60022EB")]
[Address(RVA = "0x2DFC140", Offset = "0x2DFAF40", VA = "0x182DFC140")]
public SHA1Managed()
{
}
/// <summary>Initializes an instance of <see cref="T:System.Security.Cryptography.SHA1Managed" />.</summary>
// Token: 0x060022EC RID: 8940 RVA: 0x00002050 File Offset: 0x00000250
[Token(Token = "0x60022EC")]
[Address(RVA = "0x2DFB6D0", Offset = "0x2DFA4D0", VA = "0x182DFB6D0", Slot = "18")]
public override void Initialize()
{
}
/// <summary>Routes data written to the object into the <see cref="T:System.Security.Cryptography.SHA1Managed" /> hash algorithm for computing the hash.</summary>
/// <param name="rgb">The input data.</param>
/// <param name="ibStart">The offset into the byte array from which to begin using data.</param>
/// <param name="cbSize">The number of bytes in the array to use as data.</param>
// Token: 0x060022ED RID: 8941 RVA: 0x00002050 File Offset: 0x00000250
[Token(Token = "0x60022ED")]
[Address(RVA = "0x2DFB6B0", Offset = "0x2DFA4B0", VA = "0x182DFB6B0", Slot = "19")]
protected override void HashCore(byte[] rgb, int ibStart, int cbSize)
{
}
/// <summary>Returns the computed <see cref="T:System.Security.Cryptography.SHA1" /> hash value after all data has been written to the object.</summary>
/// <returns>The computed hash code.</returns>
// Token: 0x060022EE RID: 8942 RVA: 0x00002082 File Offset: 0x00000282
[Token(Token = "0x60022EE")]
[Address(RVA = "0x2DFB6C0", Offset = "0x2DFA4C0", VA = "0x182DFB6C0", Slot = "20")]
protected override byte[] HashFinal()
{
return null;
}
// Token: 0x060022EF RID: 8943 RVA: 0x00002050 File Offset: 0x00000250
[Token(Token = "0x60022EF")]
[Address(RVA = "0x2DB0FB0", Offset = "0x2DAFDB0", VA = "0x182DB0FB0")]
private void InitializeState()
{
}
// Token: 0x060022F0 RID: 8944 RVA: 0x00002050 File Offset: 0x00000250
[Token(Token = "0x60022F0")]
[Address(RVA = "0x2DFBFA0", Offset = "0x2DFADA0", VA = "0x182DFBFA0")]
private void _HashData(byte[] partIn, int ibStart, int cbSize)
{
}
// Token: 0x060022F1 RID: 8945 RVA: 0x00002082 File Offset: 0x00000282
[Token(Token = "0x60022F1")]
[Address(RVA = "0x2DFBD50", Offset = "0x2DFAB50", VA = "0x182DFBD50")]
private byte[] _EndHash()
{
return null;
}
// Token: 0x060022F2 RID: 8946 RVA: 0x00002050 File Offset: 0x00000250
[Token(Token = "0x60022F2")]
[Address(RVA = "0x2DFB760", Offset = "0x2DFA560", VA = "0x182DFB760")]
private unsafe static void SHATransform(uint* expandedBuffer, uint* state, byte* block)
{
}
// Token: 0x060022F3 RID: 8947 RVA: 0x00002050 File Offset: 0x00000250
[Token(Token = "0x60022F3")]
[Address(RVA = "0x2DFB720", Offset = "0x2DFA520", VA = "0x182DFB720")]
private unsafe static void SHAExpand(uint* x)
{
}
// Token: 0x040013C5 RID: 5061
[global::Cpp2IlInjected.FieldOffset(Offset = "0x28")]
[Token(Token = "0x40013C5")]
private byte[] _buffer;
// Token: 0x040013C6 RID: 5062
[global::Cpp2IlInjected.FieldOffset(Offset = "0x30")]
[Token(Token = "0x40013C6")]
private long _count;
// Token: 0x040013C7 RID: 5063
[global::Cpp2IlInjected.FieldOffset(Offset = "0x38")]
[Token(Token = "0x40013C7")]
private uint[] _stateSHA1;
// Token: 0x040013C8 RID: 5064
[global::Cpp2IlInjected.FieldOffset(Offset = "0x40")]
[Token(Token = "0x40013C8")]
private uint[] _expandedBuffer;
}
}
@@ -0,0 +1,44 @@
using System;
using System.Runtime.InteropServices;
using Cpp2IlInjected;
namespace System.Security.Cryptography
{
/// <summary>Computes the <see cref="T:System.Security.Cryptography.SHA256" /> hash for the input data.</summary>
// Token: 0x0200040C RID: 1036
[Token(Token = "0x200040C")]
[ComVisible(true)]
public abstract class SHA256 : HashAlgorithm
{
/// <summary>Initializes a new instance of <see cref="T:System.Security.Cryptography.SHA256" />.</summary>
// Token: 0x060022F4 RID: 8948 RVA: 0x00002050 File Offset: 0x00000250
[Token(Token = "0x60022F4")]
[Address(RVA = "0x2DFD660", Offset = "0x2DFC460", VA = "0x182DFD660")]
protected SHA256()
{
}
/// <summary>Creates an instance of the default implementation of <see cref="T:System.Security.Cryptography.SHA256" />.</summary>
/// <returns>A new instance of <see cref="T:System.Security.Cryptography.SHA256" />. On the .NET Framework, this method creates an instance of the <see cref="T:System.Security.Cryptography.SHA256Managed" /> class if FIPS mode is not active; if FIPS mode is active, it creates an instance of the <see cref="T:System.Security.Cryptography.SHA256Cng" /> class. On .NET Core, it returns an instance of a private class derived from <see cref="T:System.Security.Cryptography.SHA256" />.</returns>
/// <exception cref="T:System.Reflection.TargetInvocationException">On the .NET Framework 4.6.1 and earlier versions only: The algorithm was used with Federal Information Processing Standards (FIPS) mode enabled, but is not FIPS compatible.</exception>
// Token: 0x060022F5 RID: 8949 RVA: 0x00002082 File Offset: 0x00000282
[Token(Token = "0x60022F5")]
[Address(RVA = "0x2DFD560", Offset = "0x2DFC360", VA = "0x182DFD560")]
public new static SHA256 Create()
{
return null;
}
/// <summary>Creates an instance of a specified implementation of <see cref="T:System.Security.Cryptography.SHA256" />.</summary>
/// <param name="hashName">The name of the specific implementation of <see cref="T:System.Security.Cryptography.SHA256" /> to be used.</param>
/// <returns>A new instance of <see cref="T:System.Security.Cryptography.SHA256" /> using the specified implementation.</returns>
/// <exception cref="T:System.Reflection.TargetInvocationException">On the .NET Framework only: FIPS mode is enabled, but <paramref name="hashName" /> requests <see cref="T:System.Security.Cryptography.SHA256Managed" />, which is not FIPS compatible.</exception>
// Token: 0x060022F6 RID: 8950 RVA: 0x00002082 File Offset: 0x00000282
[Token(Token = "0x60022F6")]
[Address(RVA = "0x2DFD4D0", Offset = "0x2DFC2D0", VA = "0x182DFD4D0")]
public new static SHA256 Create(string hashName)
{
return null;
}
}
}
@@ -0,0 +1,167 @@
using System;
using System.Runtime.InteropServices;
using Cpp2IlInjected;
namespace System.Security.Cryptography
{
/// <summary>Computes the <see cref="T:System.Security.Cryptography.SHA256" /> hash for the input data using the managed library.</summary>
// Token: 0x0200040D RID: 1037
[Token(Token = "0x200040D")]
[ComVisible(true)]
public class SHA256Managed : SHA256
{
/// <summary>Initializes a new instance of the <see cref="T:System.Security.Cryptography.SHA256Managed" /> class using the managed library.</summary>
/// <exception cref="T:System.InvalidOperationException">The Federal Information Processing Standards (FIPS) security setting is enabled. This implementation is not part of the Windows Platform FIPS-validated cryptographic algorithms.</exception>
// Token: 0x060022F7 RID: 8951 RVA: 0x00002050 File Offset: 0x00000250
[Token(Token = "0x60022F7")]
[Address(RVA = "0x2DFD310", Offset = "0x2DFC110", VA = "0x182DFD310")]
public SHA256Managed()
{
}
/// <summary>Initializes an instance of <see cref="T:System.Security.Cryptography.SHA256Managed" />.</summary>
// Token: 0x060022F8 RID: 8952 RVA: 0x00002050 File Offset: 0x00000250
[Token(Token = "0x60022F8")]
[Address(RVA = "0x2DFC560", Offset = "0x2DFB360", VA = "0x182DFC560", Slot = "18")]
public override void Initialize()
{
}
/// <summary>When overridden in a derived class, routes data written to the object into the <see cref="T:System.Security.Cryptography.SHA256" /> hash algorithm for computing the hash.</summary>
/// <param name="rgb">The input data.</param>
/// <param name="ibStart">The offset into the byte array from which to begin using data.</param>
/// <param name="cbSize">The number of bytes in the array to use as data.</param>
// Token: 0x060022F9 RID: 8953 RVA: 0x00002050 File Offset: 0x00000250
[Token(Token = "0x60022F9")]
[Address(RVA = "0x2DFC3C0", Offset = "0x2DFB1C0", VA = "0x182DFC3C0", Slot = "19")]
protected override void HashCore(byte[] rgb, int ibStart, int cbSize)
{
}
/// <summary>When overridden in a derived class, finalizes the hash computation after the last data is processed by the cryptographic stream object.</summary>
/// <returns>The computed hash code.</returns>
// Token: 0x060022FA RID: 8954 RVA: 0x00002082 File Offset: 0x00000282
[Token(Token = "0x60022FA")]
[Address(RVA = "0x2DFC3D0", Offset = "0x2DFB1D0", VA = "0x182DFC3D0", Slot = "20")]
protected override byte[] HashFinal()
{
return null;
}
// Token: 0x060022FB RID: 8955 RVA: 0x00002050 File Offset: 0x00000250
[Token(Token = "0x60022FB")]
[Address(RVA = "0x2DFC3E0", Offset = "0x2DFB1E0", VA = "0x182DFC3E0")]
private void InitializeState()
{
}
// Token: 0x060022FC RID: 8956 RVA: 0x00002050 File Offset: 0x00000250
[Token(Token = "0x60022FC")]
[Address(RVA = "0x2DFD0C0", Offset = "0x2DFBEC0", VA = "0x182DFD0C0")]
private void _HashData(byte[] partIn, int ibStart, int cbSize)
{
}
// Token: 0x060022FD RID: 8957 RVA: 0x00002082 File Offset: 0x00000282
[Token(Token = "0x60022FD")]
[Address(RVA = "0x2DFCE70", Offset = "0x2DFBC70", VA = "0x182DFCE70")]
private byte[] _EndHash()
{
return null;
}
// Token: 0x060022FE RID: 8958 RVA: 0x00002050 File Offset: 0x00000250
[Token(Token = "0x60022FE")]
[Address(RVA = "0x2DFC660", Offset = "0x2DFB460", VA = "0x182DFC660")]
private unsafe static void SHATransform(uint* expandedBuffer, uint* state, byte* block)
{
}
// Token: 0x060022FF RID: 8959 RVA: 0x00014F58 File Offset: 0x00013158
[Token(Token = "0x60022FF")]
[Address(RVA = "0x1A607B0", Offset = "0x1A5F5B0", VA = "0x181A607B0")]
private static uint RotateRight(uint x, int n)
{
return 0U;
}
// Token: 0x06002300 RID: 8960 RVA: 0x00014F70 File Offset: 0x00013170
[Token(Token = "0x6002300")]
[Address(RVA = "0x1FDF250", Offset = "0x1FDE050", VA = "0x181FDF250")]
private static uint Ch(uint x, uint y, uint z)
{
return 0U;
}
// Token: 0x06002301 RID: 8961 RVA: 0x00014F88 File Offset: 0x00013188
[Token(Token = "0x6002301")]
[Address(RVA = "0x1FDF3D0", Offset = "0x1FDE1D0", VA = "0x181FDF3D0")]
private static uint Maj(uint x, uint y, uint z)
{
return 0U;
}
// Token: 0x06002302 RID: 8962 RVA: 0x00014FA0 File Offset: 0x000131A0
[Token(Token = "0x6002302")]
[Address(RVA = "0x2DFD3F0", Offset = "0x2DFC1F0", VA = "0x182DFD3F0")]
private static uint sigma_0(uint x)
{
return 0U;
}
// Token: 0x06002303 RID: 8963 RVA: 0x00014FB8 File Offset: 0x000131B8
[Token(Token = "0x6002303")]
[Address(RVA = "0x2DFD460", Offset = "0x2DFC260", VA = "0x182DFD460")]
private static uint sigma_1(uint x)
{
return 0U;
}
// Token: 0x06002304 RID: 8964 RVA: 0x00014FD0 File Offset: 0x000131D0
[Token(Token = "0x6002304")]
[Address(RVA = "0x2DFCD90", Offset = "0x2DFBB90", VA = "0x182DFCD90")]
private static uint Sigma_0(uint x)
{
return 0U;
}
// Token: 0x06002305 RID: 8965 RVA: 0x00014FE8 File Offset: 0x000131E8
[Token(Token = "0x6002305")]
[Address(RVA = "0x2DFCE00", Offset = "0x2DFBC00", VA = "0x182DFCE00")]
private static uint Sigma_1(uint x)
{
return 0U;
}
// Token: 0x06002306 RID: 8966 RVA: 0x00002050 File Offset: 0x00000250
[Token(Token = "0x6002306")]
[Address(RVA = "0x2DFC5B0", Offset = "0x2DFB3B0", VA = "0x182DFC5B0")]
private unsafe static void SHA256Expand(uint* x)
{
}
// Token: 0x040013C9 RID: 5065
[global::Cpp2IlInjected.FieldOffset(Offset = "0x28")]
[Token(Token = "0x40013C9")]
private byte[] _buffer;
// Token: 0x040013CA RID: 5066
[global::Cpp2IlInjected.FieldOffset(Offset = "0x30")]
[Token(Token = "0x40013CA")]
private long _count;
// Token: 0x040013CB RID: 5067
[global::Cpp2IlInjected.FieldOffset(Offset = "0x38")]
[Token(Token = "0x40013CB")]
private uint[] _stateSHA256;
// Token: 0x040013CC RID: 5068
[global::Cpp2IlInjected.FieldOffset(Offset = "0x40")]
[Token(Token = "0x40013CC")]
private uint[] _W;
// Token: 0x040013CD RID: 5069
[Token(Token = "0x40013CD")]
private static readonly uint[] _K;
}
}
@@ -0,0 +1,44 @@
using System;
using System.Runtime.InteropServices;
using Cpp2IlInjected;
namespace System.Security.Cryptography
{
/// <summary>Computes the <see cref="T:System.Security.Cryptography.SHA384" /> hash for the input data.</summary>
// Token: 0x0200040E RID: 1038
[Token(Token = "0x200040E")]
[ComVisible(true)]
public abstract class SHA384 : HashAlgorithm
{
/// <summary>Initializes a new instance of <see cref="T:System.Security.Cryptography.SHA384" />.</summary>
// Token: 0x06002308 RID: 8968 RVA: 0x00002050 File Offset: 0x00000250
[Token(Token = "0x6002308")]
[Address(RVA = "0x2DFEA80", Offset = "0x2DFD880", VA = "0x182DFEA80")]
protected SHA384()
{
}
/// <summary>Creates an instance of the default implementation of <see cref="T:System.Security.Cryptography.SHA384" />.</summary>
/// <returns>A new instance of <see cref="T:System.Security.Cryptography.SHA384" />.</returns>
/// <exception cref="T:System.Reflection.TargetInvocationException">The algorithm was used with Federal Information Processing Standards (FIPS) mode enabled, but is not FIPS compatible.</exception>
// Token: 0x06002309 RID: 8969 RVA: 0x00002082 File Offset: 0x00000282
[Token(Token = "0x6002309")]
[Address(RVA = "0x2DFE8F0", Offset = "0x2DFD6F0", VA = "0x182DFE8F0")]
public new static SHA384 Create()
{
return null;
}
/// <summary>Creates an instance of a specified implementation of <see cref="T:System.Security.Cryptography.SHA384" />.</summary>
/// <param name="hashName">The name of the specific implementation of <see cref="T:System.Security.Cryptography.SHA384" /> to be used.</param>
/// <returns>A new instance of <see cref="T:System.Security.Cryptography.SHA384" /> using the specified implementation.</returns>
/// <exception cref="T:System.Reflection.TargetInvocationException">The algorithm described by the <paramref name="hashName" /> parameter was used with Federal Information Processing Standards (FIPS) mode enabled, but is not FIPS compatible.</exception>
// Token: 0x0600230A RID: 8970 RVA: 0x00002082 File Offset: 0x00000282
[Token(Token = "0x600230A")]
[Address(RVA = "0x2DFE9F0", Offset = "0x2DFD7F0", VA = "0x182DFE9F0")]
public new static SHA384 Create(string hashName)
{
return null;
}
}
}
@@ -0,0 +1,167 @@
using System;
using System.Runtime.InteropServices;
using Cpp2IlInjected;
namespace System.Security.Cryptography
{
/// <summary>Computes the <see cref="T:System.Security.Cryptography.SHA384" /> hash for the input data using the managed library.</summary>
// Token: 0x0200040F RID: 1039
[Token(Token = "0x200040F")]
[ComVisible(true)]
public class SHA384Managed : SHA384
{
/// <summary>Initializes a new instance of the <see cref="T:System.Security.Cryptography.SHA384Managed" /> class.</summary>
/// <exception cref="T:System.InvalidOperationException">The Federal Information Processing Standards (FIPS) security setting is enabled. This implementation is not part of the Windows Platform FIPS-validated cryptographic algorithms.</exception>
// Token: 0x0600230B RID: 8971 RVA: 0x00002050 File Offset: 0x00000250
[Token(Token = "0x600230B")]
[Address(RVA = "0x2DFE710", Offset = "0x2DFD510", VA = "0x182DFE710")]
public SHA384Managed()
{
}
/// <summary>Initializes an instance of <see cref="T:System.Security.Cryptography.SHA384Managed" />.</summary>
// Token: 0x0600230C RID: 8972 RVA: 0x00002050 File Offset: 0x00000250
[Token(Token = "0x600230C")]
[Address(RVA = "0x2DFD860", Offset = "0x2DFC660", VA = "0x182DFD860", Slot = "18")]
public override void Initialize()
{
}
/// <summary>When overridden in a derived class, routes data written to the object into the <see cref="T:System.Security.Cryptography.SHA384Managed" /> hash algorithm for computing the hash.</summary>
/// <param name="rgb">The input data.</param>
/// <param name="ibStart">The offset into the byte array from which to begin using data.</param>
/// <param name="cbSize">The number of bytes in the array to use as data.</param>
// Token: 0x0600230D RID: 8973 RVA: 0x00002050 File Offset: 0x00000250
[Token(Token = "0x600230D")]
[Address(RVA = "0x2DFD680", Offset = "0x2DFC480", VA = "0x182DFD680", Slot = "19")]
protected override void HashCore(byte[] rgb, int ibStart, int cbSize)
{
}
/// <summary>When overridden in a derived class, finalizes the hash computation after the last data is processed by the cryptographic stream object.</summary>
/// <returns>The computed hash code.</returns>
// Token: 0x0600230E RID: 8974 RVA: 0x00002082 File Offset: 0x00000282
[Token(Token = "0x600230E")]
[Address(RVA = "0x2DFD690", Offset = "0x2DFC490", VA = "0x182DFD690", Slot = "20")]
protected override byte[] HashFinal()
{
return null;
}
// Token: 0x0600230F RID: 8975 RVA: 0x00002050 File Offset: 0x00000250
[Token(Token = "0x600230F")]
[Address(RVA = "0x2DFD6A0", Offset = "0x2DFC4A0", VA = "0x182DFD6A0")]
private void InitializeState()
{
}
// Token: 0x06002310 RID: 8976 RVA: 0x00002050 File Offset: 0x00000250
[Token(Token = "0x6002310")]
[Address(RVA = "0x2DFE4B0", Offset = "0x2DFD2B0", VA = "0x182DFE4B0")]
private void _HashData(byte[] partIn, int ibStart, int cbSize)
{
}
// Token: 0x06002311 RID: 8977 RVA: 0x00002082 File Offset: 0x00000282
[Token(Token = "0x6002311")]
[Address(RVA = "0x2DFE260", Offset = "0x2DFD060", VA = "0x182DFE260")]
private byte[] _EndHash()
{
return null;
}
// Token: 0x06002312 RID: 8978 RVA: 0x00002050 File Offset: 0x00000250
[Token(Token = "0x6002312")]
[Address(RVA = "0x2DFD960", Offset = "0x2DFC760", VA = "0x182DFD960")]
private unsafe static void SHATransform(ulong* expandedBuffer, ulong* state, byte* block)
{
}
// Token: 0x06002313 RID: 8979 RVA: 0x00015000 File Offset: 0x00013200
[Token(Token = "0x6002313")]
[Address(RVA = "0x1B2FED0", Offset = "0x1B2ECD0", VA = "0x181B2FED0")]
private static ulong RotateRight(ulong x, int n)
{
return 0UL;
}
// Token: 0x06002314 RID: 8980 RVA: 0x00015018 File Offset: 0x00013218
[Token(Token = "0x6002314")]
[Address(RVA = "0x1B41580", Offset = "0x1B40380", VA = "0x181B41580")]
private static ulong Ch(ulong x, ulong y, ulong z)
{
return 0UL;
}
// Token: 0x06002315 RID: 8981 RVA: 0x00015030 File Offset: 0x00013230
[Token(Token = "0x6002315")]
[Address(RVA = "0x1B41870", Offset = "0x1B40670", VA = "0x181B41870")]
private static ulong Maj(ulong x, ulong y, ulong z)
{
return 0UL;
}
// Token: 0x06002316 RID: 8982 RVA: 0x00015048 File Offset: 0x00013248
[Token(Token = "0x6002316")]
[Address(RVA = "0x2DFE160", Offset = "0x2DFCF60", VA = "0x182DFE160")]
private static ulong Sigma_0(ulong x)
{
return 0UL;
}
// Token: 0x06002317 RID: 8983 RVA: 0x00015060 File Offset: 0x00013260
[Token(Token = "0x6002317")]
[Address(RVA = "0x2DFE1E0", Offset = "0x2DFCFE0", VA = "0x182DFE1E0")]
private static ulong Sigma_1(ulong x)
{
return 0UL;
}
// Token: 0x06002318 RID: 8984 RVA: 0x00015078 File Offset: 0x00013278
[Token(Token = "0x6002318")]
[Address(RVA = "0x2DFE7F0", Offset = "0x2DFD5F0", VA = "0x182DFE7F0")]
private static ulong sigma_0(ulong x)
{
return 0UL;
}
// Token: 0x06002319 RID: 8985 RVA: 0x00015090 File Offset: 0x00013290
[Token(Token = "0x6002319")]
[Address(RVA = "0x2DFE870", Offset = "0x2DFD670", VA = "0x182DFE870")]
private static ulong sigma_1(ulong x)
{
return 0UL;
}
// Token: 0x0600231A RID: 8986 RVA: 0x00002050 File Offset: 0x00000250
[Token(Token = "0x600231A")]
[Address(RVA = "0x2DFD8B0", Offset = "0x2DFC6B0", VA = "0x182DFD8B0")]
private unsafe static void SHA384Expand(ulong* x)
{
}
// Token: 0x040013CE RID: 5070
[global::Cpp2IlInjected.FieldOffset(Offset = "0x28")]
[Token(Token = "0x40013CE")]
private byte[] _buffer;
// Token: 0x040013CF RID: 5071
[global::Cpp2IlInjected.FieldOffset(Offset = "0x30")]
[Token(Token = "0x40013CF")]
private ulong _count;
// Token: 0x040013D0 RID: 5072
[global::Cpp2IlInjected.FieldOffset(Offset = "0x38")]
[Token(Token = "0x40013D0")]
private ulong[] _stateSHA384;
// Token: 0x040013D1 RID: 5073
[global::Cpp2IlInjected.FieldOffset(Offset = "0x40")]
[Token(Token = "0x40013D1")]
private ulong[] _W;
// Token: 0x040013D2 RID: 5074
[Token(Token = "0x40013D2")]
private static readonly ulong[] _K;
}
}
@@ -0,0 +1,44 @@
using System;
using System.Runtime.InteropServices;
using Cpp2IlInjected;
namespace System.Security.Cryptography
{
/// <summary>Computes the <see cref="T:System.Security.Cryptography.SHA512" /> hash for the input data.</summary>
// Token: 0x02000410 RID: 1040
[Token(Token = "0x2000410")]
[ComVisible(true)]
public abstract class SHA512 : HashAlgorithm
{
/// <summary>Initializes a new instance of <see cref="T:System.Security.Cryptography.SHA512" />.</summary>
// Token: 0x0600231C RID: 8988 RVA: 0x00002050 File Offset: 0x00000250
[Token(Token = "0x600231C")]
[Address(RVA = "0x2DFFEA0", Offset = "0x2DFECA0", VA = "0x182DFFEA0")]
protected SHA512()
{
}
/// <summary>Creates an instance of the default implementation of <see cref="T:System.Security.Cryptography.SHA512" />.</summary>
/// <returns>A new instance of <see cref="T:System.Security.Cryptography.SHA512" />.</returns>
/// <exception cref="T:System.Reflection.TargetInvocationException">The algorithm was used with Federal Information Processing Standards (FIPS) mode enabled, but is not FIPS compatible.</exception>
// Token: 0x0600231D RID: 8989 RVA: 0x00002082 File Offset: 0x00000282
[Token(Token = "0x600231D")]
[Address(RVA = "0x2DFFDA0", Offset = "0x2DFEBA0", VA = "0x182DFFDA0")]
public new static SHA512 Create()
{
return null;
}
/// <summary>Creates an instance of a specified implementation of <see cref="T:System.Security.Cryptography.SHA512" />.</summary>
/// <param name="hashName">The name of the specific implementation of <see cref="T:System.Security.Cryptography.SHA512" /> to be used.</param>
/// <returns>A new instance of <see cref="T:System.Security.Cryptography.SHA512" /> using the specified implementation.</returns>
/// <exception cref="T:System.Reflection.TargetInvocationException">The algorithm described by the <paramref name="hashName" /> parameter was used with Federal Information Processing Standards (FIPS) mode enabled, but is not FIPS compatible.</exception>
// Token: 0x0600231E RID: 8990 RVA: 0x00002082 File Offset: 0x00000282
[Token(Token = "0x600231E")]
[Address(RVA = "0x2DFFD10", Offset = "0x2DFEB10", VA = "0x182DFFD10")]
public new static SHA512 Create(string hashName)
{
return null;
}
}
}
@@ -0,0 +1,167 @@
using System;
using System.Runtime.InteropServices;
using Cpp2IlInjected;
namespace System.Security.Cryptography
{
/// <summary>Computes the <see cref="T:System.Security.Cryptography.SHA512" /> hash algorithm for the input data using the managed library.</summary>
// Token: 0x02000411 RID: 1041
[Token(Token = "0x2000411")]
[ComVisible(true)]
public class SHA512Managed : SHA512
{
/// <summary>Initializes a new instance of the <see cref="T:System.Security.Cryptography.SHA512Managed" /> class.</summary>
/// <exception cref="T:System.InvalidOperationException">The Federal Information Processing Standards (FIPS) security setting is enabled. This implementation is not part of the Windows Platform FIPS-validated cryptographic algorithms.</exception>
// Token: 0x0600231F RID: 8991 RVA: 0x00002050 File Offset: 0x00000250
[Token(Token = "0x600231F")]
[Address(RVA = "0x2DFFB30", Offset = "0x2DFE930", VA = "0x182DFFB30")]
public SHA512Managed()
{
}
/// <summary>Initializes an instance of the <see cref="T:System.Security.Cryptography.SHA512Managed" /> class using the managed library.</summary>
// Token: 0x06002320 RID: 8992 RVA: 0x00002050 File Offset: 0x00000250
[Token(Token = "0x6002320")]
[Address(RVA = "0x2DFEC80", Offset = "0x2DFDA80", VA = "0x182DFEC80", Slot = "18")]
public override void Initialize()
{
}
/// <summary>When overridden in a derived class, routes data written to the object into the <see cref="T:System.Security.Cryptography.SHA512Managed" /> hash algorithm for computing the hash.</summary>
/// <param name="rgb">The input data.</param>
/// <param name="ibStart">The offset into the byte array from which to begin using data.</param>
/// <param name="cbSize">The number of bytes in the array to use as data.</param>
// Token: 0x06002321 RID: 8993 RVA: 0x00002050 File Offset: 0x00000250
[Token(Token = "0x6002321")]
[Address(RVA = "0x2DFEAA0", Offset = "0x2DFD8A0", VA = "0x182DFEAA0", Slot = "19")]
protected override void HashCore(byte[] rgb, int ibStart, int cbSize)
{
}
/// <summary>When overridden in a derived class, finalizes the hash computation after the last data is processed by the cryptographic stream object.</summary>
/// <returns>The computed hash code.</returns>
// Token: 0x06002322 RID: 8994 RVA: 0x00002082 File Offset: 0x00000282
[Token(Token = "0x6002322")]
[Address(RVA = "0x2DFEAB0", Offset = "0x2DFD8B0", VA = "0x182DFEAB0", Slot = "20")]
protected override byte[] HashFinal()
{
return null;
}
// Token: 0x06002323 RID: 8995 RVA: 0x00002050 File Offset: 0x00000250
[Token(Token = "0x6002323")]
[Address(RVA = "0x2DFEAC0", Offset = "0x2DFD8C0", VA = "0x182DFEAC0")]
private void InitializeState()
{
}
// Token: 0x06002324 RID: 8996 RVA: 0x00002050 File Offset: 0x00000250
[Token(Token = "0x6002324")]
[Address(RVA = "0x2DFF8D0", Offset = "0x2DFE6D0", VA = "0x182DFF8D0")]
private void _HashData(byte[] partIn, int ibStart, int cbSize)
{
}
// Token: 0x06002325 RID: 8997 RVA: 0x00002082 File Offset: 0x00000282
[Token(Token = "0x6002325")]
[Address(RVA = "0x2DFF680", Offset = "0x2DFE480", VA = "0x182DFF680")]
private byte[] _EndHash()
{
return null;
}
// Token: 0x06002326 RID: 8998 RVA: 0x00002050 File Offset: 0x00000250
[Token(Token = "0x6002326")]
[Address(RVA = "0x2DFED80", Offset = "0x2DFDB80", VA = "0x182DFED80")]
private unsafe static void SHATransform(ulong* expandedBuffer, ulong* state, byte* block)
{
}
// Token: 0x06002327 RID: 8999 RVA: 0x000150A8 File Offset: 0x000132A8
[Token(Token = "0x6002327")]
[Address(RVA = "0x1B2FED0", Offset = "0x1B2ECD0", VA = "0x181B2FED0")]
private static ulong RotateRight(ulong x, int n)
{
return 0UL;
}
// Token: 0x06002328 RID: 9000 RVA: 0x000150C0 File Offset: 0x000132C0
[Token(Token = "0x6002328")]
[Address(RVA = "0x1B41580", Offset = "0x1B40380", VA = "0x181B41580")]
private static ulong Ch(ulong x, ulong y, ulong z)
{
return 0UL;
}
// Token: 0x06002329 RID: 9001 RVA: 0x000150D8 File Offset: 0x000132D8
[Token(Token = "0x6002329")]
[Address(RVA = "0x1B41870", Offset = "0x1B40670", VA = "0x181B41870")]
private static ulong Maj(ulong x, ulong y, ulong z)
{
return 0UL;
}
// Token: 0x0600232A RID: 9002 RVA: 0x000150F0 File Offset: 0x000132F0
[Token(Token = "0x600232A")]
[Address(RVA = "0x2DFF580", Offset = "0x2DFE380", VA = "0x182DFF580")]
private static ulong Sigma_0(ulong x)
{
return 0UL;
}
// Token: 0x0600232B RID: 9003 RVA: 0x00015108 File Offset: 0x00013308
[Token(Token = "0x600232B")]
[Address(RVA = "0x2DFF600", Offset = "0x2DFE400", VA = "0x182DFF600")]
private static ulong Sigma_1(ulong x)
{
return 0UL;
}
// Token: 0x0600232C RID: 9004 RVA: 0x00015120 File Offset: 0x00013320
[Token(Token = "0x600232C")]
[Address(RVA = "0x2DFFC10", Offset = "0x2DFEA10", VA = "0x182DFFC10")]
private static ulong sigma_0(ulong x)
{
return 0UL;
}
// Token: 0x0600232D RID: 9005 RVA: 0x00015138 File Offset: 0x00013338
[Token(Token = "0x600232D")]
[Address(RVA = "0x2DFFC90", Offset = "0x2DFEA90", VA = "0x182DFFC90")]
private static ulong sigma_1(ulong x)
{
return 0UL;
}
// Token: 0x0600232E RID: 9006 RVA: 0x00002050 File Offset: 0x00000250
[Token(Token = "0x600232E")]
[Address(RVA = "0x2DFECD0", Offset = "0x2DFDAD0", VA = "0x182DFECD0")]
private unsafe static void SHA512Expand(ulong* x)
{
}
// Token: 0x040013D3 RID: 5075
[global::Cpp2IlInjected.FieldOffset(Offset = "0x28")]
[Token(Token = "0x40013D3")]
private byte[] _buffer;
// Token: 0x040013D4 RID: 5076
[global::Cpp2IlInjected.FieldOffset(Offset = "0x30")]
[Token(Token = "0x40013D4")]
private ulong _count;
// Token: 0x040013D5 RID: 5077
[global::Cpp2IlInjected.FieldOffset(Offset = "0x38")]
[Token(Token = "0x40013D5")]
private ulong[] _stateSHA512;
// Token: 0x040013D6 RID: 5078
[global::Cpp2IlInjected.FieldOffset(Offset = "0x40")]
[Token(Token = "0x40013D6")]
private ulong[] _W;
// Token: 0x040013D7 RID: 5079
[Token(Token = "0x40013D7")]
private static readonly ulong[] _K;
}
}
@@ -0,0 +1,167 @@
using System;
using System.Runtime.InteropServices;
using Cpp2IlInjected;
namespace System.Security.Cryptography
{
/// <summary>Contains information about the properties of a digital signature.</summary>
// Token: 0x02000412 RID: 1042
[Token(Token = "0x2000412")]
[ComVisible(true)]
public class SignatureDescription
{
/// <summary>Initializes a new instance of the <see cref="T:System.Security.Cryptography.SignatureDescription" /> class.</summary>
// Token: 0x06002330 RID: 9008 RVA: 0x00002050 File Offset: 0x00000250
[Token(Token = "0x6002330")]
[Address(RVA = "0x3F5100", Offset = "0x3F3F00", VA = "0x1803F5100")]
public SignatureDescription()
{
}
/// <summary>Initializes a new instance of the <see cref="T:System.Security.Cryptography.SignatureDescription" /> class from the specified <see cref="T:System.Security.SecurityElement" />.</summary>
/// <param name="el">The <see cref="T:System.Security.SecurityElement" /> from which to get the algorithms for the signature description.</param>
/// <exception cref="T:System.ArgumentNullException">The <paramref name="el" /> parameter is <see langword="null" />.</exception>
// Token: 0x06002331 RID: 9009 RVA: 0x00002050 File Offset: 0x00000250
[Token(Token = "0x6002331")]
[Address(RVA = "0x2E015A0", Offset = "0x2E003A0", VA = "0x182E015A0")]
public SignatureDescription(SecurityElement el)
{
}
/// <summary>Gets or sets the key algorithm for the signature description.</summary>
/// <returns>The key algorithm for the signature description.</returns>
// Token: 0x170004D4 RID: 1236
// (get) Token: 0x06002332 RID: 9010 RVA: 0x00002082 File Offset: 0x00000282
// (set) Token: 0x06002333 RID: 9011 RVA: 0x00002050 File Offset: 0x00000250
[Token(Token = "0x170004D4")]
public string KeyAlgorithm
{
[Token(Token = "0x6002332")]
[Address(RVA = "0x3F6E20", Offset = "0x3F5C20", VA = "0x1803F6E20")]
get
{
return null;
}
[Token(Token = "0x6002333")]
[Address(RVA = "0x3F7200", Offset = "0x3F6000", VA = "0x1803F7200")]
set
{
}
}
/// <summary>Gets or sets the digest algorithm for the signature description.</summary>
/// <returns>The digest algorithm for the signature description.</returns>
// Token: 0x170004D5 RID: 1237
// (get) Token: 0x06002334 RID: 9012 RVA: 0x00002082 File Offset: 0x00000282
// (set) Token: 0x06002335 RID: 9013 RVA: 0x00002050 File Offset: 0x00000250
[Token(Token = "0x170004D5")]
public string DigestAlgorithm
{
[Token(Token = "0x6002334")]
[Address(RVA = "0x3F5F40", Offset = "0x3F4D40", VA = "0x1803F5F40")]
get
{
return null;
}
[Token(Token = "0x6002335")]
[Address(RVA = "0x3F7210", Offset = "0x3F6010", VA = "0x1803F7210")]
set
{
}
}
/// <summary>Gets or sets the formatter algorithm for the signature description.</summary>
/// <returns>The formatter algorithm for the signature description.</returns>
// Token: 0x170004D6 RID: 1238
// (get) Token: 0x06002336 RID: 9014 RVA: 0x00002082 File Offset: 0x00000282
// (set) Token: 0x06002337 RID: 9015 RVA: 0x00002050 File Offset: 0x00000250
[Token(Token = "0x170004D6")]
public string FormatterAlgorithm
{
[Token(Token = "0x6002336")]
[Address(RVA = "0x3F6400", Offset = "0x3F5200", VA = "0x1803F6400")]
get
{
return null;
}
[Token(Token = "0x6002337")]
[Address(RVA = "0x460F90", Offset = "0x45FD90", VA = "0x180460F90")]
set
{
}
}
/// <summary>Gets or sets the deformatter algorithm for the signature description.</summary>
/// <returns>The deformatter algorithm for the signature description.</returns>
// Token: 0x170004D7 RID: 1239
// (get) Token: 0x06002338 RID: 9016 RVA: 0x00002082 File Offset: 0x00000282
// (set) Token: 0x06002339 RID: 9017 RVA: 0x00002050 File Offset: 0x00000250
[Token(Token = "0x170004D7")]
public string DeformatterAlgorithm
{
[Token(Token = "0x6002338")]
[Address(RVA = "0x3F63E0", Offset = "0x3F51E0", VA = "0x1803F63E0")]
get
{
return null;
}
[Token(Token = "0x6002339")]
[Address(RVA = "0x409C60", Offset = "0x408A60", VA = "0x180409C60")]
set
{
}
}
/// <summary>Creates an <see cref="T:System.Security.Cryptography.AsymmetricSignatureDeformatter" /> instance with the specified key using the <see cref="P:System.Security.Cryptography.SignatureDescription.DeformatterAlgorithm" /> property.</summary>
/// <param name="key">The key to use in the <see cref="T:System.Security.Cryptography.AsymmetricSignatureDeformatter" />.</param>
/// <returns>The newly created <see cref="T:System.Security.Cryptography.AsymmetricSignatureDeformatter" /> instance.</returns>
// Token: 0x0600233A RID: 9018 RVA: 0x00002082 File Offset: 0x00000282
[Token(Token = "0x600233A")]
[Address(RVA = "0x2E013B0", Offset = "0x2E001B0", VA = "0x182E013B0", Slot = "4")]
public virtual AsymmetricSignatureDeformatter CreateDeformatter(AsymmetricAlgorithm key)
{
return null;
}
/// <summary>Creates an <see cref="T:System.Security.Cryptography.AsymmetricSignatureFormatter" /> instance with the specified key using the <see cref="P:System.Security.Cryptography.SignatureDescription.FormatterAlgorithm" /> property.</summary>
/// <param name="key">The key to use in the <see cref="T:System.Security.Cryptography.AsymmetricSignatureFormatter" />.</param>
/// <returns>The newly created <see cref="T:System.Security.Cryptography.AsymmetricSignatureFormatter" /> instance.</returns>
// Token: 0x0600233B RID: 9019 RVA: 0x00002082 File Offset: 0x00000282
[Token(Token = "0x600233B")]
[Address(RVA = "0x2E014F0", Offset = "0x2E002F0", VA = "0x182E014F0", Slot = "5")]
public virtual AsymmetricSignatureFormatter CreateFormatter(AsymmetricAlgorithm key)
{
return null;
}
/// <summary>Creates a <see cref="T:System.Security.Cryptography.HashAlgorithm" /> instance using the <see cref="P:System.Security.Cryptography.SignatureDescription.DigestAlgorithm" /> property.</summary>
/// <returns>The newly created <see cref="T:System.Security.Cryptography.HashAlgorithm" /> instance.</returns>
// Token: 0x0600233C RID: 9020 RVA: 0x00002082 File Offset: 0x00000282
[Token(Token = "0x600233C")]
[Address(RVA = "0x2E01460", Offset = "0x2E00260", VA = "0x182E01460", Slot = "6")]
public virtual HashAlgorithm CreateDigest()
{
return null;
}
// Token: 0x040013D8 RID: 5080
[global::Cpp2IlInjected.FieldOffset(Offset = "0x10")]
[Token(Token = "0x40013D8")]
private string _strKey;
// Token: 0x040013D9 RID: 5081
[global::Cpp2IlInjected.FieldOffset(Offset = "0x18")]
[Token(Token = "0x40013D9")]
private string _strDigest;
// Token: 0x040013DA RID: 5082
[global::Cpp2IlInjected.FieldOffset(Offset = "0x20")]
[Token(Token = "0x40013DA")]
private string _strFormatter;
// Token: 0x040013DB RID: 5083
[global::Cpp2IlInjected.FieldOffset(Offset = "0x28")]
[Token(Token = "0x40013DB")]
private string _strDeformatter;
}
}
@@ -0,0 +1,371 @@
using System;
using System.Runtime.InteropServices;
using Cpp2IlInjected;
namespace System.Security.Cryptography
{
/// <summary>Represents the abstract base class from which all implementations of symmetric algorithms must inherit.</summary>
// Token: 0x02000419 RID: 1049
[Token(Token = "0x2000419")]
[ComVisible(true)]
public abstract class SymmetricAlgorithm : IDisposable
{
/// <summary>Initializes a new instance of the <see cref="T:System.Security.Cryptography.SymmetricAlgorithm" /> class.</summary>
/// <exception cref="T:System.Security.Cryptography.CryptographicException">The implementation of the class derived from the symmetric algorithm is not valid.</exception>
// Token: 0x06002345 RID: 9029 RVA: 0x00002050 File Offset: 0x00000250
[Token(Token = "0x6002345")]
[Address(RVA = "0x2E01930", Offset = "0x2E00730", VA = "0x182E01930")]
protected SymmetricAlgorithm()
{
}
/// <summary>Releases all resources used by the current instance of the <see cref="T:System.Security.Cryptography.SymmetricAlgorithm" /> class.</summary>
// Token: 0x06002346 RID: 9030 RVA: 0x00002050 File Offset: 0x00000250
[Token(Token = "0x6002346")]
[Address(RVA = "0x2E017E0", Offset = "0x2E005E0", VA = "0x182E017E0", Slot = "4")]
public void Dispose()
{
}
/// <summary>Releases all resources used by the <see cref="T:System.Security.Cryptography.SymmetricAlgorithm" /> class.</summary>
// Token: 0x06002347 RID: 9031 RVA: 0x00002050 File Offset: 0x00000250
[Token(Token = "0x6002347")]
[Address(RVA = "0x2E01670", Offset = "0x2E00470", VA = "0x182E01670")]
public void Clear()
{
}
/// <summary>Releases the unmanaged resources used by the <see cref="T:System.Security.Cryptography.SymmetricAlgorithm" /> 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: 0x06002348 RID: 9032 RVA: 0x00002050 File Offset: 0x00000250
[Token(Token = "0x6002348")]
[Address(RVA = "0x2E01790", Offset = "0x2E00590", VA = "0x182E01790", Slot = "5")]
protected virtual void Dispose(bool disposing)
{
}
/// <summary>Gets or sets the block size, in bits, of the cryptographic operation.</summary>
/// <returns>The block size, in bits.</returns>
/// <exception cref="T:System.Security.Cryptography.CryptographicException">The block size is invalid.</exception>
// Token: 0x170004D8 RID: 1240
// (get) Token: 0x06002349 RID: 9033 RVA: 0x00015150 File Offset: 0x00013350
// (set) Token: 0x0600234A RID: 9034 RVA: 0x00002050 File Offset: 0x00000250
[Token(Token = "0x170004D8")]
public virtual int BlockSize
{
[Token(Token = "0x6002349")]
[Address(RVA = "0x3FA560", Offset = "0x3F9360", VA = "0x1803FA560", Slot = "6")]
get
{
return 0;
}
[Token(Token = "0x600234A")]
[Address(RVA = "0x2E01BA0", Offset = "0x2E009A0", VA = "0x182E01BA0", Slot = "7")]
set
{
}
}
/// <summary>Gets or sets the feedback size, in bits, of the cryptographic operation.</summary>
/// <returns>The feedback size in bits.</returns>
/// <exception cref="T:System.Security.Cryptography.CryptographicException">The feedback size is larger than the block size.</exception>
// Token: 0x170004D9 RID: 1241
// (get) Token: 0x0600234B RID: 9035 RVA: 0x00015168 File Offset: 0x00013368
// (set) Token: 0x0600234C RID: 9036 RVA: 0x00002050 File Offset: 0x00000250
[Token(Token = "0x170004D9")]
public virtual int FeedbackSize
{
[Token(Token = "0x600234B")]
[Address(RVA = "0x495080", Offset = "0x493E80", VA = "0x180495080", Slot = "8")]
get
{
return 0;
}
[Token(Token = "0x600234C")]
[Address(RVA = "0x2E01CD0", Offset = "0x2E00AD0", VA = "0x182E01CD0", Slot = "9")]
set
{
}
}
/// <summary>Gets or sets the initialization vector (<see cref="P:System.Security.Cryptography.SymmetricAlgorithm.IV" />) for the symmetric algorithm.</summary>
/// <returns>The initialization vector.</returns>
/// <exception cref="T:System.ArgumentNullException">An attempt was made to set the initialization vector to <see langword="null" />.</exception>
/// <exception cref="T:System.Security.Cryptography.CryptographicException">An attempt was made to set the initialization vector to an invalid size.</exception>
// Token: 0x170004DA RID: 1242
// (get) Token: 0x0600234D RID: 9037 RVA: 0x00002082 File Offset: 0x00000282
// (set) Token: 0x0600234E RID: 9038 RVA: 0x00002050 File Offset: 0x00000250
[Token(Token = "0x170004DA")]
public virtual byte[] IV
{
[Token(Token = "0x600234D")]
[Address(RVA = "0x2E01960", Offset = "0x2E00760", VA = "0x182E01960", Slot = "10")]
get
{
return null;
}
[Token(Token = "0x600234E")]
[Address(RVA = "0x2E01D70", Offset = "0x2E00B70", VA = "0x182E01D70", Slot = "11")]
set
{
}
}
/// <summary>Gets or sets the secret key for the symmetric algorithm.</summary>
/// <returns>The secret key to use for the symmetric algorithm.</returns>
/// <exception cref="T:System.ArgumentNullException">An attempt was made to set the key to <see langword="null" />.</exception>
/// <exception cref="T:System.Security.Cryptography.CryptographicException">The key size is invalid.</exception>
// Token: 0x170004DB RID: 1243
// (get) Token: 0x0600234F RID: 9039 RVA: 0x00002082 File Offset: 0x00000282
// (set) Token: 0x06002350 RID: 9040 RVA: 0x00002050 File Offset: 0x00000250
[Token(Token = "0x170004DB")]
public virtual byte[] Key
{
[Token(Token = "0x600234F")]
[Address(RVA = "0x2E01A00", Offset = "0x2E00800", VA = "0x182E01A00", Slot = "12")]
get
{
return null;
}
[Token(Token = "0x6002350")]
[Address(RVA = "0x2E01F00", Offset = "0x2E00D00", VA = "0x182E01F00", Slot = "13")]
set
{
}
}
/// <summary>Gets the block sizes, in bits, that are supported by the symmetric algorithm.</summary>
/// <returns>An array that contains the block sizes supported by the algorithm.</returns>
// Token: 0x170004DC RID: 1244
// (get) Token: 0x06002351 RID: 9041 RVA: 0x00002082 File Offset: 0x00000282
[Token(Token = "0x170004DC")]
public virtual KeySizes[] LegalBlockSizes
{
[Token(Token = "0x6002351")]
[Address(RVA = "0x2E01AA0", Offset = "0x2E008A0", VA = "0x182E01AA0", Slot = "14")]
get
{
return null;
}
}
/// <summary>Gets the key sizes, in bits, that are supported by the symmetric algorithm.</summary>
/// <returns>An array that contains the key sizes supported by the algorithm.</returns>
// Token: 0x170004DD RID: 1245
// (get) Token: 0x06002352 RID: 9042 RVA: 0x00002082 File Offset: 0x00000282
[Token(Token = "0x170004DD")]
public virtual KeySizes[] LegalKeySizes
{
[Token(Token = "0x6002352")]
[Address(RVA = "0x2E01B20", Offset = "0x2E00920", VA = "0x182E01B20", Slot = "15")]
get
{
return null;
}
}
/// <summary>Gets or sets the size, in bits, of the secret key used by the symmetric algorithm.</summary>
/// <returns>The size, in bits, of the secret key used by the symmetric algorithm.</returns>
/// <exception cref="T:System.Security.Cryptography.CryptographicException">The key size is not valid.</exception>
// Token: 0x170004DE RID: 1246
// (get) Token: 0x06002353 RID: 9043 RVA: 0x00015180 File Offset: 0x00013380
// (set) Token: 0x06002354 RID: 9044 RVA: 0x00002050 File Offset: 0x00000250
[Token(Token = "0x170004DE")]
public virtual int KeySize
{
[Token(Token = "0x6002353")]
[Address(RVA = "0x40FFE0", Offset = "0x40EDE0", VA = "0x18040FFE0", Slot = "16")]
get
{
return 0;
}
[Token(Token = "0x6002354")]
[Address(RVA = "0x2E01E70", Offset = "0x2E00C70", VA = "0x182E01E70", Slot = "17")]
set
{
}
}
/// <summary>Gets or sets the mode for operation of the symmetric algorithm.</summary>
/// <returns>The mode for operation of the symmetric algorithm. The default is <see cref="F:System.Security.Cryptography.CipherMode.CBC" />.</returns>
/// <exception cref="T:System.Security.Cryptography.CryptographicException">The cipher mode is not one of the <see cref="T:System.Security.Cryptography.CipherMode" /> values.</exception>
// Token: 0x170004DF RID: 1247
// (get) Token: 0x06002355 RID: 9045 RVA: 0x00015198 File Offset: 0x00013398
// (set) Token: 0x06002356 RID: 9046 RVA: 0x00002050 File Offset: 0x00000250
[Token(Token = "0x170004DF")]
public virtual CipherMode Mode
{
[Token(Token = "0x6002355")]
[Address(RVA = "0x567E30", Offset = "0x566C30", VA = "0x180567E30", Slot = "18")]
get
{
return (CipherMode)0;
}
[Token(Token = "0x6002356")]
[Address(RVA = "0x2E02020", Offset = "0x2E00E20", VA = "0x182E02020", Slot = "19")]
set
{
}
}
/// <summary>Gets or sets the padding mode used in the symmetric algorithm.</summary>
/// <returns>The padding mode used in the symmetric algorithm. The default is <see cref="F:System.Security.Cryptography.PaddingMode.PKCS7" />.</returns>
/// <exception cref="T:System.Security.Cryptography.CryptographicException">The padding mode is not one of the <see cref="T:System.Security.Cryptography.PaddingMode" /> values.</exception>
// Token: 0x170004E0 RID: 1248
// (get) Token: 0x06002357 RID: 9047 RVA: 0x000151B0 File Offset: 0x000133B0
// (set) Token: 0x06002358 RID: 9048 RVA: 0x00002050 File Offset: 0x00000250
[Token(Token = "0x170004E0")]
public virtual PaddingMode Padding
{
[Token(Token = "0x6002357")]
[Address(RVA = "0x3F63F0", Offset = "0x3F51F0", VA = "0x1803F63F0", Slot = "20")]
get
{
return (PaddingMode)0;
}
[Token(Token = "0x6002358")]
[Address(RVA = "0x2E020A0", Offset = "0x2E00EA0", VA = "0x182E020A0", Slot = "21")]
set
{
}
}
/// <summary>Determines whether the specified key size is valid for the current algorithm.</summary>
/// <param name="bitLength">The length, in bits, to check for a valid key size.</param>
/// <returns>
/// <see langword="true" /> if the specified key size is valid for the current algorithm; otherwise, <see langword="false" />.</returns>
// Token: 0x06002359 RID: 9049 RVA: 0x000151C8 File Offset: 0x000133C8
[Token(Token = "0x6002359")]
[Address(RVA = "0x2E01850", Offset = "0x2E00650", VA = "0x182E01850")]
public bool ValidKeySize(int bitLength)
{
return default(bool);
}
/// <summary>Creates a default cryptographic object used to perform the symmetric algorithm.</summary>
/// <returns>A default cryptographic object used to perform the symmetric algorithm.</returns>
// Token: 0x0600235A RID: 9050 RVA: 0x00002082 File Offset: 0x00000282
[Token(Token = "0x600235A")]
[Address(RVA = "0x2E01740", Offset = "0x2E00540", VA = "0x182E01740")]
public static SymmetricAlgorithm Create()
{
return null;
}
/// <summary>Creates the specified cryptographic object used to perform the symmetric algorithm.</summary>
/// <param name="algName">The name of the specific implementation of the <see cref="T:System.Security.Cryptography.SymmetricAlgorithm" /> class to use.</param>
/// <returns>A cryptographic object used to perform the symmetric algorithm.</returns>
// Token: 0x0600235B RID: 9051 RVA: 0x00002082 File Offset: 0x00000282
[Token(Token = "0x600235B")]
[Address(RVA = "0x2E016B0", Offset = "0x2E004B0", VA = "0x182E016B0")]
public static SymmetricAlgorithm Create(string algName)
{
return null;
}
/// <summary>Creates a symmetric encryptor object with the current <see cref="P:System.Security.Cryptography.SymmetricAlgorithm.Key" /> property and initialization vector (<see cref="P:System.Security.Cryptography.SymmetricAlgorithm.IV" />).</summary>
/// <returns>A symmetric encryptor object.</returns>
// Token: 0x0600235C RID: 9052 RVA: 0x00002082 File Offset: 0x00000282
[Token(Token = "0x600235C")]
[Address(RVA = "0x6B27C0", Offset = "0x6B15C0", VA = "0x1806B27C0", Slot = "22")]
public virtual ICryptoTransform CreateEncryptor()
{
return null;
}
/// <summary>When overridden in a derived class, creates a symmetric encryptor object with the specified <see cref="P:System.Security.Cryptography.SymmetricAlgorithm.Key" /> property and initialization vector (<see cref="P:System.Security.Cryptography.SymmetricAlgorithm.IV" />).</summary>
/// <param name="rgbKey">The secret key to use for the symmetric algorithm.</param>
/// <param name="rgbIV">The initialization vector to use for the symmetric algorithm.</param>
/// <returns>A symmetric encryptor object.</returns>
// Token: 0x0600235D RID: 9053
[Token(Token = "0x600235D")]
[Address(Slot = "23")]
public abstract ICryptoTransform CreateEncryptor(byte[] rgbKey, byte[] rgbIV);
/// <summary>Creates a symmetric decryptor object with the current <see cref="P:System.Security.Cryptography.SymmetricAlgorithm.Key" /> property and initialization vector (<see cref="P:System.Security.Cryptography.SymmetricAlgorithm.IV" />).</summary>
/// <returns>A symmetric decryptor object.</returns>
// Token: 0x0600235E RID: 9054 RVA: 0x00002082 File Offset: 0x00000282
[Token(Token = "0x600235E")]
[Address(RVA = "0x6B2760", Offset = "0x6B1560", VA = "0x1806B2760", Slot = "24")]
public virtual ICryptoTransform CreateDecryptor()
{
return null;
}
/// <summary>When overridden in a derived class, creates a symmetric decryptor object with the specified <see cref="P:System.Security.Cryptography.SymmetricAlgorithm.Key" /> property and initialization vector (<see cref="P:System.Security.Cryptography.SymmetricAlgorithm.IV" />).</summary>
/// <param name="rgbKey">The secret key to use for the symmetric algorithm.</param>
/// <param name="rgbIV">The initialization vector to use for the symmetric algorithm.</param>
/// <returns>A symmetric decryptor object.</returns>
// Token: 0x0600235F RID: 9055
[Token(Token = "0x600235F")]
[Address(Slot = "25")]
public abstract ICryptoTransform CreateDecryptor(byte[] rgbKey, byte[] rgbIV);
/// <summary>When overridden in a derived class, generates a random key (<see cref="P:System.Security.Cryptography.SymmetricAlgorithm.Key" />) to use for the algorithm.</summary>
// Token: 0x06002360 RID: 9056
[Token(Token = "0x6002360")]
[Address(Slot = "26")]
public abstract void GenerateKey();
/// <summary>When overridden in a derived class, generates a random initialization vector (<see cref="P:System.Security.Cryptography.SymmetricAlgorithm.IV" />) to use for the algorithm.</summary>
// Token: 0x06002361 RID: 9057
[Token(Token = "0x6002361")]
[Address(Slot = "27")]
public abstract void GenerateIV();
/// <summary>Represents the block size, in bits, of the cryptographic operation.</summary>
// Token: 0x040013DD RID: 5085
[global::Cpp2IlInjected.FieldOffset(Offset = "0x10")]
[Token(Token = "0x40013DD")]
protected int BlockSizeValue;
/// <summary>Represents the feedback size, in bits, of the cryptographic operation.</summary>
// Token: 0x040013DE RID: 5086
[global::Cpp2IlInjected.FieldOffset(Offset = "0x14")]
[Token(Token = "0x40013DE")]
protected int FeedbackSizeValue;
/// <summary>Represents the initialization vector (<see cref="P:System.Security.Cryptography.SymmetricAlgorithm.IV" />) for the symmetric algorithm.</summary>
// Token: 0x040013DF RID: 5087
[global::Cpp2IlInjected.FieldOffset(Offset = "0x18")]
[Token(Token = "0x40013DF")]
protected byte[] IVValue;
/// <summary>Represents the secret key for the symmetric algorithm.</summary>
// Token: 0x040013E0 RID: 5088
[global::Cpp2IlInjected.FieldOffset(Offset = "0x20")]
[Token(Token = "0x40013E0")]
protected byte[] KeyValue;
/// <summary>Specifies the block sizes, in bits, that are supported by the symmetric algorithm.</summary>
// Token: 0x040013E1 RID: 5089
[global::Cpp2IlInjected.FieldOffset(Offset = "0x28")]
[Token(Token = "0x40013E1")]
protected KeySizes[] LegalBlockSizesValue;
/// <summary>Specifies the key sizes, in bits, that are supported by the symmetric algorithm.</summary>
// Token: 0x040013E2 RID: 5090
[global::Cpp2IlInjected.FieldOffset(Offset = "0x30")]
[Token(Token = "0x40013E2")]
protected KeySizes[] LegalKeySizesValue;
/// <summary>Represents the size, in bits, of the secret key used by the symmetric algorithm.</summary>
// Token: 0x040013E3 RID: 5091
[global::Cpp2IlInjected.FieldOffset(Offset = "0x38")]
[Token(Token = "0x40013E3")]
protected int KeySizeValue;
/// <summary>Represents the cipher mode used in the symmetric algorithm.</summary>
// Token: 0x040013E4 RID: 5092
[global::Cpp2IlInjected.FieldOffset(Offset = "0x3C")]
[Token(Token = "0x40013E4")]
protected CipherMode ModeValue;
/// <summary>Represents the padding mode used in the symmetric algorithm.</summary>
// Token: 0x040013E5 RID: 5093
[global::Cpp2IlInjected.FieldOffset(Offset = "0x40")]
[Token(Token = "0x40013E5")]
protected PaddingMode PaddingValue;
}
}
@@ -0,0 +1,173 @@
using System;
using System.IO;
using Cpp2IlInjected;
namespace System.Security.Cryptography
{
// Token: 0x020003F4 RID: 1012
[Token(Token = "0x20003F4")]
internal sealed class TailStream : Stream
{
// Token: 0x060021F4 RID: 8692 RVA: 0x00002050 File Offset: 0x00000250
[Token(Token = "0x60021F4")]
[Address(RVA = "0x2E02480", Offset = "0x2E01280", VA = "0x182E02480")]
public TailStream(int bufferSize)
{
}
// Token: 0x060021F5 RID: 8693 RVA: 0x00002050 File Offset: 0x00000250
[Token(Token = "0x60021F5")]
[Address(RVA = "0x579920", Offset = "0x578720", VA = "0x180579920")]
public void Clear()
{
}
// Token: 0x060021F6 RID: 8694 RVA: 0x00002050 File Offset: 0x00000250
[Token(Token = "0x60021F6")]
[Address(RVA = "0x2E02120", Offset = "0x2E00F20", VA = "0x182E02120", Slot = "16")]
protected override void Dispose(bool disposing)
{
}
// Token: 0x170004AA RID: 1194
// (get) Token: 0x060021F7 RID: 8695 RVA: 0x00002082 File Offset: 0x00000282
[Token(Token = "0x170004AA")]
public byte[] Buffer
{
[Token(Token = "0x60021F7")]
[Address(RVA = "0x2E02500", Offset = "0x2E01300", VA = "0x182E02500")]
get
{
return null;
}
}
// Token: 0x170004AB RID: 1195
// (get) Token: 0x060021F8 RID: 8696 RVA: 0x00014AC0 File Offset: 0x00012CC0
[Token(Token = "0x170004AB")]
public override bool CanRead
{
[Token(Token = "0x60021F8")]
[Address(RVA = "0x403930", Offset = "0x402730", VA = "0x180403930", Slot = "7")]
get
{
return default(bool);
}
}
// Token: 0x170004AC RID: 1196
// (get) Token: 0x060021F9 RID: 8697 RVA: 0x00014AD8 File Offset: 0x00012CD8
[Token(Token = "0x170004AC")]
public override bool CanSeek
{
[Token(Token = "0x60021F9")]
[Address(RVA = "0x403930", Offset = "0x402730", VA = "0x180403930", Slot = "8")]
get
{
return default(bool);
}
}
// Token: 0x170004AD RID: 1197
// (get) Token: 0x060021FA RID: 8698 RVA: 0x00014AF0 File Offset: 0x00012CF0
[Token(Token = "0x170004AD")]
public override bool CanWrite
{
[Token(Token = "0x60021FA")]
[Address(RVA = "0x58C2E0", Offset = "0x58B0E0", VA = "0x18058C2E0", Slot = "9")]
get
{
return default(bool);
}
}
// Token: 0x170004AE RID: 1198
// (get) Token: 0x060021FB RID: 8699 RVA: 0x00014B08 File Offset: 0x00012D08
[Token(Token = "0x170004AE")]
public override long Length
{
[Token(Token = "0x60021FB")]
[Address(RVA = "0x2E02580", Offset = "0x2E01380", VA = "0x182E02580", Slot = "10")]
get
{
return 0L;
}
}
// Token: 0x170004AF RID: 1199
// (get) Token: 0x060021FC RID: 8700 RVA: 0x00014B20 File Offset: 0x00012D20
// (set) Token: 0x060021FD RID: 8701 RVA: 0x00002050 File Offset: 0x00000250
[Token(Token = "0x170004AF")]
public override long Position
{
[Token(Token = "0x60021FC")]
[Address(RVA = "0x2E025F0", Offset = "0x2E013F0", VA = "0x182E025F0", Slot = "11")]
get
{
return 0L;
}
[Token(Token = "0x60021FD")]
[Address(RVA = "0x2E02660", Offset = "0x2E01460", VA = "0x182E02660", Slot = "12")]
set
{
}
}
// Token: 0x060021FE RID: 8702 RVA: 0x00002050 File Offset: 0x00000250
[Token(Token = "0x60021FE")]
[Address(RVA = "0x402080", Offset = "0x400E80", VA = "0x180402080", Slot = "17")]
public override void Flush()
{
}
// Token: 0x060021FF RID: 8703 RVA: 0x00014B38 File Offset: 0x00012D38
[Token(Token = "0x60021FF")]
[Address(RVA = "0x2E02230", Offset = "0x2E01030", VA = "0x182E02230", Slot = "25")]
public override long Seek(long offset, SeekOrigin origin)
{
return 0L;
}
// Token: 0x06002200 RID: 8704 RVA: 0x00002050 File Offset: 0x00000250
[Token(Token = "0x6002200")]
[Address(RVA = "0x2E022A0", Offset = "0x2E010A0", VA = "0x182E022A0", Slot = "26")]
public override void SetLength(long value)
{
}
// Token: 0x06002201 RID: 8705 RVA: 0x00014B50 File Offset: 0x00012D50
[Token(Token = "0x6002201")]
[Address(RVA = "0x2E021C0", Offset = "0x2E00FC0", VA = "0x182E021C0", Slot = "27")]
public override int Read(byte[] buffer, int offset, int count)
{
return 0;
}
// Token: 0x06002202 RID: 8706 RVA: 0x00002050 File Offset: 0x00000250
[Token(Token = "0x6002202")]
[Address(RVA = "0x2E02310", Offset = "0x2E01110", VA = "0x182E02310", Slot = "29")]
public override void Write(byte[] buffer, int offset, int count)
{
}
// Token: 0x0400136A RID: 4970
[FieldOffset(Offset = "0x28")]
[Token(Token = "0x400136A")]
private byte[] _Buffer;
// Token: 0x0400136B RID: 4971
[FieldOffset(Offset = "0x30")]
[Token(Token = "0x400136B")]
private int _BufferSize;
// Token: 0x0400136C RID: 4972
[FieldOffset(Offset = "0x34")]
[Token(Token = "0x400136C")]
private int _BufferIndex;
// Token: 0x0400136D RID: 4973
[FieldOffset(Offset = "0x38")]
[Token(Token = "0x400136D")]
private bool _BufferFull;
}
}
@@ -0,0 +1,156 @@
using System;
using System.Runtime.InteropServices;
using Cpp2IlInjected;
namespace System.Security.Cryptography
{
/// <summary>Converts a <see cref="T:System.Security.Cryptography.CryptoStream" /> to base 64.</summary>
// Token: 0x020003D4 RID: 980
[Token(Token = "0x20003D4")]
[ComVisible(true)]
public class ToBase64Transform : ICryptoTransform, IDisposable
{
/// <summary>Gets the input block size.</summary>
/// <returns>The size of the input data blocks in bytes.</returns>
// Token: 0x17000480 RID: 1152
// (get) Token: 0x0600211E RID: 8478 RVA: 0x00014658 File Offset: 0x00012858
[Token(Token = "0x17000480")]
public int InputBlockSize
{
[Token(Token = "0x600211E")]
[Address(RVA = "0x53A4A0", Offset = "0x5392A0", VA = "0x18053A4A0", Slot = "4")]
get
{
return 0;
}
}
/// <summary>Gets the output block size.</summary>
/// <returns>The size of the output data blocks in bytes.</returns>
// Token: 0x17000481 RID: 1153
// (get) Token: 0x0600211F RID: 8479 RVA: 0x00014670 File Offset: 0x00012870
[Token(Token = "0x17000481")]
public int OutputBlockSize
{
[Token(Token = "0x600211F")]
[Address(RVA = "0x4101C0", Offset = "0x40EFC0", VA = "0x1804101C0", Slot = "5")]
get
{
return 0;
}
}
/// <summary>Gets a value that indicates whether multiple blocks can be transformed.</summary>
/// <returns>Always <see langword="false" />.</returns>
// Token: 0x17000482 RID: 1154
// (get) Token: 0x06002120 RID: 8480 RVA: 0x00014688 File Offset: 0x00012888
[Token(Token = "0x17000482")]
public bool CanTransformMultipleBlocks
{
[Token(Token = "0x6002120")]
[Address(RVA = "0x403930", Offset = "0x402730", VA = "0x180403930", Slot = "6")]
get
{
return default(bool);
}
}
/// <summary>Gets a value indicating whether the current transform can be reused.</summary>
/// <returns>Always <see langword="true" />.</returns>
// Token: 0x17000483 RID: 1155
// (get) Token: 0x06002121 RID: 8481 RVA: 0x000146A0 File Offset: 0x000128A0
[Token(Token = "0x17000483")]
public virtual bool CanReuseTransform
{
[Token(Token = "0x6002121")]
[Address(RVA = "0x460D40", Offset = "0x45FB40", VA = "0x180460D40", Slot = "11")]
get
{
return default(bool);
}
}
/// <summary>Converts the specified region of the input byte array to base 64 and copies the result to the specified region of the output byte array.</summary>
/// <param name="inputBuffer">The input to compute to base 64.</param>
/// <param name="inputOffset">The offset into the input byte array from which to begin using data.</param>
/// <param name="inputCount">The number of bytes in the input byte array to use as data.</param>
/// <param name="outputBuffer">The output to which to write the result.</param>
/// <param name="outputOffset">The offset into the output byte array from which to begin writing data.</param>
/// <returns>The number of bytes written.</returns>
/// <exception cref="T:System.ObjectDisposedException">The current <see cref="T:System.Security.Cryptography.ToBase64Transform" /> object has already been disposed.</exception>
/// <exception cref="T:System.Security.Cryptography.CryptographicException">The data size is not valid.</exception>
/// <exception cref="T:System.ArgumentException">The <paramref name="inputBuffer" /> parameter contains an invalid offset length.
/// -or-
/// The <paramref name="inputCount" /> parameter contains an invalid value.</exception>
/// <exception cref="T:System.ArgumentNullException">The <paramref name="inputBuffer" /> parameter is <see langword="null" />.</exception>
/// <exception cref="T:System.ArgumentOutOfRangeException">The <paramref name="inputBuffer" /> parameter requires a non-negative number.</exception>
// Token: 0x06002122 RID: 8482 RVA: 0x000146B8 File Offset: 0x000128B8
[Token(Token = "0x6002122")]
[Address(RVA = "0x2E027C0", Offset = "0x2E015C0", VA = "0x182E027C0", Slot = "8")]
public int TransformBlock(byte[] inputBuffer, int inputOffset, int inputCount, byte[] outputBuffer, int outputOffset)
{
return 0;
}
/// <summary>Converts the specified region of the specified byte array to base 64.</summary>
/// <param name="inputBuffer">The input to convert to base 64.</param>
/// <param name="inputOffset">The offset into the byte array from which to begin using data.</param>
/// <param name="inputCount">The number of bytes in the byte array to use as data.</param>
/// <returns>The computed base 64 conversion.</returns>
/// <exception cref="T:System.ObjectDisposedException">The current <see cref="T:System.Security.Cryptography.ToBase64Transform" /> object has already been disposed.</exception>
/// <exception cref="T:System.ArgumentException">The <paramref name="inputBuffer" /> parameter contains an invalid offset length.
/// -or-
/// The <paramref name="inputCount" /> parameter contains an invalid value.</exception>
/// <exception cref="T:System.ArgumentNullException">The <paramref name="inputBuffer" /> parameter is <see langword="null" />.</exception>
/// <exception cref="T:System.ArgumentOutOfRangeException">The <paramref name="inputBuffer" /> parameter requires a non-negative number.</exception>
// Token: 0x06002123 RID: 8483 RVA: 0x00002082 File Offset: 0x00000282
[Token(Token = "0x6002123")]
[Address(RVA = "0x2E02A20", Offset = "0x2E01820", VA = "0x182E02A20", Slot = "9")]
public byte[] TransformFinalBlock(byte[] inputBuffer, int inputOffset, int inputCount)
{
return null;
}
/// <summary>Releases all resources used by the current instance of the <see cref="T:System.Security.Cryptography.ToBase64Transform" /> class.</summary>
// Token: 0x06002124 RID: 8484 RVA: 0x00002050 File Offset: 0x00000250
[Token(Token = "0x6002124")]
[Address(RVA = "0x2E026D0", Offset = "0x2E014D0", VA = "0x182E026D0", Slot = "10")]
public void Dispose()
{
}
/// <summary>Releases all resources used by the <see cref="T:System.Security.Cryptography.ToBase64Transform" />.</summary>
// Token: 0x06002125 RID: 8485 RVA: 0x00002050 File Offset: 0x00000250
[Token(Token = "0x6002125")]
[Address(RVA = "0x2E026D0", Offset = "0x2E014D0", VA = "0x182E026D0")]
public void Clear()
{
}
/// <summary>Releases the unmanaged resources used by the <see cref="T:System.Security.Cryptography.ToBase64Transform" /> 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: 0x06002126 RID: 8486 RVA: 0x00002050 File Offset: 0x00000250
[Token(Token = "0x6002126")]
[Address(RVA = "0x402080", Offset = "0x400E80", VA = "0x180402080", Slot = "12")]
protected virtual void Dispose(bool disposing)
{
}
/// <summary>Releases the unmanaged resources used by the <see cref="T:System.Security.Cryptography.ToBase64Transform" />.</summary>
// Token: 0x06002127 RID: 8487 RVA: 0x00002050 File Offset: 0x00000250
[Token(Token = "0x6002127")]
[Address(RVA = "0x2E02740", Offset = "0x2E01540", VA = "0x182E02740", Slot = "1")]
protected override void Finalize()
{
}
/// <summary>Initializes a new instance of the <see cref="T:System.Security.Cryptography.ToBase64Transform" /> class.</summary>
// Token: 0x06002128 RID: 8488 RVA: 0x00002050 File Offset: 0x00000250
[Token(Token = "0x6002128")]
[Address(RVA = "0x3F5100", Offset = "0x3F3F00", VA = "0x1803F5100")]
public ToBase64Transform()
{
}
}
}

Some files were not shown because too many files have changed in this diff Show More