m
This commit is contained in:
@@ -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: 0x020003D5 RID: 981
|
||||
[Token(Token = "0x20003D5")]
|
||||
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: 0x020003D6 RID: 982
|
||||
[Token(Token = "0x20003D6")]
|
||||
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: 0x020003D7 RID: 983
|
||||
[Token(Token = "0x20003D7")]
|
||||
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: 0x020003D8 RID: 984
|
||||
[Token(Token = "0x20003D8")]
|
||||
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: 0x020003BE RID: 958
|
||||
[Token(Token = "0x20003BE")]
|
||||
[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: 0x06002251 RID: 8785 RVA: 0x00002050 File Offset: 0x00000250
|
||||
[Token(Token = "0x6002251")]
|
||||
[Address(RVA = "0x412370", Offset = "0x411370", VA = "0x180412370")]
|
||||
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: 0x06002252 RID: 8786 RVA: 0x00002050 File Offset: 0x00000250
|
||||
[Token(Token = "0x6002252")]
|
||||
[Address(RVA = "0xBFF3A0", Offset = "0xBFE3A0", VA = "0x180BFF3A0", 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: 0x06002253 RID: 8787 RVA: 0x000164B8 File Offset: 0x000146B8
|
||||
[Token(Token = "0x6002253")]
|
||||
[Address(RVA = "0xBFF560", Offset = "0xBFE560", VA = "0x180BFF560", 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: 0x06002254 RID: 8788 RVA: 0x000164D0 File Offset: 0x000146D0
|
||||
[Token(Token = "0x6002254")]
|
||||
[Address(RVA = "0x4F9150", Offset = "0x4F8150", VA = "0x1804F9150", 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: 0x06002255 RID: 8789
|
||||
[Token(Token = "0x6002255")]
|
||||
[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: 0x06002256 RID: 8790 RVA: 0x00002082 File Offset: 0x00000282
|
||||
[Token(Token = "0x6002256")]
|
||||
[Address(RVA = "0xBFF730", Offset = "0xBFE730", VA = "0x180BFF730", 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: 0x06002257 RID: 8791
|
||||
[Token(Token = "0x6002257")]
|
||||
[Address(Slot = "7")]
|
||||
public abstract SecurityElement ToXml();
|
||||
|
||||
// Token: 0x06002258 RID: 8792 RVA: 0x00002082 File Offset: 0x00000282
|
||||
[Token(Token = "0x6002258")]
|
||||
[Address(RVA = "0xBFF420", Offset = "0xBFE420", VA = "0x180BFF420")]
|
||||
internal SecurityElement Element(int version)
|
||||
{
|
||||
return null;
|
||||
}
|
||||
|
||||
// Token: 0x06002259 RID: 8793 RVA: 0x000164E8 File Offset: 0x000146E8
|
||||
[Token(Token = "0x6002259")]
|
||||
[Address(RVA = "0xBFF2F0", Offset = "0xBFE2F0", VA = "0x180BFF2F0")]
|
||||
internal static PermissionState CheckPermissionState(PermissionState state, bool allowUnrestricted)
|
||||
{
|
||||
return PermissionState.None;
|
||||
}
|
||||
|
||||
// Token: 0x0600225A RID: 8794 RVA: 0x00002050 File Offset: 0x00000250
|
||||
[Token(Token = "0x600225A")]
|
||||
[Address(RVA = "0xBFF690", Offset = "0xBFE690", VA = "0x180BFF690")]
|
||||
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: 0x020003E9 RID: 1001
|
||||
[Token(Token = "0x20003E9")]
|
||||
[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: 0x06002305 RID: 8965 RVA: 0x00002050 File Offset: 0x00000250
|
||||
[Token(Token = "0x6002305")]
|
||||
[Address(RVA = "0xBFEC90", Offset = "0xBFDC90", VA = "0x180BFEC90")]
|
||||
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: 0x06002306 RID: 8966 RVA: 0x00002082 File Offset: 0x00000282
|
||||
[Token(Token = "0x6002306")]
|
||||
[Address(RVA = "0xBFEA20", Offset = "0xBFDA20", VA = "0x180BFEA20")]
|
||||
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: 0x06002307 RID: 8967 RVA: 0x00002082 File Offset: 0x00000282
|
||||
[Token(Token = "0x6002307")]
|
||||
[Address(RVA = "0xBFE960", Offset = "0xBFD960", VA = "0x180BFE960")]
|
||||
public new static Aes Create(string algorithmName)
|
||||
{
|
||||
return null;
|
||||
}
|
||||
|
||||
// Token: 0x040013B2 RID: 5042
|
||||
[Token(Token = "0x40013B2")]
|
||||
private static KeySizes[] s_legalBlockSizes;
|
||||
|
||||
// Token: 0x040013B3 RID: 5043
|
||||
[Token(Token = "0x40013B3")]
|
||||
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: 0x020003EA RID: 1002
|
||||
[Token(Token = "0x20003EA")]
|
||||
[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: 0x06002309 RID: 8969 RVA: 0x00002050 File Offset: 0x00000250
|
||||
[Token(Token = "0x6002309")]
|
||||
[Address(RVA = "0x412370", Offset = "0x411370", VA = "0x180412370")]
|
||||
protected AsymmetricAlgorithm()
|
||||
{
|
||||
}
|
||||
|
||||
/// <summary>Releases all resources used by the current instance of the <see cref="T:System.Security.Cryptography.AsymmetricAlgorithm" /> class.</summary>
|
||||
// Token: 0x0600230A RID: 8970 RVA: 0x00002050 File Offset: 0x00000250
|
||||
[Token(Token = "0x600230A")]
|
||||
[Address(RVA = "0xBFED30", Offset = "0xBFDD30", VA = "0x180BFED30", Slot = "4")]
|
||||
public void Dispose()
|
||||
{
|
||||
}
|
||||
|
||||
/// <summary>Releases all resources used by the <see cref="T:System.Security.Cryptography.AsymmetricAlgorithm" /> class.</summary>
|
||||
// Token: 0x0600230B RID: 8971 RVA: 0x00002050 File Offset: 0x00000250
|
||||
[Token(Token = "0x600230B")]
|
||||
[Address(RVA = "0xBFED30", Offset = "0xBFDD30", VA = "0x180BFED30")]
|
||||
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: 0x0600230C RID: 8972 RVA: 0x00002050 File Offset: 0x00000250
|
||||
[Token(Token = "0x600230C")]
|
||||
[Address(RVA = "0x4242D0", Offset = "0x4232D0", VA = "0x1804242D0", 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: 0x170004F1 RID: 1265
|
||||
// (get) Token: 0x0600230D RID: 8973 RVA: 0x000169F8 File Offset: 0x00014BF8
|
||||
// (set) Token: 0x0600230E RID: 8974 RVA: 0x00002050 File Offset: 0x00000250
|
||||
[Token(Token = "0x170004F1")]
|
||||
public virtual int KeySize
|
||||
{
|
||||
[Token(Token = "0x600230D")]
|
||||
[Address(RVA = "0x40F000", Offset = "0x40E000", VA = "0x18040F000", Slot = "6")]
|
||||
get
|
||||
{
|
||||
return 0;
|
||||
}
|
||||
[Token(Token = "0x600230E")]
|
||||
[Address(RVA = "0xBFF040", Offset = "0xBFE040", VA = "0x180BFF040", 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: 0x170004F2 RID: 1266
|
||||
// (get) Token: 0x0600230F RID: 8975 RVA: 0x00002082 File Offset: 0x00000282
|
||||
[Token(Token = "0x170004F2")]
|
||||
public virtual KeySizes[] LegalKeySizes
|
||||
{
|
||||
[Token(Token = "0x600230F")]
|
||||
[Address(RVA = "0xBFEF70", Offset = "0xBFDF70", VA = "0x180BFEF70", 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: 0x170004F3 RID: 1267
|
||||
// (get) Token: 0x06002310 RID: 8976 RVA: 0x00002082 File Offset: 0x00000282
|
||||
[Token(Token = "0x170004F3")]
|
||||
public virtual string SignatureAlgorithm
|
||||
{
|
||||
[Token(Token = "0x6002310")]
|
||||
[Address(RVA = "0xBFEFF0", Offset = "0xBFDFF0", VA = "0x180BFEFF0", 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: 0x170004F4 RID: 1268
|
||||
// (get) Token: 0x06002311 RID: 8977 RVA: 0x00002082 File Offset: 0x00000282
|
||||
[Token(Token = "0x170004F4")]
|
||||
public virtual string KeyExchangeAlgorithm
|
||||
{
|
||||
[Token(Token = "0x6002311")]
|
||||
[Address(RVA = "0xBFEF20", Offset = "0xBFDF20", VA = "0x180BFEF20", 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 <cryptoClass> element.</returns>
|
||||
// Token: 0x06002312 RID: 8978 RVA: 0x00002082 File Offset: 0x00000282
|
||||
[Token(Token = "0x6002312")]
|
||||
[Address(RVA = "0xBFEE30", Offset = "0xBFDE30", VA = "0x180BFEE30")]
|
||||
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: 0x06002313 RID: 8979 RVA: 0x00002082 File Offset: 0x00000282
|
||||
[Token(Token = "0x6002313")]
|
||||
[Address(RVA = "0xBFEDA0", Offset = "0xBFDDA0", VA = "0x180BFEDA0")]
|
||||
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: 0x06002314 RID: 8980 RVA: 0x00002050 File Offset: 0x00000250
|
||||
[Token(Token = "0x6002314")]
|
||||
[Address(RVA = "0xBFEE80", Offset = "0xBFDE80", VA = "0x180BFEE80", 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: 0x06002315 RID: 8981 RVA: 0x00002082 File Offset: 0x00000282
|
||||
[Token(Token = "0x6002315")]
|
||||
[Address(RVA = "0xBFEED0", Offset = "0xBFDED0", VA = "0x180BFEED0", 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: 0x040013B4 RID: 5044
|
||||
[global::Cpp2IlInjected.FieldOffset(Offset = "0x10")]
|
||||
[Token(Token = "0x40013B4")]
|
||||
protected int KeySizeValue;
|
||||
|
||||
/// <summary>Specifies the key sizes that are supported by the asymmetric algorithm.</summary>
|
||||
// Token: 0x040013B5 RID: 5045
|
||||
[global::Cpp2IlInjected.FieldOffset(Offset = "0x18")]
|
||||
[Token(Token = "0x40013B5")]
|
||||
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: 0x020003EB RID: 1003
|
||||
[Token(Token = "0x20003EB")]
|
||||
[ComVisible(true)]
|
||||
public abstract class AsymmetricKeyExchangeDeformatter
|
||||
{
|
||||
/// <summary>Initializes a new instance of <see cref="T:System.Security.Cryptography.AsymmetricKeyExchangeDeformatter" />.</summary>
|
||||
// Token: 0x06002316 RID: 8982 RVA: 0x00002050 File Offset: 0x00000250
|
||||
[Token(Token = "0x6002316")]
|
||||
[Address(RVA = "0x412370", Offset = "0x411370", VA = "0x180412370")]
|
||||
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: 0x170004F5 RID: 1269
|
||||
// (get) Token: 0x06002317 RID: 8983
|
||||
// (set) Token: 0x06002318 RID: 8984
|
||||
[Token(Token = "0x170004F5")]
|
||||
public abstract string Parameters
|
||||
{
|
||||
[Token(Token = "0x6002317")]
|
||||
[Address(Slot = "4")]
|
||||
get;
|
||||
[Token(Token = "0x6002318")]
|
||||
[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: 0x06002319 RID: 8985
|
||||
[Token(Token = "0x6002319")]
|
||||
[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: 0x0600231A RID: 8986
|
||||
[Token(Token = "0x600231A")]
|
||||
[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: 0x020003EC RID: 1004
|
||||
[Token(Token = "0x20003EC")]
|
||||
[ComVisible(true)]
|
||||
public abstract class AsymmetricKeyExchangeFormatter
|
||||
{
|
||||
/// <summary>Initializes a new instance of <see cref="T:System.Security.Cryptography.AsymmetricKeyExchangeFormatter" />.</summary>
|
||||
// Token: 0x0600231B RID: 8987 RVA: 0x00002050 File Offset: 0x00000250
|
||||
[Token(Token = "0x600231B")]
|
||||
[Address(RVA = "0x412370", Offset = "0x411370", VA = "0x180412370")]
|
||||
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: 0x170004F6 RID: 1270
|
||||
// (get) Token: 0x0600231C RID: 8988
|
||||
[Token(Token = "0x170004F6")]
|
||||
public abstract string Parameters
|
||||
{
|
||||
[Token(Token = "0x600231C")]
|
||||
[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: 0x0600231D RID: 8989
|
||||
[Token(Token = "0x600231D")]
|
||||
[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: 0x0600231E RID: 8990
|
||||
[Token(Token = "0x600231E")]
|
||||
[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: 0x0600231F RID: 8991
|
||||
[Token(Token = "0x600231F")]
|
||||
[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: 0x020003ED RID: 1005
|
||||
[Token(Token = "0x20003ED")]
|
||||
[ComVisible(true)]
|
||||
public abstract class AsymmetricSignatureDeformatter
|
||||
{
|
||||
/// <summary>Initializes a new instance of <see cref="T:System.Security.Cryptography.AsymmetricSignatureDeformatter" />.</summary>
|
||||
// Token: 0x06002320 RID: 8992 RVA: 0x00002050 File Offset: 0x00000250
|
||||
[Token(Token = "0x6002320")]
|
||||
[Address(RVA = "0x412370", Offset = "0x411370", VA = "0x180412370")]
|
||||
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: 0x06002321 RID: 8993
|
||||
[Token(Token = "0x6002321")]
|
||||
[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: 0x06002322 RID: 8994
|
||||
[Token(Token = "0x6002322")]
|
||||
[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: 0x06002323 RID: 8995 RVA: 0x00016A10 File Offset: 0x00014C10
|
||||
[Token(Token = "0x6002323")]
|
||||
[Address(RVA = "0xBFF160", Offset = "0xBFE160", VA = "0x180BFF160", 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: 0x06002324 RID: 8996
|
||||
[Token(Token = "0x6002324")]
|
||||
[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: 0x020003EE RID: 1006
|
||||
[Token(Token = "0x20003EE")]
|
||||
[ComVisible(true)]
|
||||
public abstract class AsymmetricSignatureFormatter
|
||||
{
|
||||
/// <summary>Initializes a new instance of <see cref="T:System.Security.Cryptography.AsymmetricSignatureFormatter" />.</summary>
|
||||
// Token: 0x06002325 RID: 8997 RVA: 0x00002050 File Offset: 0x00000250
|
||||
[Token(Token = "0x6002325")]
|
||||
[Address(RVA = "0x412370", Offset = "0x411370", VA = "0x180412370")]
|
||||
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: 0x06002326 RID: 8998
|
||||
[Token(Token = "0x6002326")]
|
||||
[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: 0x06002327 RID: 8999
|
||||
[Token(Token = "0x6002327")]
|
||||
[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: 0x06002328 RID: 9000 RVA: 0x00002082 File Offset: 0x00000282
|
||||
[Token(Token = "0x6002328")]
|
||||
[Address(RVA = "0xBFF230", Offset = "0xBFE230", VA = "0x180BFF230", 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: 0x06002329 RID: 9001
|
||||
[Token(Token = "0x6002329")]
|
||||
[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: 0x020003F2 RID: 1010
|
||||
[Token(Token = "0x20003F2")]
|
||||
[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: 0x040013BD RID: 5053
|
||||
[Token(Token = "0x40013BD")]
|
||||
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: 0x040013BE RID: 5054
|
||||
[Token(Token = "0x40013BE")]
|
||||
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: 0x040013BF RID: 5055
|
||||
[Token(Token = "0x40013BF")]
|
||||
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: 0x040013C0 RID: 5056
|
||||
[Token(Token = "0x40013C0")]
|
||||
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: 0x040013C1 RID: 5057
|
||||
[Token(Token = "0x40013C1")]
|
||||
CTS
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,286 @@
|
||||
using System;
|
||||
using Cpp2IlInjected;
|
||||
|
||||
namespace System.Security.Cryptography
|
||||
{
|
||||
// Token: 0x02000439 RID: 1081
|
||||
[Token(Token = "0x2000439")]
|
||||
internal static class Constants
|
||||
{
|
||||
// Token: 0x040014AE RID: 5294
|
||||
[Token(Token = "0x40014AE")]
|
||||
internal const int S_OK = 0;
|
||||
|
||||
// Token: 0x040014AF RID: 5295
|
||||
[Token(Token = "0x40014AF")]
|
||||
internal const int NTE_FILENOTFOUND = -2147024894;
|
||||
|
||||
// Token: 0x040014B0 RID: 5296
|
||||
[Token(Token = "0x40014B0")]
|
||||
internal const int NTE_NO_KEY = -2146893811;
|
||||
|
||||
// Token: 0x040014B1 RID: 5297
|
||||
[Token(Token = "0x40014B1")]
|
||||
internal const int NTE_BAD_KEYSET = -2146893802;
|
||||
|
||||
// Token: 0x040014B2 RID: 5298
|
||||
[Token(Token = "0x40014B2")]
|
||||
internal const int NTE_KEYSET_NOT_DEF = -2146893799;
|
||||
|
||||
// Token: 0x040014B3 RID: 5299
|
||||
[Token(Token = "0x40014B3")]
|
||||
internal const int KP_IV = 1;
|
||||
|
||||
// Token: 0x040014B4 RID: 5300
|
||||
[Token(Token = "0x40014B4")]
|
||||
internal const int KP_MODE = 4;
|
||||
|
||||
// Token: 0x040014B5 RID: 5301
|
||||
[Token(Token = "0x40014B5")]
|
||||
internal const int KP_MODE_BITS = 5;
|
||||
|
||||
// Token: 0x040014B6 RID: 5302
|
||||
[Token(Token = "0x40014B6")]
|
||||
internal const int KP_EFFECTIVE_KEYLEN = 19;
|
||||
|
||||
// Token: 0x040014B7 RID: 5303
|
||||
[Token(Token = "0x40014B7")]
|
||||
internal const int ALG_CLASS_SIGNATURE = 8192;
|
||||
|
||||
// Token: 0x040014B8 RID: 5304
|
||||
[Token(Token = "0x40014B8")]
|
||||
internal const int ALG_CLASS_DATA_ENCRYPT = 24576;
|
||||
|
||||
// Token: 0x040014B9 RID: 5305
|
||||
[Token(Token = "0x40014B9")]
|
||||
internal const int ALG_CLASS_HASH = 32768;
|
||||
|
||||
// Token: 0x040014BA RID: 5306
|
||||
[Token(Token = "0x40014BA")]
|
||||
internal const int ALG_CLASS_KEY_EXCHANGE = 40960;
|
||||
|
||||
// Token: 0x040014BB RID: 5307
|
||||
[Token(Token = "0x40014BB")]
|
||||
internal const int ALG_TYPE_DSS = 512;
|
||||
|
||||
// Token: 0x040014BC RID: 5308
|
||||
[Token(Token = "0x40014BC")]
|
||||
internal const int ALG_TYPE_RSA = 1024;
|
||||
|
||||
// Token: 0x040014BD RID: 5309
|
||||
[Token(Token = "0x40014BD")]
|
||||
internal const int ALG_TYPE_BLOCK = 1536;
|
||||
|
||||
// Token: 0x040014BE RID: 5310
|
||||
[Token(Token = "0x40014BE")]
|
||||
internal const int ALG_TYPE_STREAM = 2048;
|
||||
|
||||
// Token: 0x040014BF RID: 5311
|
||||
[Token(Token = "0x40014BF")]
|
||||
internal const int ALG_TYPE_ANY = 0;
|
||||
|
||||
// Token: 0x040014C0 RID: 5312
|
||||
[Token(Token = "0x40014C0")]
|
||||
internal const int CALG_MD5 = 32771;
|
||||
|
||||
// Token: 0x040014C1 RID: 5313
|
||||
[Token(Token = "0x40014C1")]
|
||||
internal const int CALG_SHA1 = 32772;
|
||||
|
||||
// Token: 0x040014C2 RID: 5314
|
||||
[Token(Token = "0x40014C2")]
|
||||
internal const int CALG_SHA_256 = 32780;
|
||||
|
||||
// Token: 0x040014C3 RID: 5315
|
||||
[Token(Token = "0x40014C3")]
|
||||
internal const int CALG_SHA_384 = 32781;
|
||||
|
||||
// Token: 0x040014C4 RID: 5316
|
||||
[Token(Token = "0x40014C4")]
|
||||
internal const int CALG_SHA_512 = 32782;
|
||||
|
||||
// Token: 0x040014C5 RID: 5317
|
||||
[Token(Token = "0x40014C5")]
|
||||
internal const int CALG_RSA_KEYX = 41984;
|
||||
|
||||
// Token: 0x040014C6 RID: 5318
|
||||
[Token(Token = "0x40014C6")]
|
||||
internal const int CALG_RSA_SIGN = 9216;
|
||||
|
||||
// Token: 0x040014C7 RID: 5319
|
||||
[Token(Token = "0x40014C7")]
|
||||
internal const int CALG_DSS_SIGN = 8704;
|
||||
|
||||
// Token: 0x040014C8 RID: 5320
|
||||
[Token(Token = "0x40014C8")]
|
||||
internal const int CALG_DES = 26113;
|
||||
|
||||
// Token: 0x040014C9 RID: 5321
|
||||
[Token(Token = "0x40014C9")]
|
||||
internal const int CALG_RC2 = 26114;
|
||||
|
||||
// Token: 0x040014CA RID: 5322
|
||||
[Token(Token = "0x40014CA")]
|
||||
internal const int CALG_3DES = 26115;
|
||||
|
||||
// Token: 0x040014CB RID: 5323
|
||||
[Token(Token = "0x40014CB")]
|
||||
internal const int CALG_3DES_112 = 26121;
|
||||
|
||||
// Token: 0x040014CC RID: 5324
|
||||
[Token(Token = "0x40014CC")]
|
||||
internal const int CALG_AES_128 = 26126;
|
||||
|
||||
// Token: 0x040014CD RID: 5325
|
||||
[Token(Token = "0x40014CD")]
|
||||
internal const int CALG_AES_192 = 26127;
|
||||
|
||||
// Token: 0x040014CE RID: 5326
|
||||
[Token(Token = "0x40014CE")]
|
||||
internal const int CALG_AES_256 = 26128;
|
||||
|
||||
// Token: 0x040014CF RID: 5327
|
||||
[Token(Token = "0x40014CF")]
|
||||
internal const int CALG_RC4 = 26625;
|
||||
|
||||
// Token: 0x040014D0 RID: 5328
|
||||
[Token(Token = "0x40014D0")]
|
||||
internal const int PROV_RSA_FULL = 1;
|
||||
|
||||
// Token: 0x040014D1 RID: 5329
|
||||
[Token(Token = "0x40014D1")]
|
||||
internal const int PROV_DSS_DH = 13;
|
||||
|
||||
// Token: 0x040014D2 RID: 5330
|
||||
[Token(Token = "0x40014D2")]
|
||||
internal const int PROV_RSA_AES = 24;
|
||||
|
||||
// Token: 0x040014D3 RID: 5331
|
||||
[Token(Token = "0x40014D3")]
|
||||
internal const int AT_KEYEXCHANGE = 1;
|
||||
|
||||
// Token: 0x040014D4 RID: 5332
|
||||
[Token(Token = "0x40014D4")]
|
||||
internal const int AT_SIGNATURE = 2;
|
||||
|
||||
// Token: 0x040014D5 RID: 5333
|
||||
[Token(Token = "0x40014D5")]
|
||||
internal const int PUBLICKEYBLOB = 6;
|
||||
|
||||
// Token: 0x040014D6 RID: 5334
|
||||
[Token(Token = "0x40014D6")]
|
||||
internal const int PRIVATEKEYBLOB = 7;
|
||||
|
||||
// Token: 0x040014D7 RID: 5335
|
||||
[Token(Token = "0x40014D7")]
|
||||
internal const int CRYPT_OAEP = 64;
|
||||
|
||||
// Token: 0x040014D8 RID: 5336
|
||||
[Token(Token = "0x40014D8")]
|
||||
internal const uint CRYPT_VERIFYCONTEXT = 4026531840U;
|
||||
|
||||
// Token: 0x040014D9 RID: 5337
|
||||
[Token(Token = "0x40014D9")]
|
||||
internal const uint CRYPT_NEWKEYSET = 8U;
|
||||
|
||||
// Token: 0x040014DA RID: 5338
|
||||
[Token(Token = "0x40014DA")]
|
||||
internal const uint CRYPT_DELETEKEYSET = 16U;
|
||||
|
||||
// Token: 0x040014DB RID: 5339
|
||||
[Token(Token = "0x40014DB")]
|
||||
internal const uint CRYPT_MACHINE_KEYSET = 32U;
|
||||
|
||||
// Token: 0x040014DC RID: 5340
|
||||
[Token(Token = "0x40014DC")]
|
||||
internal const uint CRYPT_SILENT = 64U;
|
||||
|
||||
// Token: 0x040014DD RID: 5341
|
||||
[Token(Token = "0x40014DD")]
|
||||
internal const uint CRYPT_EXPORTABLE = 1U;
|
||||
|
||||
// Token: 0x040014DE RID: 5342
|
||||
[Token(Token = "0x40014DE")]
|
||||
internal const uint CLR_KEYLEN = 1U;
|
||||
|
||||
// Token: 0x040014DF RID: 5343
|
||||
[Token(Token = "0x40014DF")]
|
||||
internal const uint CLR_PUBLICKEYONLY = 2U;
|
||||
|
||||
// Token: 0x040014E0 RID: 5344
|
||||
[Token(Token = "0x40014E0")]
|
||||
internal const uint CLR_EXPORTABLE = 3U;
|
||||
|
||||
// Token: 0x040014E1 RID: 5345
|
||||
[Token(Token = "0x40014E1")]
|
||||
internal const uint CLR_REMOVABLE = 4U;
|
||||
|
||||
// Token: 0x040014E2 RID: 5346
|
||||
[Token(Token = "0x40014E2")]
|
||||
internal const uint CLR_HARDWARE = 5U;
|
||||
|
||||
// Token: 0x040014E3 RID: 5347
|
||||
[Token(Token = "0x40014E3")]
|
||||
internal const uint CLR_ACCESSIBLE = 6U;
|
||||
|
||||
// Token: 0x040014E4 RID: 5348
|
||||
[Token(Token = "0x40014E4")]
|
||||
internal const uint CLR_PROTECTED = 7U;
|
||||
|
||||
// Token: 0x040014E5 RID: 5349
|
||||
[Token(Token = "0x40014E5")]
|
||||
internal const uint CLR_UNIQUE_CONTAINER = 8U;
|
||||
|
||||
// Token: 0x040014E6 RID: 5350
|
||||
[Token(Token = "0x40014E6")]
|
||||
internal const uint CLR_ALGID = 9U;
|
||||
|
||||
// Token: 0x040014E7 RID: 5351
|
||||
[Token(Token = "0x40014E7")]
|
||||
internal const uint CLR_PP_CLIENT_HWND = 10U;
|
||||
|
||||
// Token: 0x040014E8 RID: 5352
|
||||
[Token(Token = "0x40014E8")]
|
||||
internal const uint CLR_PP_PIN = 11U;
|
||||
|
||||
// Token: 0x040014E9 RID: 5353
|
||||
[Token(Token = "0x40014E9")]
|
||||
internal const string OID_RSA_SMIMEalgCMS3DESwrap = "1.2.840.113549.1.9.16.3.6";
|
||||
|
||||
// Token: 0x040014EA RID: 5354
|
||||
[Token(Token = "0x40014EA")]
|
||||
internal const string OID_RSA_MD5 = "1.2.840.113549.2.5";
|
||||
|
||||
// Token: 0x040014EB RID: 5355
|
||||
[Token(Token = "0x40014EB")]
|
||||
internal const string OID_RSA_RC2CBC = "1.2.840.113549.3.2";
|
||||
|
||||
// Token: 0x040014EC RID: 5356
|
||||
[Token(Token = "0x40014EC")]
|
||||
internal const string OID_RSA_DES_EDE3_CBC = "1.2.840.113549.3.7";
|
||||
|
||||
// Token: 0x040014ED RID: 5357
|
||||
[Token(Token = "0x40014ED")]
|
||||
internal const string OID_OIWSEC_desCBC = "1.3.14.3.2.7";
|
||||
|
||||
// Token: 0x040014EE RID: 5358
|
||||
[Token(Token = "0x40014EE")]
|
||||
internal const string OID_OIWSEC_SHA1 = "1.3.14.3.2.26";
|
||||
|
||||
// Token: 0x040014EF RID: 5359
|
||||
[Token(Token = "0x40014EF")]
|
||||
internal const string OID_OIWSEC_SHA256 = "2.16.840.1.101.3.4.2.1";
|
||||
|
||||
// Token: 0x040014F0 RID: 5360
|
||||
[Token(Token = "0x40014F0")]
|
||||
internal const string OID_OIWSEC_SHA384 = "2.16.840.1.101.3.4.2.2";
|
||||
|
||||
// Token: 0x040014F1 RID: 5361
|
||||
[Token(Token = "0x40014F1")]
|
||||
internal const string OID_OIWSEC_SHA512 = "2.16.840.1.101.3.4.2.3";
|
||||
|
||||
// Token: 0x040014F2 RID: 5362
|
||||
[Token(Token = "0x40014F2")]
|
||||
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: 0x0200043B RID: 1083
|
||||
[Token(Token = "0x200043B")]
|
||||
[ComVisible(true)]
|
||||
public sealed class CryptoAPITransform : ICryptoTransform, IDisposable
|
||||
{
|
||||
// Token: 0x06002595 RID: 9621 RVA: 0x00002050 File Offset: 0x00000250
|
||||
[Token(Token = "0x6002595")]
|
||||
[Address(RVA = "0x41C6E0", Offset = "0x41B6E0", VA = "0x18041C6E0")]
|
||||
internal CryptoAPITransform()
|
||||
{
|
||||
}
|
||||
|
||||
/// <summary>Gets a value indicating whether the current transform can be reused.</summary>
|
||||
/// <returns>Always <see langword="true" />.</returns>
|
||||
// Token: 0x1700055A RID: 1370
|
||||
// (get) Token: 0x06002596 RID: 9622 RVA: 0x000176A0 File Offset: 0x000158A0
|
||||
[Token(Token = "0x1700055A")]
|
||||
public bool CanReuseTransform
|
||||
{
|
||||
[Token(Token = "0x6002596")]
|
||||
[Address(RVA = "0x4246A0", Offset = "0x4236A0", VA = "0x1804246A0", 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: 0x1700055B RID: 1371
|
||||
// (get) Token: 0x06002597 RID: 9623 RVA: 0x000176B8 File Offset: 0x000158B8
|
||||
[Token(Token = "0x1700055B")]
|
||||
public bool CanTransformMultipleBlocks
|
||||
{
|
||||
[Token(Token = "0x6002597")]
|
||||
[Address(RVA = "0x4246A0", Offset = "0x4236A0", VA = "0x1804246A0", Slot = "6")]
|
||||
get
|
||||
{
|
||||
return default(bool);
|
||||
}
|
||||
}
|
||||
|
||||
/// <summary>Gets the input block size.</summary>
|
||||
/// <returns>The input block size in bytes.</returns>
|
||||
// Token: 0x1700055C RID: 1372
|
||||
// (get) Token: 0x06002598 RID: 9624 RVA: 0x000176D0 File Offset: 0x000158D0
|
||||
[Token(Token = "0x1700055C")]
|
||||
public int InputBlockSize
|
||||
{
|
||||
[Token(Token = "0x6002598")]
|
||||
[Address(RVA = "0x4242C0", Offset = "0x4232C0", VA = "0x1804242C0", Slot = "4")]
|
||||
get
|
||||
{
|
||||
return 0;
|
||||
}
|
||||
}
|
||||
|
||||
/// <summary>Gets the key handle.</summary>
|
||||
/// <returns>The key handle.</returns>
|
||||
// Token: 0x1700055D RID: 1373
|
||||
// (get) Token: 0x06002599 RID: 9625 RVA: 0x000176E8 File Offset: 0x000158E8
|
||||
[Token(Token = "0x1700055D")]
|
||||
public IntPtr KeyHandle
|
||||
{
|
||||
[Token(Token = "0x6002599")]
|
||||
[Address(RVA = "0xBFF7D0", Offset = "0xBFE7D0", VA = "0x180BFF7D0")]
|
||||
get
|
||||
{
|
||||
return 0;
|
||||
}
|
||||
}
|
||||
|
||||
/// <summary>Gets the output block size.</summary>
|
||||
/// <returns>The output block size in bytes.</returns>
|
||||
// Token: 0x1700055E RID: 1374
|
||||
// (get) Token: 0x0600259A RID: 9626 RVA: 0x00017700 File Offset: 0x00015900
|
||||
[Token(Token = "0x1700055E")]
|
||||
public int OutputBlockSize
|
||||
{
|
||||
[Token(Token = "0x600259A")]
|
||||
[Address(RVA = "0x4242C0", Offset = "0x4232C0", VA = "0x1804242C0", 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: 0x0600259B RID: 9627 RVA: 0x00002050 File Offset: 0x00000250
|
||||
[Token(Token = "0x600259B")]
|
||||
[Address(RVA = "0xBFF770", Offset = "0xBFE770", VA = "0x180BFF770", Slot = "10")]
|
||||
public void Dispose()
|
||||
{
|
||||
}
|
||||
|
||||
/// <summary>Releases all resources used by the <see cref="T:System.Security.Cryptography.CryptoAPITransform" /> method.</summary>
|
||||
// Token: 0x0600259C RID: 9628 RVA: 0x00002050 File Offset: 0x00000250
|
||||
[Token(Token = "0x600259C")]
|
||||
[Address(RVA = "0x8CBC50", Offset = "0x8CAC50", VA = "0x1808CBC50")]
|
||||
public void Clear()
|
||||
{
|
||||
}
|
||||
|
||||
// Token: 0x0600259D RID: 9629 RVA: 0x00002050 File Offset: 0x00000250
|
||||
[Token(Token = "0x600259D")]
|
||||
[Address(RVA = "0x8CBC50", Offset = "0x8CAC50", VA = "0x1808CBC50")]
|
||||
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: 0x0600259E RID: 9630 RVA: 0x00017718 File Offset: 0x00015918
|
||||
[Token(Token = "0x600259E")]
|
||||
[Address(RVA = "0x4242C0", Offset = "0x4232C0", VA = "0x1804242C0", 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: 0x0600259F RID: 9631 RVA: 0x00002082 File Offset: 0x00000282
|
||||
[Token(Token = "0x600259F")]
|
||||
[Address(RVA = "0x4242C0", Offset = "0x4232C0", VA = "0x1804242C0", 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: 0x060025A0 RID: 9632 RVA: 0x00002050 File Offset: 0x00000250
|
||||
[Token(Token = "0x60025A0")]
|
||||
[Address(RVA = "0x4242D0", Offset = "0x4232D0", VA = "0x1804242D0")]
|
||||
[ComVisible(false)]
|
||||
public void Reset()
|
||||
{
|
||||
}
|
||||
|
||||
// Token: 0x040014F5 RID: 5365
|
||||
[global::Cpp2IlInjected.FieldOffset(Offset = "0x10")]
|
||||
[Token(Token = "0x40014F5")]
|
||||
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: 0x0200043C RID: 1084
|
||||
[Token(Token = "0x200043C")]
|
||||
[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: 0x060025A1 RID: 9633 RVA: 0x00002082 File Offset: 0x00000282
|
||||
[Token(Token = "0x60025A1")]
|
||||
[Address(RVA = "0xC01120", Offset = "0xC00120", VA = "0x180C01120")]
|
||||
public static byte[] EncodeOID(string str)
|
||||
{
|
||||
return null;
|
||||
}
|
||||
|
||||
// Token: 0x060025A2 RID: 9634 RVA: 0x00002082 File Offset: 0x00000282
|
||||
[Token(Token = "0x60025A2")]
|
||||
[Address(RVA = "0xC00F90", Offset = "0xBFFF90", VA = "0x180C00F90")]
|
||||
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: 0x1700055F RID: 1375
|
||||
// (get) Token: 0x060025A3 RID: 9635 RVA: 0x00017730 File Offset: 0x00015930
|
||||
[Token(Token = "0x1700055F")]
|
||||
[MonoLimitation("nothing is FIPS certified so it never make sense to restrict to this (empty) subset")]
|
||||
public static bool AllowOnlyFipsAlgorithms
|
||||
{
|
||||
[Token(Token = "0x60025A3")]
|
||||
[Address(RVA = "0x424690", Offset = "0x423690", VA = "0x180424690")]
|
||||
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: 0x060025A4 RID: 9636 RVA: 0x00002050 File Offset: 0x00000250
|
||||
[Token(Token = "0x60025A4")]
|
||||
[Address(RVA = "0xBFF800", Offset = "0xBFE800", VA = "0x180BFF800")]
|
||||
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: 0x060025A5 RID: 9637 RVA: 0x00002050 File Offset: 0x00000250
|
||||
[Token(Token = "0x60025A5")]
|
||||
[Address(RVA = "0xBFF850", Offset = "0xBFE850", VA = "0x180BFF850")]
|
||||
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: 0x060025A6 RID: 9638 RVA: 0x00002082 File Offset: 0x00000282
|
||||
[Token(Token = "0x60025A6")]
|
||||
[Address(RVA = "0xC00F80", Offset = "0xBFFF80", VA = "0x180C00F80")]
|
||||
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: 0x060025A7 RID: 9639 RVA: 0x00002082 File Offset: 0x00000282
|
||||
[Token(Token = "0x60025A7")]
|
||||
[Address(RVA = "0xBFF8A0", Offset = "0xBFE8A0", VA = "0x180BFF8A0")]
|
||||
public static object CreateFromName(string name, params object[] args)
|
||||
{
|
||||
return null;
|
||||
}
|
||||
|
||||
// Token: 0x060025A8 RID: 9640 RVA: 0x00002082 File Offset: 0x00000282
|
||||
[Token(Token = "0x60025A8")]
|
||||
[Address(RVA = "0xC01570", Offset = "0xC00570", VA = "0x180C01570")]
|
||||
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: 0x060025A9 RID: 9641 RVA: 0x00002082 File Offset: 0x00000282
|
||||
[Token(Token = "0x60025A9")]
|
||||
[Address(RVA = "0xC01580", Offset = "0xC00580", VA = "0x180C01580")]
|
||||
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: 0x060025AA RID: 9642 RVA: 0x00002050 File Offset: 0x00000250
|
||||
[Token(Token = "0x60025AA")]
|
||||
[Address(RVA = "0x412370", Offset = "0x411370", VA = "0x180412370")]
|
||||
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: 0x020003FA RID: 1018
|
||||
[Token(Token = "0x20003FA")]
|
||||
[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: 0x06002365 RID: 9061 RVA: 0x00002050 File Offset: 0x00000250
|
||||
[Token(Token = "0x6002365")]
|
||||
[Address(RVA = "0xC03230", Offset = "0xC02230", VA = "0x180C03230")]
|
||||
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: 0x17000506 RID: 1286
|
||||
// (get) Token: 0x06002366 RID: 9062 RVA: 0x00016BC0 File Offset: 0x00014DC0
|
||||
[Token(Token = "0x17000506")]
|
||||
public override bool CanRead
|
||||
{
|
||||
[Token(Token = "0x6002366")]
|
||||
[Address(RVA = "0x497580", Offset = "0x496580", VA = "0x180497580", 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: 0x17000507 RID: 1287
|
||||
// (get) Token: 0x06002367 RID: 9063 RVA: 0x00016BD8 File Offset: 0x00014DD8
|
||||
[Token(Token = "0x17000507")]
|
||||
public override bool CanSeek
|
||||
{
|
||||
[Token(Token = "0x6002367")]
|
||||
[Address(RVA = "0x424690", Offset = "0x423690", VA = "0x180424690", 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: 0x17000508 RID: 1288
|
||||
// (get) Token: 0x06002368 RID: 9064 RVA: 0x00016BF0 File Offset: 0x00014DF0
|
||||
[Token(Token = "0x17000508")]
|
||||
public override bool CanWrite
|
||||
{
|
||||
[Token(Token = "0x6002368")]
|
||||
[Address(RVA = "0xC034A0", Offset = "0xC024A0", VA = "0x180C034A0", 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: 0x17000509 RID: 1289
|
||||
// (get) Token: 0x06002369 RID: 9065 RVA: 0x00016C08 File Offset: 0x00014E08
|
||||
[Token(Token = "0x17000509")]
|
||||
public override long Length
|
||||
{
|
||||
[Token(Token = "0x6002369")]
|
||||
[Address(RVA = "0xC034C0", Offset = "0xC024C0", VA = "0x180C034C0", 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: 0x1700050A RID: 1290
|
||||
// (get) Token: 0x0600236A RID: 9066 RVA: 0x00016C20 File Offset: 0x00014E20
|
||||
// (set) Token: 0x0600236B RID: 9067 RVA: 0x00002050 File Offset: 0x00000250
|
||||
[Token(Token = "0x1700050A")]
|
||||
public override long Position
|
||||
{
|
||||
[Token(Token = "0x600236A")]
|
||||
[Address(RVA = "0xC03530", Offset = "0xC02530", VA = "0x180C03530", Slot = "11")]
|
||||
get
|
||||
{
|
||||
return 0L;
|
||||
}
|
||||
[Token(Token = "0x600236B")]
|
||||
[Address(RVA = "0xC035A0", Offset = "0xC025A0", VA = "0x180C035A0", 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: 0x1700050B RID: 1291
|
||||
// (get) Token: 0x0600236C RID: 9068 RVA: 0x00016C38 File Offset: 0x00014E38
|
||||
[Token(Token = "0x1700050B")]
|
||||
public bool HasFlushedFinalBlock
|
||||
{
|
||||
[Token(Token = "0x600236C")]
|
||||
[Address(RVA = "0xC034B0", Offset = "0xC024B0", VA = "0x180C034B0")]
|
||||
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: 0x0600236D RID: 9069 RVA: 0x00002050 File Offset: 0x00000250
|
||||
[Token(Token = "0x600236D")]
|
||||
[Address(RVA = "0xC01CB0", Offset = "0xC00CB0", VA = "0x180C01CB0")]
|
||||
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: 0x0600236E RID: 9070 RVA: 0x00002050 File Offset: 0x00000250
|
||||
[Token(Token = "0x600236E")]
|
||||
[Address(RVA = "0x4242D0", Offset = "0x4232D0", VA = "0x1804242D0", 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: 0x0600236F RID: 9071 RVA: 0x00002082 File Offset: 0x00000282
|
||||
[Token(Token = "0x600236F")]
|
||||
[Address(RVA = "0xC01B90", Offset = "0xC00B90", VA = "0x180C01B90", 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: 0x06002370 RID: 9072 RVA: 0x00016C50 File Offset: 0x00014E50
|
||||
[Token(Token = "0x6002370")]
|
||||
[Address(RVA = "0xC02900", Offset = "0xC01900", VA = "0x180C02900", 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: 0x06002371 RID: 9073 RVA: 0x00002050 File Offset: 0x00000250
|
||||
[Token(Token = "0x6002371")]
|
||||
[Address(RVA = "0xC02970", Offset = "0xC01970", VA = "0x180C02970", 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: 0x06002372 RID: 9074 RVA: 0x00016C68 File Offset: 0x00014E68
|
||||
[Token(Token = "0x6002372")]
|
||||
[Address(RVA = "0xC023A0", Offset = "0xC013A0", VA = "0x180C023A0", 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: 0x06002373 RID: 9075 RVA: 0x00002082 File Offset: 0x00000282
|
||||
[Token(Token = "0x6002373")]
|
||||
[Address(RVA = "0xC02040", Offset = "0xC01040", VA = "0x180C02040", Slot = "21")]
|
||||
public override Task<int> ReadAsync(byte[] buffer, int offset, int count, CancellationToken cancellationToken)
|
||||
{
|
||||
return null;
|
||||
}
|
||||
|
||||
// Token: 0x06002374 RID: 9076 RVA: 0x00002082 File Offset: 0x00000282
|
||||
[Token(Token = "0x6002374")]
|
||||
[Address(RVA = "0xC01F20", Offset = "0xC00F20", VA = "0x180C01F20")]
|
||||
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: 0x06002375 RID: 9077 RVA: 0x00002050 File Offset: 0x00000250
|
||||
[Token(Token = "0x6002375")]
|
||||
[Address(RVA = "0xC02E40", Offset = "0xC01E40", VA = "0x180C02E40", 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: 0x06002376 RID: 9078 RVA: 0x00002082 File Offset: 0x00000282
|
||||
[Token(Token = "0x6002376")]
|
||||
[Address(RVA = "0xC02AF0", Offset = "0xC01AF0", VA = "0x180C02AF0", Slot = "24")]
|
||||
public override Task WriteAsync(byte[] buffer, int offset, int count, CancellationToken cancellationToken)
|
||||
{
|
||||
return null;
|
||||
}
|
||||
|
||||
// Token: 0x06002377 RID: 9079 RVA: 0x00002082 File Offset: 0x00000282
|
||||
[Token(Token = "0x6002377")]
|
||||
[Address(RVA = "0xC029E0", Offset = "0xC019E0", VA = "0x180C029E0")]
|
||||
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: 0x06002378 RID: 9080 RVA: 0x00002050 File Offset: 0x00000250
|
||||
[Token(Token = "0x6002378")]
|
||||
[Address(RVA = "0x9DE1B0", Offset = "0x9DD1B0", VA = "0x1809DE1B0")]
|
||||
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: 0x06002379 RID: 9081 RVA: 0x00002050 File Offset: 0x00000250
|
||||
[Token(Token = "0x6002379")]
|
||||
[Address(RVA = "0xC01A50", Offset = "0xC00A50", VA = "0x180C01A50", Slot = "16")]
|
||||
protected override void Dispose(bool disposing)
|
||||
{
|
||||
}
|
||||
|
||||
// Token: 0x0600237A RID: 9082 RVA: 0x00002050 File Offset: 0x00000250
|
||||
[Token(Token = "0x600237A")]
|
||||
[Address(RVA = "0xC01E90", Offset = "0xC00E90", VA = "0x180C01E90")]
|
||||
private void InitializeBuffer()
|
||||
{
|
||||
}
|
||||
|
||||
// Token: 0x040013E3 RID: 5091
|
||||
[global::Cpp2IlInjected.FieldOffset(Offset = "0x28")]
|
||||
[Token(Token = "0x40013E3")]
|
||||
private Stream _stream;
|
||||
|
||||
// Token: 0x040013E4 RID: 5092
|
||||
[global::Cpp2IlInjected.FieldOffset(Offset = "0x30")]
|
||||
[Token(Token = "0x40013E4")]
|
||||
private ICryptoTransform _Transform;
|
||||
|
||||
// Token: 0x040013E5 RID: 5093
|
||||
[global::Cpp2IlInjected.FieldOffset(Offset = "0x38")]
|
||||
[Token(Token = "0x40013E5")]
|
||||
private byte[] _InputBuffer;
|
||||
|
||||
// Token: 0x040013E6 RID: 5094
|
||||
[global::Cpp2IlInjected.FieldOffset(Offset = "0x40")]
|
||||
[Token(Token = "0x40013E6")]
|
||||
private int _InputBufferIndex;
|
||||
|
||||
// Token: 0x040013E7 RID: 5095
|
||||
[global::Cpp2IlInjected.FieldOffset(Offset = "0x44")]
|
||||
[Token(Token = "0x40013E7")]
|
||||
private int _InputBlockSize;
|
||||
|
||||
// Token: 0x040013E8 RID: 5096
|
||||
[global::Cpp2IlInjected.FieldOffset(Offset = "0x48")]
|
||||
[Token(Token = "0x40013E8")]
|
||||
private byte[] _OutputBuffer;
|
||||
|
||||
// Token: 0x040013E9 RID: 5097
|
||||
[global::Cpp2IlInjected.FieldOffset(Offset = "0x50")]
|
||||
[Token(Token = "0x40013E9")]
|
||||
private int _OutputBufferIndex;
|
||||
|
||||
// Token: 0x040013EA RID: 5098
|
||||
[global::Cpp2IlInjected.FieldOffset(Offset = "0x54")]
|
||||
[Token(Token = "0x40013EA")]
|
||||
private int _OutputBlockSize;
|
||||
|
||||
// Token: 0x040013EB RID: 5099
|
||||
[global::Cpp2IlInjected.FieldOffset(Offset = "0x58")]
|
||||
[Token(Token = "0x40013EB")]
|
||||
private CryptoStreamMode _transformMode;
|
||||
|
||||
// Token: 0x040013EC RID: 5100
|
||||
[global::Cpp2IlInjected.FieldOffset(Offset = "0x5C")]
|
||||
[Token(Token = "0x40013EC")]
|
||||
private bool _canRead;
|
||||
|
||||
// Token: 0x040013ED RID: 5101
|
||||
[global::Cpp2IlInjected.FieldOffset(Offset = "0x5D")]
|
||||
[Token(Token = "0x40013ED")]
|
||||
private bool _canWrite;
|
||||
|
||||
// Token: 0x040013EE RID: 5102
|
||||
[global::Cpp2IlInjected.FieldOffset(Offset = "0x5E")]
|
||||
[Token(Token = "0x40013EE")]
|
||||
private bool _finalBlockTransformed;
|
||||
|
||||
// Token: 0x020003FB RID: 1019
|
||||
[Token(Token = "0x20003FB")]
|
||||
private struct HopToThreadPoolAwaitable : INotifyCompletion
|
||||
{
|
||||
// Token: 0x0600237B RID: 9083 RVA: 0x00016C80 File Offset: 0x00014E80
|
||||
[Token(Token = "0x600237B")]
|
||||
[Address(RVA = "0x634740", Offset = "0x633740", VA = "0x180634740")]
|
||||
public CryptoStream.HopToThreadPoolAwaitable GetAwaiter()
|
||||
{
|
||||
return default(CryptoStream.HopToThreadPoolAwaitable);
|
||||
}
|
||||
|
||||
// Token: 0x1700050C RID: 1292
|
||||
// (get) Token: 0x0600237C RID: 9084 RVA: 0x00016C98 File Offset: 0x00014E98
|
||||
[Token(Token = "0x1700050C")]
|
||||
public bool IsCompleted
|
||||
{
|
||||
[Token(Token = "0x600237C")]
|
||||
[Address(RVA = "0x424690", Offset = "0x423690", VA = "0x180424690")]
|
||||
get
|
||||
{
|
||||
return default(bool);
|
||||
}
|
||||
}
|
||||
|
||||
// Token: 0x0600237D RID: 9085 RVA: 0x00002050 File Offset: 0x00000250
|
||||
[Token(Token = "0x600237D")]
|
||||
[Address(RVA = "0xC0C4B0", Offset = "0xC0B4B0", VA = "0x180C0C4B0", Slot = "4")]
|
||||
public void OnCompleted(Action continuation)
|
||||
{
|
||||
}
|
||||
|
||||
// Token: 0x0600237E RID: 9086 RVA: 0x00002050 File Offset: 0x00000250
|
||||
[Token(Token = "0x600237E")]
|
||||
[Address(RVA = "0x4242D0", Offset = "0x4232D0", VA = "0x1804242D0")]
|
||||
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: 0x020003F9 RID: 1017
|
||||
[Token(Token = "0x20003F9")]
|
||||
[ComVisible(true)]
|
||||
[Serializable]
|
||||
public enum CryptoStreamMode
|
||||
{
|
||||
/// <summary>Read access to a cryptographic stream.</summary>
|
||||
// Token: 0x040013E1 RID: 5089
|
||||
[Token(Token = "0x40013E1")]
|
||||
Read,
|
||||
/// <summary>Write access to a cryptographic stream.</summary>
|
||||
// Token: 0x040013E2 RID: 5090
|
||||
[Token(Token = "0x40013E2")]
|
||||
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: 0x020003F5 RID: 1013
|
||||
[Token(Token = "0x20003F5")]
|
||||
[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: 0x06002349 RID: 9033 RVA: 0x00002050 File Offset: 0x00000250
|
||||
[Token(Token = "0x6002349")]
|
||||
[Address(RVA = "0xC036A0", Offset = "0xC026A0", VA = "0x180C036A0")]
|
||||
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: 0x0600234A RID: 9034 RVA: 0x00002050 File Offset: 0x00000250
|
||||
[Token(Token = "0x600234A")]
|
||||
[Address(RVA = "0xC03670", Offset = "0xC02670", VA = "0x180C03670")]
|
||||
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: 0x0600234B RID: 9035 RVA: 0x00002050 File Offset: 0x00000250
|
||||
[Token(Token = "0x600234B")]
|
||||
[Address(RVA = "0xC03730", Offset = "0xC02730", VA = "0x180C03730")]
|
||||
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: 0x0600234C RID: 9036 RVA: 0x00002050 File Offset: 0x00000250
|
||||
[Token(Token = "0x600234C")]
|
||||
[Address(RVA = "0xC03700", Offset = "0xC02700", VA = "0x180C03700")]
|
||||
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: 0x0600234D RID: 9037 RVA: 0x00002050 File Offset: 0x00000250
|
||||
[Token(Token = "0x600234D")]
|
||||
[Address(RVA = "0xC037D0", Offset = "0xC027D0", VA = "0x180C037D0")]
|
||||
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: 0x0600234E RID: 9038 RVA: 0x00002050 File Offset: 0x00000250
|
||||
[Token(Token = "0x600234E")]
|
||||
[Address(RVA = "0x7241B0", Offset = "0x7231B0", VA = "0x1807241B0")]
|
||||
protected CryptographicException(SerializationInfo info, StreamingContext context)
|
||||
{
|
||||
}
|
||||
|
||||
// Token: 0x0600234F RID: 9039 RVA: 0x00002050 File Offset: 0x00000250
|
||||
[Token(Token = "0x600234F")]
|
||||
[Address(RVA = "0xC03610", Offset = "0xC02610", VA = "0x180C03610")]
|
||||
private static void ThrowCryptographicException(int hr)
|
||||
{
|
||||
}
|
||||
|
||||
// Token: 0x040013CB RID: 5067
|
||||
[Token(Token = "0x40013CB")]
|
||||
private const int FORMAT_MESSAGE_IGNORE_INSERTS = 512;
|
||||
|
||||
// Token: 0x040013CC RID: 5068
|
||||
[Token(Token = "0x40013CC")]
|
||||
private const int FORMAT_MESSAGE_FROM_SYSTEM = 4096;
|
||||
|
||||
// Token: 0x040013CD RID: 5069
|
||||
[Token(Token = "0x40013CD")]
|
||||
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: 0x020003F6 RID: 1014
|
||||
[Token(Token = "0x20003F6")]
|
||||
[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: 0x06002350 RID: 9040 RVA: 0x00002050 File Offset: 0x00000250
|
||||
[Token(Token = "0x6002350")]
|
||||
[Address(RVA = "0xC03920", Offset = "0xC02920", VA = "0x180C03920")]
|
||||
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: 0x06002351 RID: 9041 RVA: 0x00002050 File Offset: 0x00000250
|
||||
[Token(Token = "0x6002351")]
|
||||
[Address(RVA = "0xC03990", Offset = "0xC02990", VA = "0x180C03990")]
|
||||
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: 0x06002352 RID: 9042 RVA: 0x00002050 File Offset: 0x00000250
|
||||
[Token(Token = "0x6002352")]
|
||||
[Address(RVA = "0xC03870", Offset = "0xC02870", VA = "0x180C03870")]
|
||||
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: 0x06002353 RID: 9043 RVA: 0x00002050 File Offset: 0x00000250
|
||||
[Token(Token = "0x6002353")]
|
||||
[Address(RVA = "0xC03830", Offset = "0xC02830", VA = "0x180C03830")]
|
||||
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: 0x06002354 RID: 9044 RVA: 0x00002050 File Offset: 0x00000250
|
||||
[Token(Token = "0x6002354")]
|
||||
[Address(RVA = "0x7241B0", Offset = "0x7231B0", VA = "0x1807241B0")]
|
||||
protected CryptographicUnexpectedOperationException(SerializationInfo info, StreamingContext context)
|
||||
{
|
||||
}
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,18 @@
|
||||
using System;
|
||||
using Cpp2IlInjected;
|
||||
|
||||
namespace System.Security.Cryptography
|
||||
{
|
||||
// Token: 0x02000438 RID: 1080
|
||||
[Token(Token = "0x2000438")]
|
||||
[Serializable]
|
||||
internal enum CspAlgorithmType
|
||||
{
|
||||
// Token: 0x040014AC RID: 5292
|
||||
[Token(Token = "0x40014AC")]
|
||||
Rsa,
|
||||
// Token: 0x040014AD RID: 5293
|
||||
[Token(Token = "0x40014AD")]
|
||||
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: 0x0200043D RID: 1085
|
||||
[Token(Token = "0x200043D")]
|
||||
[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: 0x060025AB RID: 9643 RVA: 0x00002050 File Offset: 0x00000250
|
||||
[Token(Token = "0x60025AB")]
|
||||
[Address(RVA = "0xC039D0", Offset = "0xC029D0", VA = "0x180C039D0")]
|
||||
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: 0x17000560 RID: 1376
|
||||
// (get) Token: 0x060025AC RID: 9644 RVA: 0x00017748 File Offset: 0x00015948
|
||||
[Token(Token = "0x17000560")]
|
||||
public bool Accessible
|
||||
{
|
||||
[Token(Token = "0x60025AC")]
|
||||
[Address(RVA = "0x4246A0", Offset = "0x4236A0", VA = "0x1804246A0")]
|
||||
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: 0x17000561 RID: 1377
|
||||
// (get) Token: 0x060025AD RID: 9645 RVA: 0x00002082 File Offset: 0x00000282
|
||||
[Token(Token = "0x17000561")]
|
||||
public CryptoKeySecurity CryptoKeySecurity
|
||||
{
|
||||
[Token(Token = "0x60025AD")]
|
||||
[Address(RVA = "0x4242C0", Offset = "0x4232C0", VA = "0x1804242C0")]
|
||||
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: 0x17000562 RID: 1378
|
||||
// (get) Token: 0x060025AE RID: 9646 RVA: 0x00017760 File Offset: 0x00015960
|
||||
[Token(Token = "0x17000562")]
|
||||
public bool Exportable
|
||||
{
|
||||
[Token(Token = "0x60025AE")]
|
||||
[Address(RVA = "0x4246A0", Offset = "0x4236A0", VA = "0x1804246A0")]
|
||||
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: 0x17000563 RID: 1379
|
||||
// (get) Token: 0x060025AF RID: 9647 RVA: 0x00017778 File Offset: 0x00015978
|
||||
[Token(Token = "0x17000563")]
|
||||
public bool HardwareDevice
|
||||
{
|
||||
[Token(Token = "0x60025AF")]
|
||||
[Address(RVA = "0x424690", Offset = "0x423690", VA = "0x180424690")]
|
||||
get
|
||||
{
|
||||
return default(bool);
|
||||
}
|
||||
}
|
||||
|
||||
/// <summary>Gets a key container name.</summary>
|
||||
/// <returns>The key container name.</returns>
|
||||
// Token: 0x17000564 RID: 1380
|
||||
// (get) Token: 0x060025B0 RID: 9648 RVA: 0x00002082 File Offset: 0x00000282
|
||||
[Token(Token = "0x17000564")]
|
||||
public string KeyContainerName
|
||||
{
|
||||
[Token(Token = "0x60025B0")]
|
||||
[Address(RVA = "0xC03A00", Offset = "0xC02A00", VA = "0x180C03A00")]
|
||||
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: 0x17000565 RID: 1381
|
||||
// (get) Token: 0x060025B1 RID: 9649 RVA: 0x00017790 File Offset: 0x00015990
|
||||
[Token(Token = "0x17000565")]
|
||||
public KeyNumber KeyNumber
|
||||
{
|
||||
[Token(Token = "0x60025B1")]
|
||||
[Address(RVA = "0xC03A20", Offset = "0xC02A20", VA = "0x180C03A20")]
|
||||
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: 0x17000566 RID: 1382
|
||||
// (get) Token: 0x060025B2 RID: 9650 RVA: 0x000177A8 File Offset: 0x000159A8
|
||||
[Token(Token = "0x17000566")]
|
||||
public bool MachineKeyStore
|
||||
{
|
||||
[Token(Token = "0x60025B2")]
|
||||
[Address(RVA = "0x424690", Offset = "0x423690", VA = "0x180424690")]
|
||||
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: 0x17000567 RID: 1383
|
||||
// (get) Token: 0x060025B3 RID: 9651 RVA: 0x000177C0 File Offset: 0x000159C0
|
||||
[Token(Token = "0x17000567")]
|
||||
public bool Protected
|
||||
{
|
||||
[Token(Token = "0x60025B3")]
|
||||
[Address(RVA = "0x424690", Offset = "0x423690", VA = "0x180424690")]
|
||||
get
|
||||
{
|
||||
return default(bool);
|
||||
}
|
||||
}
|
||||
|
||||
/// <summary>Gets the provider name of a key.</summary>
|
||||
/// <returns>The provider name.</returns>
|
||||
// Token: 0x17000568 RID: 1384
|
||||
// (get) Token: 0x060025B4 RID: 9652 RVA: 0x00002082 File Offset: 0x00000282
|
||||
[Token(Token = "0x17000568")]
|
||||
public string ProviderName
|
||||
{
|
||||
[Token(Token = "0x60025B4")]
|
||||
[Address(RVA = "0x423ED0", Offset = "0x422ED0", VA = "0x180423ED0")]
|
||||
get
|
||||
{
|
||||
return null;
|
||||
}
|
||||
}
|
||||
|
||||
/// <summary>Gets the provider type of a key.</summary>
|
||||
/// <returns>The provider type. The default is 1.</returns>
|
||||
// Token: 0x17000569 RID: 1385
|
||||
// (get) Token: 0x060025B5 RID: 9653 RVA: 0x000177D8 File Offset: 0x000159D8
|
||||
[Token(Token = "0x17000569")]
|
||||
public int ProviderType
|
||||
{
|
||||
[Token(Token = "0x60025B5")]
|
||||
[Address(RVA = "0xC03A40", Offset = "0xC02A40", VA = "0x180C03A40")]
|
||||
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: 0x1700056A RID: 1386
|
||||
// (get) Token: 0x060025B6 RID: 9654 RVA: 0x000177F0 File Offset: 0x000159F0
|
||||
[Token(Token = "0x1700056A")]
|
||||
public bool RandomlyGenerated
|
||||
{
|
||||
[Token(Token = "0x60025B6")]
|
||||
[Address(RVA = "0x497570", Offset = "0x496570", VA = "0x180497570")]
|
||||
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: 0x1700056B RID: 1387
|
||||
// (get) Token: 0x060025B7 RID: 9655 RVA: 0x00017808 File Offset: 0x00015A08
|
||||
[Token(Token = "0x1700056B")]
|
||||
public bool Removable
|
||||
{
|
||||
[Token(Token = "0x60025B7")]
|
||||
[Address(RVA = "0x424690", Offset = "0x423690", VA = "0x180424690")]
|
||||
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: 0x1700056C RID: 1388
|
||||
// (get) Token: 0x060025B8 RID: 9656 RVA: 0x00002082 File Offset: 0x00000282
|
||||
[Token(Token = "0x1700056C")]
|
||||
public string UniqueKeyContainerName
|
||||
{
|
||||
[Token(Token = "0x60025B8")]
|
||||
[Address(RVA = "0xC03A60", Offset = "0xC02A60", VA = "0x180C03A60")]
|
||||
get
|
||||
{
|
||||
return null;
|
||||
}
|
||||
}
|
||||
|
||||
// Token: 0x040014F6 RID: 5366
|
||||
[global::Cpp2IlInjected.FieldOffset(Offset = "0x10")]
|
||||
[Token(Token = "0x40014F6")]
|
||||
private CspParameters _params;
|
||||
|
||||
// Token: 0x040014F7 RID: 5367
|
||||
[global::Cpp2IlInjected.FieldOffset(Offset = "0x18")]
|
||||
[Token(Token = "0x40014F7")]
|
||||
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: 0x020003F8 RID: 1016
|
||||
[Token(Token = "0x20003F8")]
|
||||
[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: 0x17000502 RID: 1282
|
||||
// (get) Token: 0x06002355 RID: 9045 RVA: 0x00016B90 File Offset: 0x00014D90
|
||||
// (set) Token: 0x06002356 RID: 9046 RVA: 0x00002050 File Offset: 0x00000250
|
||||
[Token(Token = "0x17000502")]
|
||||
public CspProviderFlags Flags
|
||||
{
|
||||
[Token(Token = "0x6002355")]
|
||||
[Address(RVA = "0x4B5010", Offset = "0x4B4010", VA = "0x1804B5010")]
|
||||
get
|
||||
{
|
||||
return CspProviderFlags.NoFlags;
|
||||
}
|
||||
[Token(Token = "0x6002356")]
|
||||
[Address(RVA = "0xC03DA0", Offset = "0xC02DA0", VA = "0x180C03DA0")]
|
||||
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: 0x17000503 RID: 1283
|
||||
// (get) Token: 0x06002357 RID: 9047 RVA: 0x00002082 File Offset: 0x00000282
|
||||
// (set) Token: 0x06002358 RID: 9048 RVA: 0x00002050 File Offset: 0x00000250
|
||||
[Token(Token = "0x17000503")]
|
||||
public CryptoKeySecurity CryptoKeySecurity
|
||||
{
|
||||
[Token(Token = "0x6002357")]
|
||||
[Address(RVA = "0x4157E0", Offset = "0x4147E0", VA = "0x1804157E0")]
|
||||
get
|
||||
{
|
||||
return null;
|
||||
}
|
||||
[Token(Token = "0x6002358")]
|
||||
[Address(RVA = "0x415830", Offset = "0x414830", VA = "0x180415830")]
|
||||
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: 0x17000504 RID: 1284
|
||||
// (get) Token: 0x06002359 RID: 9049 RVA: 0x00002082 File Offset: 0x00000282
|
||||
// (set) Token: 0x0600235A RID: 9050 RVA: 0x00002050 File Offset: 0x00000250
|
||||
[Token(Token = "0x17000504")]
|
||||
public SecureString KeyPassword
|
||||
{
|
||||
[Token(Token = "0x6002359")]
|
||||
[Address(RVA = "0x41CEF0", Offset = "0x41BEF0", VA = "0x18041CEF0")]
|
||||
get
|
||||
{
|
||||
return null;
|
||||
}
|
||||
[Token(Token = "0x600235A")]
|
||||
[Address(RVA = "0xC03E80", Offset = "0xC02E80", VA = "0x180C03E80")]
|
||||
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: 0x17000505 RID: 1285
|
||||
// (get) Token: 0x0600235B RID: 9051 RVA: 0x00016BA8 File Offset: 0x00014DA8
|
||||
// (set) Token: 0x0600235C RID: 9052 RVA: 0x00002050 File Offset: 0x00000250
|
||||
[Token(Token = "0x17000505")]
|
||||
public IntPtr ParentWindowHandle
|
||||
{
|
||||
[Token(Token = "0x600235B")]
|
||||
[Address(RVA = "0x417680", Offset = "0x416680", VA = "0x180417680")]
|
||||
get
|
||||
{
|
||||
return 0;
|
||||
}
|
||||
[Token(Token = "0x600235C")]
|
||||
[Address(RVA = "0xC03EE0", Offset = "0xC02EE0", VA = "0x180C03EE0")]
|
||||
set
|
||||
{
|
||||
}
|
||||
}
|
||||
|
||||
/// <summary>Initializes a new instance of the <see cref="T:System.Security.Cryptography.CspParameters" /> class.</summary>
|
||||
// Token: 0x0600235D RID: 9053 RVA: 0x00002050 File Offset: 0x00000250
|
||||
[Token(Token = "0x600235D")]
|
||||
[Address(RVA = "0xC03C40", Offset = "0xC02C40", VA = "0x180C03C40")]
|
||||
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: 0x0600235E RID: 9054 RVA: 0x00002050 File Offset: 0x00000250
|
||||
[Token(Token = "0x600235E")]
|
||||
[Address(RVA = "0xC03CF0", Offset = "0xC02CF0", VA = "0x180C03CF0")]
|
||||
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: 0x0600235F RID: 9055 RVA: 0x00002050 File Offset: 0x00000250
|
||||
[Token(Token = "0x600235F")]
|
||||
[Address(RVA = "0xC03AB0", Offset = "0xC02AB0", VA = "0x180C03AB0")]
|
||||
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: 0x06002360 RID: 9056 RVA: 0x00002050 File Offset: 0x00000250
|
||||
[Token(Token = "0x6002360")]
|
||||
[Address(RVA = "0xC03D40", Offset = "0xC02D40", VA = "0x180C03D40")]
|
||||
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: 0x06002361 RID: 9057 RVA: 0x00002050 File Offset: 0x00000250
|
||||
[Token(Token = "0x6002361")]
|
||||
[Address(RVA = "0xC03B00", Offset = "0xC02B00", VA = "0x180C03B00")]
|
||||
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: 0x06002362 RID: 9058 RVA: 0x00002050 File Offset: 0x00000250
|
||||
[Token(Token = "0x6002362")]
|
||||
[Address(RVA = "0xC03BD0", Offset = "0xC02BD0", VA = "0x180C03BD0")]
|
||||
public CspParameters(int providerType, string providerName, string keyContainerName, CryptoKeySecurity cryptoKeySecurity, IntPtr parentWindowHandle)
|
||||
{
|
||||
}
|
||||
|
||||
// Token: 0x06002363 RID: 9059 RVA: 0x00002050 File Offset: 0x00000250
|
||||
[Token(Token = "0x6002363")]
|
||||
[Address(RVA = "0xC03B70", Offset = "0xC02B70", VA = "0x180C03B70")]
|
||||
internal CspParameters(int providerType, string providerName, string keyContainerName, CspProviderFlags flags)
|
||||
{
|
||||
}
|
||||
|
||||
// Token: 0x06002364 RID: 9060 RVA: 0x00002050 File Offset: 0x00000250
|
||||
[Token(Token = "0x6002364")]
|
||||
[Address(RVA = "0xC03C80", Offset = "0xC02C80", VA = "0x180C03C80")]
|
||||
internal CspParameters(CspParameters parameters)
|
||||
{
|
||||
}
|
||||
|
||||
/// <summary>Represents the provider type code for <see cref="T:System.Security.Cryptography.CspParameters" />.</summary>
|
||||
// Token: 0x040013D8 RID: 5080
|
||||
[global::Cpp2IlInjected.FieldOffset(Offset = "0x10")]
|
||||
[Token(Token = "0x40013D8")]
|
||||
public int ProviderType;
|
||||
|
||||
/// <summary>Represents the provider name for <see cref="T:System.Security.Cryptography.CspParameters" />.</summary>
|
||||
// Token: 0x040013D9 RID: 5081
|
||||
[global::Cpp2IlInjected.FieldOffset(Offset = "0x18")]
|
||||
[Token(Token = "0x40013D9")]
|
||||
public string ProviderName;
|
||||
|
||||
/// <summary>Represents the key container name for <see cref="T:System.Security.Cryptography.CspParameters" />.</summary>
|
||||
// Token: 0x040013DA RID: 5082
|
||||
[global::Cpp2IlInjected.FieldOffset(Offset = "0x20")]
|
||||
[Token(Token = "0x40013DA")]
|
||||
public string KeyContainerName;
|
||||
|
||||
/// <summary>Specifies whether an asymmetric key is created as a signature key or an exchange key.</summary>
|
||||
// Token: 0x040013DB RID: 5083
|
||||
[global::Cpp2IlInjected.FieldOffset(Offset = "0x28")]
|
||||
[Token(Token = "0x40013DB")]
|
||||
public int KeyNumber;
|
||||
|
||||
// Token: 0x040013DC RID: 5084
|
||||
[global::Cpp2IlInjected.FieldOffset(Offset = "0x2C")]
|
||||
[Token(Token = "0x40013DC")]
|
||||
private int m_flags;
|
||||
|
||||
// Token: 0x040013DD RID: 5085
|
||||
[global::Cpp2IlInjected.FieldOffset(Offset = "0x30")]
|
||||
[Token(Token = "0x40013DD")]
|
||||
private CryptoKeySecurity m_cryptoKeySecurity;
|
||||
|
||||
// Token: 0x040013DE RID: 5086
|
||||
[global::Cpp2IlInjected.FieldOffset(Offset = "0x38")]
|
||||
[Token(Token = "0x40013DE")]
|
||||
private SecureString m_keyPassword;
|
||||
|
||||
// Token: 0x040013DF RID: 5087
|
||||
[global::Cpp2IlInjected.FieldOffset(Offset = "0x40")]
|
||||
[Token(Token = "0x40013DF")]
|
||||
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: 0x020003F7 RID: 1015
|
||||
[Token(Token = "0x20003F7")]
|
||||
[Flags]
|
||||
[ComVisible(true)]
|
||||
[Serializable]
|
||||
public enum CspProviderFlags
|
||||
{
|
||||
/// <summary>Do not specify any settings.</summary>
|
||||
// Token: 0x040013CF RID: 5071
|
||||
[Token(Token = "0x40013CF")]
|
||||
NoFlags = 0,
|
||||
/// <summary>Use key information from the computer's key store.</summary>
|
||||
// Token: 0x040013D0 RID: 5072
|
||||
[Token(Token = "0x40013D0")]
|
||||
UseMachineKeyStore = 1,
|
||||
/// <summary>Use key information from the default key container.</summary>
|
||||
// Token: 0x040013D1 RID: 5073
|
||||
[Token(Token = "0x40013D1")]
|
||||
UseDefaultKeyContainer = 2,
|
||||
/// <summary>Use key information that cannot be exported.</summary>
|
||||
// Token: 0x040013D2 RID: 5074
|
||||
[Token(Token = "0x40013D2")]
|
||||
UseNonExportableKey = 4,
|
||||
/// <summary>Use key information from the current key.</summary>
|
||||
// Token: 0x040013D3 RID: 5075
|
||||
[Token(Token = "0x40013D3")]
|
||||
UseExistingKey = 8,
|
||||
/// <summary>Allow a key to be exported for archival or recovery.</summary>
|
||||
// Token: 0x040013D4 RID: 5076
|
||||
[Token(Token = "0x40013D4")]
|
||||
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: 0x040013D5 RID: 5077
|
||||
[Token(Token = "0x40013D5")]
|
||||
UseUserProtectedKey = 32,
|
||||
/// <summary>Prevent the CSP from displaying any user interface (UI) for this context.</summary>
|
||||
// Token: 0x040013D6 RID: 5078
|
||||
[Token(Token = "0x40013D6")]
|
||||
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: 0x040013D7 RID: 5079
|
||||
[Token(Token = "0x40013D7")]
|
||||
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: 0x020003FF RID: 1023
|
||||
[Token(Token = "0x20003FF")]
|
||||
[ComVisible(true)]
|
||||
public abstract class DES : SymmetricAlgorithm
|
||||
{
|
||||
/// <summary>Initializes a new instance of the <see cref="T:System.Security.Cryptography.DES" /> class.</summary>
|
||||
// Token: 0x06002388 RID: 9096 RVA: 0x00002050 File Offset: 0x00000250
|
||||
[Token(Token = "0x6002388")]
|
||||
[Address(RVA = "0xC06620", Offset = "0xC05620", VA = "0x180C06620")]
|
||||
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: 0x1700050D RID: 1293
|
||||
// (get) Token: 0x06002389 RID: 9097 RVA: 0x00002082 File Offset: 0x00000282
|
||||
// (set) Token: 0x0600238A RID: 9098 RVA: 0x00002050 File Offset: 0x00000250
|
||||
[Token(Token = "0x1700050D")]
|
||||
public override byte[] Key
|
||||
{
|
||||
[Token(Token = "0x6002389")]
|
||||
[Address(RVA = "0xC066C0", Offset = "0xC056C0", VA = "0x180C066C0", Slot = "12")]
|
||||
get
|
||||
{
|
||||
return null;
|
||||
}
|
||||
[Token(Token = "0x600238A")]
|
||||
[Address(RVA = "0xC067C0", Offset = "0xC057C0", VA = "0x180C067C0", 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: 0x0600238B RID: 9099 RVA: 0x00002082 File Offset: 0x00000282
|
||||
[Token(Token = "0x600238B")]
|
||||
[Address(RVA = "0xC05F60", Offset = "0xC04F60", VA = "0x180C05F60")]
|
||||
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: 0x0600238C RID: 9100 RVA: 0x00002082 File Offset: 0x00000282
|
||||
[Token(Token = "0x600238C")]
|
||||
[Address(RVA = "0xC05FB0", Offset = "0xC04FB0", VA = "0x180C05FB0")]
|
||||
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: 0x0600238D RID: 9101 RVA: 0x00016CB0 File Offset: 0x00014EB0
|
||||
[Token(Token = "0x600238D")]
|
||||
[Address(RVA = "0xC06230", Offset = "0xC05230", VA = "0x180C06230")]
|
||||
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: 0x0600238E RID: 9102 RVA: 0x00016CC8 File Offset: 0x00014EC8
|
||||
[Token(Token = "0x600238E")]
|
||||
[Address(RVA = "0xC06060", Offset = "0xC05060", VA = "0x180C06060")]
|
||||
public static bool IsSemiWeakKey(byte[] rgbKey)
|
||||
{
|
||||
return default(bool);
|
||||
}
|
||||
|
||||
// Token: 0x0600238F RID: 9103 RVA: 0x00016CE0 File Offset: 0x00014EE0
|
||||
[Token(Token = "0x600238F")]
|
||||
[Address(RVA = "0xC06040", Offset = "0xC05040", VA = "0x180C06040")]
|
||||
private static bool IsLegalKeySize(byte[] rgbKey)
|
||||
{
|
||||
return default(bool);
|
||||
}
|
||||
|
||||
// Token: 0x06002390 RID: 9104 RVA: 0x00016CF8 File Offset: 0x00014EF8
|
||||
[Token(Token = "0x6002390")]
|
||||
[Address(RVA = "0xC06370", Offset = "0xC05370", VA = "0x180C06370")]
|
||||
private static ulong QuadWordFromBigEndian(byte[] block)
|
||||
{
|
||||
return 0UL;
|
||||
}
|
||||
|
||||
// Token: 0x0400140B RID: 5131
|
||||
[Token(Token = "0x400140B")]
|
||||
private static KeySizes[] s_legalBlockSizes;
|
||||
|
||||
// Token: 0x0400140C RID: 5132
|
||||
[Token(Token = "0x400140C")]
|
||||
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: 0x02000400 RID: 1024
|
||||
[Token(Token = "0x2000400")]
|
||||
[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: 0x06002392 RID: 9106 RVA: 0x00002050 File Offset: 0x00000250
|
||||
[Token(Token = "0x6002392")]
|
||||
[Address(RVA = "0xC04380", Offset = "0xC03380", VA = "0x180C04380")]
|
||||
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: 0x06002393 RID: 9107 RVA: 0x00002082 File Offset: 0x00000282
|
||||
[Token(Token = "0x6002393")]
|
||||
[Address(RVA = "0xC04060", Offset = "0xC03060", VA = "0x180C04060", 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: 0x06002394 RID: 9108 RVA: 0x00002082 File Offset: 0x00000282
|
||||
[Token(Token = "0x6002394")]
|
||||
[Address(RVA = "0xC03EF0", Offset = "0xC02EF0", VA = "0x180C03EF0", 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: 0x06002395 RID: 9109 RVA: 0x00002050 File Offset: 0x00000250
|
||||
[Token(Token = "0x6002395")]
|
||||
[Address(RVA = "0xC04260", Offset = "0xC03260", VA = "0x180C04260", 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: 0x06002396 RID: 9110 RVA: 0x00002050 File Offset: 0x00000250
|
||||
[Token(Token = "0x6002396")]
|
||||
[Address(RVA = "0xC041D0", Offset = "0xC031D0", VA = "0x180C041D0", Slot = "27")]
|
||||
public override void GenerateIV()
|
||||
{
|
||||
}
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,124 @@
|
||||
using System;
|
||||
using Cpp2IlInjected;
|
||||
using Mono.Security.Cryptography;
|
||||
|
||||
namespace System.Security.Cryptography
|
||||
{
|
||||
// Token: 0x0200043E RID: 1086
|
||||
[Token(Token = "0x200043E")]
|
||||
internal class DESTransform : SymmetricTransform
|
||||
{
|
||||
// Token: 0x060025B9 RID: 9657 RVA: 0x00002050 File Offset: 0x00000250
|
||||
[Token(Token = "0x60025B9")]
|
||||
[Address(RVA = "0xC05C30", Offset = "0xC04C30", VA = "0x180C05C30")]
|
||||
internal DESTransform(SymmetricAlgorithm symmAlgo, bool encryption, byte[] key, byte[] iv)
|
||||
{
|
||||
}
|
||||
|
||||
// Token: 0x060025BA RID: 9658 RVA: 0x00017820 File Offset: 0x00015A20
|
||||
[Token(Token = "0x60025BA")]
|
||||
[Address(RVA = "0xC04660", Offset = "0xC03660", VA = "0x180C04660")]
|
||||
private uint CipherFunct(uint r, int n)
|
||||
{
|
||||
return 0U;
|
||||
}
|
||||
|
||||
// Token: 0x060025BB RID: 9659 RVA: 0x00002050 File Offset: 0x00000250
|
||||
[Token(Token = "0x60025BB")]
|
||||
[Address(RVA = "0xC04BC0", Offset = "0xC03BC0", VA = "0x180C04BC0")]
|
||||
internal static void Permutation(byte[] input, byte[] output, uint[] permTab, bool preSwap)
|
||||
{
|
||||
}
|
||||
|
||||
// Token: 0x060025BC RID: 9660 RVA: 0x00002050 File Offset: 0x00000250
|
||||
[Token(Token = "0x60025BC")]
|
||||
[Address(RVA = "0xC044D0", Offset = "0xC034D0", VA = "0x180C044D0")]
|
||||
private static void BSwap(byte[] byteBuff)
|
||||
{
|
||||
}
|
||||
|
||||
// Token: 0x060025BD RID: 9661 RVA: 0x00002050 File Offset: 0x00000250
|
||||
[Token(Token = "0x60025BD")]
|
||||
[Address(RVA = "0xC055C0", Offset = "0xC045C0", VA = "0x180C055C0")]
|
||||
internal void SetKey(byte[] key)
|
||||
{
|
||||
}
|
||||
|
||||
// Token: 0x060025BE RID: 9662 RVA: 0x00002050 File Offset: 0x00000250
|
||||
[Token(Token = "0x60025BE")]
|
||||
[Address(RVA = "0xC05110", Offset = "0xC04110", VA = "0x180C05110")]
|
||||
public void ProcessBlock(byte[] input, byte[] output)
|
||||
{
|
||||
}
|
||||
|
||||
// Token: 0x060025BF RID: 9663 RVA: 0x00002050 File Offset: 0x00000250
|
||||
[Token(Token = "0x60025BF")]
|
||||
[Address(RVA = "0xC04A20", Offset = "0xC03A20", VA = "0x180C04A20", Slot = "17")]
|
||||
protected override void ECB(byte[] input, byte[] output)
|
||||
{
|
||||
}
|
||||
|
||||
// Token: 0x060025C0 RID: 9664 RVA: 0x00002082 File Offset: 0x00000282
|
||||
[Token(Token = "0x60025C0")]
|
||||
[Address(RVA = "0xC04AF0", Offset = "0xC03AF0", VA = "0x180C04AF0")]
|
||||
internal static byte[] GetStrongKey()
|
||||
{
|
||||
return null;
|
||||
}
|
||||
|
||||
// Token: 0x040014F8 RID: 5368
|
||||
[Token(Token = "0x40014F8")]
|
||||
internal static readonly int KEY_BIT_SIZE;
|
||||
|
||||
// Token: 0x040014F9 RID: 5369
|
||||
[Token(Token = "0x40014F9")]
|
||||
internal static readonly int KEY_BYTE_SIZE;
|
||||
|
||||
// Token: 0x040014FA RID: 5370
|
||||
[Token(Token = "0x40014FA")]
|
||||
internal static readonly int BLOCK_BIT_SIZE;
|
||||
|
||||
// Token: 0x040014FB RID: 5371
|
||||
[Token(Token = "0x40014FB")]
|
||||
internal static readonly int BLOCK_BYTE_SIZE;
|
||||
|
||||
// Token: 0x040014FC RID: 5372
|
||||
[FieldOffset(Offset = "0x58")]
|
||||
[Token(Token = "0x40014FC")]
|
||||
private byte[] keySchedule;
|
||||
|
||||
// Token: 0x040014FD RID: 5373
|
||||
[FieldOffset(Offset = "0x60")]
|
||||
[Token(Token = "0x40014FD")]
|
||||
private byte[] byteBuff;
|
||||
|
||||
// Token: 0x040014FE RID: 5374
|
||||
[FieldOffset(Offset = "0x68")]
|
||||
[Token(Token = "0x40014FE")]
|
||||
private uint[] dwordBuff;
|
||||
|
||||
// Token: 0x040014FF RID: 5375
|
||||
[Token(Token = "0x40014FF")]
|
||||
private static readonly uint[] spBoxes;
|
||||
|
||||
// Token: 0x04001500 RID: 5376
|
||||
[Token(Token = "0x4001500")]
|
||||
private static readonly byte[] PC1;
|
||||
|
||||
// Token: 0x04001501 RID: 5377
|
||||
[Token(Token = "0x4001501")]
|
||||
private static readonly byte[] leftRotTotal;
|
||||
|
||||
// Token: 0x04001502 RID: 5378
|
||||
[Token(Token = "0x4001502")]
|
||||
private static readonly byte[] PC2;
|
||||
|
||||
// Token: 0x04001503 RID: 5379
|
||||
[Token(Token = "0x4001503")]
|
||||
internal static readonly uint[] ipTab;
|
||||
|
||||
// Token: 0x04001504 RID: 5380
|
||||
[Token(Token = "0x4001504")]
|
||||
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: 0x02000402 RID: 1026
|
||||
[Token(Token = "0x2000402")]
|
||||
[ComVisible(true)]
|
||||
public abstract class DSA : AsymmetricAlgorithm
|
||||
{
|
||||
/// <summary>Initializes a new instance of the <see cref="T:System.Security.Cryptography.DSA" /> class.</summary>
|
||||
// Token: 0x06002397 RID: 9111 RVA: 0x00002050 File Offset: 0x00000250
|
||||
[Token(Token = "0x6002397")]
|
||||
[Address(RVA = "0x412370", Offset = "0x411370", VA = "0x180412370")]
|
||||
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: 0x06002398 RID: 9112 RVA: 0x00002082 File Offset: 0x00000282
|
||||
[Token(Token = "0x6002398")]
|
||||
[Address(RVA = "0xC08300", Offset = "0xC07300", VA = "0x180C08300")]
|
||||
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: 0x06002399 RID: 9113 RVA: 0x00002082 File Offset: 0x00000282
|
||||
[Token(Token = "0x6002399")]
|
||||
[Address(RVA = "0xC08360", Offset = "0xC07360", VA = "0x180C08360")]
|
||||
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: 0x0600239A RID: 9114
|
||||
[Token(Token = "0x600239A")]
|
||||
[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: 0x0600239B RID: 9115
|
||||
[Token(Token = "0x600239B")]
|
||||
[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: 0x0600239C RID: 9116 RVA: 0x00002082 File Offset: 0x00000282
|
||||
[Token(Token = "0x600239C")]
|
||||
[Address(RVA = "0xC08D80", Offset = "0xC07D80", VA = "0x180C08D80", 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: 0x0600239D RID: 9117 RVA: 0x00002082 File Offset: 0x00000282
|
||||
[Token(Token = "0x600239D")]
|
||||
[Address(RVA = "0xC08DC0", Offset = "0xC07DC0", VA = "0x180C08DC0", 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: 0x0600239E RID: 9118 RVA: 0x00002082 File Offset: 0x00000282
|
||||
[Token(Token = "0x600239E")]
|
||||
[Address(RVA = "0xC08E00", Offset = "0xC07E00", VA = "0x180C08E00")]
|
||||
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: 0x0600239F RID: 9119 RVA: 0x00002082 File Offset: 0x00000282
|
||||
[Token(Token = "0x600239F")]
|
||||
[Address(RVA = "0xC08EB0", Offset = "0xC07EB0", VA = "0x180C08EB0", 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: 0x060023A0 RID: 9120 RVA: 0x00002082 File Offset: 0x00000282
|
||||
[Token(Token = "0x60023A0")]
|
||||
[Address(RVA = "0xC09030", Offset = "0xC08030", VA = "0x180C09030", 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: 0x060023A1 RID: 9121 RVA: 0x00016D10 File Offset: 0x00014F10
|
||||
[Token(Token = "0x60023A1")]
|
||||
[Address(RVA = "0xC095F0", Offset = "0xC085F0", VA = "0x180C095F0")]
|
||||
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: 0x060023A2 RID: 9122 RVA: 0x00016D28 File Offset: 0x00014F28
|
||||
[Token(Token = "0x60023A2")]
|
||||
[Address(RVA = "0xC09430", Offset = "0xC08430", VA = "0x180C09430", 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: 0x060023A3 RID: 9123 RVA: 0x00016D40 File Offset: 0x00014F40
|
||||
[Token(Token = "0x60023A3")]
|
||||
[Address(RVA = "0xC096B0", Offset = "0xC086B0", VA = "0x180C096B0", 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: 0x060023A4 RID: 9124 RVA: 0x00002050 File Offset: 0x00000250
|
||||
[Token(Token = "0x60023A4")]
|
||||
[Address(RVA = "0xC08460", Offset = "0xC07460", VA = "0x180C08460", 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: 0x060023A5 RID: 9125 RVA: 0x00002082 File Offset: 0x00000282
|
||||
[Token(Token = "0x60023A5")]
|
||||
[Address(RVA = "0xC09100", Offset = "0xC08100", VA = "0x180C09100", 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: 0x060023A6 RID: 9126
|
||||
[Token(Token = "0x60023A6")]
|
||||
[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: 0x060023A7 RID: 9127
|
||||
[Token(Token = "0x60023A7")]
|
||||
[Address(Slot = "22")]
|
||||
public abstract void ImportParameters(DSAParameters parameters);
|
||||
|
||||
// Token: 0x060023A8 RID: 9128 RVA: 0x00002082 File Offset: 0x00000282
|
||||
[Token(Token = "0x60023A8")]
|
||||
[Address(RVA = "0xC083F0", Offset = "0xC073F0", VA = "0x180C083F0")]
|
||||
private static Exception DerivedClassMustOverride()
|
||||
{
|
||||
return null;
|
||||
}
|
||||
|
||||
// Token: 0x060023A9 RID: 9129 RVA: 0x00002082 File Offset: 0x00000282
|
||||
[Token(Token = "0x60023A9")]
|
||||
[Address(RVA = "0xC08D10", Offset = "0xC07D10", VA = "0x180C08D10")]
|
||||
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: 0x0200043F RID: 1087
|
||||
[Token(Token = "0x200043F")]
|
||||
[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: 0x060025C2 RID: 9666 RVA: 0x00002050 File Offset: 0x00000250
|
||||
[Token(Token = "0x60025C2")]
|
||||
[Address(RVA = "0xC07990", Offset = "0xC06990", VA = "0x180C07990")]
|
||||
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: 0x060025C3 RID: 9667 RVA: 0x00002050 File Offset: 0x00000250
|
||||
[Token(Token = "0x60025C3")]
|
||||
[Address(RVA = "0xC078B0", Offset = "0xC068B0", VA = "0x180C078B0")]
|
||||
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: 0x060025C4 RID: 9668 RVA: 0x00002050 File Offset: 0x00000250
|
||||
[Token(Token = "0x60025C4")]
|
||||
[Address(RVA = "0xC07870", Offset = "0xC06870", VA = "0x180C07870")]
|
||||
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: 0x060025C5 RID: 9669 RVA: 0x00002050 File Offset: 0x00000250
|
||||
[Token(Token = "0x60025C5")]
|
||||
[Address(RVA = "0xC07790", Offset = "0xC06790", VA = "0x180C07790")]
|
||||
public DSACryptoServiceProvider(int dwKeySize, CspParameters parameters)
|
||||
{
|
||||
}
|
||||
|
||||
// Token: 0x060025C6 RID: 9670 RVA: 0x00002050 File Offset: 0x00000250
|
||||
[Token(Token = "0x60025C6")]
|
||||
[Address(RVA = "0xC069A0", Offset = "0xC059A0", VA = "0x180C069A0")]
|
||||
private void Common(int dwKeySize, bool parameters)
|
||||
{
|
||||
}
|
||||
|
||||
// Token: 0x060025C7 RID: 9671 RVA: 0x00002050 File Offset: 0x00000250
|
||||
[Token(Token = "0x60025C7")]
|
||||
[Address(RVA = "0xC06BA0", Offset = "0xC05BA0", VA = "0x180C06BA0")]
|
||||
private void Common(CspParameters parameters)
|
||||
{
|
||||
}
|
||||
|
||||
// Token: 0x060025C8 RID: 9672 RVA: 0x00002050 File Offset: 0x00000250
|
||||
[Token(Token = "0x60025C8")]
|
||||
[Address(RVA = "0xC06DE0", Offset = "0xC05DE0", VA = "0x180C06DE0", 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: 0x1700056D RID: 1389
|
||||
// (get) Token: 0x060025C9 RID: 9673 RVA: 0x00002082 File Offset: 0x00000282
|
||||
[Token(Token = "0x1700056D")]
|
||||
public override string KeyExchangeAlgorithm
|
||||
{
|
||||
[Token(Token = "0x60025C9")]
|
||||
[Address(RVA = "0x4242C0", Offset = "0x4232C0", VA = "0x1804242C0", 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: 0x1700056E RID: 1390
|
||||
// (get) Token: 0x060025CA RID: 9674 RVA: 0x00017838 File Offset: 0x00015A38
|
||||
[Token(Token = "0x1700056E")]
|
||||
public override int KeySize
|
||||
{
|
||||
[Token(Token = "0x60025CA")]
|
||||
[Address(RVA = "0xC079C0", Offset = "0xC069C0", VA = "0x180C079C0", 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: 0x1700056F RID: 1391
|
||||
// (get) Token: 0x060025CB RID: 9675 RVA: 0x00017850 File Offset: 0x00015A50
|
||||
// (set) Token: 0x060025CC RID: 9676 RVA: 0x00002050 File Offset: 0x00000250
|
||||
[Token(Token = "0x1700056F")]
|
||||
public bool PersistKeyInCsp
|
||||
{
|
||||
[Token(Token = "0x60025CB")]
|
||||
[Address(RVA = "0x51F260", Offset = "0x51E260", VA = "0x18051F260")]
|
||||
get
|
||||
{
|
||||
return default(bool);
|
||||
}
|
||||
[Token(Token = "0x60025CC")]
|
||||
[Address(RVA = "0x51F2B0", Offset = "0x51E2B0", VA = "0x18051F2B0")]
|
||||
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: 0x17000570 RID: 1392
|
||||
// (get) Token: 0x060025CD RID: 9677 RVA: 0x00017868 File Offset: 0x00015A68
|
||||
[Token(Token = "0x17000570")]
|
||||
[ComVisible(false)]
|
||||
public bool PublicOnly
|
||||
{
|
||||
[Token(Token = "0x60025CD")]
|
||||
[Address(RVA = "0xC079F0", Offset = "0xC069F0", VA = "0x180C079F0")]
|
||||
get
|
||||
{
|
||||
return default(bool);
|
||||
}
|
||||
}
|
||||
|
||||
/// <summary>Gets the name of the signature algorithm.</summary>
|
||||
/// <returns>The name of the signature algorithm.</returns>
|
||||
// Token: 0x17000571 RID: 1393
|
||||
// (get) Token: 0x060025CE RID: 9678 RVA: 0x00002082 File Offset: 0x00000282
|
||||
[Token(Token = "0x17000571")]
|
||||
public override string SignatureAlgorithm
|
||||
{
|
||||
[Token(Token = "0x60025CE")]
|
||||
[Address(RVA = "0xC07A10", Offset = "0xC06A10", VA = "0x180C07A10", 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: 0x17000572 RID: 1394
|
||||
// (get) Token: 0x060025CF RID: 9679 RVA: 0x00017880 File Offset: 0x00015A80
|
||||
// (set) Token: 0x060025D0 RID: 9680 RVA: 0x00002050 File Offset: 0x00000250
|
||||
[Token(Token = "0x17000572")]
|
||||
public static bool UseMachineKeyStore
|
||||
{
|
||||
[Token(Token = "0x60025CF")]
|
||||
[Address(RVA = "0xC07A40", Offset = "0xC06A40", VA = "0x180C07A40")]
|
||||
get
|
||||
{
|
||||
return default(bool);
|
||||
}
|
||||
[Token(Token = "0x60025D0")]
|
||||
[Address(RVA = "0xC07A80", Offset = "0xC06A80", VA = "0x180C07A80")]
|
||||
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: 0x060025D1 RID: 9681 RVA: 0x00017898 File Offset: 0x00015A98
|
||||
[Token(Token = "0x60025D1")]
|
||||
[Address(RVA = "0xC06D00", Offset = "0xC05D00", VA = "0x180C06D00", 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: 0x060025D2 RID: 9682 RVA: 0x00002050 File Offset: 0x00000250
|
||||
[Token(Token = "0x60025D2")]
|
||||
[Address(RVA = "0xC072E0", Offset = "0xC062E0", VA = "0x180C072E0", 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: 0x060025D3 RID: 9683 RVA: 0x00002082 File Offset: 0x00000282
|
||||
[Token(Token = "0x60025D3")]
|
||||
[Address(RVA = "0xC06C60", Offset = "0xC05C60", VA = "0x180C06C60", 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: 0x060025D4 RID: 9684 RVA: 0x00002082 File Offset: 0x00000282
|
||||
[Token(Token = "0x60025D4")]
|
||||
[Address(RVA = "0xC07490", Offset = "0xC06490", VA = "0x180C07490")]
|
||||
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: 0x060025D5 RID: 9685 RVA: 0x00002082 File Offset: 0x00000282
|
||||
[Token(Token = "0x60025D5")]
|
||||
[Address(RVA = "0xC07410", Offset = "0xC06410", VA = "0x180C07410")]
|
||||
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: 0x060025D6 RID: 9686 RVA: 0x00002082 File Offset: 0x00000282
|
||||
[Token(Token = "0x60025D6")]
|
||||
[Address(RVA = "0xC073B0", Offset = "0xC063B0", VA = "0x180C073B0")]
|
||||
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: 0x060025D7 RID: 9687 RVA: 0x00002082 File Offset: 0x00000282
|
||||
[Token(Token = "0x60025D7")]
|
||||
[Address(RVA = "0xC074F0", Offset = "0xC064F0", VA = "0x180C074F0")]
|
||||
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: 0x060025D8 RID: 9688 RVA: 0x000178B0 File Offset: 0x00015AB0
|
||||
[Token(Token = "0x60025D8")]
|
||||
[Address(RVA = "0xC075E0", Offset = "0xC065E0", VA = "0x180C075E0")]
|
||||
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: 0x060025D9 RID: 9689 RVA: 0x000178C8 File Offset: 0x00015AC8
|
||||
[Token(Token = "0x60025D9")]
|
||||
[Address(RVA = "0xC07650", Offset = "0xC06650", VA = "0x180C07650")]
|
||||
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: 0x060025DA RID: 9690 RVA: 0x000178E0 File Offset: 0x00015AE0
|
||||
[Token(Token = "0x60025DA")]
|
||||
[Address(RVA = "0xC07760", Offset = "0xC06760", VA = "0x180C07760", Slot = "14")]
|
||||
public override bool VerifySignature(byte[] rgbHash, byte[] rgbSignature)
|
||||
{
|
||||
return default(bool);
|
||||
}
|
||||
|
||||
// Token: 0x060025DB RID: 9691 RVA: 0x00002082 File Offset: 0x00000282
|
||||
[Token(Token = "0x60025DB")]
|
||||
[Address(RVA = "0xC06E60", Offset = "0xC05E60", VA = "0x180C06E60", Slot = "15")]
|
||||
protected override byte[] HashData(byte[] data, int offset, int count, HashAlgorithmName hashAlgorithm)
|
||||
{
|
||||
return null;
|
||||
}
|
||||
|
||||
// Token: 0x060025DC RID: 9692 RVA: 0x00002082 File Offset: 0x00000282
|
||||
[Token(Token = "0x60025DC")]
|
||||
[Address(RVA = "0xC06FA0", Offset = "0xC05FA0", VA = "0x180C06FA0", Slot = "16")]
|
||||
protected override byte[] HashData(Stream data, HashAlgorithmName hashAlgorithm)
|
||||
{
|
||||
return null;
|
||||
}
|
||||
|
||||
// Token: 0x060025DD RID: 9693 RVA: 0x00002050 File Offset: 0x00000250
|
||||
[Token(Token = "0x60025DD")]
|
||||
[Address(RVA = "0xC06C90", Offset = "0xC05C90", VA = "0x180C06C90", Slot = "5")]
|
||||
protected override void Dispose(bool disposing)
|
||||
{
|
||||
}
|
||||
|
||||
// Token: 0x060025DE RID: 9694 RVA: 0x00002050 File Offset: 0x00000250
|
||||
[Token(Token = "0x60025DE")]
|
||||
[Address(RVA = "0xC07330", Offset = "0xC06330", VA = "0x180C07330")]
|
||||
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: 0x17000573 RID: 1395
|
||||
// (get) Token: 0x060025DF RID: 9695 RVA: 0x00002082 File Offset: 0x00000282
|
||||
[Token(Token = "0x17000573")]
|
||||
[MonoTODO]
|
||||
[ComVisible(false)]
|
||||
[MonoTODO("call into KeyPairPersistence to get details")]
|
||||
public CspKeyContainerInfo CspKeyContainerInfo
|
||||
{
|
||||
[Token(Token = "0x60025DF")]
|
||||
[Address(RVA = "0x4242C0", Offset = "0x4232C0", VA = "0x1804242C0", 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: 0x060025E0 RID: 9696 RVA: 0x00002082 File Offset: 0x00000282
|
||||
[Token(Token = "0x60025E0")]
|
||||
[Address(RVA = "0xC06CE0", Offset = "0xC05CE0", VA = "0x180C06CE0", 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: 0x060025E1 RID: 9697 RVA: 0x00002050 File Offset: 0x00000250
|
||||
[Token(Token = "0x60025E1")]
|
||||
[Address(RVA = "0xC070C0", Offset = "0xC060C0", VA = "0x180C070C0", Slot = "24")]
|
||||
[ComVisible(false)]
|
||||
public void ImportCspBlob(byte[] keyBlob)
|
||||
{
|
||||
}
|
||||
|
||||
// Token: 0x04001505 RID: 5381
|
||||
[Token(Token = "0x4001505")]
|
||||
private const int PROV_DSS_DH = 13;
|
||||
|
||||
// Token: 0x04001506 RID: 5382
|
||||
[global::Cpp2IlInjected.FieldOffset(Offset = "0x20")]
|
||||
[Token(Token = "0x4001506")]
|
||||
private KeyPairPersistence store;
|
||||
|
||||
// Token: 0x04001507 RID: 5383
|
||||
[global::Cpp2IlInjected.FieldOffset(Offset = "0x28")]
|
||||
[Token(Token = "0x4001507")]
|
||||
private bool persistKey;
|
||||
|
||||
// Token: 0x04001508 RID: 5384
|
||||
[global::Cpp2IlInjected.FieldOffset(Offset = "0x29")]
|
||||
[Token(Token = "0x4001508")]
|
||||
private bool persisted;
|
||||
|
||||
// Token: 0x04001509 RID: 5385
|
||||
[global::Cpp2IlInjected.FieldOffset(Offset = "0x2A")]
|
||||
[Token(Token = "0x4001509")]
|
||||
private bool privateKeyExportable;
|
||||
|
||||
// Token: 0x0400150A RID: 5386
|
||||
[global::Cpp2IlInjected.FieldOffset(Offset = "0x2B")]
|
||||
[Token(Token = "0x400150A")]
|
||||
private bool m_disposed;
|
||||
|
||||
// Token: 0x0400150B RID: 5387
|
||||
[global::Cpp2IlInjected.FieldOffset(Offset = "0x30")]
|
||||
[Token(Token = "0x400150B")]
|
||||
private DSAManaged dsa;
|
||||
|
||||
// Token: 0x0400150C RID: 5388
|
||||
[Token(Token = "0x400150C")]
|
||||
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: 0x02000401 RID: 1025
|
||||
[Token(Token = "0x2000401")]
|
||||
[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: 0x0400140D RID: 5133
|
||||
[global::Cpp2IlInjected.FieldOffset(Offset = "0x0")]
|
||||
[Token(Token = "0x400140D")]
|
||||
public byte[] P;
|
||||
|
||||
/// <summary>Specifies the <see langword="Q" /> parameter for the <see cref="T:System.Security.Cryptography.DSA" /> algorithm.</summary>
|
||||
// Token: 0x0400140E RID: 5134
|
||||
[global::Cpp2IlInjected.FieldOffset(Offset = "0x8")]
|
||||
[Token(Token = "0x400140E")]
|
||||
public byte[] Q;
|
||||
|
||||
/// <summary>Specifies the <see langword="G" /> parameter for the <see cref="T:System.Security.Cryptography.DSA" /> algorithm.</summary>
|
||||
// Token: 0x0400140F RID: 5135
|
||||
[global::Cpp2IlInjected.FieldOffset(Offset = "0x10")]
|
||||
[Token(Token = "0x400140F")]
|
||||
public byte[] G;
|
||||
|
||||
/// <summary>Specifies the <see langword="Y" /> parameter for the <see cref="T:System.Security.Cryptography.DSA" /> algorithm.</summary>
|
||||
// Token: 0x04001410 RID: 5136
|
||||
[global::Cpp2IlInjected.FieldOffset(Offset = "0x18")]
|
||||
[Token(Token = "0x4001410")]
|
||||
public byte[] Y;
|
||||
|
||||
/// <summary>Specifies the <see langword="J" /> parameter for the <see cref="T:System.Security.Cryptography.DSA" /> algorithm.</summary>
|
||||
// Token: 0x04001411 RID: 5137
|
||||
[global::Cpp2IlInjected.FieldOffset(Offset = "0x20")]
|
||||
[Token(Token = "0x4001411")]
|
||||
public byte[] J;
|
||||
|
||||
/// <summary>Specifies the <see langword="X" /> parameter for the <see cref="T:System.Security.Cryptography.DSA" /> algorithm.</summary>
|
||||
// Token: 0x04001412 RID: 5138
|
||||
[global::Cpp2IlInjected.FieldOffset(Offset = "0x28")]
|
||||
[Token(Token = "0x4001412")]
|
||||
[NonSerialized]
|
||||
public byte[] X;
|
||||
|
||||
/// <summary>Specifies the seed for the <see cref="T:System.Security.Cryptography.DSA" /> algorithm.</summary>
|
||||
// Token: 0x04001413 RID: 5139
|
||||
[global::Cpp2IlInjected.FieldOffset(Offset = "0x30")]
|
||||
[Token(Token = "0x4001413")]
|
||||
public byte[] Seed;
|
||||
|
||||
/// <summary>Specifies the counter for the <see cref="T:System.Security.Cryptography.DSA" /> algorithm.</summary>
|
||||
// Token: 0x04001414 RID: 5140
|
||||
[global::Cpp2IlInjected.FieldOffset(Offset = "0x38")]
|
||||
[Token(Token = "0x4001414")]
|
||||
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: 0x02000403 RID: 1027
|
||||
[Token(Token = "0x2000403")]
|
||||
[ComVisible(true)]
|
||||
public class DSASignatureDeformatter : AsymmetricSignatureDeformatter
|
||||
{
|
||||
/// <summary>Initializes a new instance of the <see cref="T:System.Security.Cryptography.DSASignatureDeformatter" /> class.</summary>
|
||||
// Token: 0x060023AA RID: 9130 RVA: 0x00002050 File Offset: 0x00000250
|
||||
[Token(Token = "0x60023AA")]
|
||||
[Address(RVA = "0xC07E50", Offset = "0xC06E50", VA = "0x180C07E50")]
|
||||
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: 0x060023AB RID: 9131 RVA: 0x00002050 File Offset: 0x00000250
|
||||
[Token(Token = "0x60023AB")]
|
||||
[Address(RVA = "0xC07D40", Offset = "0xC06D40", VA = "0x180C07D40")]
|
||||
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: 0x060023AC RID: 9132 RVA: 0x00002050 File Offset: 0x00000250
|
||||
[Token(Token = "0x60023AC")]
|
||||
[Address(RVA = "0xC07B70", Offset = "0xC06B70", VA = "0x180C07B70", 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: 0x060023AD RID: 9133 RVA: 0x00002050 File Offset: 0x00000250
|
||||
[Token(Token = "0x60023AD")]
|
||||
[Address(RVA = "0xC07AC0", Offset = "0xC06AC0", VA = "0x180C07AC0", 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: 0x060023AE RID: 9134 RVA: 0x00016D58 File Offset: 0x00014F58
|
||||
[Token(Token = "0x60023AE")]
|
||||
[Address(RVA = "0xC07C30", Offset = "0xC06C30", VA = "0x180C07C30", Slot = "7")]
|
||||
public override bool VerifySignature(byte[] rgbHash, byte[] rgbSignature)
|
||||
{
|
||||
return default(bool);
|
||||
}
|
||||
|
||||
// Token: 0x04001415 RID: 5141
|
||||
[global::Cpp2IlInjected.FieldOffset(Offset = "0x10")]
|
||||
[Token(Token = "0x4001415")]
|
||||
private DSA _dsaKey;
|
||||
|
||||
// Token: 0x04001416 RID: 5142
|
||||
[global::Cpp2IlInjected.FieldOffset(Offset = "0x18")]
|
||||
[Token(Token = "0x4001416")]
|
||||
private string _oid;
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,17 @@
|
||||
using System;
|
||||
using Cpp2IlInjected;
|
||||
|
||||
namespace System.Security.Cryptography
|
||||
{
|
||||
// Token: 0x02000434 RID: 1076
|
||||
[Token(Token = "0x2000434")]
|
||||
internal class DSASignatureDescription : SignatureDescription
|
||||
{
|
||||
// Token: 0x06002550 RID: 9552 RVA: 0x00002050 File Offset: 0x00000250
|
||||
[Token(Token = "0x6002550")]
|
||||
[Address(RVA = "0xC07EB0", Offset = "0xC06EB0", VA = "0x180C07EB0")]
|
||||
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: 0x02000404 RID: 1028
|
||||
[Token(Token = "0x2000404")]
|
||||
[ComVisible(true)]
|
||||
public class DSASignatureFormatter : AsymmetricSignatureFormatter
|
||||
{
|
||||
/// <summary>Initializes a new instance of the <see cref="T:System.Security.Cryptography.DSASignatureFormatter" /> class.</summary>
|
||||
// Token: 0x060023AF RID: 9135 RVA: 0x00002050 File Offset: 0x00000250
|
||||
[Token(Token = "0x60023AF")]
|
||||
[Address(RVA = "0xC08190", Offset = "0xC07190", VA = "0x180C08190")]
|
||||
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: 0x060023B0 RID: 9136 RVA: 0x00002050 File Offset: 0x00000250
|
||||
[Token(Token = "0x60023B0")]
|
||||
[Address(RVA = "0xC081F0", Offset = "0xC071F0", VA = "0x180C081F0")]
|
||||
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: 0x060023B1 RID: 9137 RVA: 0x00002050 File Offset: 0x00000250
|
||||
[Token(Token = "0x60023B1")]
|
||||
[Address(RVA = "0xC080D0", Offset = "0xC070D0", VA = "0x180C080D0", 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: 0x060023B2 RID: 9138 RVA: 0x00002050 File Offset: 0x00000250
|
||||
[Token(Token = "0x60023B2")]
|
||||
[Address(RVA = "0xC08020", Offset = "0xC07020", VA = "0x180C08020", 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: 0x060023B3 RID: 9139 RVA: 0x00002082 File Offset: 0x00000282
|
||||
[Token(Token = "0x60023B3")]
|
||||
[Address(RVA = "0xC07F10", Offset = "0xC06F10", VA = "0x180C07F10", Slot = "7")]
|
||||
public override byte[] CreateSignature(byte[] rgbHash)
|
||||
{
|
||||
return null;
|
||||
}
|
||||
|
||||
// Token: 0x04001417 RID: 5143
|
||||
[global::Cpp2IlInjected.FieldOffset(Offset = "0x10")]
|
||||
[Token(Token = "0x4001417")]
|
||||
private DSA _dsaKey;
|
||||
|
||||
// Token: 0x04001418 RID: 5144
|
||||
[global::Cpp2IlInjected.FieldOffset(Offset = "0x18")]
|
||||
[Token(Token = "0x4001418")]
|
||||
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: 0x020003FE RID: 1022
|
||||
[Token(Token = "0x20003FE")]
|
||||
[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: 0x06002383 RID: 9091
|
||||
[Token(Token = "0x6002383")]
|
||||
[Address(Slot = "5")]
|
||||
public abstract byte[] GetBytes(int cb);
|
||||
|
||||
/// <summary>When overridden in a derived class, resets the state of the operation.</summary>
|
||||
// Token: 0x06002384 RID: 9092
|
||||
[Token(Token = "0x6002384")]
|
||||
[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: 0x06002385 RID: 9093 RVA: 0x00002050 File Offset: 0x00000250
|
||||
[Token(Token = "0x6002385")]
|
||||
[Address(RVA = "0xC097D0", Offset = "0xC087D0", VA = "0x180C097D0", 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: 0x06002386 RID: 9094 RVA: 0x00002050 File Offset: 0x00000250
|
||||
[Token(Token = "0x6002386")]
|
||||
[Address(RVA = "0x4242D0", Offset = "0x4232D0", VA = "0x1804242D0", 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: 0x06002387 RID: 9095 RVA: 0x00002050 File Offset: 0x00000250
|
||||
[Token(Token = "0x6002387")]
|
||||
[Address(RVA = "0x412370", Offset = "0x411370", VA = "0x180412370")]
|
||||
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: 0x020003F1 RID: 1009
|
||||
[Token(Token = "0x20003F1")]
|
||||
[ComVisible(true)]
|
||||
public class FromBase64Transform : ICryptoTransform, IDisposable
|
||||
{
|
||||
/// <summary>Initializes a new instance of the <see cref="T:System.Security.Cryptography.FromBase64Transform" /> class.</summary>
|
||||
// Token: 0x06002335 RID: 9013 RVA: 0x00002050 File Offset: 0x00000250
|
||||
[Token(Token = "0x6002335")]
|
||||
[Address(RVA = "0xC0A200", Offset = "0xC09200", VA = "0x180C0A200")]
|
||||
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: 0x06002336 RID: 9014 RVA: 0x00002050 File Offset: 0x00000250
|
||||
[Token(Token = "0x6002336")]
|
||||
[Address(RVA = "0xC0A250", Offset = "0xC09250", VA = "0x180C0A250")]
|
||||
public FromBase64Transform(FromBase64TransformMode whitespaces)
|
||||
{
|
||||
}
|
||||
|
||||
/// <summary>Gets the input block size.</summary>
|
||||
/// <returns>The size of the input data blocks in bytes.</returns>
|
||||
// Token: 0x170004FB RID: 1275
|
||||
// (get) Token: 0x06002337 RID: 9015 RVA: 0x00016AA0 File Offset: 0x00014CA0
|
||||
[Token(Token = "0x170004FB")]
|
||||
public int InputBlockSize
|
||||
{
|
||||
[Token(Token = "0x6002337")]
|
||||
[Address(RVA = "0x4E8690", Offset = "0x4E7690", VA = "0x1804E8690", Slot = "4")]
|
||||
get
|
||||
{
|
||||
return 0;
|
||||
}
|
||||
}
|
||||
|
||||
/// <summary>Gets the output block size.</summary>
|
||||
/// <returns>The size of the output data blocks in bytes.</returns>
|
||||
// Token: 0x170004FC RID: 1276
|
||||
// (get) Token: 0x06002338 RID: 9016 RVA: 0x00016AB8 File Offset: 0x00014CB8
|
||||
[Token(Token = "0x170004FC")]
|
||||
public int OutputBlockSize
|
||||
{
|
||||
[Token(Token = "0x6002338")]
|
||||
[Address(RVA = "0x4DB5B0", Offset = "0x4DA5B0", VA = "0x1804DB5B0", 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: 0x170004FD RID: 1277
|
||||
// (get) Token: 0x06002339 RID: 9017 RVA: 0x00016AD0 File Offset: 0x00014CD0
|
||||
[Token(Token = "0x170004FD")]
|
||||
public bool CanTransformMultipleBlocks
|
||||
{
|
||||
[Token(Token = "0x6002339")]
|
||||
[Address(RVA = "0x424690", Offset = "0x423690", VA = "0x180424690", 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: 0x170004FE RID: 1278
|
||||
// (get) Token: 0x0600233A RID: 9018 RVA: 0x00016AE8 File Offset: 0x00014CE8
|
||||
[Token(Token = "0x170004FE")]
|
||||
public virtual bool CanReuseTransform
|
||||
{
|
||||
[Token(Token = "0x600233A")]
|
||||
[Address(RVA = "0x4246A0", Offset = "0x4236A0", VA = "0x1804246A0", 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: 0x0600233B RID: 9019 RVA: 0x00016B00 File Offset: 0x00014D00
|
||||
[Token(Token = "0x600233B")]
|
||||
[Address(RVA = "0xC09B20", Offset = "0xC08B20", VA = "0x180C09B20", 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: 0x0600233C RID: 9020 RVA: 0x00002082 File Offset: 0x00000282
|
||||
[Token(Token = "0x600233C")]
|
||||
[Address(RVA = "0xC09EA0", Offset = "0xC08EA0", VA = "0x180C09EA0", Slot = "9")]
|
||||
public byte[] TransformFinalBlock(byte[] inputBuffer, int inputOffset, int inputCount)
|
||||
{
|
||||
return null;
|
||||
}
|
||||
|
||||
// Token: 0x0600233D RID: 9021 RVA: 0x00002082 File Offset: 0x00000282
|
||||
[Token(Token = "0x600233D")]
|
||||
[Address(RVA = "0xC098B0", Offset = "0xC088B0", VA = "0x180C098B0")]
|
||||
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: 0x0600233E RID: 9022 RVA: 0x00002050 File Offset: 0x00000250
|
||||
[Token(Token = "0x600233E")]
|
||||
[Address(RVA = "0xC09840", Offset = "0xC08840", VA = "0x180C09840", Slot = "10")]
|
||||
public void Dispose()
|
||||
{
|
||||
}
|
||||
|
||||
// Token: 0x0600233F RID: 9023 RVA: 0x00002050 File Offset: 0x00000250
|
||||
[Token(Token = "0x600233F")]
|
||||
[Address(RVA = "0x9AD5A0", Offset = "0x9AC5A0", VA = "0x1809AD5A0")]
|
||||
private void Reset()
|
||||
{
|
||||
}
|
||||
|
||||
/// <summary>Releases all resources used by the <see cref="T:System.Security.Cryptography.FromBase64Transform" />.</summary>
|
||||
// Token: 0x06002340 RID: 9024 RVA: 0x00002050 File Offset: 0x00000250
|
||||
[Token(Token = "0x6002340")]
|
||||
[Address(RVA = "0xC09840", Offset = "0xC08840", VA = "0x180C09840")]
|
||||
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: 0x06002341 RID: 9025 RVA: 0x00002050 File Offset: 0x00000250
|
||||
[Token(Token = "0x6002341")]
|
||||
[Address(RVA = "0xC09A60", Offset = "0xC08A60", VA = "0x180C09A60", 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: 0x06002342 RID: 9026 RVA: 0x00002050 File Offset: 0x00000250
|
||||
[Token(Token = "0x6002342")]
|
||||
[Address(RVA = "0xC09AA0", Offset = "0xC08AA0", VA = "0x180C09AA0", Slot = "1")]
|
||||
protected override void Finalize()
|
||||
{
|
||||
}
|
||||
|
||||
// Token: 0x040013B9 RID: 5049
|
||||
[global::Cpp2IlInjected.FieldOffset(Offset = "0x10")]
|
||||
[Token(Token = "0x40013B9")]
|
||||
private byte[] _inputBuffer;
|
||||
|
||||
// Token: 0x040013BA RID: 5050
|
||||
[global::Cpp2IlInjected.FieldOffset(Offset = "0x18")]
|
||||
[Token(Token = "0x40013BA")]
|
||||
private int _inputIndex;
|
||||
|
||||
// Token: 0x040013BB RID: 5051
|
||||
[global::Cpp2IlInjected.FieldOffset(Offset = "0x1C")]
|
||||
[Token(Token = "0x40013BB")]
|
||||
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: 0x020003EF RID: 1007
|
||||
[Token(Token = "0x20003EF")]
|
||||
[ComVisible(true)]
|
||||
[Serializable]
|
||||
public enum FromBase64TransformMode
|
||||
{
|
||||
/// <summary>White space should be ignored.</summary>
|
||||
// Token: 0x040013B7 RID: 5047
|
||||
[Token(Token = "0x40013B7")]
|
||||
IgnoreWhiteSpaces,
|
||||
/// <summary>White space should not be ignored.</summary>
|
||||
// Token: 0x040013B8 RID: 5048
|
||||
[Token(Token = "0x40013B8")]
|
||||
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: 0x02000406 RID: 1030
|
||||
[Token(Token = "0x2000406")]
|
||||
[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: 0x17000514 RID: 1300
|
||||
// (get) Token: 0x060023C8 RID: 9160 RVA: 0x00016E00 File Offset: 0x00015000
|
||||
// (set) Token: 0x060023C9 RID: 9161 RVA: 0x00002050 File Offset: 0x00000250
|
||||
[Token(Token = "0x17000514")]
|
||||
protected int BlockSizeValue
|
||||
{
|
||||
[Token(Token = "0x60023C8")]
|
||||
[Address(RVA = "0x4257C0", Offset = "0x4247C0", VA = "0x1804257C0")]
|
||||
get
|
||||
{
|
||||
return 0;
|
||||
}
|
||||
[Token(Token = "0x60023C9")]
|
||||
[Address(RVA = "0x4258B0", Offset = "0x4248B0", VA = "0x1804258B0")]
|
||||
set
|
||||
{
|
||||
}
|
||||
}
|
||||
|
||||
// Token: 0x060023CA RID: 9162 RVA: 0x00002050 File Offset: 0x00000250
|
||||
[Token(Token = "0x60023CA")]
|
||||
[Address(RVA = "0xC0B340", Offset = "0xC0A340", VA = "0x180C0B340")]
|
||||
private void UpdateIOPadBuffers()
|
||||
{
|
||||
}
|
||||
|
||||
// Token: 0x060023CB RID: 9163 RVA: 0x00002050 File Offset: 0x00000250
|
||||
[Token(Token = "0x60023CB")]
|
||||
[Address(RVA = "0xC0B220", Offset = "0xC0A220", VA = "0x180C0B220")]
|
||||
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: 0x17000515 RID: 1301
|
||||
// (get) Token: 0x060023CC RID: 9164 RVA: 0x00002082 File Offset: 0x00000282
|
||||
// (set) Token: 0x060023CD RID: 9165 RVA: 0x00002050 File Offset: 0x00000250
|
||||
[Token(Token = "0x17000515")]
|
||||
public override byte[] Key
|
||||
{
|
||||
[Token(Token = "0x60023CC")]
|
||||
[Address(RVA = "0xC0B4E0", Offset = "0xC0A4E0", VA = "0x180C0B4E0", Slot = "21")]
|
||||
get
|
||||
{
|
||||
return null;
|
||||
}
|
||||
[Token(Token = "0x60023CD")]
|
||||
[Address(RVA = "0xC0B600", Offset = "0xC0A600", VA = "0x180C0B600", 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: 0x17000516 RID: 1302
|
||||
// (get) Token: 0x060023CE RID: 9166 RVA: 0x00002082 File Offset: 0x00000282
|
||||
// (set) Token: 0x060023CF RID: 9167 RVA: 0x00002050 File Offset: 0x00000250
|
||||
[Token(Token = "0x17000516")]
|
||||
public string HashName
|
||||
{
|
||||
[Token(Token = "0x60023CE")]
|
||||
[Address(RVA = "0x41CEF0", Offset = "0x41BEF0", VA = "0x18041CEF0")]
|
||||
get
|
||||
{
|
||||
return null;
|
||||
}
|
||||
[Token(Token = "0x60023CF")]
|
||||
[Address(RVA = "0xC0B560", Offset = "0xC0A560", VA = "0x180C0B560")]
|
||||
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 <cryptoClass> element.</returns>
|
||||
// Token: 0x060023D0 RID: 9168 RVA: 0x00002082 File Offset: 0x00000282
|
||||
[Token(Token = "0x60023D0")]
|
||||
[Address(RVA = "0xC0AE60", Offset = "0xC09E60", VA = "0x180C0AE60")]
|
||||
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: 0x060023D1 RID: 9169 RVA: 0x00002082 File Offset: 0x00000282
|
||||
[Token(Token = "0x60023D1")]
|
||||
[Address(RVA = "0xC0ADD0", Offset = "0xC09DD0", VA = "0x180C0ADD0")]
|
||||
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: 0x060023D2 RID: 9170 RVA: 0x00002050 File Offset: 0x00000250
|
||||
[Token(Token = "0x60023D2")]
|
||||
[Address(RVA = "0xC0B2F0", Offset = "0xC0A2F0", VA = "0x180C0B2F0", 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: 0x060023D3 RID: 9171 RVA: 0x00002050 File Offset: 0x00000250
|
||||
[Token(Token = "0x60023D3")]
|
||||
[Address(RVA = "0xC0AFF0", Offset = "0xC09FF0", VA = "0x180C0AFF0", 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: 0x060023D4 RID: 9172 RVA: 0x00002082 File Offset: 0x00000282
|
||||
[Token(Token = "0x60023D4")]
|
||||
[Address(RVA = "0xC0B0A0", Offset = "0xC0A0A0", VA = "0x180C0B0A0", 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: 0x060023D5 RID: 9173 RVA: 0x00002050 File Offset: 0x00000250
|
||||
[Token(Token = "0x60023D5")]
|
||||
[Address(RVA = "0xC0AEB0", Offset = "0xC09EB0", VA = "0x180C0AEB0", Slot = "17")]
|
||||
protected override void Dispose(bool disposing)
|
||||
{
|
||||
}
|
||||
|
||||
// Token: 0x060023D6 RID: 9174 RVA: 0x00002082 File Offset: 0x00000282
|
||||
[Token(Token = "0x60023D6")]
|
||||
[Address(RVA = "0xC0AF90", Offset = "0xC09F90", VA = "0x180C0AF90")]
|
||||
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: 0x060023D7 RID: 9175 RVA: 0x00002050 File Offset: 0x00000250
|
||||
[Token(Token = "0x60023D7")]
|
||||
[Address(RVA = "0xC0B4D0", Offset = "0xC0A4D0", VA = "0x180C0B4D0")]
|
||||
protected HMAC()
|
||||
{
|
||||
}
|
||||
|
||||
// Token: 0x0400141D RID: 5149
|
||||
[global::Cpp2IlInjected.FieldOffset(Offset = "0x30")]
|
||||
[Token(Token = "0x400141D")]
|
||||
private int blockSizeValue;
|
||||
|
||||
// Token: 0x0400141E RID: 5150
|
||||
[global::Cpp2IlInjected.FieldOffset(Offset = "0x38")]
|
||||
[Token(Token = "0x400141E")]
|
||||
internal string m_hashName;
|
||||
|
||||
// Token: 0x0400141F RID: 5151
|
||||
[global::Cpp2IlInjected.FieldOffset(Offset = "0x40")]
|
||||
[Token(Token = "0x400141F")]
|
||||
internal HashAlgorithm m_hash1;
|
||||
|
||||
// Token: 0x04001420 RID: 5152
|
||||
[global::Cpp2IlInjected.FieldOffset(Offset = "0x48")]
|
||||
[Token(Token = "0x4001420")]
|
||||
internal HashAlgorithm m_hash2;
|
||||
|
||||
// Token: 0x04001421 RID: 5153
|
||||
[global::Cpp2IlInjected.FieldOffset(Offset = "0x50")]
|
||||
[Token(Token = "0x4001421")]
|
||||
private byte[] m_inner;
|
||||
|
||||
// Token: 0x04001422 RID: 5154
|
||||
[global::Cpp2IlInjected.FieldOffset(Offset = "0x58")]
|
||||
[Token(Token = "0x4001422")]
|
||||
private byte[] m_outer;
|
||||
|
||||
// Token: 0x04001423 RID: 5155
|
||||
[global::Cpp2IlInjected.FieldOffset(Offset = "0x60")]
|
||||
[Token(Token = "0x4001423")]
|
||||
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: 0x02000407 RID: 1031
|
||||
[Token(Token = "0x2000407")]
|
||||
[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: 0x060023D8 RID: 9176 RVA: 0x00002050 File Offset: 0x00000250
|
||||
[Token(Token = "0x60023D8")]
|
||||
[Address(RVA = "0xC0A360", Offset = "0xC09360", VA = "0x180C0A360")]
|
||||
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: 0x060023D9 RID: 9177 RVA: 0x00002050 File Offset: 0x00000250
|
||||
[Token(Token = "0x60023D9")]
|
||||
[Address(RVA = "0xC0A2B0", Offset = "0xC092B0", VA = "0x180C0A2B0")]
|
||||
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: 0x02000408 RID: 1032
|
||||
[Token(Token = "0x2000408")]
|
||||
[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: 0x060023DA RID: 9178 RVA: 0x00002050 File Offset: 0x00000250
|
||||
[Token(Token = "0x60023DA")]
|
||||
[Address(RVA = "0xC0A450", Offset = "0xC09450", VA = "0x180C0A450")]
|
||||
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: 0x060023DB RID: 9179 RVA: 0x00002050 File Offset: 0x00000250
|
||||
[Token(Token = "0x60023DB")]
|
||||
[Address(RVA = "0xC0A540", Offset = "0xC09540", VA = "0x180C0A540")]
|
||||
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: 0x02000409 RID: 1033
|
||||
[Token(Token = "0x2000409")]
|
||||
[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: 0x060023DC RID: 9180 RVA: 0x00002050 File Offset: 0x00000250
|
||||
[Token(Token = "0x60023DC")]
|
||||
[Address(RVA = "0xC0A6A0", Offset = "0xC096A0", VA = "0x180C0A6A0")]
|
||||
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: 0x060023DD RID: 9181 RVA: 0x00002050 File Offset: 0x00000250
|
||||
[Token(Token = "0x60023DD")]
|
||||
[Address(RVA = "0xC0A5F0", Offset = "0xC095F0", VA = "0x180C0A5F0")]
|
||||
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: 0x060023DE RID: 9182 RVA: 0x00002050 File Offset: 0x00000250
|
||||
[Token(Token = "0x60023DE")]
|
||||
[Address(RVA = "0xC0A5F0", Offset = "0xC095F0", VA = "0x180C0A5F0")]
|
||||
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: 0x0200040A RID: 1034
|
||||
[Token(Token = "0x200040A")]
|
||||
[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: 0x060023DF RID: 9183 RVA: 0x00002050 File Offset: 0x00000250
|
||||
[Token(Token = "0x60023DF")]
|
||||
[Address(RVA = "0xC0A840", Offset = "0xC09840", VA = "0x180C0A840")]
|
||||
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: 0x060023E0 RID: 9184 RVA: 0x00002050 File Offset: 0x00000250
|
||||
[Token(Token = "0x60023E0")]
|
||||
[Address(RVA = "0xC0A790", Offset = "0xC09790", VA = "0x180C0A790")]
|
||||
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: 0x0200040B RID: 1035
|
||||
[Token(Token = "0x200040B")]
|
||||
[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: 0x060023E1 RID: 9185 RVA: 0x00002050 File Offset: 0x00000250
|
||||
[Token(Token = "0x60023E1")]
|
||||
[Address(RVA = "0xC0AA20", Offset = "0xC09A20", VA = "0x180C0AA20")]
|
||||
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: 0x060023E2 RID: 9186 RVA: 0x00002050 File Offset: 0x00000250
|
||||
[Token(Token = "0x60023E2")]
|
||||
[Address(RVA = "0xC0A930", Offset = "0xC09930", VA = "0x180C0A930")]
|
||||
public HMACSHA384(byte[] key)
|
||||
{
|
||||
}
|
||||
|
||||
// Token: 0x17000517 RID: 1303
|
||||
// (get) Token: 0x060023E3 RID: 9187 RVA: 0x00016E18 File Offset: 0x00015018
|
||||
[Token(Token = "0x17000517")]
|
||||
private int BlockSize
|
||||
{
|
||||
[Token(Token = "0x60023E3")]
|
||||
[Address(RVA = "0xC0AB60", Offset = "0xC09B60", VA = "0x180C0AB60")]
|
||||
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: 0x17000518 RID: 1304
|
||||
// (get) Token: 0x060023E4 RID: 9188 RVA: 0x00016E30 File Offset: 0x00015030
|
||||
// (set) Token: 0x060023E5 RID: 9189 RVA: 0x00002050 File Offset: 0x00000250
|
||||
[Token(Token = "0x17000518")]
|
||||
public bool ProduceLegacyHmacValues
|
||||
{
|
||||
[Token(Token = "0x60023E4")]
|
||||
[Address(RVA = "0x4B4FC0", Offset = "0x4B3FC0", VA = "0x1804B4FC0")]
|
||||
get
|
||||
{
|
||||
return default(bool);
|
||||
}
|
||||
[Token(Token = "0x60023E5")]
|
||||
[Address(RVA = "0xC0AB80", Offset = "0xC09B80", VA = "0x180C0AB80")]
|
||||
set
|
||||
{
|
||||
}
|
||||
}
|
||||
|
||||
// Token: 0x04001424 RID: 5156
|
||||
[global::Cpp2IlInjected.FieldOffset(Offset = "0x68")]
|
||||
[Token(Token = "0x4001424")]
|
||||
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: 0x0200040C RID: 1036
|
||||
[Token(Token = "0x200040C")]
|
||||
[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: 0x060023E6 RID: 9190 RVA: 0x00002050 File Offset: 0x00000250
|
||||
[Token(Token = "0x60023E6")]
|
||||
[Address(RVA = "0xC0AC90", Offset = "0xC09C90", VA = "0x180C0AC90")]
|
||||
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: 0x060023E7 RID: 9191 RVA: 0x00002050 File Offset: 0x00000250
|
||||
[Token(Token = "0x60023E7")]
|
||||
[Address(RVA = "0xC0ABA0", Offset = "0xC09BA0", VA = "0x180C0ABA0")]
|
||||
public HMACSHA512(byte[] key)
|
||||
{
|
||||
}
|
||||
|
||||
// Token: 0x17000519 RID: 1305
|
||||
// (get) Token: 0x060023E8 RID: 9192 RVA: 0x00016E48 File Offset: 0x00015048
|
||||
[Token(Token = "0x17000519")]
|
||||
private int BlockSize
|
||||
{
|
||||
[Token(Token = "0x60023E8")]
|
||||
[Address(RVA = "0xC0AB60", Offset = "0xC09B60", VA = "0x180C0AB60")]
|
||||
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: 0x1700051A RID: 1306
|
||||
// (get) Token: 0x060023E9 RID: 9193 RVA: 0x00016E60 File Offset: 0x00015060
|
||||
// (set) Token: 0x060023EA RID: 9194 RVA: 0x00002050 File Offset: 0x00000250
|
||||
[Token(Token = "0x1700051A")]
|
||||
public bool ProduceLegacyHmacValues
|
||||
{
|
||||
[Token(Token = "0x60023E9")]
|
||||
[Address(RVA = "0x4B4FC0", Offset = "0x4B3FC0", VA = "0x1804B4FC0")]
|
||||
get
|
||||
{
|
||||
return default(bool);
|
||||
}
|
||||
[Token(Token = "0x60023EA")]
|
||||
[Address(RVA = "0xC0AB80", Offset = "0xC09B80", VA = "0x180C0AB80")]
|
||||
set
|
||||
{
|
||||
}
|
||||
}
|
||||
|
||||
// Token: 0x04001425 RID: 5157
|
||||
[global::Cpp2IlInjected.FieldOffset(Offset = "0x68")]
|
||||
[Token(Token = "0x4001425")]
|
||||
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: 0x02000405 RID: 1029
|
||||
[Token(Token = "0x2000405")]
|
||||
[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: 0x060023B4 RID: 9140 RVA: 0x00002050 File Offset: 0x00000250
|
||||
[Token(Token = "0x60023B4")]
|
||||
[Address(RVA = "0x412370", Offset = "0x411370", VA = "0x180412370")]
|
||||
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: 0x1700050E RID: 1294
|
||||
// (get) Token: 0x060023B5 RID: 9141 RVA: 0x00016D70 File Offset: 0x00014F70
|
||||
[Token(Token = "0x1700050E")]
|
||||
public virtual int HashSize
|
||||
{
|
||||
[Token(Token = "0x60023B5")]
|
||||
[Address(RVA = "0x40F000", Offset = "0x40E000", VA = "0x18040F000", 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: 0x1700050F RID: 1295
|
||||
// (get) Token: 0x060023B6 RID: 9142 RVA: 0x00002082 File Offset: 0x00000282
|
||||
[Token(Token = "0x1700050F")]
|
||||
public virtual byte[] Hash
|
||||
{
|
||||
[Token(Token = "0x60023B6")]
|
||||
[Address(RVA = "0xC0C3C0", Offset = "0xC0B3C0", VA = "0x180C0C3C0", 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: 0x060023B7 RID: 9143 RVA: 0x00002082 File Offset: 0x00000282
|
||||
[Token(Token = "0x60023B7")]
|
||||
[Address(RVA = "0xC0BDC0", Offset = "0xC0ADC0", VA = "0x180C0BDC0")]
|
||||
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: 0x060023B8 RID: 9144 RVA: 0x00002082 File Offset: 0x00000282
|
||||
[Token(Token = "0x60023B8")]
|
||||
[Address(RVA = "0xC0BE10", Offset = "0xC0AE10", VA = "0x180C0BE10")]
|
||||
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: 0x060023B9 RID: 9145 RVA: 0x00002082 File Offset: 0x00000282
|
||||
[Token(Token = "0x60023B9")]
|
||||
[Address(RVA = "0xC0BA40", Offset = "0xC0AA40", VA = "0x180C0BA40")]
|
||||
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: 0x060023BA RID: 9146 RVA: 0x00002082 File Offset: 0x00000282
|
||||
[Token(Token = "0x60023BA")]
|
||||
[Address(RVA = "0xC0B900", Offset = "0xC0A900", VA = "0x180C0B900")]
|
||||
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: 0x060023BB RID: 9147 RVA: 0x00002082 File Offset: 0x00000282
|
||||
[Token(Token = "0x60023BB")]
|
||||
[Address(RVA = "0xC0BBA0", Offset = "0xC0ABA0", VA = "0x180C0BBA0")]
|
||||
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: 0x17000510 RID: 1296
|
||||
// (get) Token: 0x060023BC RID: 9148 RVA: 0x00016D88 File Offset: 0x00014F88
|
||||
[Token(Token = "0x17000510")]
|
||||
public virtual int InputBlockSize
|
||||
{
|
||||
[Token(Token = "0x60023BC")]
|
||||
[Address(RVA = "0x4E8690", Offset = "0x4E7690", VA = "0x1804E8690", 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: 0x17000511 RID: 1297
|
||||
// (get) Token: 0x060023BD RID: 9149 RVA: 0x00016DA0 File Offset: 0x00014FA0
|
||||
[Token(Token = "0x17000511")]
|
||||
public virtual int OutputBlockSize
|
||||
{
|
||||
[Token(Token = "0x60023BD")]
|
||||
[Address(RVA = "0x4E8690", Offset = "0x4E7690", VA = "0x1804E8690", 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: 0x17000512 RID: 1298
|
||||
// (get) Token: 0x060023BE RID: 9150 RVA: 0x00016DB8 File Offset: 0x00014FB8
|
||||
[Token(Token = "0x17000512")]
|
||||
public virtual bool CanTransformMultipleBlocks
|
||||
{
|
||||
[Token(Token = "0x60023BE")]
|
||||
[Address(RVA = "0x4246A0", Offset = "0x4236A0", VA = "0x1804246A0", 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: 0x17000513 RID: 1299
|
||||
// (get) Token: 0x060023BF RID: 9151 RVA: 0x00016DD0 File Offset: 0x00014FD0
|
||||
[Token(Token = "0x17000513")]
|
||||
public virtual bool CanReuseTransform
|
||||
{
|
||||
[Token(Token = "0x60023BF")]
|
||||
[Address(RVA = "0x4246A0", Offset = "0x4236A0", VA = "0x1804246A0", 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: 0x060023C0 RID: 9152 RVA: 0x00016DE8 File Offset: 0x00014FE8
|
||||
[Token(Token = "0x60023C0")]
|
||||
[Address(RVA = "0xC0BF50", Offset = "0xC0AF50", VA = "0x180C0BF50", 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: 0x060023C1 RID: 9153 RVA: 0x00002082 File Offset: 0x00000282
|
||||
[Token(Token = "0x60023C1")]
|
||||
[Address(RVA = "0xC0C160", Offset = "0xC0B160", VA = "0x180C0C160", 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: 0x060023C2 RID: 9154 RVA: 0x00002050 File Offset: 0x00000250
|
||||
[Token(Token = "0x60023C2")]
|
||||
[Address(RVA = "0xC0BEE0", Offset = "0xC0AEE0", VA = "0x180C0BEE0", Slot = "4")]
|
||||
public void Dispose()
|
||||
{
|
||||
}
|
||||
|
||||
/// <summary>Releases all resources used by the <see cref="T:System.Security.Cryptography.HashAlgorithm" /> class.</summary>
|
||||
// Token: 0x060023C3 RID: 9155 RVA: 0x00002050 File Offset: 0x00000250
|
||||
[Token(Token = "0x60023C3")]
|
||||
[Address(RVA = "0xC0B8C0", Offset = "0xC0A8C0", VA = "0x180C0B8C0")]
|
||||
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: 0x060023C4 RID: 9156 RVA: 0x00002050 File Offset: 0x00000250
|
||||
[Token(Token = "0x60023C4")]
|
||||
[Address(RVA = "0xC0BEA0", Offset = "0xC0AEA0", VA = "0x180C0BEA0", Slot = "17")]
|
||||
protected virtual void Dispose(bool disposing)
|
||||
{
|
||||
}
|
||||
|
||||
/// <summary>Initializes an implementation of the <see cref="T:System.Security.Cryptography.HashAlgorithm" /> class.</summary>
|
||||
// Token: 0x060023C5 RID: 9157
|
||||
[Token(Token = "0x60023C5")]
|
||||
[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: 0x060023C6 RID: 9158
|
||||
[Token(Token = "0x60023C6")]
|
||||
[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: 0x060023C7 RID: 9159
|
||||
[Token(Token = "0x60023C7")]
|
||||
[Address(Slot = "20")]
|
||||
protected abstract byte[] HashFinal();
|
||||
|
||||
/// <summary>Represents the size, in bits, of the computed hash code.</summary>
|
||||
// Token: 0x04001419 RID: 5145
|
||||
[global::Cpp2IlInjected.FieldOffset(Offset = "0x10")]
|
||||
[Token(Token = "0x4001419")]
|
||||
protected int HashSizeValue;
|
||||
|
||||
/// <summary>Represents the value of the computed hash code.</summary>
|
||||
// Token: 0x0400141A RID: 5146
|
||||
[global::Cpp2IlInjected.FieldOffset(Offset = "0x18")]
|
||||
[Token(Token = "0x400141A")]
|
||||
protected internal byte[] HashValue;
|
||||
|
||||
/// <summary>Represents the state of the hash computation.</summary>
|
||||
// Token: 0x0400141B RID: 5147
|
||||
[global::Cpp2IlInjected.FieldOffset(Offset = "0x20")]
|
||||
[Token(Token = "0x400141B")]
|
||||
protected int State;
|
||||
|
||||
// Token: 0x0400141C RID: 5148
|
||||
[global::Cpp2IlInjected.FieldOffset(Offset = "0x24")]
|
||||
[Token(Token = "0x400141C")]
|
||||
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: 0x020003E4 RID: 996
|
||||
[Token(Token = "0x20003E4")]
|
||||
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: 0x170004E1 RID: 1249
|
||||
// (get) Token: 0x060022DA RID: 8922 RVA: 0x000167B8 File Offset: 0x000149B8
|
||||
[Token(Token = "0x170004E1")]
|
||||
public static HashAlgorithmName MD5
|
||||
{
|
||||
[Token(Token = "0x60022DA")]
|
||||
[Address(RVA = "0xC0B7A0", Offset = "0xC0A7A0", VA = "0x180C0B7A0")]
|
||||
get
|
||||
{
|
||||
return default(HashAlgorithmName);
|
||||
}
|
||||
}
|
||||
|
||||
/// <summary>Gets a hash algorithm name that represents "SHA1".</summary>
|
||||
/// <returns>A hash algorithm name that represents "SHA1".</returns>
|
||||
// Token: 0x170004E2 RID: 1250
|
||||
// (get) Token: 0x060022DB RID: 8923 RVA: 0x000167D0 File Offset: 0x000149D0
|
||||
[Token(Token = "0x170004E2")]
|
||||
public static HashAlgorithmName SHA1
|
||||
{
|
||||
[Token(Token = "0x60022DB")]
|
||||
[Address(RVA = "0xC0B7D0", Offset = "0xC0A7D0", VA = "0x180C0B7D0")]
|
||||
get
|
||||
{
|
||||
return default(HashAlgorithmName);
|
||||
}
|
||||
}
|
||||
|
||||
/// <summary>Gets a hash algorithm name that represents "SHA256".</summary>
|
||||
/// <returns>A hash algorithm name that represents "SHA256".</returns>
|
||||
// Token: 0x170004E3 RID: 1251
|
||||
// (get) Token: 0x060022DC RID: 8924 RVA: 0x000167E8 File Offset: 0x000149E8
|
||||
[Token(Token = "0x170004E3")]
|
||||
public static HashAlgorithmName SHA256
|
||||
{
|
||||
[Token(Token = "0x60022DC")]
|
||||
[Address(RVA = "0xC0B800", Offset = "0xC0A800", VA = "0x180C0B800")]
|
||||
get
|
||||
{
|
||||
return default(HashAlgorithmName);
|
||||
}
|
||||
}
|
||||
|
||||
/// <summary>Gets a hash algorithm name that represents "SHA384".</summary>
|
||||
/// <returns>A hash algorithm name that represents "SHA384".</returns>
|
||||
// Token: 0x170004E4 RID: 1252
|
||||
// (get) Token: 0x060022DD RID: 8925 RVA: 0x00016800 File Offset: 0x00014A00
|
||||
[Token(Token = "0x170004E4")]
|
||||
public static HashAlgorithmName SHA384
|
||||
{
|
||||
[Token(Token = "0x60022DD")]
|
||||
[Address(RVA = "0xC0B830", Offset = "0xC0A830", VA = "0x180C0B830")]
|
||||
get
|
||||
{
|
||||
return default(HashAlgorithmName);
|
||||
}
|
||||
}
|
||||
|
||||
/// <summary>Gets a hash algorithm name that represents "SHA512".</summary>
|
||||
/// <returns>A hash algorithm name that represents "SHA512".</returns>
|
||||
// Token: 0x170004E5 RID: 1253
|
||||
// (get) Token: 0x060022DE RID: 8926 RVA: 0x00016818 File Offset: 0x00014A18
|
||||
[Token(Token = "0x170004E5")]
|
||||
public static HashAlgorithmName SHA512
|
||||
{
|
||||
[Token(Token = "0x60022DE")]
|
||||
[Address(RVA = "0xC0B860", Offset = "0xC0A860", VA = "0x180C0B860")]
|
||||
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: 0x060022DF RID: 8927 RVA: 0x00002050 File Offset: 0x00000250
|
||||
[Token(Token = "0x60022DF")]
|
||||
[Address(RVA = "0x593200", Offset = "0x592200", VA = "0x180593200")]
|
||||
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: 0x170004E6 RID: 1254
|
||||
// (get) Token: 0x060022E0 RID: 8928 RVA: 0x00002082 File Offset: 0x00000282
|
||||
[Token(Token = "0x170004E6")]
|
||||
public string Name
|
||||
{
|
||||
[Token(Token = "0x60022E0")]
|
||||
[Address(RVA = "0x63E630", Offset = "0x63D630", VA = "0x18063E630")]
|
||||
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: 0x060022E1 RID: 8929 RVA: 0x00002082 File Offset: 0x00000282
|
||||
[Token(Token = "0x60022E1")]
|
||||
[Address(RVA = "0xC0B750", Offset = "0xC0A750", VA = "0x180C0B750", 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: 0x060022E2 RID: 8930 RVA: 0x00016830 File Offset: 0x00014A30
|
||||
[Token(Token = "0x60022E2")]
|
||||
[Address(RVA = "0xC0B6A0", Offset = "0xC0A6A0", VA = "0x180C0B6A0", 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: 0x060022E3 RID: 8931 RVA: 0x00016848 File Offset: 0x00014A48
|
||||
[Token(Token = "0x60022E3")]
|
||||
[Address(RVA = "0xC0B690", Offset = "0xC0A690", VA = "0x180C0B690", 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: 0x060022E4 RID: 8932 RVA: 0x00016860 File Offset: 0x00014A60
|
||||
[Token(Token = "0x60022E4")]
|
||||
[Address(RVA = "0xC0B730", Offset = "0xC0A730", VA = "0x180C0B730", 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: 0x060022E5 RID: 8933 RVA: 0x00016878 File Offset: 0x00014A78
|
||||
[Token(Token = "0x60022E5")]
|
||||
[Address(RVA = "0xC0B890", Offset = "0xC0A890", VA = "0x180C0B890")]
|
||||
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: 0x060022E6 RID: 8934 RVA: 0x00016890 File Offset: 0x00014A90
|
||||
[Token(Token = "0x60022E6")]
|
||||
[Address(RVA = "0xC0B8A0", Offset = "0xC0A8A0", VA = "0x180C0B8A0")]
|
||||
public static bool operator !=(HashAlgorithmName left, HashAlgorithmName right)
|
||||
{
|
||||
return default(bool);
|
||||
}
|
||||
|
||||
// Token: 0x040013A1 RID: 5025
|
||||
[FieldOffset(Offset = "0x0")]
|
||||
[Token(Token = "0x40013A1")]
|
||||
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: 0x0200040D RID: 1037
|
||||
[Token(Token = "0x200040D")]
|
||||
[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: 0x1700051B RID: 1307
|
||||
// (get) Token: 0x060023EB RID: 9195
|
||||
[Token(Token = "0x1700051B")]
|
||||
int InputBlockSize
|
||||
{
|
||||
[Token(Token = "0x60023EB")]
|
||||
[Address(Slot = "0")]
|
||||
get;
|
||||
}
|
||||
|
||||
/// <summary>Gets the output block size.</summary>
|
||||
/// <returns>The size of the output data blocks in bytes.</returns>
|
||||
// Token: 0x1700051C RID: 1308
|
||||
// (get) Token: 0x060023EC RID: 9196
|
||||
[Token(Token = "0x1700051C")]
|
||||
int OutputBlockSize
|
||||
{
|
||||
[Token(Token = "0x60023EC")]
|
||||
[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: 0x1700051D RID: 1309
|
||||
// (get) Token: 0x060023ED RID: 9197
|
||||
[Token(Token = "0x1700051D")]
|
||||
bool CanTransformMultipleBlocks
|
||||
{
|
||||
[Token(Token = "0x60023ED")]
|
||||
[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: 0x1700051E RID: 1310
|
||||
// (get) Token: 0x060023EE RID: 9198
|
||||
[Token(Token = "0x1700051E")]
|
||||
bool CanReuseTransform
|
||||
{
|
||||
[Token(Token = "0x60023EE")]
|
||||
[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: 0x060023EF RID: 9199
|
||||
[Token(Token = "0x60023EF")]
|
||||
[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: 0x060023F0 RID: 9200
|
||||
[Token(Token = "0x60023F0")]
|
||||
[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: 0x02000440 RID: 1088
|
||||
[Token(Token = "0x2000440")]
|
||||
[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: 0x060025E2 RID: 9698
|
||||
[Token(Token = "0x60025E2")]
|
||||
[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: 0x060025E3 RID: 9699
|
||||
[Token(Token = "0x60025E3")]
|
||||
[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: 0x17000574 RID: 1396
|
||||
// (get) Token: 0x060025E4 RID: 9700
|
||||
[Token(Token = "0x17000574")]
|
||||
CspKeyContainerInfo CspKeyContainerInfo
|
||||
{
|
||||
[Token(Token = "0x60025E4")]
|
||||
[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: 0x02000441 RID: 1089
|
||||
[Token(Token = "0x2000441")]
|
||||
[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: 0x0400150E RID: 5390
|
||||
[Token(Token = "0x400150E")]
|
||||
Exchange = 1,
|
||||
/// <summary>A signature key pair used for authenticating digitally signed messages or files.</summary>
|
||||
// Token: 0x0400150F RID: 5391
|
||||
[Token(Token = "0x400150F")]
|
||||
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: 0x020003F4 RID: 1012
|
||||
[Token(Token = "0x20003F4")]
|
||||
[ComVisible(true)]
|
||||
public sealed class KeySizes
|
||||
{
|
||||
/// <summary>Specifies the minimum key size in bits.</summary>
|
||||
/// <returns>The minimum key size in bits.</returns>
|
||||
// Token: 0x170004FF RID: 1279
|
||||
// (get) Token: 0x06002343 RID: 9027 RVA: 0x00016B18 File Offset: 0x00014D18
|
||||
[Token(Token = "0x170004FF")]
|
||||
public int MinSize
|
||||
{
|
||||
[Token(Token = "0x6002343")]
|
||||
[Address(RVA = "0x40F000", Offset = "0x40E000", VA = "0x18040F000")]
|
||||
get
|
||||
{
|
||||
return 0;
|
||||
}
|
||||
}
|
||||
|
||||
/// <summary>Specifies the maximum key size in bits.</summary>
|
||||
/// <returns>The maximum key size in bits.</returns>
|
||||
// Token: 0x17000500 RID: 1280
|
||||
// (get) Token: 0x06002344 RID: 9028 RVA: 0x00016B30 File Offset: 0x00014D30
|
||||
[Token(Token = "0x17000500")]
|
||||
public int MaxSize
|
||||
{
|
||||
[Token(Token = "0x6002344")]
|
||||
[Address(RVA = "0x4936D0", Offset = "0x4926D0", VA = "0x1804936D0")]
|
||||
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: 0x17000501 RID: 1281
|
||||
// (get) Token: 0x06002345 RID: 9029 RVA: 0x00016B48 File Offset: 0x00014D48
|
||||
[Token(Token = "0x17000501")]
|
||||
public int SkipSize
|
||||
{
|
||||
[Token(Token = "0x6002345")]
|
||||
[Address(RVA = "0x411540", Offset = "0x410540", VA = "0x180411540")]
|
||||
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: 0x06002346 RID: 9030 RVA: 0x00002050 File Offset: 0x00000250
|
||||
[Token(Token = "0x6002346")]
|
||||
[Address(RVA = "0x9F3F10", Offset = "0x9F2F10", VA = "0x1809F3F10")]
|
||||
public KeySizes(int minSize, int maxSize, int skipSize)
|
||||
{
|
||||
}
|
||||
|
||||
// Token: 0x06002347 RID: 9031 RVA: 0x00016B60 File Offset: 0x00014D60
|
||||
[Token(Token = "0x6002347")]
|
||||
[Address(RVA = "0xC0C5B0", Offset = "0xC0B5B0", VA = "0x180C0C5B0")]
|
||||
internal bool IsLegal(int keySize)
|
||||
{
|
||||
return default(bool);
|
||||
}
|
||||
|
||||
// Token: 0x06002348 RID: 9032 RVA: 0x00016B78 File Offset: 0x00014D78
|
||||
[Token(Token = "0x6002348")]
|
||||
[Address(RVA = "0xC0C510", Offset = "0xC0B510", VA = "0x180C0C510")]
|
||||
internal static bool IsLegalKeySize(KeySizes[] legalKeys, int size)
|
||||
{
|
||||
return default(bool);
|
||||
}
|
||||
|
||||
// Token: 0x040013C8 RID: 5064
|
||||
[global::Cpp2IlInjected.FieldOffset(Offset = "0x10")]
|
||||
[Token(Token = "0x40013C8")]
|
||||
private int m_minSize;
|
||||
|
||||
// Token: 0x040013C9 RID: 5065
|
||||
[global::Cpp2IlInjected.FieldOffset(Offset = "0x14")]
|
||||
[Token(Token = "0x40013C9")]
|
||||
private int m_maxSize;
|
||||
|
||||
// Token: 0x040013CA RID: 5066
|
||||
[global::Cpp2IlInjected.FieldOffset(Offset = "0x18")]
|
||||
[Token(Token = "0x40013CA")]
|
||||
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: 0x0200040E RID: 1038
|
||||
[Token(Token = "0x200040E")]
|
||||
[ComVisible(true)]
|
||||
public abstract class KeyedHashAlgorithm : HashAlgorithm
|
||||
{
|
||||
/// <summary>Initializes a new instance of the <see cref="T:System.Security.Cryptography.KeyedHashAlgorithm" /> class.</summary>
|
||||
// Token: 0x060023F1 RID: 9201 RVA: 0x00002050 File Offset: 0x00000250
|
||||
[Token(Token = "0x60023F1")]
|
||||
[Address(RVA = "0x412370", Offset = "0x411370", VA = "0x180412370")]
|
||||
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: 0x060023F2 RID: 9202 RVA: 0x00002050 File Offset: 0x00000250
|
||||
[Token(Token = "0x60023F2")]
|
||||
[Address(RVA = "0xC0C6C0", Offset = "0xC0B6C0", VA = "0x180C0C6C0", 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: 0x1700051F RID: 1311
|
||||
// (get) Token: 0x060023F3 RID: 9203 RVA: 0x00002082 File Offset: 0x00000282
|
||||
// (set) Token: 0x060023F4 RID: 9204 RVA: 0x00002050 File Offset: 0x00000250
|
||||
[Token(Token = "0x1700051F")]
|
||||
public virtual byte[] Key
|
||||
{
|
||||
[Token(Token = "0x60023F3")]
|
||||
[Address(RVA = "0xC0C720", Offset = "0xC0B720", VA = "0x180C0C720", Slot = "21")]
|
||||
get
|
||||
{
|
||||
return null;
|
||||
}
|
||||
[Token(Token = "0x60023F4")]
|
||||
[Address(RVA = "0xC0C7A0", Offset = "0xC0B7A0", VA = "0x180C0C7A0", 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: 0x060023F5 RID: 9205 RVA: 0x00002082 File Offset: 0x00000282
|
||||
[Token(Token = "0x60023F5")]
|
||||
[Address(RVA = "0xC0C5E0", Offset = "0xC0B5E0", VA = "0x180C0C5E0")]
|
||||
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: 0x060023F6 RID: 9206 RVA: 0x00002082 File Offset: 0x00000282
|
||||
[Token(Token = "0x60023F6")]
|
||||
[Address(RVA = "0xC0C630", Offset = "0xC0B630", VA = "0x180C0C630")]
|
||||
public new static KeyedHashAlgorithm Create(string algName)
|
||||
{
|
||||
return null;
|
||||
}
|
||||
|
||||
/// <summary>The key to use in the hash algorithm.</summary>
|
||||
// Token: 0x04001426 RID: 5158
|
||||
[global::Cpp2IlInjected.FieldOffset(Offset = "0x28")]
|
||||
[Token(Token = "0x4001426")]
|
||||
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: 0x0200040F RID: 1039
|
||||
[Token(Token = "0x200040F")]
|
||||
[ComVisible(true)]
|
||||
public class MACTripleDES : KeyedHashAlgorithm
|
||||
{
|
||||
/// <summary>Initializes a new instance of the <see cref="T:System.Security.Cryptography.MACTripleDES" /> class.</summary>
|
||||
// Token: 0x060023F7 RID: 9207 RVA: 0x00002050 File Offset: 0x00000250
|
||||
[Token(Token = "0x60023F7")]
|
||||
[Address(RVA = "0xC0CE20", Offset = "0xC0BE20", VA = "0x180C0CE20")]
|
||||
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: 0x060023F8 RID: 9208 RVA: 0x00002050 File Offset: 0x00000250
|
||||
[Token(Token = "0x60023F8")]
|
||||
[Address(RVA = "0xC0CC10", Offset = "0xC0BC10", VA = "0x180C0CC10")]
|
||||
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: 0x060023F9 RID: 9209 RVA: 0x00002050 File Offset: 0x00000250
|
||||
[Token(Token = "0x60023F9")]
|
||||
[Address(RVA = "0xC0CC60", Offset = "0xC0BC60", VA = "0x180C0CC60")]
|
||||
public MACTripleDES(string strTripleDES, byte[] rgbKey)
|
||||
{
|
||||
}
|
||||
|
||||
/// <summary>Initializes an instance of <see cref="T:System.Security.Cryptography.MACTripleDES" />.</summary>
|
||||
// Token: 0x060023FA RID: 9210 RVA: 0x00002050 File Offset: 0x00000250
|
||||
[Token(Token = "0x60023FA")]
|
||||
[Address(RVA = "0xC0CC00", Offset = "0xC0BC00", VA = "0x180C0CC00", 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: 0x17000520 RID: 1312
|
||||
// (get) Token: 0x060023FB RID: 9211 RVA: 0x00016E78 File Offset: 0x00015078
|
||||
// (set) Token: 0x060023FC RID: 9212 RVA: 0x00002050 File Offset: 0x00000250
|
||||
[Token(Token = "0x17000520")]
|
||||
[ComVisible(false)]
|
||||
public PaddingMode Padding
|
||||
{
|
||||
[Token(Token = "0x60023FB")]
|
||||
[Address(RVA = "0xC0CF80", Offset = "0xC0BF80", VA = "0x180C0CF80")]
|
||||
get
|
||||
{
|
||||
return (PaddingMode)0;
|
||||
}
|
||||
[Token(Token = "0x60023FC")]
|
||||
[Address(RVA = "0xC0CFB0", Offset = "0xC0BFB0", VA = "0x180C0CFB0")]
|
||||
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: 0x060023FD RID: 9213 RVA: 0x00002050 File Offset: 0x00000250
|
||||
[Token(Token = "0x60023FD")]
|
||||
[Address(RVA = "0xC0C940", Offset = "0xC0B940", VA = "0x180C0C940", 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: 0x060023FE RID: 9214 RVA: 0x00002082 File Offset: 0x00000282
|
||||
[Token(Token = "0x60023FE")]
|
||||
[Address(RVA = "0xC0CAB0", Offset = "0xC0BAB0", VA = "0x180C0CAB0", 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: 0x060023FF RID: 9215 RVA: 0x00002050 File Offset: 0x00000250
|
||||
[Token(Token = "0x60023FF")]
|
||||
[Address(RVA = "0xC0C870", Offset = "0xC0B870", VA = "0x180C0C870", Slot = "17")]
|
||||
protected override void Dispose(bool disposing)
|
||||
{
|
||||
}
|
||||
|
||||
// Token: 0x04001427 RID: 5159
|
||||
[global::Cpp2IlInjected.FieldOffset(Offset = "0x30")]
|
||||
[Token(Token = "0x4001427")]
|
||||
private ICryptoTransform m_encryptor;
|
||||
|
||||
// Token: 0x04001428 RID: 5160
|
||||
[global::Cpp2IlInjected.FieldOffset(Offset = "0x38")]
|
||||
[Token(Token = "0x4001428")]
|
||||
private CryptoStream _cs;
|
||||
|
||||
// Token: 0x04001429 RID: 5161
|
||||
[global::Cpp2IlInjected.FieldOffset(Offset = "0x40")]
|
||||
[Token(Token = "0x4001429")]
|
||||
private TailStream _ts;
|
||||
|
||||
// Token: 0x0400142A RID: 5162
|
||||
[Token(Token = "0x400142A")]
|
||||
private const int m_bitsPerByte = 8;
|
||||
|
||||
// Token: 0x0400142B RID: 5163
|
||||
[global::Cpp2IlInjected.FieldOffset(Offset = "0x48")]
|
||||
[Token(Token = "0x400142B")]
|
||||
private int m_bytesPerBlock;
|
||||
|
||||
// Token: 0x0400142C RID: 5164
|
||||
[global::Cpp2IlInjected.FieldOffset(Offset = "0x50")]
|
||||
[Token(Token = "0x400142C")]
|
||||
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: 0x02000412 RID: 1042
|
||||
[Token(Token = "0x2000412")]
|
||||
[ComVisible(true)]
|
||||
public abstract class MD5 : HashAlgorithm
|
||||
{
|
||||
/// <summary>Initializes a new instance of <see cref="T:System.Security.Cryptography.MD5" />.</summary>
|
||||
// Token: 0x06002411 RID: 9233 RVA: 0x00002050 File Offset: 0x00000250
|
||||
[Token(Token = "0x6002411")]
|
||||
[Address(RVA = "0xC0F130", Offset = "0xC0E130", VA = "0x180C0F130")]
|
||||
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: 0x06002412 RID: 9234 RVA: 0x00002082 File Offset: 0x00000282
|
||||
[Token(Token = "0x6002412")]
|
||||
[Address(RVA = "0xC0F0E0", Offset = "0xC0E0E0", VA = "0x180C0F0E0")]
|
||||
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: 0x06002413 RID: 9235 RVA: 0x00002082 File Offset: 0x00000282
|
||||
[Token(Token = "0x6002413")]
|
||||
[Address(RVA = "0xC0F050", Offset = "0xC0E050", VA = "0x180C0F050")]
|
||||
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: 0x02000442 RID: 1090
|
||||
[Token(Token = "0x2000442")]
|
||||
[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: 0x060025E5 RID: 9701 RVA: 0x00002050 File Offset: 0x00000250
|
||||
[Token(Token = "0x60025E5")]
|
||||
[Address(RVA = "0xC0EFC0", Offset = "0xC0DFC0", VA = "0x180C0EFC0")]
|
||||
public MD5CryptoServiceProvider()
|
||||
{
|
||||
}
|
||||
|
||||
// Token: 0x060025E6 RID: 9702 RVA: 0x00002050 File Offset: 0x00000250
|
||||
[Token(Token = "0x60025E6")]
|
||||
[Address(RVA = "0xC0D250", Offset = "0xC0C250", VA = "0x180C0D250", Slot = "1")]
|
||||
protected override void Finalize()
|
||||
{
|
||||
}
|
||||
|
||||
// Token: 0x060025E7 RID: 9703 RVA: 0x00002050 File Offset: 0x00000250
|
||||
[Token(Token = "0x60025E7")]
|
||||
[Address(RVA = "0xC0D1C0", Offset = "0xC0C1C0", VA = "0x180C0D1C0", Slot = "17")]
|
||||
protected override void Dispose(bool disposing)
|
||||
{
|
||||
}
|
||||
|
||||
// Token: 0x060025E8 RID: 9704 RVA: 0x00002050 File Offset: 0x00000250
|
||||
[Token(Token = "0x60025E8")]
|
||||
[Address(RVA = "0xC0D2D0", Offset = "0xC0C2D0", VA = "0x180C0D2D0", Slot = "19")]
|
||||
protected override void HashCore(byte[] rgb, int ibStart, int cbSize)
|
||||
{
|
||||
}
|
||||
|
||||
// Token: 0x060025E9 RID: 9705 RVA: 0x00002082 File Offset: 0x00000282
|
||||
[Token(Token = "0x60025E9")]
|
||||
[Address(RVA = "0xC0D3F0", Offset = "0xC0C3F0", VA = "0x180C0D3F0", Slot = "20")]
|
||||
protected override byte[] HashFinal()
|
||||
{
|
||||
return null;
|
||||
}
|
||||
|
||||
/// <summary>Initializes an instance of <see cref="T:System.Security.Cryptography.MD5CryptoServiceProvider" />.</summary>
|
||||
// Token: 0x060025EA RID: 9706 RVA: 0x00002050 File Offset: 0x00000250
|
||||
[Token(Token = "0x60025EA")]
|
||||
[Address(RVA = "0xC0D4F0", Offset = "0xC0C4F0", VA = "0x180C0D4F0", Slot = "18")]
|
||||
public override void Initialize()
|
||||
{
|
||||
}
|
||||
|
||||
// Token: 0x060025EB RID: 9707 RVA: 0x00002050 File Offset: 0x00000250
|
||||
[Token(Token = "0x60025EB")]
|
||||
[Address(RVA = "0xC0D5A0", Offset = "0xC0C5A0", VA = "0x180C0D5A0")]
|
||||
private void ProcessBlock(byte[] inputBuffer, int inputOffset)
|
||||
{
|
||||
}
|
||||
|
||||
// Token: 0x060025EC RID: 9708 RVA: 0x00002050 File Offset: 0x00000250
|
||||
[Token(Token = "0x60025EC")]
|
||||
[Address(RVA = "0xC0EDB0", Offset = "0xC0DDB0", VA = "0x180C0EDB0")]
|
||||
private void ProcessFinalBlock(byte[] inputBuffer, int inputOffset, int inputCount)
|
||||
{
|
||||
}
|
||||
|
||||
// Token: 0x060025ED RID: 9709 RVA: 0x00002050 File Offset: 0x00000250
|
||||
[Token(Token = "0x60025ED")]
|
||||
[Address(RVA = "0xC0D050", Offset = "0xC0C050", VA = "0x180C0D050")]
|
||||
internal void AddLength(ulong length, byte[] buffer, int position)
|
||||
{
|
||||
}
|
||||
|
||||
// Token: 0x04001510 RID: 5392
|
||||
[Token(Token = "0x4001510")]
|
||||
private const int BLOCK_SIZE_BYTES = 64;
|
||||
|
||||
// Token: 0x04001511 RID: 5393
|
||||
[global::Cpp2IlInjected.FieldOffset(Offset = "0x28")]
|
||||
[Token(Token = "0x4001511")]
|
||||
private uint[] _H;
|
||||
|
||||
// Token: 0x04001512 RID: 5394
|
||||
[global::Cpp2IlInjected.FieldOffset(Offset = "0x30")]
|
||||
[Token(Token = "0x4001512")]
|
||||
private uint[] buff;
|
||||
|
||||
// Token: 0x04001513 RID: 5395
|
||||
[global::Cpp2IlInjected.FieldOffset(Offset = "0x38")]
|
||||
[Token(Token = "0x4001513")]
|
||||
private ulong count;
|
||||
|
||||
// Token: 0x04001514 RID: 5396
|
||||
[global::Cpp2IlInjected.FieldOffset(Offset = "0x40")]
|
||||
[Token(Token = "0x4001514")]
|
||||
private byte[] _ProcessingBuffer;
|
||||
|
||||
// Token: 0x04001515 RID: 5397
|
||||
[global::Cpp2IlInjected.FieldOffset(Offset = "0x48")]
|
||||
[Token(Token = "0x4001515")]
|
||||
private int _ProcessingBufferCount;
|
||||
|
||||
// Token: 0x04001516 RID: 5398
|
||||
[Token(Token = "0x4001516")]
|
||||
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: 0x02000411 RID: 1041
|
||||
[Token(Token = "0x2000411")]
|
||||
[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: 0x0600240F RID: 9231
|
||||
[Token(Token = "0x600240F")]
|
||||
[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: 0x06002410 RID: 9232 RVA: 0x00002050 File Offset: 0x00000250
|
||||
[Token(Token = "0x6002410")]
|
||||
[Address(RVA = "0x412370", Offset = "0x411370", VA = "0x180412370")]
|
||||
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: 0x02000414 RID: 1044
|
||||
[Token(Token = "0x2000414")]
|
||||
[ComVisible(true)]
|
||||
public class PKCS1MaskGenerationMethod : MaskGenerationMethod
|
||||
{
|
||||
/// <summary>Initializes a new instance of the <see cref="T:System.Security.Cryptography.PKCS1MaskGenerationMethod" /> class.</summary>
|
||||
// Token: 0x06002429 RID: 9257 RVA: 0x00002050 File Offset: 0x00000250
|
||||
[Token(Token = "0x6002429")]
|
||||
[Address(RVA = "0xC0F1D0", Offset = "0xC0E1D0", VA = "0x180C0F1D0")]
|
||||
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: 0x1700052A RID: 1322
|
||||
// (get) Token: 0x0600242A RID: 9258 RVA: 0x00002082 File Offset: 0x00000282
|
||||
// (set) Token: 0x0600242B RID: 9259 RVA: 0x00002050 File Offset: 0x00000250
|
||||
[Token(Token = "0x1700052A")]
|
||||
public string HashName
|
||||
{
|
||||
[Token(Token = "0x600242A")]
|
||||
[Address(RVA = "0x411530", Offset = "0x410530", VA = "0x180411530")]
|
||||
get
|
||||
{
|
||||
return null;
|
||||
}
|
||||
[Token(Token = "0x600242B")]
|
||||
[Address(RVA = "0xC0F210", Offset = "0xC0E210", VA = "0x180C0F210")]
|
||||
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: 0x0600242C RID: 9260 RVA: 0x00002082 File Offset: 0x00000282
|
||||
[Token(Token = "0x600242C")]
|
||||
[Address(RVA = "0xC0F150", Offset = "0xC0E150", VA = "0x180C0F150", Slot = "4")]
|
||||
public override byte[] GenerateMask(byte[] rgbSeed, int cbReturn)
|
||||
{
|
||||
return null;
|
||||
}
|
||||
|
||||
// Token: 0x0400143A RID: 5178
|
||||
[global::Cpp2IlInjected.FieldOffset(Offset = "0x10")]
|
||||
[Token(Token = "0x400143A")]
|
||||
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: 0x020003F3 RID: 1011
|
||||
[Token(Token = "0x20003F3")]
|
||||
[ComVisible(true)]
|
||||
[Serializable]
|
||||
public enum PaddingMode
|
||||
{
|
||||
/// <summary>No padding is done.</summary>
|
||||
// Token: 0x040013C3 RID: 5059
|
||||
[Token(Token = "0x40013C3")]
|
||||
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: 0x040013C4 RID: 5060
|
||||
[Token(Token = "0x40013C4")]
|
||||
PKCS7,
|
||||
/// <summary>The padding string consists of bytes set to zero.</summary>
|
||||
// Token: 0x040013C5 RID: 5061
|
||||
[Token(Token = "0x40013C5")]
|
||||
Zeros,
|
||||
/// <summary>The ANSIX923 padding string consists of a sequence of bytes filled with zeros before the length.</summary>
|
||||
// Token: 0x040013C6 RID: 5062
|
||||
[Token(Token = "0x40013C6")]
|
||||
ANSIX923,
|
||||
/// <summary>The ISO10126 padding string consists of random data before the length.</summary>
|
||||
// Token: 0x040013C7 RID: 5063
|
||||
[Token(Token = "0x40013C7")]
|
||||
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: 0x02000413 RID: 1043
|
||||
[Token(Token = "0x2000413")]
|
||||
[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: 0x06002414 RID: 9236 RVA: 0x00002050 File Offset: 0x00000250
|
||||
[Token(Token = "0x6002414")]
|
||||
[Address(RVA = "0xC104E0", Offset = "0xC0F4E0", VA = "0x180C104E0")]
|
||||
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: 0x06002415 RID: 9237 RVA: 0x00002050 File Offset: 0x00000250
|
||||
[Token(Token = "0x6002415")]
|
||||
[Address(RVA = "0xC0FD60", Offset = "0xC0ED60", VA = "0x180C0FD60")]
|
||||
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: 0x06002416 RID: 9238 RVA: 0x00002050 File Offset: 0x00000250
|
||||
[Token(Token = "0x6002416")]
|
||||
[Address(RVA = "0xC0FF80", Offset = "0xC0EF80", VA = "0x180C0FF80")]
|
||||
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: 0x06002417 RID: 9239 RVA: 0x00002050 File Offset: 0x00000250
|
||||
[Token(Token = "0x6002417")]
|
||||
[Address(RVA = "0xC100D0", Offset = "0xC0F0D0", VA = "0x180C100D0")]
|
||||
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: 0x06002418 RID: 9240 RVA: 0x00002050 File Offset: 0x00000250
|
||||
[Token(Token = "0x6002418")]
|
||||
[Address(RVA = "0xC0FF00", Offset = "0xC0EF00", VA = "0x180C0FF00")]
|
||||
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: 0x06002419 RID: 9241 RVA: 0x00002050 File Offset: 0x00000250
|
||||
[Token(Token = "0x6002419")]
|
||||
[Address(RVA = "0xC10050", Offset = "0xC0F050", VA = "0x180C10050")]
|
||||
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: 0x0600241A RID: 9242 RVA: 0x00002050 File Offset: 0x00000250
|
||||
[Token(Token = "0x600241A")]
|
||||
[Address(RVA = "0xC0FE40", Offset = "0xC0EE40", VA = "0x180C0FE40")]
|
||||
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: 0x0600241B RID: 9243 RVA: 0x00002050 File Offset: 0x00000250
|
||||
[Token(Token = "0x600241B")]
|
||||
[Address(RVA = "0xC101A0", Offset = "0xC0F1A0", VA = "0x180C101A0")]
|
||||
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: 0x17000527 RID: 1319
|
||||
// (get) Token: 0x0600241C RID: 9244 RVA: 0x00002082 File Offset: 0x00000282
|
||||
// (set) Token: 0x0600241D RID: 9245 RVA: 0x00002050 File Offset: 0x00000250
|
||||
[Token(Token = "0x17000527")]
|
||||
public string HashName
|
||||
{
|
||||
[Token(Token = "0x600241C")]
|
||||
[Address(RVA = "0x41CEF0", Offset = "0x41BEF0", VA = "0x18041CEF0")]
|
||||
get
|
||||
{
|
||||
return null;
|
||||
}
|
||||
[Token(Token = "0x600241D")]
|
||||
[Address(RVA = "0xC10640", Offset = "0xC0F640", VA = "0x180C10640")]
|
||||
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: 0x17000528 RID: 1320
|
||||
// (get) Token: 0x0600241E RID: 9246 RVA: 0x00016F38 File Offset: 0x00015138
|
||||
// (set) Token: 0x0600241F RID: 9247 RVA: 0x00002050 File Offset: 0x00000250
|
||||
[Token(Token = "0x17000528")]
|
||||
public int IterationCount
|
||||
{
|
||||
[Token(Token = "0x600241E")]
|
||||
[Address(RVA = "0x411540", Offset = "0x410540", VA = "0x180411540")]
|
||||
get
|
||||
{
|
||||
return 0;
|
||||
}
|
||||
[Token(Token = "0x600241F")]
|
||||
[Address(RVA = "0xC10780", Offset = "0xC0F780", VA = "0x180C10780")]
|
||||
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: 0x17000529 RID: 1321
|
||||
// (get) Token: 0x06002420 RID: 9248 RVA: 0x00002082 File Offset: 0x00000282
|
||||
// (set) Token: 0x06002421 RID: 9249 RVA: 0x00002050 File Offset: 0x00000250
|
||||
[Token(Token = "0x17000529")]
|
||||
public byte[] Salt
|
||||
{
|
||||
[Token(Token = "0x6002420")]
|
||||
[Address(RVA = "0xC105C0", Offset = "0xC0F5C0", VA = "0x180C105C0")]
|
||||
get
|
||||
{
|
||||
return null;
|
||||
}
|
||||
[Token(Token = "0x6002421")]
|
||||
[Address(RVA = "0xC10890", Offset = "0xC0F890", VA = "0x180C10890")]
|
||||
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: 0x06002422 RID: 9250 RVA: 0x00002082 File Offset: 0x00000282
|
||||
[Token(Token = "0x6002422")]
|
||||
[Address(RVA = "0xC0F9F0", Offset = "0xC0E9F0", VA = "0x180C0F9F0", Slot = "5")]
|
||||
[Obsolete]
|
||||
public override byte[] GetBytes(int cb)
|
||||
{
|
||||
return null;
|
||||
}
|
||||
|
||||
/// <summary>Resets the state of the operation.</summary>
|
||||
// Token: 0x06002423 RID: 9251 RVA: 0x00002050 File Offset: 0x00000250
|
||||
[Token(Token = "0x6002423")]
|
||||
[Address(RVA = "0xC0FD50", Offset = "0xC0ED50", VA = "0x180C0FD50", 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: 0x06002424 RID: 9252 RVA: 0x00002050 File Offset: 0x00000250
|
||||
[Token(Token = "0x6002424")]
|
||||
[Address(RVA = "0xC0F910", Offset = "0xC0E910", VA = "0x180C0F910", 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: 0x06002425 RID: 9253 RVA: 0x00002082 File Offset: 0x00000282
|
||||
[Token(Token = "0x6002425")]
|
||||
[Address(RVA = "0xC0F870", Offset = "0xC0E870", VA = "0x180C0F870")]
|
||||
public byte[] CryptDeriveKey(string algname, string alghashname, int keySize, byte[] rgbIV)
|
||||
{
|
||||
return null;
|
||||
}
|
||||
|
||||
// Token: 0x06002426 RID: 9254 RVA: 0x00002082 File Offset: 0x00000282
|
||||
[Token(Token = "0x6002426")]
|
||||
[Address(RVA = "0xC0F260", Offset = "0xC0E260", VA = "0x180C0F260")]
|
||||
private byte[] ComputeBaseValue()
|
||||
{
|
||||
return null;
|
||||
}
|
||||
|
||||
// Token: 0x06002427 RID: 9255 RVA: 0x00002082 File Offset: 0x00000282
|
||||
[Token(Token = "0x6002427")]
|
||||
[Address(RVA = "0xC0F410", Offset = "0xC0E410", VA = "0x180C0F410")]
|
||||
private byte[] ComputeBytes(int cb)
|
||||
{
|
||||
return null;
|
||||
}
|
||||
|
||||
// Token: 0x06002428 RID: 9256 RVA: 0x00002050 File Offset: 0x00000250
|
||||
[Token(Token = "0x6002428")]
|
||||
[Address(RVA = "0xC0FB60", Offset = "0xC0EB60", VA = "0x180C0FB60")]
|
||||
private void HashPrefix(CryptoStream cs)
|
||||
{
|
||||
}
|
||||
|
||||
// Token: 0x04001431 RID: 5169
|
||||
[global::Cpp2IlInjected.FieldOffset(Offset = "0x10")]
|
||||
[Token(Token = "0x4001431")]
|
||||
private int _extraCount;
|
||||
|
||||
// Token: 0x04001432 RID: 5170
|
||||
[global::Cpp2IlInjected.FieldOffset(Offset = "0x14")]
|
||||
[Token(Token = "0x4001432")]
|
||||
private int _prefix;
|
||||
|
||||
// Token: 0x04001433 RID: 5171
|
||||
[global::Cpp2IlInjected.FieldOffset(Offset = "0x18")]
|
||||
[Token(Token = "0x4001433")]
|
||||
private int _iterations;
|
||||
|
||||
// Token: 0x04001434 RID: 5172
|
||||
[global::Cpp2IlInjected.FieldOffset(Offset = "0x20")]
|
||||
[Token(Token = "0x4001434")]
|
||||
private byte[] _baseValue;
|
||||
|
||||
// Token: 0x04001435 RID: 5173
|
||||
[global::Cpp2IlInjected.FieldOffset(Offset = "0x28")]
|
||||
[Token(Token = "0x4001435")]
|
||||
private byte[] _extra;
|
||||
|
||||
// Token: 0x04001436 RID: 5174
|
||||
[global::Cpp2IlInjected.FieldOffset(Offset = "0x30")]
|
||||
[Token(Token = "0x4001436")]
|
||||
private byte[] _salt;
|
||||
|
||||
// Token: 0x04001437 RID: 5175
|
||||
[global::Cpp2IlInjected.FieldOffset(Offset = "0x38")]
|
||||
[Token(Token = "0x4001437")]
|
||||
private string _hashName;
|
||||
|
||||
// Token: 0x04001438 RID: 5176
|
||||
[global::Cpp2IlInjected.FieldOffset(Offset = "0x40")]
|
||||
[Token(Token = "0x4001438")]
|
||||
private byte[] _password;
|
||||
|
||||
// Token: 0x04001439 RID: 5177
|
||||
[global::Cpp2IlInjected.FieldOffset(Offset = "0x48")]
|
||||
[Token(Token = "0x4001439")]
|
||||
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: 0x02000416 RID: 1046
|
||||
[Token(Token = "0x2000416")]
|
||||
[ComVisible(true)]
|
||||
public abstract class RC2 : SymmetricAlgorithm
|
||||
{
|
||||
/// <summary>Initializes a new instance of <see cref="T:System.Security.Cryptography.RC2" />.</summary>
|
||||
// Token: 0x06002435 RID: 9269 RVA: 0x00002050 File Offset: 0x00000250
|
||||
[Token(Token = "0x6002435")]
|
||||
[Address(RVA = "0xC127F0", Offset = "0xC117F0", VA = "0x180C127F0")]
|
||||
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: 0x1700052B RID: 1323
|
||||
// (get) Token: 0x06002436 RID: 9270 RVA: 0x00016F50 File Offset: 0x00015150
|
||||
// (set) Token: 0x06002437 RID: 9271 RVA: 0x00002050 File Offset: 0x00000250
|
||||
[Token(Token = "0x1700052B")]
|
||||
public virtual int EffectiveKeySize
|
||||
{
|
||||
[Token(Token = "0x6002436")]
|
||||
[Address(RVA = "0xC12890", Offset = "0xC11890", VA = "0x180C12890", Slot = "28")]
|
||||
get
|
||||
{
|
||||
return 0;
|
||||
}
|
||||
[Token(Token = "0x6002437")]
|
||||
[Address(RVA = "0xC128A0", Offset = "0xC118A0", VA = "0x180C128A0", 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: 0x1700052C RID: 1324
|
||||
// (get) Token: 0x06002438 RID: 9272 RVA: 0x00016F68 File Offset: 0x00015168
|
||||
// (set) Token: 0x06002439 RID: 9273 RVA: 0x00002050 File Offset: 0x00000250
|
||||
[Token(Token = "0x1700052C")]
|
||||
public override int KeySize
|
||||
{
|
||||
[Token(Token = "0x6002438")]
|
||||
[Address(RVA = "0x42B830", Offset = "0x42A830", VA = "0x18042B830", Slot = "16")]
|
||||
get
|
||||
{
|
||||
return 0;
|
||||
}
|
||||
[Token(Token = "0x6002439")]
|
||||
[Address(RVA = "0xC129D0", Offset = "0xC119D0", VA = "0x180C129D0", 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: 0x0600243A RID: 9274 RVA: 0x00002082 File Offset: 0x00000282
|
||||
[Token(Token = "0x600243A")]
|
||||
[Address(RVA = "0xC125A0", Offset = "0xC115A0", VA = "0x180C125A0")]
|
||||
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: 0x0600243B RID: 9275 RVA: 0x00002082 File Offset: 0x00000282
|
||||
[Token(Token = "0x600243B")]
|
||||
[Address(RVA = "0xC125F0", Offset = "0xC115F0", VA = "0x180C125F0")]
|
||||
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: 0x0400143B RID: 5179
|
||||
[global::Cpp2IlInjected.FieldOffset(Offset = "0x48")]
|
||||
[Token(Token = "0x400143B")]
|
||||
protected int EffectiveKeySizeValue;
|
||||
|
||||
// Token: 0x0400143C RID: 5180
|
||||
[Token(Token = "0x400143C")]
|
||||
private static KeySizes[] s_legalBlockSizes;
|
||||
|
||||
// Token: 0x0400143D RID: 5181
|
||||
[Token(Token = "0x400143D")]
|
||||
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: 0x02000417 RID: 1047
|
||||
[Token(Token = "0x2000417")]
|
||||
[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: 0x0600243D RID: 9277 RVA: 0x00002050 File Offset: 0x00000250
|
||||
[Token(Token = "0x600243D")]
|
||||
[Address(RVA = "0xC10D20", Offset = "0xC0FD20", VA = "0x180C10D20")]
|
||||
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: 0x1700052D RID: 1325
|
||||
// (get) Token: 0x0600243E RID: 9278 RVA: 0x00016F80 File Offset: 0x00015180
|
||||
// (set) Token: 0x0600243F RID: 9279 RVA: 0x00002050 File Offset: 0x00000250
|
||||
[Token(Token = "0x1700052D")]
|
||||
public override int EffectiveKeySize
|
||||
{
|
||||
[Token(Token = "0x600243E")]
|
||||
[Address(RVA = "0x42B830", Offset = "0x42A830", VA = "0x18042B830", Slot = "28")]
|
||||
get
|
||||
{
|
||||
return 0;
|
||||
}
|
||||
[Token(Token = "0x600243F")]
|
||||
[Address(RVA = "0xC10EB0", Offset = "0xC0FEB0", VA = "0x180C10EB0", 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: 0x1700052E RID: 1326
|
||||
// (get) Token: 0x06002440 RID: 9280 RVA: 0x00016F98 File Offset: 0x00015198
|
||||
// (set) Token: 0x06002441 RID: 9281 RVA: 0x00002050 File Offset: 0x00000250
|
||||
[Token(Token = "0x1700052E")]
|
||||
[ComVisible(false)]
|
||||
public bool UseSalt
|
||||
{
|
||||
[Token(Token = "0x6002440")]
|
||||
[Address(RVA = "0x41CF80", Offset = "0x41BF80", VA = "0x18041CF80")]
|
||||
get
|
||||
{
|
||||
return default(bool);
|
||||
}
|
||||
[Token(Token = "0x6002441")]
|
||||
[Address(RVA = "0x41D090", Offset = "0x41C090", VA = "0x18041D090")]
|
||||
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: 0x06002442 RID: 9282 RVA: 0x00002082 File Offset: 0x00000282
|
||||
[Token(Token = "0x6002442")]
|
||||
[Address(RVA = "0xC10A70", Offset = "0xC0FA70", VA = "0x180C10A70", 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: 0x06002443 RID: 9283 RVA: 0x00002082 File Offset: 0x00000282
|
||||
[Token(Token = "0x6002443")]
|
||||
[Address(RVA = "0xC109B0", Offset = "0xC0F9B0", VA = "0x180C109B0", 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: 0x06002444 RID: 9284 RVA: 0x00002050 File Offset: 0x00000250
|
||||
[Token(Token = "0x6002444")]
|
||||
[Address(RVA = "0xC10BC0", Offset = "0xC0FBC0", VA = "0x180C10BC0", 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: 0x06002445 RID: 9285 RVA: 0x00002050 File Offset: 0x00000250
|
||||
[Token(Token = "0x6002445")]
|
||||
[Address(RVA = "0xC10B30", Offset = "0xC0FB30", VA = "0x180C10B30", Slot = "27")]
|
||||
public override void GenerateIV()
|
||||
{
|
||||
}
|
||||
|
||||
// Token: 0x0400143E RID: 5182
|
||||
[global::Cpp2IlInjected.FieldOffset(Offset = "0x50")]
|
||||
[Token(Token = "0x400143E")]
|
||||
private bool m_use40bitSalt;
|
||||
|
||||
// Token: 0x0400143F RID: 5183
|
||||
[Token(Token = "0x400143F")]
|
||||
private static KeySizes[] s_legalKeySizes;
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,59 @@
|
||||
using System;
|
||||
using Cpp2IlInjected;
|
||||
using Mono.Security.Cryptography;
|
||||
|
||||
namespace System.Security.Cryptography
|
||||
{
|
||||
// Token: 0x02000443 RID: 1091
|
||||
[Token(Token = "0x2000443")]
|
||||
internal class RC2Transform : SymmetricTransform
|
||||
{
|
||||
// Token: 0x060025EF RID: 9711 RVA: 0x00002050 File Offset: 0x00000250
|
||||
[Token(Token = "0x60025EF")]
|
||||
[Address(RVA = "0xC11F00", Offset = "0xC10F00", VA = "0x180C11F00")]
|
||||
public RC2Transform(RC2 rc2Algo, bool encryption, byte[] key, byte[] iv)
|
||||
{
|
||||
}
|
||||
|
||||
// Token: 0x060025F0 RID: 9712 RVA: 0x00002050 File Offset: 0x00000250
|
||||
[Token(Token = "0x60025F0")]
|
||||
[Address(RVA = "0xC10F30", Offset = "0xC0FF30", VA = "0x180C10F30", Slot = "17")]
|
||||
protected override void ECB(byte[] input, byte[] output)
|
||||
{
|
||||
}
|
||||
|
||||
// Token: 0x04001517 RID: 5399
|
||||
[FieldOffset(Offset = "0x58")]
|
||||
[Token(Token = "0x4001517")]
|
||||
private ushort R0;
|
||||
|
||||
// Token: 0x04001518 RID: 5400
|
||||
[FieldOffset(Offset = "0x5A")]
|
||||
[Token(Token = "0x4001518")]
|
||||
private ushort R1;
|
||||
|
||||
// Token: 0x04001519 RID: 5401
|
||||
[FieldOffset(Offset = "0x5C")]
|
||||
[Token(Token = "0x4001519")]
|
||||
private ushort R2;
|
||||
|
||||
// Token: 0x0400151A RID: 5402
|
||||
[FieldOffset(Offset = "0x5E")]
|
||||
[Token(Token = "0x400151A")]
|
||||
private ushort R3;
|
||||
|
||||
// Token: 0x0400151B RID: 5403
|
||||
[FieldOffset(Offset = "0x60")]
|
||||
[Token(Token = "0x400151B")]
|
||||
private ushort[] K;
|
||||
|
||||
// Token: 0x0400151C RID: 5404
|
||||
[FieldOffset(Offset = "0x68")]
|
||||
[Token(Token = "0x400151C")]
|
||||
private int j;
|
||||
|
||||
// Token: 0x0400151D RID: 5405
|
||||
[Token(Token = "0x400151D")]
|
||||
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: 0x0200041D RID: 1053
|
||||
[Token(Token = "0x200041D")]
|
||||
[ComVisible(true)]
|
||||
public abstract class RIPEMD160 : HashAlgorithm
|
||||
{
|
||||
/// <summary>Initializes a new instance of the <see cref="T:System.Security.Cryptography.RIPEMD160" /> class.</summary>
|
||||
// Token: 0x06002478 RID: 9336 RVA: 0x00002050 File Offset: 0x00000250
|
||||
[Token(Token = "0x6002478")]
|
||||
[Address(RVA = "0x1020B90", Offset = "0x101FB90", VA = "0x181020B90")]
|
||||
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: 0x06002479 RID: 9337 RVA: 0x00002082 File Offset: 0x00000282
|
||||
[Token(Token = "0x6002479")]
|
||||
[Address(RVA = "0x1020A90", Offset = "0x101FA90", VA = "0x181020A90")]
|
||||
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: 0x0600247A RID: 9338 RVA: 0x00002082 File Offset: 0x00000282
|
||||
[Token(Token = "0x600247A")]
|
||||
[Address(RVA = "0x1020A00", Offset = "0x101FA00", VA = "0x181020A00")]
|
||||
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: 0x0200041E RID: 1054
|
||||
[Token(Token = "0x200041E")]
|
||||
[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: 0x0600247B RID: 9339 RVA: 0x00002050 File Offset: 0x00000250
|
||||
[Token(Token = "0x600247B")]
|
||||
[Address(RVA = "0x1020920", Offset = "0x101F920", VA = "0x181020920")]
|
||||
public RIPEMD160Managed()
|
||||
{
|
||||
}
|
||||
|
||||
/// <summary>Initializes an instance of the <see cref="T:System.Security.Cryptography.RIPEMD160Managed" /> class using the managed library.</summary>
|
||||
// Token: 0x0600247C RID: 9340 RVA: 0x00002050 File Offset: 0x00000250
|
||||
[Token(Token = "0x600247C")]
|
||||
[Address(RVA = "0x101E340", Offset = "0x101D340", VA = "0x18101E340", 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: 0x0600247D RID: 9341 RVA: 0x00002050 File Offset: 0x00000250
|
||||
[Token(Token = "0x600247D")]
|
||||
[Address(RVA = "0x101E230", Offset = "0x101D230", VA = "0x18101E230", 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: 0x0600247E RID: 9342 RVA: 0x00002082 File Offset: 0x00000282
|
||||
[Token(Token = "0x600247E")]
|
||||
[Address(RVA = "0x101E240", Offset = "0x101D240", VA = "0x18101E240", Slot = "20")]
|
||||
protected override byte[] HashFinal()
|
||||
{
|
||||
return null;
|
||||
}
|
||||
|
||||
// Token: 0x0600247F RID: 9343 RVA: 0x00002050 File Offset: 0x00000250
|
||||
[Token(Token = "0x600247F")]
|
||||
[Address(RVA = "0x101E260", Offset = "0x101D260", VA = "0x18101E260")]
|
||||
private void InitializeState()
|
||||
{
|
||||
}
|
||||
|
||||
// Token: 0x06002480 RID: 9344 RVA: 0x00002050 File Offset: 0x00000250
|
||||
[Token(Token = "0x6002480")]
|
||||
[Address(RVA = "0x1020780", Offset = "0x101F780", VA = "0x181020780")]
|
||||
private void _HashData(byte[] partIn, int ibStart, int cbSize)
|
||||
{
|
||||
}
|
||||
|
||||
// Token: 0x06002481 RID: 9345 RVA: 0x00002082 File Offset: 0x00000282
|
||||
[Token(Token = "0x6002481")]
|
||||
[Address(RVA = "0x1020530", Offset = "0x101F530", VA = "0x181020530")]
|
||||
private byte[] _EndHash()
|
||||
{
|
||||
return null;
|
||||
}
|
||||
|
||||
// Token: 0x06002482 RID: 9346 RVA: 0x00002050 File Offset: 0x00000250
|
||||
[Token(Token = "0x6002482")]
|
||||
[Address(RVA = "0x101E3A0", Offset = "0x101D3A0", VA = "0x18101E3A0")]
|
||||
private unsafe static void MDTransform(uint* blockDWords, uint* state, byte* block)
|
||||
{
|
||||
}
|
||||
|
||||
// Token: 0x06002483 RID: 9347 RVA: 0x00017100 File Offset: 0x00015300
|
||||
[Token(Token = "0x6002483")]
|
||||
[Address(RVA = "0x101E200", Offset = "0x101D200", VA = "0x18101E200")]
|
||||
private static uint F(uint x, uint y, uint z)
|
||||
{
|
||||
return 0U;
|
||||
}
|
||||
|
||||
// Token: 0x06002484 RID: 9348 RVA: 0x00017118 File Offset: 0x00015318
|
||||
[Token(Token = "0x6002484")]
|
||||
[Address(RVA = "0x101E210", Offset = "0x101D210", VA = "0x18101E210")]
|
||||
private static uint G(uint x, uint y, uint z)
|
||||
{
|
||||
return 0U;
|
||||
}
|
||||
|
||||
// Token: 0x06002485 RID: 9349 RVA: 0x00017130 File Offset: 0x00015330
|
||||
[Token(Token = "0x6002485")]
|
||||
[Address(RVA = "0x101E220", Offset = "0x101D220", VA = "0x18101E220")]
|
||||
private static uint H(uint x, uint y, uint z)
|
||||
{
|
||||
return 0U;
|
||||
}
|
||||
|
||||
// Token: 0x06002486 RID: 9350 RVA: 0x00017148 File Offset: 0x00015348
|
||||
[Token(Token = "0x6002486")]
|
||||
[Address(RVA = "0x101E250", Offset = "0x101D250", VA = "0x18101E250")]
|
||||
private static uint I(uint x, uint y, uint z)
|
||||
{
|
||||
return 0U;
|
||||
}
|
||||
|
||||
// Token: 0x06002487 RID: 9351 RVA: 0x00017160 File Offset: 0x00015360
|
||||
[Token(Token = "0x6002487")]
|
||||
[Address(RVA = "0x101E390", Offset = "0x101D390", VA = "0x18101E390")]
|
||||
private static uint J(uint x, uint y, uint z)
|
||||
{
|
||||
return 0U;
|
||||
}
|
||||
|
||||
// Token: 0x04001466 RID: 5222
|
||||
[global::Cpp2IlInjected.FieldOffset(Offset = "0x28")]
|
||||
[Token(Token = "0x4001466")]
|
||||
private byte[] _buffer;
|
||||
|
||||
// Token: 0x04001467 RID: 5223
|
||||
[global::Cpp2IlInjected.FieldOffset(Offset = "0x30")]
|
||||
[Token(Token = "0x4001467")]
|
||||
private long _count;
|
||||
|
||||
// Token: 0x04001468 RID: 5224
|
||||
[global::Cpp2IlInjected.FieldOffset(Offset = "0x38")]
|
||||
[Token(Token = "0x4001468")]
|
||||
private uint[] _stateMD160;
|
||||
|
||||
// Token: 0x04001469 RID: 5225
|
||||
[global::Cpp2IlInjected.FieldOffset(Offset = "0x40")]
|
||||
[Token(Token = "0x4001469")]
|
||||
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: 0x02000444 RID: 1092
|
||||
[Token(Token = "0x2000444")]
|
||||
public sealed class RNGCryptoServiceProvider : RandomNumberGenerator
|
||||
{
|
||||
/// <summary>Initializes a new instance of the <see cref="T:System.Security.Cryptography.RNGCryptoServiceProvider" /> class.</summary>
|
||||
// Token: 0x060025F3 RID: 9715 RVA: 0x00002050 File Offset: 0x00000250
|
||||
[Token(Token = "0x60025F3")]
|
||||
[Address(RVA = "0x1021150", Offset = "0x1020150", VA = "0x181021150")]
|
||||
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: 0x060025F4 RID: 9716 RVA: 0x00002050 File Offset: 0x00000250
|
||||
[Token(Token = "0x60025F4")]
|
||||
[Address(RVA = "0x10210D0", Offset = "0x10200D0", VA = "0x1810210D0")]
|
||||
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: 0x060025F5 RID: 9717 RVA: 0x00002050 File Offset: 0x00000250
|
||||
[Token(Token = "0x60025F5")]
|
||||
[Address(RVA = "0x1021290", Offset = "0x1020290", VA = "0x181021290")]
|
||||
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: 0x060025F6 RID: 9718 RVA: 0x00002050 File Offset: 0x00000250
|
||||
[Token(Token = "0x60025F6")]
|
||||
[Address(RVA = "0x10211C0", Offset = "0x10201C0", VA = "0x1810211C0")]
|
||||
public RNGCryptoServiceProvider(string str)
|
||||
{
|
||||
}
|
||||
|
||||
// Token: 0x060025F7 RID: 9719 RVA: 0x00002050 File Offset: 0x00000250
|
||||
[Token(Token = "0x60025F7")]
|
||||
[Address(RVA = "0x1020BB0", Offset = "0x101FBB0", VA = "0x181020BB0")]
|
||||
private void Check()
|
||||
{
|
||||
}
|
||||
|
||||
// Token: 0x060025F8 RID: 9720 RVA: 0x000178F8 File Offset: 0x00015AF8
|
||||
[Token(Token = "0x60025F8")]
|
||||
[Address(RVA = "0x1021050", Offset = "0x1020050", VA = "0x181021050")]
|
||||
private static bool RngOpen()
|
||||
{
|
||||
return default(bool);
|
||||
}
|
||||
|
||||
// Token: 0x060025F9 RID: 9721 RVA: 0x00017910 File Offset: 0x00015B10
|
||||
[Token(Token = "0x60025F9")]
|
||||
[Address(RVA = "0x1021040", Offset = "0x1020040", VA = "0x181021040")]
|
||||
private static IntPtr RngInitialize(byte[] seed)
|
||||
{
|
||||
return 0;
|
||||
}
|
||||
|
||||
// Token: 0x060025FA RID: 9722 RVA: 0x00017928 File Offset: 0x00015B28
|
||||
[Token(Token = "0x60025FA")]
|
||||
[Address(RVA = "0x1021030", Offset = "0x1020030", VA = "0x181021030")]
|
||||
private static IntPtr RngGetBytes(IntPtr handle, byte[] data)
|
||||
{
|
||||
return 0;
|
||||
}
|
||||
|
||||
// Token: 0x060025FB RID: 9723 RVA: 0x00002050 File Offset: 0x00000250
|
||||
[Token(Token = "0x60025FB")]
|
||||
[Address(RVA = "0x1021020", Offset = "0x1020020", VA = "0x181021020")]
|
||||
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: 0x060025FC RID: 9724 RVA: 0x00002050 File Offset: 0x00000250
|
||||
[Token(Token = "0x60025FC")]
|
||||
[Address(RVA = "0x1020D10", Offset = "0x101FD10", VA = "0x181020D10", 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: 0x060025FD RID: 9725 RVA: 0x00002050 File Offset: 0x00000250
|
||||
[Token(Token = "0x60025FD")]
|
||||
[Address(RVA = "0x1020EC0", Offset = "0x101FEC0", VA = "0x181020EC0", Slot = "8")]
|
||||
public override void GetNonZeroBytes(byte[] data)
|
||||
{
|
||||
}
|
||||
|
||||
// Token: 0x060025FE RID: 9726 RVA: 0x00002050 File Offset: 0x00000250
|
||||
[Token(Token = "0x60025FE")]
|
||||
[Address(RVA = "0x1020C40", Offset = "0x101FC40", VA = "0x181020C40", Slot = "1")]
|
||||
protected override void Finalize()
|
||||
{
|
||||
}
|
||||
|
||||
// Token: 0x060025FF RID: 9727 RVA: 0x00002050 File Offset: 0x00000250
|
||||
[Token(Token = "0x60025FF")]
|
||||
[Address(RVA = "0x4242D0", Offset = "0x4232D0", VA = "0x1804242D0", Slot = "5")]
|
||||
protected override void Dispose(bool disposing)
|
||||
{
|
||||
}
|
||||
|
||||
// Token: 0x0400151E RID: 5406
|
||||
[Token(Token = "0x400151E")]
|
||||
private static object _lock;
|
||||
|
||||
// Token: 0x0400151F RID: 5407
|
||||
[FieldOffset(Offset = "0x10")]
|
||||
[Token(Token = "0x400151F")]
|
||||
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: 0x02000420 RID: 1056
|
||||
[Token(Token = "0x2000420")]
|
||||
[ComVisible(true)]
|
||||
public abstract class RSA : AsymmetricAlgorithm
|
||||
{
|
||||
/// <summary>Initializes a new instance of the <see cref="T:System.Security.Cryptography.RSA" /> class.</summary>
|
||||
// Token: 0x06002488 RID: 9352 RVA: 0x00002050 File Offset: 0x00000250
|
||||
[Token(Token = "0x6002488")]
|
||||
[Address(RVA = "0x42BA20", Offset = "0x42AA20", VA = "0x18042BA20")]
|
||||
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: 0x06002489 RID: 9353 RVA: 0x00002082 File Offset: 0x00000282
|
||||
[Token(Token = "0x6002489")]
|
||||
[Address(RVA = "0x1026CE0", Offset = "0x1025CE0", VA = "0x181026CE0")]
|
||||
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: 0x0600248A RID: 9354 RVA: 0x00002082 File Offset: 0x00000282
|
||||
[Token(Token = "0x600248A")]
|
||||
[Address(RVA = "0x1026C50", Offset = "0x1025C50", VA = "0x181026C50")]
|
||||
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: 0x0600248B RID: 9355 RVA: 0x00002082 File Offset: 0x00000282
|
||||
[Token(Token = "0x600248B")]
|
||||
[Address(RVA = "0x1026ED0", Offset = "0x1025ED0", VA = "0x181026ED0", 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: 0x0600248C RID: 9356 RVA: 0x00002082 File Offset: 0x00000282
|
||||
[Token(Token = "0x600248C")]
|
||||
[Address(RVA = "0x1026DB0", Offset = "0x1025DB0", VA = "0x181026DB0", 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: 0x0600248D RID: 9357 RVA: 0x00002082 File Offset: 0x00000282
|
||||
[Token(Token = "0x600248D")]
|
||||
[Address(RVA = "0x1027A40", Offset = "0x1026A40", VA = "0x181027A40", 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: 0x0600248E RID: 9358 RVA: 0x00017178 File Offset: 0x00015378
|
||||
[Token(Token = "0x600248E")]
|
||||
[Address(RVA = "0x10281F0", Offset = "0x10271F0", VA = "0x1810281F0", 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: 0x0600248F RID: 9359 RVA: 0x00002082 File Offset: 0x00000282
|
||||
[Token(Token = "0x600248F")]
|
||||
[Address(RVA = "0x10275E0", Offset = "0x10265E0", VA = "0x1810275E0", 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: 0x06002490 RID: 9360 RVA: 0x00002082 File Offset: 0x00000282
|
||||
[Token(Token = "0x6002490")]
|
||||
[Address(RVA = "0x10275A0", Offset = "0x10265A0", VA = "0x1810275A0", 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: 0x06002491 RID: 9361 RVA: 0x00002082 File Offset: 0x00000282
|
||||
[Token(Token = "0x6002491")]
|
||||
[Address(RVA = "0x1027620", Offset = "0x1026620", VA = "0x181027620")]
|
||||
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: 0x06002492 RID: 9362 RVA: 0x00002082 File Offset: 0x00000282
|
||||
[Token(Token = "0x6002492")]
|
||||
[Address(RVA = "0x10276E0", Offset = "0x10266E0", VA = "0x1810276E0", 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: 0x06002493 RID: 9363 RVA: 0x00002082 File Offset: 0x00000282
|
||||
[Token(Token = "0x6002493")]
|
||||
[Address(RVA = "0x10278E0", Offset = "0x10268E0", VA = "0x1810278E0", 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: 0x06002494 RID: 9364 RVA: 0x00017190 File Offset: 0x00015390
|
||||
[Token(Token = "0x6002494")]
|
||||
[Address(RVA = "0x1027EF0", Offset = "0x1026EF0", VA = "0x181027EF0")]
|
||||
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: 0x06002495 RID: 9365 RVA: 0x000171A8 File Offset: 0x000153A8
|
||||
[Token(Token = "0x6002495")]
|
||||
[Address(RVA = "0x1027FB0", Offset = "0x1026FB0", VA = "0x181027FB0", 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: 0x06002496 RID: 9366 RVA: 0x000171C0 File Offset: 0x000153C0
|
||||
[Token(Token = "0x6002496")]
|
||||
[Address(RVA = "0x1027D40", Offset = "0x1026D40", VA = "0x181027D40")]
|
||||
public bool VerifyData(Stream data, byte[] signature, HashAlgorithmName hashAlgorithm, RSASignaturePadding padding)
|
||||
{
|
||||
return default(bool);
|
||||
}
|
||||
|
||||
// Token: 0x06002497 RID: 9367 RVA: 0x00002082 File Offset: 0x00000282
|
||||
[Token(Token = "0x6002497")]
|
||||
[Address(RVA = "0x1026DF0", Offset = "0x1025DF0", VA = "0x181026DF0")]
|
||||
private static Exception DerivedClassMustOverride()
|
||||
{
|
||||
return null;
|
||||
}
|
||||
|
||||
// Token: 0x06002498 RID: 9368 RVA: 0x00002082 File Offset: 0x00000282
|
||||
[Token(Token = "0x6002498")]
|
||||
[Address(RVA = "0x1027530", Offset = "0x1026530", VA = "0x181027530")]
|
||||
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: 0x06002499 RID: 9369 RVA: 0x00002082 File Offset: 0x00000282
|
||||
[Token(Token = "0x6002499")]
|
||||
[Address(RVA = "0x1026D40", Offset = "0x1025D40", VA = "0x181026D40", 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: 0x0600249A RID: 9370 RVA: 0x00002082 File Offset: 0x00000282
|
||||
[Token(Token = "0x600249A")]
|
||||
[Address(RVA = "0x1026E60", Offset = "0x1025E60", VA = "0x181026E60", 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: 0x17000536 RID: 1334
|
||||
// (get) Token: 0x0600249B RID: 9371 RVA: 0x00002082 File Offset: 0x00000282
|
||||
[Token(Token = "0x17000536")]
|
||||
public override string KeyExchangeAlgorithm
|
||||
{
|
||||
[Token(Token = "0x600249B")]
|
||||
[Address(RVA = "0x1028230", Offset = "0x1027230", VA = "0x181028230", 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: 0x17000537 RID: 1335
|
||||
// (get) Token: 0x0600249C RID: 9372 RVA: 0x00002082 File Offset: 0x00000282
|
||||
[Token(Token = "0x17000537")]
|
||||
public override string SignatureAlgorithm
|
||||
{
|
||||
[Token(Token = "0x600249C")]
|
||||
[Address(RVA = "0x1028260", Offset = "0x1027260", VA = "0x181028260", 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: 0x0600249D RID: 9373 RVA: 0x00002050 File Offset: 0x00000250
|
||||
[Token(Token = "0x600249D")]
|
||||
[Address(RVA = "0x1026F10", Offset = "0x1025F10", VA = "0x181026F10", 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: 0x0600249E RID: 9374 RVA: 0x00002082 File Offset: 0x00000282
|
||||
[Token(Token = "0x600249E")]
|
||||
[Address(RVA = "0x1027A80", Offset = "0x1026A80", VA = "0x181027A80", 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: 0x0600249F RID: 9375
|
||||
[Token(Token = "0x600249F")]
|
||||
[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: 0x060024A0 RID: 9376
|
||||
[Token(Token = "0x60024A0")]
|
||||
[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: 0x02000421 RID: 1057
|
||||
[Token(Token = "0x2000421")]
|
||||
[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: 0x17000538 RID: 1336
|
||||
// (get) Token: 0x060024A1 RID: 9377 RVA: 0x00002082 File Offset: 0x00000282
|
||||
[Token(Token = "0x17000538")]
|
||||
public override string SignatureAlgorithm
|
||||
{
|
||||
[Token(Token = "0x60024A1")]
|
||||
[Address(RVA = "0x1023FF0", Offset = "0x1022FF0", VA = "0x181023FF0", 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: 0x17000539 RID: 1337
|
||||
// (get) Token: 0x060024A2 RID: 9378 RVA: 0x000171D8 File Offset: 0x000153D8
|
||||
// (set) Token: 0x060024A3 RID: 9379 RVA: 0x00002050 File Offset: 0x00000250
|
||||
[Token(Token = "0x17000539")]
|
||||
public static bool UseMachineKeyStore
|
||||
{
|
||||
[Token(Token = "0x60024A2")]
|
||||
[Address(RVA = "0x1024020", Offset = "0x1023020", VA = "0x181024020")]
|
||||
get
|
||||
{
|
||||
return default(bool);
|
||||
}
|
||||
[Token(Token = "0x60024A3")]
|
||||
[Address(RVA = "0x1024110", Offset = "0x1023110", VA = "0x181024110")]
|
||||
set
|
||||
{
|
||||
}
|
||||
}
|
||||
|
||||
// Token: 0x060024A4 RID: 9380 RVA: 0x00002082 File Offset: 0x00000282
|
||||
[Token(Token = "0x60024A4")]
|
||||
[Address(RVA = "0x1022830", Offset = "0x1021830", VA = "0x181022830", Slot = "17")]
|
||||
protected override byte[] HashData(byte[] data, int offset, int count, HashAlgorithmName hashAlgorithm)
|
||||
{
|
||||
return null;
|
||||
}
|
||||
|
||||
// Token: 0x060024A5 RID: 9381 RVA: 0x00002082 File Offset: 0x00000282
|
||||
[Token(Token = "0x60024A5")]
|
||||
[Address(RVA = "0x1022890", Offset = "0x1021890", VA = "0x181022890", Slot = "18")]
|
||||
protected override byte[] HashData(Stream data, HashAlgorithmName hashAlgorithm)
|
||||
{
|
||||
return null;
|
||||
}
|
||||
|
||||
// Token: 0x060024A6 RID: 9382 RVA: 0x000171F0 File Offset: 0x000153F0
|
||||
[Token(Token = "0x60024A6")]
|
||||
[Address(RVA = "0x1022210", Offset = "0x1021210", VA = "0x181022210")]
|
||||
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: 0x060024A7 RID: 9383 RVA: 0x00002082 File Offset: 0x00000282
|
||||
[Token(Token = "0x60024A7")]
|
||||
[Address(RVA = "0x1021BC0", Offset = "0x1020BC0", VA = "0x181021BC0", 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: 0x060024A8 RID: 9384 RVA: 0x00002082 File Offset: 0x00000282
|
||||
[Token(Token = "0x60024A8")]
|
||||
[Address(RVA = "0x10216B0", Offset = "0x10206B0", VA = "0x1810216B0", 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: 0x060024A9 RID: 9385 RVA: 0x00002082 File Offset: 0x00000282
|
||||
[Token(Token = "0x60024A9")]
|
||||
[Address(RVA = "0x10233C0", Offset = "0x10223C0", VA = "0x1810233C0", 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: 0x060024AA RID: 9386 RVA: 0x00017208 File Offset: 0x00015408
|
||||
[Token(Token = "0x60024AA")]
|
||||
[Address(RVA = "0x10237F0", Offset = "0x10227F0", VA = "0x1810237F0", Slot = "16")]
|
||||
public override bool VerifyHash(byte[] hash, byte[] signature, HashAlgorithmName hashAlgorithm, RSASignaturePadding padding)
|
||||
{
|
||||
return default(bool);
|
||||
}
|
||||
|
||||
// Token: 0x060024AB RID: 9387 RVA: 0x00002082 File Offset: 0x00000282
|
||||
[Token(Token = "0x60024AB")]
|
||||
[Address(RVA = "0x1023030", Offset = "0x1022030", VA = "0x181023030")]
|
||||
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: 0x060024AC RID: 9388 RVA: 0x00002050 File Offset: 0x00000250
|
||||
[Token(Token = "0x60024AC")]
|
||||
[Address(RVA = "0x1023D70", Offset = "0x1022D70", VA = "0x181023D70")]
|
||||
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: 0x060024AD RID: 9389 RVA: 0x00002050 File Offset: 0x00000250
|
||||
[Token(Token = "0x60024AD")]
|
||||
[Address(RVA = "0x1023C50", Offset = "0x1022C50", VA = "0x181023C50")]
|
||||
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: 0x060024AE RID: 9390 RVA: 0x00002050 File Offset: 0x00000250
|
||||
[Token(Token = "0x60024AE")]
|
||||
[Address(RVA = "0x1023EC0", Offset = "0x1022EC0", VA = "0x181023EC0")]
|
||||
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: 0x060024AF RID: 9391 RVA: 0x00002050 File Offset: 0x00000250
|
||||
[Token(Token = "0x60024AF")]
|
||||
[Address(RVA = "0x1023DA0", Offset = "0x1022DA0", VA = "0x181023DA0")]
|
||||
public RSACryptoServiceProvider(int dwKeySize, CspParameters parameters)
|
||||
{
|
||||
}
|
||||
|
||||
// Token: 0x060024B0 RID: 9392 RVA: 0x00002050 File Offset: 0x00000250
|
||||
[Token(Token = "0x60024B0")]
|
||||
[Address(RVA = "0x1021300", Offset = "0x1020300", VA = "0x181021300")]
|
||||
private void Common(int dwKeySize, bool parameters)
|
||||
{
|
||||
}
|
||||
|
||||
// Token: 0x060024B1 RID: 9393 RVA: 0x00002050 File Offset: 0x00000250
|
||||
[Token(Token = "0x60024B1")]
|
||||
[Address(RVA = "0x1021510", Offset = "0x1020510", VA = "0x181021510")]
|
||||
private void Common(CspParameters p)
|
||||
{
|
||||
}
|
||||
|
||||
// Token: 0x060024B2 RID: 9394 RVA: 0x00002050 File Offset: 0x00000250
|
||||
[Token(Token = "0x60024B2")]
|
||||
[Address(RVA = "0x1022190", Offset = "0x1021190", VA = "0x181022190", 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: 0x1700053A RID: 1338
|
||||
// (get) Token: 0x060024B3 RID: 9395 RVA: 0x00002082 File Offset: 0x00000282
|
||||
[Token(Token = "0x1700053A")]
|
||||
public override string KeyExchangeAlgorithm
|
||||
{
|
||||
[Token(Token = "0x60024B3")]
|
||||
[Address(RVA = "0x1023F70", Offset = "0x1022F70", VA = "0x181023F70", Slot = "10")]
|
||||
get
|
||||
{
|
||||
return null;
|
||||
}
|
||||
}
|
||||
|
||||
/// <summary>Gets the size of the current key.</summary>
|
||||
/// <returns>The size of the key in bits.</returns>
|
||||
// Token: 0x1700053B RID: 1339
|
||||
// (get) Token: 0x060024B4 RID: 9396 RVA: 0x00017220 File Offset: 0x00015420
|
||||
[Token(Token = "0x1700053B")]
|
||||
public override int KeySize
|
||||
{
|
||||
[Token(Token = "0x60024B4")]
|
||||
[Address(RVA = "0x1023FA0", Offset = "0x1022FA0", VA = "0x181023FA0", 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: 0x1700053C RID: 1340
|
||||
// (get) Token: 0x060024B5 RID: 9397 RVA: 0x00017238 File Offset: 0x00015438
|
||||
// (set) Token: 0x060024B6 RID: 9398 RVA: 0x00002050 File Offset: 0x00000250
|
||||
[Token(Token = "0x1700053C")]
|
||||
public bool PersistKeyInCsp
|
||||
{
|
||||
[Token(Token = "0x60024B5")]
|
||||
[Address(RVA = "0x51F260", Offset = "0x51E260", VA = "0x18051F260")]
|
||||
get
|
||||
{
|
||||
return default(bool);
|
||||
}
|
||||
[Token(Token = "0x60024B6")]
|
||||
[Address(RVA = "0x1024090", Offset = "0x1023090", VA = "0x181024090")]
|
||||
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: 0x1700053D RID: 1341
|
||||
// (get) Token: 0x060024B7 RID: 9399 RVA: 0x00017250 File Offset: 0x00015450
|
||||
[Token(Token = "0x1700053D")]
|
||||
[ComVisible(false)]
|
||||
public bool PublicOnly
|
||||
{
|
||||
[Token(Token = "0x60024B7")]
|
||||
[Address(RVA = "0x1023FD0", Offset = "0x1022FD0", VA = "0x181023FD0")]
|
||||
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: 0x060024B8 RID: 9400 RVA: 0x00002082 File Offset: 0x00000282
|
||||
[Token(Token = "0x60024B8")]
|
||||
[Address(RVA = "0x1021860", Offset = "0x1020860", VA = "0x181021860")]
|
||||
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: 0x060024B9 RID: 9401 RVA: 0x00002082 File Offset: 0x00000282
|
||||
[Token(Token = "0x60024B9")]
|
||||
[Address(RVA = "0x1021610", Offset = "0x1020610", VA = "0x181021610", 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: 0x060024BA RID: 9402 RVA: 0x00002082 File Offset: 0x00000282
|
||||
[Token(Token = "0x60024BA")]
|
||||
[Address(RVA = "0x1021D70", Offset = "0x1020D70", VA = "0x181021D70")]
|
||||
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: 0x060024BB RID: 9403 RVA: 0x00002082 File Offset: 0x00000282
|
||||
[Token(Token = "0x60024BB")]
|
||||
[Address(RVA = "0x1021B90", Offset = "0x1020B90", VA = "0x181021B90", 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: 0x060024BC RID: 9404 RVA: 0x00017268 File Offset: 0x00015468
|
||||
[Token(Token = "0x60024BC")]
|
||||
[Address(RVA = "0x1021FE0", Offset = "0x1020FE0", VA = "0x181021FE0", 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: 0x060024BD RID: 9405 RVA: 0x00002050 File Offset: 0x00000250
|
||||
[Token(Token = "0x60024BD")]
|
||||
[Address(RVA = "0x1022BB0", Offset = "0x1021BB0", VA = "0x181022BB0", Slot = "25")]
|
||||
public override void ImportParameters(RSAParameters parameters)
|
||||
{
|
||||
}
|
||||
|
||||
// Token: 0x060024BE RID: 9406 RVA: 0x00002082 File Offset: 0x00000282
|
||||
[Token(Token = "0x60024BE")]
|
||||
[Address(RVA = "0x1022570", Offset = "0x1021570", VA = "0x181022570")]
|
||||
private HashAlgorithm GetHash(object halg)
|
||||
{
|
||||
return null;
|
||||
}
|
||||
|
||||
// Token: 0x060024BF RID: 9407 RVA: 0x00002082 File Offset: 0x00000282
|
||||
[Token(Token = "0x60024BF")]
|
||||
[Address(RVA = "0x1022370", Offset = "0x1021370", VA = "0x181022370")]
|
||||
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: 0x060024C0 RID: 9408 RVA: 0x00002082 File Offset: 0x00000282
|
||||
[Token(Token = "0x60024C0")]
|
||||
[Address(RVA = "0x1023140", Offset = "0x1022140", VA = "0x181023140")]
|
||||
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: 0x060024C1 RID: 9409 RVA: 0x00002082 File Offset: 0x00000282
|
||||
[Token(Token = "0x60024C1")]
|
||||
[Address(RVA = "0x10230A0", Offset = "0x10220A0", VA = "0x1810230A0")]
|
||||
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: 0x060024C2 RID: 9410 RVA: 0x00002082 File Offset: 0x00000282
|
||||
[Token(Token = "0x60024C2")]
|
||||
[Address(RVA = "0x1023250", Offset = "0x1022250", VA = "0x181023250")]
|
||||
public byte[] SignData(byte[] buffer, int offset, int count, object halg)
|
||||
{
|
||||
return null;
|
||||
}
|
||||
|
||||
// Token: 0x060024C3 RID: 9411 RVA: 0x00002082 File Offset: 0x00000282
|
||||
[Token(Token = "0x60024C3")]
|
||||
[Address(RVA = "0x1022450", Offset = "0x1021450", VA = "0x181022450")]
|
||||
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: 0x060024C4 RID: 9412 RVA: 0x00002082 File Offset: 0x00000282
|
||||
[Token(Token = "0x60024C4")]
|
||||
[Address(RVA = "0x10235F0", Offset = "0x10225F0", VA = "0x1810235F0")]
|
||||
public byte[] SignHash(byte[] rgbHash, string str)
|
||||
{
|
||||
return null;
|
||||
}
|
||||
|
||||
// Token: 0x060024C5 RID: 9413 RVA: 0x00002082 File Offset: 0x00000282
|
||||
[Token(Token = "0x60024C5")]
|
||||
[Address(RVA = "0x1023320", Offset = "0x1022320", VA = "0x181023320")]
|
||||
private byte[] SignHash(byte[] rgbHash, int calgHash)
|
||||
{
|
||||
return null;
|
||||
}
|
||||
|
||||
// Token: 0x060024C6 RID: 9414 RVA: 0x00002082 File Offset: 0x00000282
|
||||
[Token(Token = "0x60024C6")]
|
||||
[Address(RVA = "0x1022C00", Offset = "0x1021C00", VA = "0x181022C00")]
|
||||
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: 0x060024C7 RID: 9415 RVA: 0x00017280 File Offset: 0x00015480
|
||||
[Token(Token = "0x60024C7")]
|
||||
[Address(RVA = "0x10236C0", Offset = "0x10226C0", VA = "0x1810236C0")]
|
||||
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: 0x060024C8 RID: 9416 RVA: 0x00017298 File Offset: 0x00015498
|
||||
[Token(Token = "0x60024C8")]
|
||||
[Address(RVA = "0x1023B30", Offset = "0x1022B30", VA = "0x181023B30")]
|
||||
public bool VerifyHash(byte[] rgbHash, string str, byte[] rgbSignature)
|
||||
{
|
||||
return default(bool);
|
||||
}
|
||||
|
||||
// Token: 0x060024C9 RID: 9417 RVA: 0x000172B0 File Offset: 0x000154B0
|
||||
[Token(Token = "0x60024C9")]
|
||||
[Address(RVA = "0x1023A70", Offset = "0x1022A70", VA = "0x181023A70")]
|
||||
private bool VerifyHash(byte[] rgbHash, int calgHash, byte[] rgbSignature)
|
||||
{
|
||||
return default(bool);
|
||||
}
|
||||
|
||||
// Token: 0x060024CA RID: 9418 RVA: 0x00002050 File Offset: 0x00000250
|
||||
[Token(Token = "0x60024CA")]
|
||||
[Address(RVA = "0xC06C90", Offset = "0xC05C90", VA = "0x180C06C90", Slot = "5")]
|
||||
protected override void Dispose(bool disposing)
|
||||
{
|
||||
}
|
||||
|
||||
// Token: 0x060024CB RID: 9419 RVA: 0x00002050 File Offset: 0x00000250
|
||||
[Token(Token = "0x60024CB")]
|
||||
[Address(RVA = "0x1022FB0", Offset = "0x1021FB0", VA = "0x181022FB0")]
|
||||
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: 0x1700053E RID: 1342
|
||||
// (get) Token: 0x060024CC RID: 9420 RVA: 0x00002082 File Offset: 0x00000282
|
||||
[Token(Token = "0x1700053E")]
|
||||
[ComVisible(false)]
|
||||
public CspKeyContainerInfo CspKeyContainerInfo
|
||||
{
|
||||
[Token(Token = "0x60024CC")]
|
||||
[Address(RVA = "0x1023F00", Offset = "0x1022F00", VA = "0x181023F00", 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: 0x060024CD RID: 9421 RVA: 0x00002082 File Offset: 0x00000282
|
||||
[Token(Token = "0x60024CD")]
|
||||
[Address(RVA = "0x1021F60", Offset = "0x1020F60", VA = "0x181021F60", 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: 0x060024CE RID: 9422 RVA: 0x00002050 File Offset: 0x00000250
|
||||
[Token(Token = "0x60024CE")]
|
||||
[Address(RVA = "0x10228D0", Offset = "0x10218D0", VA = "0x1810228D0", Slot = "27")]
|
||||
[ComVisible(false)]
|
||||
public void ImportCspBlob(byte[] keyBlob)
|
||||
{
|
||||
}
|
||||
|
||||
// Token: 0x04001472 RID: 5234
|
||||
[Token(Token = "0x4001472")]
|
||||
private static CspProviderFlags s_UseMachineKeyStore;
|
||||
|
||||
// Token: 0x04001473 RID: 5235
|
||||
[Token(Token = "0x4001473")]
|
||||
private const int PROV_RSA_FULL = 1;
|
||||
|
||||
// Token: 0x04001474 RID: 5236
|
||||
[Token(Token = "0x4001474")]
|
||||
private const int AT_KEYEXCHANGE = 1;
|
||||
|
||||
// Token: 0x04001475 RID: 5237
|
||||
[Token(Token = "0x4001475")]
|
||||
private const int AT_SIGNATURE = 2;
|
||||
|
||||
// Token: 0x04001476 RID: 5238
|
||||
[global::Cpp2IlInjected.FieldOffset(Offset = "0x20")]
|
||||
[Token(Token = "0x4001476")]
|
||||
private KeyPairPersistence store;
|
||||
|
||||
// Token: 0x04001477 RID: 5239
|
||||
[global::Cpp2IlInjected.FieldOffset(Offset = "0x28")]
|
||||
[Token(Token = "0x4001477")]
|
||||
private bool persistKey;
|
||||
|
||||
// Token: 0x04001478 RID: 5240
|
||||
[global::Cpp2IlInjected.FieldOffset(Offset = "0x29")]
|
||||
[Token(Token = "0x4001478")]
|
||||
private bool persisted;
|
||||
|
||||
// Token: 0x04001479 RID: 5241
|
||||
[global::Cpp2IlInjected.FieldOffset(Offset = "0x2A")]
|
||||
[Token(Token = "0x4001479")]
|
||||
private bool privateKeyExportable;
|
||||
|
||||
// Token: 0x0400147A RID: 5242
|
||||
[global::Cpp2IlInjected.FieldOffset(Offset = "0x2B")]
|
||||
[Token(Token = "0x400147A")]
|
||||
private bool m_disposed;
|
||||
|
||||
// Token: 0x0400147B RID: 5243
|
||||
[global::Cpp2IlInjected.FieldOffset(Offset = "0x30")]
|
||||
[Token(Token = "0x400147B")]
|
||||
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: 0x020003E5 RID: 997
|
||||
[Token(Token = "0x20003E5")]
|
||||
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: 0x170004E7 RID: 1255
|
||||
// (get) Token: 0x060022E7 RID: 8935 RVA: 0x00002082 File Offset: 0x00000282
|
||||
[Token(Token = "0x170004E7")]
|
||||
public static RSAEncryptionPadding Pkcs1
|
||||
{
|
||||
[Token(Token = "0x60022E7")]
|
||||
[Address(RVA = "0x10247A0", Offset = "0x10237A0", VA = "0x1810247A0")]
|
||||
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: 0x170004E8 RID: 1256
|
||||
// (get) Token: 0x060022E8 RID: 8936 RVA: 0x00002082 File Offset: 0x00000282
|
||||
[Token(Token = "0x170004E8")]
|
||||
public static RSAEncryptionPadding OaepSHA1
|
||||
{
|
||||
[Token(Token = "0x60022E8")]
|
||||
[Address(RVA = "0x10245C0", Offset = "0x10235C0", VA = "0x1810245C0")]
|
||||
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: 0x170004E9 RID: 1257
|
||||
// (get) Token: 0x060022E9 RID: 8937 RVA: 0x00002082 File Offset: 0x00000282
|
||||
[Token(Token = "0x170004E9")]
|
||||
public static RSAEncryptionPadding OaepSHA256
|
||||
{
|
||||
[Token(Token = "0x60022E9")]
|
||||
[Address(RVA = "0x1024680", Offset = "0x1023680", VA = "0x181024680")]
|
||||
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: 0x170004EA RID: 1258
|
||||
// (get) Token: 0x060022EA RID: 8938 RVA: 0x00002082 File Offset: 0x00000282
|
||||
[Token(Token = "0x170004EA")]
|
||||
public static RSAEncryptionPadding OaepSHA384
|
||||
{
|
||||
[Token(Token = "0x60022EA")]
|
||||
[Address(RVA = "0x10246E0", Offset = "0x10236E0", VA = "0x1810246E0")]
|
||||
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: 0x170004EB RID: 1259
|
||||
// (get) Token: 0x060022EB RID: 8939 RVA: 0x00002082 File Offset: 0x00000282
|
||||
[Token(Token = "0x170004EB")]
|
||||
public static RSAEncryptionPadding OaepSHA512
|
||||
{
|
||||
[Token(Token = "0x60022EB")]
|
||||
[Address(RVA = "0x1024740", Offset = "0x1023740", VA = "0x181024740")]
|
||||
get
|
||||
{
|
||||
return null;
|
||||
}
|
||||
}
|
||||
|
||||
// Token: 0x060022EC RID: 8940 RVA: 0x00002050 File Offset: 0x00000250
|
||||
[Token(Token = "0x60022EC")]
|
||||
[Address(RVA = "0x1024550", Offset = "0x1023550", VA = "0x181024550")]
|
||||
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: 0x060022ED RID: 8941 RVA: 0x00002082 File Offset: 0x00000282
|
||||
[Token(Token = "0x60022ED")]
|
||||
[Address(RVA = "0x1024170", Offset = "0x1023170", VA = "0x181024170")]
|
||||
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: 0x170004EC RID: 1260
|
||||
// (get) Token: 0x060022EE RID: 8942 RVA: 0x000168A8 File Offset: 0x00014AA8
|
||||
[Token(Token = "0x170004EC")]
|
||||
public RSAEncryptionPaddingMode Mode
|
||||
{
|
||||
[Token(Token = "0x60022EE")]
|
||||
[Address(RVA = "0x40F000", Offset = "0x40E000", VA = "0x18040F000")]
|
||||
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: 0x170004ED RID: 1261
|
||||
// (get) Token: 0x060022EF RID: 8943 RVA: 0x000168C0 File Offset: 0x00014AC0
|
||||
[Token(Token = "0x170004ED")]
|
||||
public HashAlgorithmName OaepHashAlgorithm
|
||||
{
|
||||
[Token(Token = "0x60022EF")]
|
||||
[Address(RVA = "0x4157B0", Offset = "0x4147B0", VA = "0x1804157B0")]
|
||||
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: 0x060022F0 RID: 8944 RVA: 0x000168D8 File Offset: 0x00014AD8
|
||||
[Token(Token = "0x60022F0")]
|
||||
[Address(RVA = "0x1024350", Offset = "0x1023350", VA = "0x181024350", Slot = "2")]
|
||||
public override int GetHashCode()
|
||||
{
|
||||
return 0;
|
||||
}
|
||||
|
||||
// Token: 0x060022F1 RID: 8945 RVA: 0x000168F0 File Offset: 0x00014AF0
|
||||
[Token(Token = "0x60022F1")]
|
||||
[Address(RVA = "0xF7C460", Offset = "0xF7B460", VA = "0x180F7C460")]
|
||||
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: 0x060022F2 RID: 8946 RVA: 0x00016908 File Offset: 0x00014B08
|
||||
[Token(Token = "0x60022F2")]
|
||||
[Address(RVA = "0x10242F0", Offset = "0x10232F0", VA = "0x1810242F0", 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: 0x060022F3 RID: 8947 RVA: 0x00016920 File Offset: 0x00014B20
|
||||
[Token(Token = "0x60022F3")]
|
||||
[Address(RVA = "0x1024220", Offset = "0x1023220", VA = "0x181024220", 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: 0x060022F4 RID: 8948 RVA: 0x00016938 File Offset: 0x00014B38
|
||||
[Token(Token = "0x60022F4")]
|
||||
[Address(RVA = "0x1024860", Offset = "0x1023860", VA = "0x181024860")]
|
||||
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: 0x060022F5 RID: 8949 RVA: 0x00016950 File Offset: 0x00014B50
|
||||
[Token(Token = "0x60022F5")]
|
||||
[Address(RVA = "0x1024880", Offset = "0x1023880", VA = "0x181024880")]
|
||||
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: 0x060022F6 RID: 8950 RVA: 0x00002082 File Offset: 0x00000282
|
||||
[Token(Token = "0x60022F6")]
|
||||
[Address(RVA = "0x10243C0", Offset = "0x10233C0", VA = "0x1810243C0", Slot = "3")]
|
||||
public override string ToString()
|
||||
{
|
||||
return null;
|
||||
}
|
||||
|
||||
// Token: 0x060022F8 RID: 8952 RVA: 0x00002050 File Offset: 0x00000250
|
||||
[Token(Token = "0x60022F8")]
|
||||
[Address(RVA = "0x1024590", Offset = "0x1023590", VA = "0x181024590")]
|
||||
internal RSAEncryptionPadding()
|
||||
{
|
||||
}
|
||||
|
||||
// Token: 0x040013A2 RID: 5026
|
||||
[Token(Token = "0x40013A2")]
|
||||
private static readonly RSAEncryptionPadding s_pkcs1;
|
||||
|
||||
// Token: 0x040013A3 RID: 5027
|
||||
[Token(Token = "0x40013A3")]
|
||||
private static readonly RSAEncryptionPadding s_oaepSHA1;
|
||||
|
||||
// Token: 0x040013A4 RID: 5028
|
||||
[Token(Token = "0x40013A4")]
|
||||
private static readonly RSAEncryptionPadding s_oaepSHA256;
|
||||
|
||||
// Token: 0x040013A5 RID: 5029
|
||||
[Token(Token = "0x40013A5")]
|
||||
private static readonly RSAEncryptionPadding s_oaepSHA384;
|
||||
|
||||
// Token: 0x040013A6 RID: 5030
|
||||
[Token(Token = "0x40013A6")]
|
||||
private static readonly RSAEncryptionPadding s_oaepSHA512;
|
||||
|
||||
// Token: 0x040013A7 RID: 5031
|
||||
[FieldOffset(Offset = "0x10")]
|
||||
[Token(Token = "0x40013A7")]
|
||||
private RSAEncryptionPaddingMode _mode;
|
||||
|
||||
// Token: 0x040013A8 RID: 5032
|
||||
[FieldOffset(Offset = "0x18")]
|
||||
[Token(Token = "0x40013A8")]
|
||||
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: 0x020003E6 RID: 998
|
||||
[Token(Token = "0x20003E6")]
|
||||
public enum RSAEncryptionPaddingMode
|
||||
{
|
||||
/// <summary>PKCS #1 v1.5.</summary>
|
||||
// Token: 0x040013AA RID: 5034
|
||||
[Token(Token = "0x40013AA")]
|
||||
Pkcs1,
|
||||
/// <summary>Optimal Asymmetric Encryption Padding.</summary>
|
||||
// Token: 0x040013AB RID: 5035
|
||||
[Token(Token = "0x40013AB")]
|
||||
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: 0x02000422 RID: 1058
|
||||
[Token(Token = "0x2000422")]
|
||||
[ComVisible(true)]
|
||||
public class RSAOAEPKeyExchangeDeformatter : AsymmetricKeyExchangeDeformatter
|
||||
{
|
||||
/// <summary>Initializes a new instance of the <see cref="T:System.Security.Cryptography.RSAOAEPKeyExchangeDeformatter" /> class.</summary>
|
||||
// Token: 0x060024D0 RID: 9424 RVA: 0x00002050 File Offset: 0x00000250
|
||||
[Token(Token = "0x60024D0")]
|
||||
[Address(RVA = "0x42BA20", Offset = "0x42AA20", VA = "0x18042BA20")]
|
||||
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: 0x060024D1 RID: 9425 RVA: 0x00002050 File Offset: 0x00000250
|
||||
[Token(Token = "0x60024D1")]
|
||||
[Address(RVA = "0x1024B20", Offset = "0x1023B20", VA = "0x181024B20")]
|
||||
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: 0x1700053F RID: 1343
|
||||
// (get) Token: 0x060024D2 RID: 9426 RVA: 0x00002082 File Offset: 0x00000282
|
||||
// (set) Token: 0x060024D3 RID: 9427 RVA: 0x00002050 File Offset: 0x00000250
|
||||
[Token(Token = "0x1700053F")]
|
||||
public override string Parameters
|
||||
{
|
||||
[Token(Token = "0x60024D2")]
|
||||
[Address(RVA = "0x4242C0", Offset = "0x4232C0", VA = "0x1804242C0", Slot = "4")]
|
||||
get
|
||||
{
|
||||
return null;
|
||||
}
|
||||
[Token(Token = "0x60024D3")]
|
||||
[Address(RVA = "0x4242D0", Offset = "0x4232D0", VA = "0x1804242D0", 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: 0x060024D4 RID: 9428 RVA: 0x00002082 File Offset: 0x00000282
|
||||
[Token(Token = "0x60024D4")]
|
||||
[Address(RVA = "0x1024900", Offset = "0x1023900", VA = "0x181024900", 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: 0x060024D5 RID: 9429 RVA: 0x00002050 File Offset: 0x00000250
|
||||
[Token(Token = "0x60024D5")]
|
||||
[Address(RVA = "0x1024A60", Offset = "0x1023A60", VA = "0x181024A60", Slot = "6")]
|
||||
public override void SetKey(AsymmetricAlgorithm key)
|
||||
{
|
||||
}
|
||||
|
||||
// Token: 0x17000540 RID: 1344
|
||||
// (get) Token: 0x060024D6 RID: 9430 RVA: 0x000172C8 File Offset: 0x000154C8
|
||||
[Token(Token = "0x17000540")]
|
||||
private bool OverridesDecrypt
|
||||
{
|
||||
[Token(Token = "0x60024D6")]
|
||||
[Address(RVA = "0x1024BE0", Offset = "0x1023BE0", VA = "0x181024BE0")]
|
||||
get
|
||||
{
|
||||
return default(bool);
|
||||
}
|
||||
}
|
||||
|
||||
// Token: 0x0400147C RID: 5244
|
||||
[global::Cpp2IlInjected.FieldOffset(Offset = "0x10")]
|
||||
[Token(Token = "0x400147C")]
|
||||
private RSA _rsaKey;
|
||||
|
||||
// Token: 0x0400147D RID: 5245
|
||||
[global::Cpp2IlInjected.FieldOffset(Offset = "0x18")]
|
||||
[Token(Token = "0x400147D")]
|
||||
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: 0x02000423 RID: 1059
|
||||
[Token(Token = "0x2000423")]
|
||||
[ComVisible(true)]
|
||||
public class RSAOAEPKeyExchangeFormatter : AsymmetricKeyExchangeFormatter
|
||||
{
|
||||
/// <summary>Initializes a new instance of the <see cref="T:System.Security.Cryptography.RSAOAEPKeyExchangeFormatter" /> class.</summary>
|
||||
// Token: 0x060024D7 RID: 9431 RVA: 0x00002050 File Offset: 0x00000250
|
||||
[Token(Token = "0x60024D7")]
|
||||
[Address(RVA = "0x42BA20", Offset = "0x42AA20", VA = "0x18042BA20")]
|
||||
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: 0x060024D8 RID: 9432 RVA: 0x00002050 File Offset: 0x00000250
|
||||
[Token(Token = "0x60024D8")]
|
||||
[Address(RVA = "0x1024FD0", Offset = "0x1023FD0", VA = "0x181024FD0")]
|
||||
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: 0x17000541 RID: 1345
|
||||
// (get) Token: 0x060024D9 RID: 9433 RVA: 0x00002082 File Offset: 0x00000282
|
||||
// (set) Token: 0x060024DA RID: 9434 RVA: 0x00002050 File Offset: 0x00000250
|
||||
[Token(Token = "0x17000541")]
|
||||
public byte[] Parameter
|
||||
{
|
||||
[Token(Token = "0x60024D9")]
|
||||
[Address(RVA = "0x1025250", Offset = "0x1024250", VA = "0x181025250")]
|
||||
get
|
||||
{
|
||||
return null;
|
||||
}
|
||||
[Token(Token = "0x60024DA")]
|
||||
[Address(RVA = "0x10252D0", Offset = "0x10242D0", VA = "0x1810252D0")]
|
||||
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: 0x17000542 RID: 1346
|
||||
// (get) Token: 0x060024DB RID: 9435 RVA: 0x00002082 File Offset: 0x00000282
|
||||
[Token(Token = "0x17000542")]
|
||||
public override string Parameters
|
||||
{
|
||||
[Token(Token = "0x60024DB")]
|
||||
[Address(RVA = "0x4242C0", Offset = "0x4232C0", VA = "0x1804242C0", 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: 0x17000543 RID: 1347
|
||||
// (get) Token: 0x060024DC RID: 9436 RVA: 0x00002082 File Offset: 0x00000282
|
||||
// (set) Token: 0x060024DD RID: 9437 RVA: 0x00002050 File Offset: 0x00000250
|
||||
[Token(Token = "0x17000543")]
|
||||
public RandomNumberGenerator Rng
|
||||
{
|
||||
[Token(Token = "0x60024DC")]
|
||||
[Address(RVA = "0x4157D0", Offset = "0x4147D0", VA = "0x1804157D0")]
|
||||
get
|
||||
{
|
||||
return null;
|
||||
}
|
||||
[Token(Token = "0x60024DD")]
|
||||
[Address(RVA = "0x415820", Offset = "0x414820", VA = "0x180415820")]
|
||||
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: 0x060024DE RID: 9438 RVA: 0x00002050 File Offset: 0x00000250
|
||||
[Token(Token = "0x60024DE")]
|
||||
[Address(RVA = "0x1024F10", Offset = "0x1023F10", VA = "0x181024F10", 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: 0x060024DF RID: 9439 RVA: 0x00002082 File Offset: 0x00000282
|
||||
[Token(Token = "0x60024DF")]
|
||||
[Address(RVA = "0x1024DA0", Offset = "0x1023DA0", VA = "0x181024DA0", 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: 0x060024E0 RID: 9440 RVA: 0x00002082 File Offset: 0x00000282
|
||||
[Token(Token = "0x60024E0")]
|
||||
[Address(RVA = "0x949C70", Offset = "0x948C70", VA = "0x180949C70", Slot = "7")]
|
||||
public override byte[] CreateKeyExchange(byte[] rgbData, Type symAlgType)
|
||||
{
|
||||
return null;
|
||||
}
|
||||
|
||||
// Token: 0x17000544 RID: 1348
|
||||
// (get) Token: 0x060024E1 RID: 9441 RVA: 0x000172E0 File Offset: 0x000154E0
|
||||
[Token(Token = "0x17000544")]
|
||||
private bool OverridesEncrypt
|
||||
{
|
||||
[Token(Token = "0x60024E1")]
|
||||
[Address(RVA = "0x1025090", Offset = "0x1024090", VA = "0x181025090")]
|
||||
get
|
||||
{
|
||||
return default(bool);
|
||||
}
|
||||
}
|
||||
|
||||
// Token: 0x0400147E RID: 5246
|
||||
[global::Cpp2IlInjected.FieldOffset(Offset = "0x10")]
|
||||
[Token(Token = "0x400147E")]
|
||||
private byte[] ParameterValue;
|
||||
|
||||
// Token: 0x0400147F RID: 5247
|
||||
[global::Cpp2IlInjected.FieldOffset(Offset = "0x18")]
|
||||
[Token(Token = "0x400147F")]
|
||||
private RSA _rsaKey;
|
||||
|
||||
// Token: 0x04001480 RID: 5248
|
||||
[global::Cpp2IlInjected.FieldOffset(Offset = "0x20")]
|
||||
[Token(Token = "0x4001480")]
|
||||
private bool? _rsaOverridesEncrypt;
|
||||
|
||||
// Token: 0x04001481 RID: 5249
|
||||
[global::Cpp2IlInjected.FieldOffset(Offset = "0x28")]
|
||||
[Token(Token = "0x4001481")]
|
||||
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: 0x02000424 RID: 1060
|
||||
[Token(Token = "0x2000424")]
|
||||
[ComVisible(true)]
|
||||
public class RSAPKCS1KeyExchangeDeformatter : AsymmetricKeyExchangeDeformatter
|
||||
{
|
||||
/// <summary>Initializes a new instance of the <see cref="T:System.Security.Cryptography.RSAPKCS1KeyExchangeDeformatter" /> class.</summary>
|
||||
// Token: 0x060024E2 RID: 9442 RVA: 0x00002050 File Offset: 0x00000250
|
||||
[Token(Token = "0x60024E2")]
|
||||
[Address(RVA = "0x42BA20", Offset = "0x42AA20", VA = "0x18042BA20")]
|
||||
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: 0x060024E3 RID: 9443 RVA: 0x00002050 File Offset: 0x00000250
|
||||
[Token(Token = "0x60024E3")]
|
||||
[Address(RVA = "0x1025610", Offset = "0x1024610", VA = "0x181025610")]
|
||||
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: 0x17000545 RID: 1349
|
||||
// (get) Token: 0x060024E4 RID: 9444 RVA: 0x00002082 File Offset: 0x00000282
|
||||
// (set) Token: 0x060024E5 RID: 9445 RVA: 0x00002050 File Offset: 0x00000250
|
||||
[Token(Token = "0x17000545")]
|
||||
public RandomNumberGenerator RNG
|
||||
{
|
||||
[Token(Token = "0x60024E4")]
|
||||
[Address(RVA = "0x4157C0", Offset = "0x4147C0", VA = "0x1804157C0")]
|
||||
get
|
||||
{
|
||||
return null;
|
||||
}
|
||||
[Token(Token = "0x60024E5")]
|
||||
[Address(RVA = "0x415810", Offset = "0x414810", VA = "0x180415810")]
|
||||
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: 0x17000546 RID: 1350
|
||||
// (get) Token: 0x060024E6 RID: 9446 RVA: 0x00002082 File Offset: 0x00000282
|
||||
// (set) Token: 0x060024E7 RID: 9447 RVA: 0x00002050 File Offset: 0x00000250
|
||||
[Token(Token = "0x17000546")]
|
||||
public override string Parameters
|
||||
{
|
||||
[Token(Token = "0x60024E6")]
|
||||
[Address(RVA = "0x4242C0", Offset = "0x4232C0", VA = "0x1804242C0", Slot = "4")]
|
||||
get
|
||||
{
|
||||
return null;
|
||||
}
|
||||
[Token(Token = "0x60024E7")]
|
||||
[Address(RVA = "0x4242D0", Offset = "0x4232D0", VA = "0x1804242D0", 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: 0x060024E8 RID: 9448 RVA: 0x00002082 File Offset: 0x00000282
|
||||
[Token(Token = "0x60024E8")]
|
||||
[Address(RVA = "0x1025360", Offset = "0x1024360", VA = "0x181025360", 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: 0x060024E9 RID: 9449 RVA: 0x00002050 File Offset: 0x00000250
|
||||
[Token(Token = "0x60024E9")]
|
||||
[Address(RVA = "0x1025550", Offset = "0x1024550", VA = "0x181025550", Slot = "6")]
|
||||
public override void SetKey(AsymmetricAlgorithm key)
|
||||
{
|
||||
}
|
||||
|
||||
// Token: 0x17000547 RID: 1351
|
||||
// (get) Token: 0x060024EA RID: 9450 RVA: 0x000172F8 File Offset: 0x000154F8
|
||||
[Token(Token = "0x17000547")]
|
||||
private bool OverridesDecrypt
|
||||
{
|
||||
[Token(Token = "0x60024EA")]
|
||||
[Address(RVA = "0x10256D0", Offset = "0x10246D0", VA = "0x1810256D0")]
|
||||
get
|
||||
{
|
||||
return default(bool);
|
||||
}
|
||||
}
|
||||
|
||||
// Token: 0x04001482 RID: 5250
|
||||
[global::Cpp2IlInjected.FieldOffset(Offset = "0x10")]
|
||||
[Token(Token = "0x4001482")]
|
||||
private RSA _rsaKey;
|
||||
|
||||
// Token: 0x04001483 RID: 5251
|
||||
[global::Cpp2IlInjected.FieldOffset(Offset = "0x18")]
|
||||
[Token(Token = "0x4001483")]
|
||||
private bool? _rsaOverridesDecrypt;
|
||||
|
||||
// Token: 0x04001484 RID: 5252
|
||||
[global::Cpp2IlInjected.FieldOffset(Offset = "0x20")]
|
||||
[Token(Token = "0x4001484")]
|
||||
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: 0x02000425 RID: 1061
|
||||
[Token(Token = "0x2000425")]
|
||||
[ComVisible(true)]
|
||||
public class RSAPKCS1KeyExchangeFormatter : AsymmetricKeyExchangeFormatter
|
||||
{
|
||||
/// <summary>Initializes a new instance of the <see cref="T:System.Security.Cryptography.RSAPKCS1KeyExchangeFormatter" /> class.</summary>
|
||||
// Token: 0x060024EB RID: 9451 RVA: 0x00002050 File Offset: 0x00000250
|
||||
[Token(Token = "0x60024EB")]
|
||||
[Address(RVA = "0x42BA20", Offset = "0x42AA20", VA = "0x18042BA20")]
|
||||
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: 0x060024EC RID: 9452 RVA: 0x00002050 File Offset: 0x00000250
|
||||
[Token(Token = "0x60024EC")]
|
||||
[Address(RVA = "0x1025C50", Offset = "0x1024C50", VA = "0x181025C50")]
|
||||
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: 0x17000548 RID: 1352
|
||||
// (get) Token: 0x060024ED RID: 9453 RVA: 0x00002082 File Offset: 0x00000282
|
||||
[Token(Token = "0x17000548")]
|
||||
public override string Parameters
|
||||
{
|
||||
[Token(Token = "0x60024ED")]
|
||||
[Address(RVA = "0x1025ED0", Offset = "0x1024ED0", VA = "0x181025ED0", 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: 0x17000549 RID: 1353
|
||||
// (get) Token: 0x060024EE RID: 9454 RVA: 0x00002082 File Offset: 0x00000282
|
||||
// (set) Token: 0x060024EF RID: 9455 RVA: 0x00002050 File Offset: 0x00000250
|
||||
[Token(Token = "0x17000549")]
|
||||
public RandomNumberGenerator Rng
|
||||
{
|
||||
[Token(Token = "0x60024EE")]
|
||||
[Address(RVA = "0x411530", Offset = "0x410530", VA = "0x180411530")]
|
||||
get
|
||||
{
|
||||
return null;
|
||||
}
|
||||
[Token(Token = "0x60024EF")]
|
||||
[Address(RVA = "0x415800", Offset = "0x414800", VA = "0x180415800")]
|
||||
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: 0x060024F0 RID: 9456 RVA: 0x00002050 File Offset: 0x00000250
|
||||
[Token(Token = "0x60024F0")]
|
||||
[Address(RVA = "0x1025B90", Offset = "0x1024B90", VA = "0x181025B90", 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: 0x060024F1 RID: 9457 RVA: 0x00002082 File Offset: 0x00000282
|
||||
[Token(Token = "0x60024F1")]
|
||||
[Address(RVA = "0x1025890", Offset = "0x1024890", VA = "0x181025890", 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: 0x060024F2 RID: 9458 RVA: 0x00002082 File Offset: 0x00000282
|
||||
[Token(Token = "0x60024F2")]
|
||||
[Address(RVA = "0x949C70", Offset = "0x948C70", VA = "0x180949C70", Slot = "7")]
|
||||
public override byte[] CreateKeyExchange(byte[] rgbData, Type symAlgType)
|
||||
{
|
||||
return null;
|
||||
}
|
||||
|
||||
// Token: 0x1700054A RID: 1354
|
||||
// (get) Token: 0x060024F3 RID: 9459 RVA: 0x00017310 File Offset: 0x00015510
|
||||
[Token(Token = "0x1700054A")]
|
||||
private bool OverridesEncrypt
|
||||
{
|
||||
[Token(Token = "0x60024F3")]
|
||||
[Address(RVA = "0x1025D10", Offset = "0x1024D10", VA = "0x181025D10")]
|
||||
get
|
||||
{
|
||||
return default(bool);
|
||||
}
|
||||
}
|
||||
|
||||
// Token: 0x04001485 RID: 5253
|
||||
[global::Cpp2IlInjected.FieldOffset(Offset = "0x10")]
|
||||
[Token(Token = "0x4001485")]
|
||||
private RandomNumberGenerator RngValue;
|
||||
|
||||
// Token: 0x04001486 RID: 5254
|
||||
[global::Cpp2IlInjected.FieldOffset(Offset = "0x18")]
|
||||
[Token(Token = "0x4001486")]
|
||||
private RSA _rsaKey;
|
||||
|
||||
// Token: 0x04001487 RID: 5255
|
||||
[global::Cpp2IlInjected.FieldOffset(Offset = "0x20")]
|
||||
[Token(Token = "0x4001487")]
|
||||
private bool? _rsaOverridesEncrypt;
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,17 @@
|
||||
using System;
|
||||
using Cpp2IlInjected;
|
||||
|
||||
namespace System.Security.Cryptography
|
||||
{
|
||||
// Token: 0x02000430 RID: 1072
|
||||
[Token(Token = "0x2000430")]
|
||||
internal class RSAPKCS1SHA1SignatureDescription : RSAPKCS1SignatureDescription
|
||||
{
|
||||
// Token: 0x0600254C RID: 9548 RVA: 0x00002050 File Offset: 0x00000250
|
||||
[Token(Token = "0x600254C")]
|
||||
[Address(RVA = "0x1025F00", Offset = "0x1024F00", VA = "0x181025F00")]
|
||||
public RSAPKCS1SHA1SignatureDescription()
|
||||
{
|
||||
}
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,17 @@
|
||||
using System;
|
||||
using Cpp2IlInjected;
|
||||
|
||||
namespace System.Security.Cryptography
|
||||
{
|
||||
// Token: 0x02000431 RID: 1073
|
||||
[Token(Token = "0x2000431")]
|
||||
internal class RSAPKCS1SHA256SignatureDescription : RSAPKCS1SignatureDescription
|
||||
{
|
||||
// Token: 0x0600254D RID: 9549 RVA: 0x00002050 File Offset: 0x00000250
|
||||
[Token(Token = "0x600254D")]
|
||||
[Address(RVA = "0x1025FA0", Offset = "0x1024FA0", VA = "0x181025FA0")]
|
||||
public RSAPKCS1SHA256SignatureDescription()
|
||||
{
|
||||
}
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,17 @@
|
||||
using System;
|
||||
using Cpp2IlInjected;
|
||||
|
||||
namespace System.Security.Cryptography
|
||||
{
|
||||
// Token: 0x02000432 RID: 1074
|
||||
[Token(Token = "0x2000432")]
|
||||
internal class RSAPKCS1SHA384SignatureDescription : RSAPKCS1SignatureDescription
|
||||
{
|
||||
// Token: 0x0600254E RID: 9550 RVA: 0x00002050 File Offset: 0x00000250
|
||||
[Token(Token = "0x600254E")]
|
||||
[Address(RVA = "0x1026040", Offset = "0x1025040", VA = "0x181026040")]
|
||||
public RSAPKCS1SHA384SignatureDescription()
|
||||
{
|
||||
}
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,17 @@
|
||||
using System;
|
||||
using Cpp2IlInjected;
|
||||
|
||||
namespace System.Security.Cryptography
|
||||
{
|
||||
// Token: 0x02000433 RID: 1075
|
||||
[Token(Token = "0x2000433")]
|
||||
internal class RSAPKCS1SHA512SignatureDescription : RSAPKCS1SignatureDescription
|
||||
{
|
||||
// Token: 0x0600254F RID: 9551 RVA: 0x00002050 File Offset: 0x00000250
|
||||
[Token(Token = "0x600254F")]
|
||||
[Address(RVA = "0x10260E0", Offset = "0x10250E0", VA = "0x1810260E0")]
|
||||
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: 0x02000445 RID: 1093
|
||||
[Token(Token = "0x2000445")]
|
||||
[ComVisible(true)]
|
||||
public class RSAPKCS1SignatureDeformatter : AsymmetricSignatureDeformatter
|
||||
{
|
||||
/// <summary>Initializes a new instance of the <see cref="T:System.Security.Cryptography.RSAPKCS1SignatureDeformatter" /> class.</summary>
|
||||
// Token: 0x06002600 RID: 9728 RVA: 0x00002050 File Offset: 0x00000250
|
||||
[Token(Token = "0x6002600")]
|
||||
[Address(RVA = "0x42BA20", Offset = "0x42AA20", VA = "0x18042BA20")]
|
||||
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: 0x06002601 RID: 9729 RVA: 0x00002050 File Offset: 0x00000250
|
||||
[Token(Token = "0x6002601")]
|
||||
[Address(RVA = "0x1026440", Offset = "0x1025440", VA = "0x181026440")]
|
||||
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: 0x06002602 RID: 9730 RVA: 0x00002050 File Offset: 0x00000250
|
||||
[Token(Token = "0x6002602")]
|
||||
[Address(RVA = "0x1026180", Offset = "0x1025180", VA = "0x181026180", 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: 0x06002603 RID: 9731 RVA: 0x00002050 File Offset: 0x00000250
|
||||
[Token(Token = "0x6002603")]
|
||||
[Address(RVA = "0x10261F0", Offset = "0x10251F0", VA = "0x1810261F0", 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: 0x06002604 RID: 9732 RVA: 0x00017940 File Offset: 0x00015B40
|
||||
[Token(Token = "0x6002604")]
|
||||
[Address(RVA = "0x10262B0", Offset = "0x10252B0", VA = "0x1810262B0", Slot = "7")]
|
||||
public override bool VerifySignature(byte[] rgbHash, byte[] rgbSignature)
|
||||
{
|
||||
return default(bool);
|
||||
}
|
||||
|
||||
// Token: 0x04001520 RID: 5408
|
||||
[global::Cpp2IlInjected.FieldOffset(Offset = "0x10")]
|
||||
[Token(Token = "0x4001520")]
|
||||
private RSA rsa;
|
||||
|
||||
// Token: 0x04001521 RID: 5409
|
||||
[global::Cpp2IlInjected.FieldOffset(Offset = "0x18")]
|
||||
[Token(Token = "0x4001521")]
|
||||
private string hashName;
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,38 @@
|
||||
using System;
|
||||
using Cpp2IlInjected;
|
||||
|
||||
namespace System.Security.Cryptography
|
||||
{
|
||||
// Token: 0x0200042F RID: 1071
|
||||
[Token(Token = "0x200042F")]
|
||||
internal abstract class RSAPKCS1SignatureDescription : SignatureDescription
|
||||
{
|
||||
// Token: 0x06002549 RID: 9545 RVA: 0x00002050 File Offset: 0x00000250
|
||||
[Token(Token = "0x6002549")]
|
||||
[Address(RVA = "0x1026520", Offset = "0x1025520", VA = "0x181026520")]
|
||||
protected RSAPKCS1SignatureDescription(string hashAlgorithm, string digestAlgorithm)
|
||||
{
|
||||
}
|
||||
|
||||
// Token: 0x0600254A RID: 9546 RVA: 0x00002082 File Offset: 0x00000282
|
||||
[Token(Token = "0x600254A")]
|
||||
[Address(RVA = "0x1026480", Offset = "0x1025480", VA = "0x181026480", Slot = "4")]
|
||||
public sealed override AsymmetricSignatureDeformatter CreateDeformatter(AsymmetricAlgorithm key)
|
||||
{
|
||||
return null;
|
||||
}
|
||||
|
||||
// Token: 0x0600254B RID: 9547 RVA: 0x00002082 File Offset: 0x00000282
|
||||
[Token(Token = "0x600254B")]
|
||||
[Address(RVA = "0x10264D0", Offset = "0x10254D0", VA = "0x1810264D0", Slot = "5")]
|
||||
public sealed override AsymmetricSignatureFormatter CreateFormatter(AsymmetricAlgorithm key)
|
||||
{
|
||||
return null;
|
||||
}
|
||||
|
||||
// Token: 0x0400149F RID: 5279
|
||||
[FieldOffset(Offset = "0x30")]
|
||||
[Token(Token = "0x400149F")]
|
||||
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: 0x02000446 RID: 1094
|
||||
[Token(Token = "0x2000446")]
|
||||
[ComVisible(true)]
|
||||
public class RSAPKCS1SignatureFormatter : AsymmetricSignatureFormatter
|
||||
{
|
||||
/// <summary>Initializes a new instance of the <see cref="T:System.Security.Cryptography.RSAPKCS1SignatureFormatter" /> class.</summary>
|
||||
// Token: 0x06002605 RID: 9733 RVA: 0x00002050 File Offset: 0x00000250
|
||||
[Token(Token = "0x6002605")]
|
||||
[Address(RVA = "0x42BA20", Offset = "0x42AA20", VA = "0x18042BA20")]
|
||||
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: 0x06002606 RID: 9734 RVA: 0x00002050 File Offset: 0x00000250
|
||||
[Token(Token = "0x6002606")]
|
||||
[Address(RVA = "0x1026440", Offset = "0x1025440", VA = "0x181026440")]
|
||||
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: 0x06002607 RID: 9735 RVA: 0x00002082 File Offset: 0x00000282
|
||||
[Token(Token = "0x6002607")]
|
||||
[Address(RVA = "0x10265A0", Offset = "0x10255A0", VA = "0x1810265A0", 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: 0x06002608 RID: 9736 RVA: 0x00002050 File Offset: 0x00000250
|
||||
[Token(Token = "0x6002608")]
|
||||
[Address(RVA = "0x10266E0", Offset = "0x10256E0", VA = "0x1810266E0", 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: 0x06002609 RID: 9737 RVA: 0x00002050 File Offset: 0x00000250
|
||||
[Token(Token = "0x6002609")]
|
||||
[Address(RVA = "0x1026750", Offset = "0x1025750", VA = "0x181026750", Slot = "4")]
|
||||
public override void SetKey(AsymmetricAlgorithm key)
|
||||
{
|
||||
}
|
||||
|
||||
// Token: 0x04001522 RID: 5410
|
||||
[global::Cpp2IlInjected.FieldOffset(Offset = "0x10")]
|
||||
[Token(Token = "0x4001522")]
|
||||
private RSA rsa;
|
||||
|
||||
// Token: 0x04001523 RID: 5411
|
||||
[global::Cpp2IlInjected.FieldOffset(Offset = "0x18")]
|
||||
[Token(Token = "0x4001523")]
|
||||
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: 0x0200041F RID: 1055
|
||||
[Token(Token = "0x200041F")]
|
||||
[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: 0x0400146A RID: 5226
|
||||
[global::Cpp2IlInjected.FieldOffset(Offset = "0x0")]
|
||||
[Token(Token = "0x400146A")]
|
||||
public byte[] Exponent;
|
||||
|
||||
/// <summary>Represents the <see langword="Modulus" /> parameter for the <see cref="T:System.Security.Cryptography.RSA" /> algorithm.</summary>
|
||||
// Token: 0x0400146B RID: 5227
|
||||
[global::Cpp2IlInjected.FieldOffset(Offset = "0x8")]
|
||||
[Token(Token = "0x400146B")]
|
||||
public byte[] Modulus;
|
||||
|
||||
/// <summary>Represents the <see langword="P" /> parameter for the <see cref="T:System.Security.Cryptography.RSA" /> algorithm.</summary>
|
||||
// Token: 0x0400146C RID: 5228
|
||||
[global::Cpp2IlInjected.FieldOffset(Offset = "0x10")]
|
||||
[Token(Token = "0x400146C")]
|
||||
[NonSerialized]
|
||||
public byte[] P;
|
||||
|
||||
/// <summary>Represents the <see langword="Q" /> parameter for the <see cref="T:System.Security.Cryptography.RSA" /> algorithm.</summary>
|
||||
// Token: 0x0400146D RID: 5229
|
||||
[global::Cpp2IlInjected.FieldOffset(Offset = "0x18")]
|
||||
[Token(Token = "0x400146D")]
|
||||
[NonSerialized]
|
||||
public byte[] Q;
|
||||
|
||||
/// <summary>Represents the <see langword="DP" /> parameter for the <see cref="T:System.Security.Cryptography.RSA" /> algorithm.</summary>
|
||||
// Token: 0x0400146E RID: 5230
|
||||
[global::Cpp2IlInjected.FieldOffset(Offset = "0x20")]
|
||||
[Token(Token = "0x400146E")]
|
||||
[NonSerialized]
|
||||
public byte[] DP;
|
||||
|
||||
/// <summary>Represents the <see langword="DQ" /> parameter for the <see cref="T:System.Security.Cryptography.RSA" /> algorithm.</summary>
|
||||
// Token: 0x0400146F RID: 5231
|
||||
[global::Cpp2IlInjected.FieldOffset(Offset = "0x28")]
|
||||
[Token(Token = "0x400146F")]
|
||||
[NonSerialized]
|
||||
public byte[] DQ;
|
||||
|
||||
/// <summary>Represents the <see langword="InverseQ" /> parameter for the <see cref="T:System.Security.Cryptography.RSA" /> algorithm.</summary>
|
||||
// Token: 0x04001470 RID: 5232
|
||||
[global::Cpp2IlInjected.FieldOffset(Offset = "0x30")]
|
||||
[Token(Token = "0x4001470")]
|
||||
[NonSerialized]
|
||||
public byte[] InverseQ;
|
||||
|
||||
/// <summary>Represents the <see langword="D" /> parameter for the <see cref="T:System.Security.Cryptography.RSA" /> algorithm.</summary>
|
||||
// Token: 0x04001471 RID: 5233
|
||||
[global::Cpp2IlInjected.FieldOffset(Offset = "0x38")]
|
||||
[Token(Token = "0x4001471")]
|
||||
[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: 0x020003E7 RID: 999
|
||||
[Token(Token = "0x20003E7")]
|
||||
public sealed class RSASignaturePadding : IEquatable<RSASignaturePadding>
|
||||
{
|
||||
// Token: 0x060022F9 RID: 8953 RVA: 0x00002050 File Offset: 0x00000250
|
||||
[Token(Token = "0x60022F9")]
|
||||
[Address(RVA = "0x44F040", Offset = "0x44E040", VA = "0x18044F040")]
|
||||
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: 0x170004EE RID: 1262
|
||||
// (get) Token: 0x060022FA RID: 8954 RVA: 0x00002082 File Offset: 0x00000282
|
||||
[Token(Token = "0x170004EE")]
|
||||
public static RSASignaturePadding Pkcs1
|
||||
{
|
||||
[Token(Token = "0x60022FA")]
|
||||
[Address(RVA = "0x1026A90", Offset = "0x1025A90", VA = "0x181026A90")]
|
||||
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: 0x170004EF RID: 1263
|
||||
// (get) Token: 0x060022FB RID: 8955 RVA: 0x00002082 File Offset: 0x00000282
|
||||
[Token(Token = "0x170004EF")]
|
||||
public static RSASignaturePadding Pss
|
||||
{
|
||||
[Token(Token = "0x60022FB")]
|
||||
[Address(RVA = "0x1026B50", Offset = "0x1025B50", VA = "0x181026B50")]
|
||||
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: 0x170004F0 RID: 1264
|
||||
// (get) Token: 0x060022FC RID: 8956 RVA: 0x00016968 File Offset: 0x00014B68
|
||||
[Token(Token = "0x170004F0")]
|
||||
public RSASignaturePaddingMode Mode
|
||||
{
|
||||
[Token(Token = "0x60022FC")]
|
||||
[Address(RVA = "0x40F000", Offset = "0x40E000", VA = "0x18040F000")]
|
||||
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: 0x060022FD RID: 8957 RVA: 0x00016980 File Offset: 0x00014B80
|
||||
[Token(Token = "0x60022FD")]
|
||||
[Address(RVA = "0x1026930", Offset = "0x1025930", VA = "0x181026930", 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: 0x060022FE RID: 8958 RVA: 0x00016998 File Offset: 0x00014B98
|
||||
[Token(Token = "0x60022FE")]
|
||||
[Address(RVA = "0x10268D0", Offset = "0x10258D0", VA = "0x1810268D0", 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: 0x060022FF RID: 8959 RVA: 0x000169B0 File Offset: 0x00014BB0
|
||||
[Token(Token = "0x60022FF")]
|
||||
[Address(RVA = "0x1026810", Offset = "0x1025810", VA = "0x181026810", 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: 0x06002300 RID: 8960 RVA: 0x000169C8 File Offset: 0x00014BC8
|
||||
[Token(Token = "0x6002300")]
|
||||
[Address(RVA = "0x1026BB0", Offset = "0x1025BB0", VA = "0x181026BB0")]
|
||||
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: 0x06002301 RID: 8961 RVA: 0x000169E0 File Offset: 0x00014BE0
|
||||
[Token(Token = "0x6002301")]
|
||||
[Address(RVA = "0x1026BD0", Offset = "0x1025BD0", VA = "0x181026BD0")]
|
||||
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: 0x06002302 RID: 8962 RVA: 0x00002082 File Offset: 0x00000282
|
||||
[Token(Token = "0x6002302")]
|
||||
[Address(RVA = "0x1026950", Offset = "0x1025950", VA = "0x181026950", Slot = "3")]
|
||||
public override string ToString()
|
||||
{
|
||||
return null;
|
||||
}
|
||||
|
||||
// Token: 0x06002304 RID: 8964 RVA: 0x00002050 File Offset: 0x00000250
|
||||
[Token(Token = "0x6002304")]
|
||||
[Address(RVA = "0x1026A60", Offset = "0x1025A60", VA = "0x181026A60")]
|
||||
internal RSASignaturePadding()
|
||||
{
|
||||
}
|
||||
|
||||
// Token: 0x040013AC RID: 5036
|
||||
[Token(Token = "0x40013AC")]
|
||||
private static readonly RSASignaturePadding s_pkcs1;
|
||||
|
||||
// Token: 0x040013AD RID: 5037
|
||||
[Token(Token = "0x40013AD")]
|
||||
private static readonly RSASignaturePadding s_pss;
|
||||
|
||||
// Token: 0x040013AE RID: 5038
|
||||
[FieldOffset(Offset = "0x10")]
|
||||
[Token(Token = "0x40013AE")]
|
||||
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: 0x020003E8 RID: 1000
|
||||
[Token(Token = "0x20003E8")]
|
||||
public enum RSASignaturePaddingMode
|
||||
{
|
||||
/// <summary>PKCS #1 v1.5</summary>
|
||||
// Token: 0x040013B0 RID: 5040
|
||||
[Token(Token = "0x40013B0")]
|
||||
Pkcs1,
|
||||
/// <summary>Probabilistic Signature Scheme</summary>
|
||||
// Token: 0x040013B1 RID: 5041
|
||||
[Token(Token = "0x40013B1")]
|
||||
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: 0x02000415 RID: 1045
|
||||
[Token(Token = "0x2000415")]
|
||||
[ComVisible(true)]
|
||||
public abstract class RandomNumberGenerator : IDisposable
|
||||
{
|
||||
/// <summary>Initializes a new instance of <see cref="T:System.Security.Cryptography.RandomNumberGenerator" />.</summary>
|
||||
// Token: 0x0600242D RID: 9261 RVA: 0x00002050 File Offset: 0x00000250
|
||||
[Token(Token = "0x600242D")]
|
||||
[Address(RVA = "0x412370", Offset = "0x411370", VA = "0x180412370")]
|
||||
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: 0x0600242E RID: 9262 RVA: 0x00002082 File Offset: 0x00000282
|
||||
[Token(Token = "0x600242E")]
|
||||
[Address(RVA = "0x1028320", Offset = "0x1027320", VA = "0x181028320")]
|
||||
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: 0x0600242F RID: 9263 RVA: 0x00002082 File Offset: 0x00000282
|
||||
[Token(Token = "0x600242F")]
|
||||
[Address(RVA = "0x1028290", Offset = "0x1027290", VA = "0x181028290")]
|
||||
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: 0x06002430 RID: 9264 RVA: 0x00002050 File Offset: 0x00000250
|
||||
[Token(Token = "0x6002430")]
|
||||
[Address(RVA = "0x10283C0", Offset = "0x10273C0", VA = "0x1810283C0", 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: 0x06002431 RID: 9265 RVA: 0x00002050 File Offset: 0x00000250
|
||||
[Token(Token = "0x6002431")]
|
||||
[Address(RVA = "0x4242D0", Offset = "0x4232D0", VA = "0x1804242D0", 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: 0x06002432 RID: 9266
|
||||
[Token(Token = "0x6002432")]
|
||||
[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: 0x06002433 RID: 9267 RVA: 0x00002050 File Offset: 0x00000250
|
||||
[Token(Token = "0x6002433")]
|
||||
[Address(RVA = "0x1028430", Offset = "0x1027430", VA = "0x181028430", 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: 0x06002434 RID: 9268 RVA: 0x00002050 File Offset: 0x00000250
|
||||
[Token(Token = "0x6002434")]
|
||||
[Address(RVA = "0x1028600", Offset = "0x1027600", VA = "0x181028600", 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: 0x02000418 RID: 1048
|
||||
[Token(Token = "0x2000418")]
|
||||
[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: 0x06002447 RID: 9287 RVA: 0x00002050 File Offset: 0x00000250
|
||||
[Token(Token = "0x6002447")]
|
||||
[Address(RVA = "0x1028ED0", Offset = "0x1027ED0", VA = "0x181028ED0")]
|
||||
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: 0x06002448 RID: 9288 RVA: 0x00002050 File Offset: 0x00000250
|
||||
[Token(Token = "0x6002448")]
|
||||
[Address(RVA = "0x1028EF0", Offset = "0x1027EF0", VA = "0x181028EF0")]
|
||||
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: 0x06002449 RID: 9289 RVA: 0x00002050 File Offset: 0x00000250
|
||||
[Token(Token = "0x6002449")]
|
||||
[Address(RVA = "0x10290D0", Offset = "0x10280D0", VA = "0x1810290D0")]
|
||||
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: 0x0600244A RID: 9290 RVA: 0x00002050 File Offset: 0x00000250
|
||||
[Token(Token = "0x600244A")]
|
||||
[Address(RVA = "0x1028D70", Offset = "0x1027D70", VA = "0x181028D70")]
|
||||
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: 0x0600244B RID: 9291 RVA: 0x00002050 File Offset: 0x00000250
|
||||
[Token(Token = "0x600244B")]
|
||||
[Address(RVA = "0x1028C80", Offset = "0x1027C80", VA = "0x181028C80")]
|
||||
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: 0x1700052F RID: 1327
|
||||
// (get) Token: 0x0600244C RID: 9292 RVA: 0x00016FB0 File Offset: 0x000151B0
|
||||
// (set) Token: 0x0600244D RID: 9293 RVA: 0x00002050 File Offset: 0x00000250
|
||||
[Token(Token = "0x1700052F")]
|
||||
public int IterationCount
|
||||
{
|
||||
[Token(Token = "0x600244C")]
|
||||
[Address(RVA = "0x4257C0", Offset = "0x4247C0", VA = "0x1804257C0")]
|
||||
get
|
||||
{
|
||||
return 0;
|
||||
}
|
||||
[Token(Token = "0x600244D")]
|
||||
[Address(RVA = "0x10292A0", Offset = "0x10282A0", VA = "0x1810292A0")]
|
||||
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: 0x17000530 RID: 1328
|
||||
// (get) Token: 0x0600244E RID: 9294 RVA: 0x00002082 File Offset: 0x00000282
|
||||
// (set) Token: 0x0600244F RID: 9295 RVA: 0x00002050 File Offset: 0x00000250
|
||||
[Token(Token = "0x17000530")]
|
||||
public byte[] Salt
|
||||
{
|
||||
[Token(Token = "0x600244E")]
|
||||
[Address(RVA = "0x1029220", Offset = "0x1028220", VA = "0x181029220")]
|
||||
get
|
||||
{
|
||||
return null;
|
||||
}
|
||||
[Token(Token = "0x600244F")]
|
||||
[Address(RVA = "0x1029380", Offset = "0x1028380", VA = "0x181029380")]
|
||||
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: 0x06002450 RID: 9296 RVA: 0x00002082 File Offset: 0x00000282
|
||||
[Token(Token = "0x6002450")]
|
||||
[Address(RVA = "0x1028A80", Offset = "0x1027A80", VA = "0x181028A80", Slot = "5")]
|
||||
public override byte[] GetBytes(int cb)
|
||||
{
|
||||
return null;
|
||||
}
|
||||
|
||||
/// <summary>Resets the state of the operation.</summary>
|
||||
// Token: 0x06002451 RID: 9297 RVA: 0x00002050 File Offset: 0x00000250
|
||||
[Token(Token = "0x6002451")]
|
||||
[Address(RVA = "0x1028C10", Offset = "0x1027C10", VA = "0x181028C10", 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: 0x06002452 RID: 9298 RVA: 0x00002050 File Offset: 0x00000250
|
||||
[Token(Token = "0x6002452")]
|
||||
[Address(RVA = "0x10286F0", Offset = "0x10276F0", VA = "0x1810286F0", Slot = "7")]
|
||||
protected override void Dispose(bool disposing)
|
||||
{
|
||||
}
|
||||
|
||||
// Token: 0x06002453 RID: 9299 RVA: 0x00002050 File Offset: 0x00000250
|
||||
[Token(Token = "0x6002453")]
|
||||
[Address(RVA = "0x1028C10", Offset = "0x1027C10", VA = "0x181028C10")]
|
||||
private void Initialize()
|
||||
{
|
||||
}
|
||||
|
||||
// Token: 0x06002454 RID: 9300 RVA: 0x00002082 File Offset: 0x00000282
|
||||
[Token(Token = "0x6002454")]
|
||||
[Address(RVA = "0x10287E0", Offset = "0x10277E0", VA = "0x1810287E0")]
|
||||
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: 0x06002455 RID: 9301 RVA: 0x00002082 File Offset: 0x00000282
|
||||
[Token(Token = "0x6002455")]
|
||||
[Address(RVA = "0x1028650", Offset = "0x1027650", VA = "0x181028650")]
|
||||
public byte[] CryptDeriveKey(string algname, string alghashname, int keySize, byte[] rgbIV)
|
||||
{
|
||||
return null;
|
||||
}
|
||||
|
||||
// Token: 0x04001440 RID: 5184
|
||||
[global::Cpp2IlInjected.FieldOffset(Offset = "0x10")]
|
||||
[Token(Token = "0x4001440")]
|
||||
private byte[] m_buffer;
|
||||
|
||||
// Token: 0x04001441 RID: 5185
|
||||
[global::Cpp2IlInjected.FieldOffset(Offset = "0x18")]
|
||||
[Token(Token = "0x4001441")]
|
||||
private byte[] m_salt;
|
||||
|
||||
// Token: 0x04001442 RID: 5186
|
||||
[global::Cpp2IlInjected.FieldOffset(Offset = "0x20")]
|
||||
[Token(Token = "0x4001442")]
|
||||
private HMACSHA1 m_hmacsha1;
|
||||
|
||||
// Token: 0x04001443 RID: 5187
|
||||
[global::Cpp2IlInjected.FieldOffset(Offset = "0x28")]
|
||||
[Token(Token = "0x4001443")]
|
||||
private byte[] m_password;
|
||||
|
||||
// Token: 0x04001444 RID: 5188
|
||||
[global::Cpp2IlInjected.FieldOffset(Offset = "0x30")]
|
||||
[Token(Token = "0x4001444")]
|
||||
private uint m_iterations;
|
||||
|
||||
// Token: 0x04001445 RID: 5189
|
||||
[global::Cpp2IlInjected.FieldOffset(Offset = "0x34")]
|
||||
[Token(Token = "0x4001445")]
|
||||
private uint m_block;
|
||||
|
||||
// Token: 0x04001446 RID: 5190
|
||||
[global::Cpp2IlInjected.FieldOffset(Offset = "0x38")]
|
||||
[Token(Token = "0x4001446")]
|
||||
private int m_startIndex;
|
||||
|
||||
// Token: 0x04001447 RID: 5191
|
||||
[global::Cpp2IlInjected.FieldOffset(Offset = "0x3C")]
|
||||
[Token(Token = "0x4001447")]
|
||||
private int m_endIndex;
|
||||
|
||||
// Token: 0x04001448 RID: 5192
|
||||
[Token(Token = "0x4001448")]
|
||||
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: 0x02000419 RID: 1049
|
||||
[Token(Token = "0x2000419")]
|
||||
[ComVisible(true)]
|
||||
public abstract class Rijndael : SymmetricAlgorithm
|
||||
{
|
||||
/// <summary>Initializes a new instance of <see cref="T:System.Security.Cryptography.Rijndael" />.</summary>
|
||||
// Token: 0x06002456 RID: 9302 RVA: 0x00002050 File Offset: 0x00000250
|
||||
[Token(Token = "0x6002456")]
|
||||
[Address(RVA = "0x102D590", Offset = "0x102C590", VA = "0x18102D590")]
|
||||
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: 0x06002457 RID: 9303 RVA: 0x00002082 File Offset: 0x00000282
|
||||
[Token(Token = "0x6002457")]
|
||||
[Address(RVA = "0x102D230", Offset = "0x102C230", VA = "0x18102D230")]
|
||||
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: 0x06002458 RID: 9304 RVA: 0x00002082 File Offset: 0x00000282
|
||||
[Token(Token = "0x6002458")]
|
||||
[Address(RVA = "0x102D380", Offset = "0x102C380", VA = "0x18102D380")]
|
||||
public new static Rijndael Create(string algName)
|
||||
{
|
||||
return null;
|
||||
}
|
||||
|
||||
// Token: 0x04001449 RID: 5193
|
||||
[Token(Token = "0x4001449")]
|
||||
private static KeySizes[] s_legalBlockSizes;
|
||||
|
||||
// Token: 0x0400144A RID: 5194
|
||||
[Token(Token = "0x400144A")]
|
||||
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: 0x0200041A RID: 1050
|
||||
[Token(Token = "0x200041A")]
|
||||
[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: 0x0600245A RID: 9306 RVA: 0x00002050 File Offset: 0x00000250
|
||||
[Token(Token = "0x600245A")]
|
||||
[Address(RVA = "0x102D110", Offset = "0x102C110", VA = "0x18102D110")]
|
||||
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: 0x0600245B RID: 9307 RVA: 0x00002082 File Offset: 0x00000282
|
||||
[Token(Token = "0x600245B")]
|
||||
[Address(RVA = "0x102CED0", Offset = "0x102BED0", VA = "0x18102CED0", 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: 0x0600245C RID: 9308 RVA: 0x00002082 File Offset: 0x00000282
|
||||
[Token(Token = "0x600245C")]
|
||||
[Address(RVA = "0x102CEA0", Offset = "0x102BEA0", VA = "0x18102CEA0", 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: 0x0600245D RID: 9309 RVA: 0x00002050 File Offset: 0x00000250
|
||||
[Token(Token = "0x600245D")]
|
||||
[Address(RVA = "0x102CF70", Offset = "0x102BF70", VA = "0x18102CF70", 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: 0x0600245E RID: 9310 RVA: 0x00002050 File Offset: 0x00000250
|
||||
[Token(Token = "0x600245E")]
|
||||
[Address(RVA = "0x102CF00", Offset = "0x102BF00", VA = "0x18102CF00", Slot = "27")]
|
||||
public override void GenerateIV()
|
||||
{
|
||||
}
|
||||
|
||||
// Token: 0x0600245F RID: 9311 RVA: 0x00002082 File Offset: 0x00000282
|
||||
[Token(Token = "0x600245F")]
|
||||
[Address(RVA = "0x102CFE0", Offset = "0x102BFE0", VA = "0x18102CFE0")]
|
||||
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: 0x0200041C RID: 1052
|
||||
[Token(Token = "0x200041C")]
|
||||
[ComVisible(true)]
|
||||
public sealed class RijndaelManagedTransform : ICryptoTransform, IDisposable
|
||||
{
|
||||
// Token: 0x06002460 RID: 9312 RVA: 0x00002050 File Offset: 0x00000250
|
||||
[Token(Token = "0x6002460")]
|
||||
[Address(RVA = "0x102C7B0", Offset = "0x102B7B0", VA = "0x18102C7B0")]
|
||||
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: 0x06002461 RID: 9313 RVA: 0x00002050 File Offset: 0x00000250
|
||||
[Token(Token = "0x6002461")]
|
||||
[Address(RVA = "0x1029480", Offset = "0x1028480", VA = "0x181029480", Slot = "10")]
|
||||
public void Dispose()
|
||||
{
|
||||
}
|
||||
|
||||
/// <summary>Releases all resources used by the <see cref="T:System.Security.Cryptography.RijndaelManagedTransform" /> class.</summary>
|
||||
// Token: 0x06002462 RID: 9314 RVA: 0x00002050 File Offset: 0x00000250
|
||||
[Token(Token = "0x6002462")]
|
||||
[Address(RVA = "0x1029480", Offset = "0x1028480", VA = "0x181029480")]
|
||||
public void Clear()
|
||||
{
|
||||
}
|
||||
|
||||
// Token: 0x06002463 RID: 9315 RVA: 0x00002050 File Offset: 0x00000250
|
||||
[Token(Token = "0x6002463")]
|
||||
[Address(RVA = "0x102A5E0", Offset = "0x10295E0", VA = "0x18102A5E0")]
|
||||
private void Dispose(bool disposing)
|
||||
{
|
||||
}
|
||||
|
||||
/// <summary>Gets the block size.</summary>
|
||||
/// <returns>The size of the data blocks in bytes.</returns>
|
||||
// Token: 0x17000531 RID: 1329
|
||||
// (get) Token: 0x06002464 RID: 9316 RVA: 0x00016FC8 File Offset: 0x000151C8
|
||||
[Token(Token = "0x17000531")]
|
||||
public int BlockSizeValue
|
||||
{
|
||||
[Token(Token = "0x6002464")]
|
||||
[Address(RVA = "0x497590", Offset = "0x496590", VA = "0x180497590")]
|
||||
get
|
||||
{
|
||||
return 0;
|
||||
}
|
||||
}
|
||||
|
||||
/// <summary>Gets the input block size.</summary>
|
||||
/// <returns>The size of the input data blocks in bytes.</returns>
|
||||
// Token: 0x17000532 RID: 1330
|
||||
// (get) Token: 0x06002465 RID: 9317 RVA: 0x00016FE0 File Offset: 0x000151E0
|
||||
[Token(Token = "0x17000532")]
|
||||
public int InputBlockSize
|
||||
{
|
||||
[Token(Token = "0x6002465")]
|
||||
[Address(RVA = "0x470B60", Offset = "0x46FB60", VA = "0x180470B60", Slot = "4")]
|
||||
get
|
||||
{
|
||||
return 0;
|
||||
}
|
||||
}
|
||||
|
||||
/// <summary>Gets the output block size.</summary>
|
||||
/// <returns>The size of the output data blocks in bytes.</returns>
|
||||
// Token: 0x17000533 RID: 1331
|
||||
// (get) Token: 0x06002466 RID: 9318 RVA: 0x00016FF8 File Offset: 0x000151F8
|
||||
[Token(Token = "0x17000533")]
|
||||
public int OutputBlockSize
|
||||
{
|
||||
[Token(Token = "0x6002466")]
|
||||
[Address(RVA = "0x471180", Offset = "0x470180", VA = "0x180471180", 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: 0x17000534 RID: 1332
|
||||
// (get) Token: 0x06002467 RID: 9319 RVA: 0x00017010 File Offset: 0x00015210
|
||||
[Token(Token = "0x17000534")]
|
||||
public bool CanTransformMultipleBlocks
|
||||
{
|
||||
[Token(Token = "0x6002467")]
|
||||
[Address(RVA = "0x4246A0", Offset = "0x4236A0", VA = "0x1804246A0", 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: 0x17000535 RID: 1333
|
||||
// (get) Token: 0x06002468 RID: 9320 RVA: 0x00017028 File Offset: 0x00015228
|
||||
[Token(Token = "0x17000535")]
|
||||
public bool CanReuseTransform
|
||||
{
|
||||
[Token(Token = "0x6002468")]
|
||||
[Address(RVA = "0x4246A0", Offset = "0x4236A0", VA = "0x1804246A0", 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: 0x06002469 RID: 9321 RVA: 0x00017040 File Offset: 0x00015240
|
||||
[Token(Token = "0x6002469")]
|
||||
[Address(RVA = "0x102BF90", Offset = "0x102AF90", VA = "0x18102BF90", 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: 0x0600246A RID: 9322 RVA: 0x00002082 File Offset: 0x00000282
|
||||
[Token(Token = "0x600246A")]
|
||||
[Address(RVA = "0x102C300", Offset = "0x102B300", VA = "0x18102C300", 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: 0x0600246B RID: 9323 RVA: 0x00002050 File Offset: 0x00000250
|
||||
[Token(Token = "0x600246B")]
|
||||
[Address(RVA = "0x102BDF0", Offset = "0x102ADF0", VA = "0x18102BDF0")]
|
||||
public void Reset()
|
||||
{
|
||||
}
|
||||
|
||||
// Token: 0x0600246C RID: 9324 RVA: 0x00017058 File Offset: 0x00015258
|
||||
[Token(Token = "0x600246C")]
|
||||
[Address(RVA = "0x102A8B0", Offset = "0x10298B0", VA = "0x18102A8B0")]
|
||||
private int EncryptData(byte[] inputBuffer, int inputOffset, int inputCount, ref byte[] outputBuffer, int outputOffset, PaddingMode paddingMode, bool fLast)
|
||||
{
|
||||
return 0;
|
||||
}
|
||||
|
||||
// Token: 0x0600246D RID: 9325 RVA: 0x00017070 File Offset: 0x00015270
|
||||
[Token(Token = "0x600246D")]
|
||||
[Address(RVA = "0x10296D0", Offset = "0x10286D0", VA = "0x1810296D0")]
|
||||
private int DecryptData(byte[] inputBuffer, int inputOffset, int inputCount, ref byte[] outputBuffer, int outputOffset, PaddingMode paddingMode, bool fLast)
|
||||
{
|
||||
return 0;
|
||||
}
|
||||
|
||||
// Token: 0x0600246E RID: 9326 RVA: 0x00002050 File Offset: 0x00000250
|
||||
[Token(Token = "0x600246E")]
|
||||
[Address(RVA = "0x102A6B0", Offset = "0x10296B0", VA = "0x18102A6B0")]
|
||||
private unsafe void Enc(int* encryptindex, int* encryptKeyExpansion, int* T, int* TF, int* work, int* temp)
|
||||
{
|
||||
}
|
||||
|
||||
// Token: 0x0600246F RID: 9327 RVA: 0x00002050 File Offset: 0x00000250
|
||||
[Token(Token = "0x600246F")]
|
||||
[Address(RVA = "0x1029490", Offset = "0x1028490", VA = "0x181029490")]
|
||||
private unsafe void Dec(int* decryptindex, int* decryptKeyExpansion, int* iT, int* iTF, int* work, int* temp)
|
||||
{
|
||||
}
|
||||
|
||||
// Token: 0x06002470 RID: 9328 RVA: 0x00002050 File Offset: 0x00000250
|
||||
[Token(Token = "0x6002470")]
|
||||
[Address(RVA = "0x102B6B0", Offset = "0x102A6B0", VA = "0x18102B6B0")]
|
||||
private void GenerateKeyExpansion(byte[] rgbKey)
|
||||
{
|
||||
}
|
||||
|
||||
// Token: 0x06002471 RID: 9329 RVA: 0x00017088 File Offset: 0x00015288
|
||||
[Token(Token = "0x6002471")]
|
||||
[Address(RVA = "0x102CE70", Offset = "0x102BE70", VA = "0x18102CE70")]
|
||||
private static int rot1(int val)
|
||||
{
|
||||
return 0;
|
||||
}
|
||||
|
||||
// Token: 0x06002472 RID: 9330 RVA: 0x000170A0 File Offset: 0x000152A0
|
||||
[Token(Token = "0x6002472")]
|
||||
[Address(RVA = "0x102CE80", Offset = "0x102BE80", VA = "0x18102CE80")]
|
||||
private static int rot2(int val)
|
||||
{
|
||||
return 0;
|
||||
}
|
||||
|
||||
// Token: 0x06002473 RID: 9331 RVA: 0x000170B8 File Offset: 0x000152B8
|
||||
[Token(Token = "0x6002473")]
|
||||
[Address(RVA = "0x102CE90", Offset = "0x102BE90", VA = "0x18102CE90")]
|
||||
private static int rot3(int val)
|
||||
{
|
||||
return 0;
|
||||
}
|
||||
|
||||
// Token: 0x06002474 RID: 9332 RVA: 0x000170D0 File Offset: 0x000152D0
|
||||
[Token(Token = "0x6002474")]
|
||||
[Address(RVA = "0x102BE60", Offset = "0x102AE60", VA = "0x18102BE60")]
|
||||
private static int SubWord(int a)
|
||||
{
|
||||
return 0;
|
||||
}
|
||||
|
||||
// Token: 0x06002475 RID: 9333 RVA: 0x000170E8 File Offset: 0x000152E8
|
||||
[Token(Token = "0x6002475")]
|
||||
[Address(RVA = "0x102BDC0", Offset = "0x102ADC0", VA = "0x18102BDC0")]
|
||||
private static int MulX(int x)
|
||||
{
|
||||
return 0;
|
||||
}
|
||||
|
||||
// Token: 0x06002477 RID: 9335 RVA: 0x00002050 File Offset: 0x00000250
|
||||
[Token(Token = "0x6002477")]
|
||||
[Address(RVA = "0x102CE40", Offset = "0x102BE40", VA = "0x18102CE40")]
|
||||
internal RijndaelManagedTransform()
|
||||
{
|
||||
}
|
||||
|
||||
// Token: 0x0400144E RID: 5198
|
||||
[global::Cpp2IlInjected.FieldOffset(Offset = "0x10")]
|
||||
[Token(Token = "0x400144E")]
|
||||
private CipherMode m_cipherMode;
|
||||
|
||||
// Token: 0x0400144F RID: 5199
|
||||
[global::Cpp2IlInjected.FieldOffset(Offset = "0x14")]
|
||||
[Token(Token = "0x400144F")]
|
||||
private PaddingMode m_paddingValue;
|
||||
|
||||
// Token: 0x04001450 RID: 5200
|
||||
[global::Cpp2IlInjected.FieldOffset(Offset = "0x18")]
|
||||
[Token(Token = "0x4001450")]
|
||||
private RijndaelManagedTransformMode m_transformMode;
|
||||
|
||||
// Token: 0x04001451 RID: 5201
|
||||
[global::Cpp2IlInjected.FieldOffset(Offset = "0x1C")]
|
||||
[Token(Token = "0x4001451")]
|
||||
private int m_blockSizeBits;
|
||||
|
||||
// Token: 0x04001452 RID: 5202
|
||||
[global::Cpp2IlInjected.FieldOffset(Offset = "0x20")]
|
||||
[Token(Token = "0x4001452")]
|
||||
private int m_blockSizeBytes;
|
||||
|
||||
// Token: 0x04001453 RID: 5203
|
||||
[global::Cpp2IlInjected.FieldOffset(Offset = "0x24")]
|
||||
[Token(Token = "0x4001453")]
|
||||
private int m_inputBlockSize;
|
||||
|
||||
// Token: 0x04001454 RID: 5204
|
||||
[global::Cpp2IlInjected.FieldOffset(Offset = "0x28")]
|
||||
[Token(Token = "0x4001454")]
|
||||
private int m_outputBlockSize;
|
||||
|
||||
// Token: 0x04001455 RID: 5205
|
||||
[global::Cpp2IlInjected.FieldOffset(Offset = "0x30")]
|
||||
[Token(Token = "0x4001455")]
|
||||
private int[] m_encryptKeyExpansion;
|
||||
|
||||
// Token: 0x04001456 RID: 5206
|
||||
[global::Cpp2IlInjected.FieldOffset(Offset = "0x38")]
|
||||
[Token(Token = "0x4001456")]
|
||||
private int[] m_decryptKeyExpansion;
|
||||
|
||||
// Token: 0x04001457 RID: 5207
|
||||
[global::Cpp2IlInjected.FieldOffset(Offset = "0x40")]
|
||||
[Token(Token = "0x4001457")]
|
||||
private int m_Nr;
|
||||
|
||||
// Token: 0x04001458 RID: 5208
|
||||
[global::Cpp2IlInjected.FieldOffset(Offset = "0x44")]
|
||||
[Token(Token = "0x4001458")]
|
||||
private int m_Nb;
|
||||
|
||||
// Token: 0x04001459 RID: 5209
|
||||
[global::Cpp2IlInjected.FieldOffset(Offset = "0x48")]
|
||||
[Token(Token = "0x4001459")]
|
||||
private int m_Nk;
|
||||
|
||||
// Token: 0x0400145A RID: 5210
|
||||
[global::Cpp2IlInjected.FieldOffset(Offset = "0x50")]
|
||||
[Token(Token = "0x400145A")]
|
||||
private int[] m_encryptindex;
|
||||
|
||||
// Token: 0x0400145B RID: 5211
|
||||
[global::Cpp2IlInjected.FieldOffset(Offset = "0x58")]
|
||||
[Token(Token = "0x400145B")]
|
||||
private int[] m_decryptindex;
|
||||
|
||||
// Token: 0x0400145C RID: 5212
|
||||
[global::Cpp2IlInjected.FieldOffset(Offset = "0x60")]
|
||||
[Token(Token = "0x400145C")]
|
||||
private int[] m_IV;
|
||||
|
||||
// Token: 0x0400145D RID: 5213
|
||||
[global::Cpp2IlInjected.FieldOffset(Offset = "0x68")]
|
||||
[Token(Token = "0x400145D")]
|
||||
private int[] m_lastBlockBuffer;
|
||||
|
||||
// Token: 0x0400145E RID: 5214
|
||||
[global::Cpp2IlInjected.FieldOffset(Offset = "0x70")]
|
||||
[Token(Token = "0x400145E")]
|
||||
private byte[] m_depadBuffer;
|
||||
|
||||
// Token: 0x0400145F RID: 5215
|
||||
[global::Cpp2IlInjected.FieldOffset(Offset = "0x78")]
|
||||
[Token(Token = "0x400145F")]
|
||||
private byte[] m_shiftRegister;
|
||||
|
||||
// Token: 0x04001460 RID: 5216
|
||||
[Token(Token = "0x4001460")]
|
||||
private static readonly byte[] s_Sbox;
|
||||
|
||||
// Token: 0x04001461 RID: 5217
|
||||
[Token(Token = "0x4001461")]
|
||||
private static readonly int[] s_Rcon;
|
||||
|
||||
// Token: 0x04001462 RID: 5218
|
||||
[Token(Token = "0x4001462")]
|
||||
private static readonly int[] s_T;
|
||||
|
||||
// Token: 0x04001463 RID: 5219
|
||||
[Token(Token = "0x4001463")]
|
||||
private static readonly int[] s_TF;
|
||||
|
||||
// Token: 0x04001464 RID: 5220
|
||||
[Token(Token = "0x4001464")]
|
||||
private static readonly int[] s_iT;
|
||||
|
||||
// Token: 0x04001465 RID: 5221
|
||||
[Token(Token = "0x4001465")]
|
||||
private static readonly int[] s_iTF;
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,18 @@
|
||||
using System;
|
||||
using Cpp2IlInjected;
|
||||
|
||||
namespace System.Security.Cryptography
|
||||
{
|
||||
// Token: 0x0200041B RID: 1051
|
||||
[Token(Token = "0x200041B")]
|
||||
[Serializable]
|
||||
internal enum RijndaelManagedTransformMode
|
||||
{
|
||||
// Token: 0x0400144C RID: 5196
|
||||
[Token(Token = "0x400144C")]
|
||||
Encrypt,
|
||||
// Token: 0x0400144D RID: 5197
|
||||
[Token(Token = "0x400144D")]
|
||||
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: 0x02000426 RID: 1062
|
||||
[Token(Token = "0x2000426")]
|
||||
[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: 0x060024F4 RID: 9460 RVA: 0x00002050 File Offset: 0x00000250
|
||||
[Token(Token = "0x60024F4")]
|
||||
[Address(RVA = "0x1020B90", Offset = "0x101FB90", VA = "0x181020B90")]
|
||||
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: 0x060024F5 RID: 9461 RVA: 0x00002082 File Offset: 0x00000282
|
||||
[Token(Token = "0x60024F5")]
|
||||
[Address(RVA = "0x10307C0", Offset = "0x102F7C0", VA = "0x1810307C0")]
|
||||
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: 0x060024F6 RID: 9462 RVA: 0x00002082 File Offset: 0x00000282
|
||||
[Token(Token = "0x60024F6")]
|
||||
[Address(RVA = "0x1030730", Offset = "0x102F730", VA = "0x181030730")]
|
||||
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: 0x02000448 RID: 1096
|
||||
[Token(Token = "0x2000448")]
|
||||
[ComVisible(true)]
|
||||
public sealed class SHA1CryptoServiceProvider : SHA1
|
||||
{
|
||||
/// <summary>Initializes a new instance of the <see cref="T:System.Security.Cryptography.SHA1CryptoServiceProvider" /> class.</summary>
|
||||
// Token: 0x06002613 RID: 9747 RVA: 0x00002050 File Offset: 0x00000250
|
||||
[Token(Token = "0x6002613")]
|
||||
[Address(RVA = "0x102D930", Offset = "0x102C930", VA = "0x18102D930")]
|
||||
public SHA1CryptoServiceProvider()
|
||||
{
|
||||
}
|
||||
|
||||
// Token: 0x06002614 RID: 9748 RVA: 0x00002050 File Offset: 0x00000250
|
||||
[Token(Token = "0x6002614")]
|
||||
[Address(RVA = "0x102D640", Offset = "0x102C640", VA = "0x18102D640", Slot = "1")]
|
||||
protected override void Finalize()
|
||||
{
|
||||
}
|
||||
|
||||
// Token: 0x06002615 RID: 9749 RVA: 0x00002050 File Offset: 0x00000250
|
||||
[Token(Token = "0x6002615")]
|
||||
[Address(RVA = "0x102D630", Offset = "0x102C630", VA = "0x18102D630", Slot = "17")]
|
||||
protected override void Dispose(bool disposing)
|
||||
{
|
||||
}
|
||||
|
||||
// Token: 0x06002616 RID: 9750 RVA: 0x00002050 File Offset: 0x00000250
|
||||
[Token(Token = "0x6002616")]
|
||||
[Address(RVA = "0x102D6C0", Offset = "0x102C6C0", VA = "0x18102D6C0", Slot = "19")]
|
||||
protected override void HashCore(byte[] rgb, int ibStart, int cbSize)
|
||||
{
|
||||
}
|
||||
|
||||
// Token: 0x06002617 RID: 9751 RVA: 0x00002082 File Offset: 0x00000282
|
||||
[Token(Token = "0x6002617")]
|
||||
[Address(RVA = "0x102D7F0", Offset = "0x102C7F0", VA = "0x18102D7F0", Slot = "20")]
|
||||
protected override byte[] HashFinal()
|
||||
{
|
||||
return null;
|
||||
}
|
||||
|
||||
/// <summary>Initializes an instance of <see cref="T:System.Security.Cryptography.SHA1CryptoServiceProvider" />.</summary>
|
||||
// Token: 0x06002618 RID: 9752 RVA: 0x00002050 File Offset: 0x00000250
|
||||
[Token(Token = "0x6002618")]
|
||||
[Address(RVA = "0x102D910", Offset = "0x102C910", VA = "0x18102D910", Slot = "18")]
|
||||
public override void Initialize()
|
||||
{
|
||||
}
|
||||
|
||||
// Token: 0x0400152A RID: 5418
|
||||
[global::Cpp2IlInjected.FieldOffset(Offset = "0x28")]
|
||||
[Token(Token = "0x400152A")]
|
||||
private SHA1Internal sha;
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,103 @@
|
||||
using System;
|
||||
using Cpp2IlInjected;
|
||||
|
||||
namespace System.Security.Cryptography
|
||||
{
|
||||
// Token: 0x02000447 RID: 1095
|
||||
[Token(Token = "0x2000447")]
|
||||
internal class SHA1Internal
|
||||
{
|
||||
// Token: 0x0600260A RID: 9738 RVA: 0x00002050 File Offset: 0x00000250
|
||||
[Token(Token = "0x600260A")]
|
||||
[Address(RVA = "0x102FB60", Offset = "0x102EB60", VA = "0x18102FB60")]
|
||||
public SHA1Internal()
|
||||
{
|
||||
}
|
||||
|
||||
// Token: 0x0600260B RID: 9739 RVA: 0x00002050 File Offset: 0x00000250
|
||||
[Token(Token = "0x600260B")]
|
||||
[Address(RVA = "0x102E150", Offset = "0x102D150", VA = "0x18102E150")]
|
||||
public void HashCore(byte[] rgb, int ibStart, int cbSize)
|
||||
{
|
||||
}
|
||||
|
||||
// Token: 0x0600260C RID: 9740 RVA: 0x00002082 File Offset: 0x00000282
|
||||
[Token(Token = "0x600260C")]
|
||||
[Address(RVA = "0x102E270", Offset = "0x102D270", VA = "0x18102E270")]
|
||||
public byte[] HashFinal()
|
||||
{
|
||||
return null;
|
||||
}
|
||||
|
||||
// Token: 0x0600260D RID: 9741 RVA: 0x00002050 File Offset: 0x00000250
|
||||
[Token(Token = "0x600260D")]
|
||||
[Address(RVA = "0x102F020", Offset = "0x102E020", VA = "0x18102F020")]
|
||||
public void Initialize()
|
||||
{
|
||||
}
|
||||
|
||||
// Token: 0x0600260E RID: 9742 RVA: 0x00002050 File Offset: 0x00000250
|
||||
[Token(Token = "0x600260E")]
|
||||
[Address(RVA = "0x102F100", Offset = "0x102E100", VA = "0x18102F100")]
|
||||
private void ProcessBlock(byte[] inputBuffer, uint inputOffset)
|
||||
{
|
||||
}
|
||||
|
||||
// Token: 0x0600260F RID: 9743 RVA: 0x00002050 File Offset: 0x00000250
|
||||
[Token(Token = "0x600260F")]
|
||||
[Address(RVA = "0x102E380", Offset = "0x102D380", VA = "0x18102E380")]
|
||||
private static void InitialiseBuff(uint[] buff, byte[] input, uint inputOffset)
|
||||
{
|
||||
}
|
||||
|
||||
// Token: 0x06002610 RID: 9744 RVA: 0x00002050 File Offset: 0x00000250
|
||||
[Token(Token = "0x6002610")]
|
||||
[Address(RVA = "0x102DB70", Offset = "0x102CB70", VA = "0x18102DB70")]
|
||||
private static void FillBuff(uint[] buff)
|
||||
{
|
||||
}
|
||||
|
||||
// Token: 0x06002611 RID: 9745 RVA: 0x00002050 File Offset: 0x00000250
|
||||
[Token(Token = "0x6002611")]
|
||||
[Address(RVA = "0x102F9A0", Offset = "0x102E9A0", VA = "0x18102F9A0")]
|
||||
private void ProcessFinalBlock(byte[] inputBuffer, int inputOffset, int inputCount)
|
||||
{
|
||||
}
|
||||
|
||||
// Token: 0x06002612 RID: 9746 RVA: 0x00002050 File Offset: 0x00000250
|
||||
[Token(Token = "0x6002612")]
|
||||
[Address(RVA = "0x102DA00", Offset = "0x102CA00", VA = "0x18102DA00")]
|
||||
internal void AddLength(ulong length, byte[] buffer, int position)
|
||||
{
|
||||
}
|
||||
|
||||
// Token: 0x04001524 RID: 5412
|
||||
[Token(Token = "0x4001524")]
|
||||
private const int BLOCK_SIZE_BYTES = 64;
|
||||
|
||||
// Token: 0x04001525 RID: 5413
|
||||
[FieldOffset(Offset = "0x10")]
|
||||
[Token(Token = "0x4001525")]
|
||||
private uint[] _H;
|
||||
|
||||
// Token: 0x04001526 RID: 5414
|
||||
[FieldOffset(Offset = "0x18")]
|
||||
[Token(Token = "0x4001526")]
|
||||
private ulong count;
|
||||
|
||||
// Token: 0x04001527 RID: 5415
|
||||
[FieldOffset(Offset = "0x20")]
|
||||
[Token(Token = "0x4001527")]
|
||||
private byte[] _ProcessingBuffer;
|
||||
|
||||
// Token: 0x04001528 RID: 5416
|
||||
[FieldOffset(Offset = "0x28")]
|
||||
[Token(Token = "0x4001528")]
|
||||
private int _ProcessingBufferCount;
|
||||
|
||||
// Token: 0x04001529 RID: 5417
|
||||
[FieldOffset(Offset = "0x30")]
|
||||
[Token(Token = "0x4001529")]
|
||||
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: 0x02000427 RID: 1063
|
||||
[Token(Token = "0x2000427")]
|
||||
[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: 0x060024F7 RID: 9463 RVA: 0x00002050 File Offset: 0x00000250
|
||||
[Token(Token = "0x60024F7")]
|
||||
[Address(RVA = "0x1030650", Offset = "0x102F650", VA = "0x181030650")]
|
||||
public SHA1Managed()
|
||||
{
|
||||
}
|
||||
|
||||
/// <summary>Initializes an instance of <see cref="T:System.Security.Cryptography.SHA1Managed" />.</summary>
|
||||
// Token: 0x060024F8 RID: 9464 RVA: 0x00002050 File Offset: 0x00000250
|
||||
[Token(Token = "0x60024F8")]
|
||||
[Address(RVA = "0x102FC00", Offset = "0x102EC00", VA = "0x18102FC00", 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: 0x060024F9 RID: 9465 RVA: 0x00002050 File Offset: 0x00000250
|
||||
[Token(Token = "0x60024F9")]
|
||||
[Address(RVA = "0x102FBE0", Offset = "0x102EBE0", VA = "0x18102FBE0", 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: 0x060024FA RID: 9466 RVA: 0x00002082 File Offset: 0x00000282
|
||||
[Token(Token = "0x60024FA")]
|
||||
[Address(RVA = "0x102FBF0", Offset = "0x102EBF0", VA = "0x18102FBF0", Slot = "20")]
|
||||
protected override byte[] HashFinal()
|
||||
{
|
||||
return null;
|
||||
}
|
||||
|
||||
// Token: 0x060024FB RID: 9467 RVA: 0x00002050 File Offset: 0x00000250
|
||||
[Token(Token = "0x60024FB")]
|
||||
[Address(RVA = "0x101E260", Offset = "0x101D260", VA = "0x18101E260")]
|
||||
private void InitializeState()
|
||||
{
|
||||
}
|
||||
|
||||
// Token: 0x060024FC RID: 9468 RVA: 0x00002050 File Offset: 0x00000250
|
||||
[Token(Token = "0x60024FC")]
|
||||
[Address(RVA = "0x10304B0", Offset = "0x102F4B0", VA = "0x1810304B0")]
|
||||
private void _HashData(byte[] partIn, int ibStart, int cbSize)
|
||||
{
|
||||
}
|
||||
|
||||
// Token: 0x060024FD RID: 9469 RVA: 0x00002082 File Offset: 0x00000282
|
||||
[Token(Token = "0x60024FD")]
|
||||
[Address(RVA = "0x1030260", Offset = "0x102F260", VA = "0x181030260")]
|
||||
private byte[] _EndHash()
|
||||
{
|
||||
return null;
|
||||
}
|
||||
|
||||
// Token: 0x060024FE RID: 9470 RVA: 0x00002050 File Offset: 0x00000250
|
||||
[Token(Token = "0x60024FE")]
|
||||
[Address(RVA = "0x102FC90", Offset = "0x102EC90", VA = "0x18102FC90")]
|
||||
private unsafe static void SHATransform(uint* expandedBuffer, uint* state, byte* block)
|
||||
{
|
||||
}
|
||||
|
||||
// Token: 0x060024FF RID: 9471 RVA: 0x00002050 File Offset: 0x00000250
|
||||
[Token(Token = "0x60024FF")]
|
||||
[Address(RVA = "0x102FC50", Offset = "0x102EC50", VA = "0x18102FC50")]
|
||||
private unsafe static void SHAExpand(uint* x)
|
||||
{
|
||||
}
|
||||
|
||||
// Token: 0x04001488 RID: 5256
|
||||
[global::Cpp2IlInjected.FieldOffset(Offset = "0x28")]
|
||||
[Token(Token = "0x4001488")]
|
||||
private byte[] _buffer;
|
||||
|
||||
// Token: 0x04001489 RID: 5257
|
||||
[global::Cpp2IlInjected.FieldOffset(Offset = "0x30")]
|
||||
[Token(Token = "0x4001489")]
|
||||
private long _count;
|
||||
|
||||
// Token: 0x0400148A RID: 5258
|
||||
[global::Cpp2IlInjected.FieldOffset(Offset = "0x38")]
|
||||
[Token(Token = "0x400148A")]
|
||||
private uint[] _stateSHA1;
|
||||
|
||||
// Token: 0x0400148B RID: 5259
|
||||
[global::Cpp2IlInjected.FieldOffset(Offset = "0x40")]
|
||||
[Token(Token = "0x400148B")]
|
||||
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: 0x02000428 RID: 1064
|
||||
[Token(Token = "0x2000428")]
|
||||
[ComVisible(true)]
|
||||
public abstract class SHA256 : HashAlgorithm
|
||||
{
|
||||
/// <summary>Initializes a new instance of <see cref="T:System.Security.Cryptography.SHA256" />.</summary>
|
||||
// Token: 0x06002500 RID: 9472 RVA: 0x00002050 File Offset: 0x00000250
|
||||
[Token(Token = "0x6002500")]
|
||||
[Address(RVA = "0x1031B70", Offset = "0x1030B70", VA = "0x181031B70")]
|
||||
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: 0x06002501 RID: 9473 RVA: 0x00002082 File Offset: 0x00000282
|
||||
[Token(Token = "0x6002501")]
|
||||
[Address(RVA = "0x1031A70", Offset = "0x1030A70", VA = "0x181031A70")]
|
||||
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: 0x06002502 RID: 9474 RVA: 0x00002082 File Offset: 0x00000282
|
||||
[Token(Token = "0x6002502")]
|
||||
[Address(RVA = "0x10319E0", Offset = "0x10309E0", VA = "0x1810319E0")]
|
||||
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: 0x02000429 RID: 1065
|
||||
[Token(Token = "0x2000429")]
|
||||
[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: 0x06002503 RID: 9475 RVA: 0x00002050 File Offset: 0x00000250
|
||||
[Token(Token = "0x6002503")]
|
||||
[Address(RVA = "0x1031820", Offset = "0x1030820", VA = "0x181031820")]
|
||||
public SHA256Managed()
|
||||
{
|
||||
}
|
||||
|
||||
/// <summary>Initializes an instance of <see cref="T:System.Security.Cryptography.SHA256Managed" />.</summary>
|
||||
// Token: 0x06002504 RID: 9476 RVA: 0x00002050 File Offset: 0x00000250
|
||||
[Token(Token = "0x6002504")]
|
||||
[Address(RVA = "0x1030A60", Offset = "0x102FA60", VA = "0x181030A60", 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: 0x06002505 RID: 9477 RVA: 0x00002050 File Offset: 0x00000250
|
||||
[Token(Token = "0x6002505")]
|
||||
[Address(RVA = "0x10308C0", Offset = "0x102F8C0", VA = "0x1810308C0", 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: 0x06002506 RID: 9478 RVA: 0x00002082 File Offset: 0x00000282
|
||||
[Token(Token = "0x6002506")]
|
||||
[Address(RVA = "0x10308D0", Offset = "0x102F8D0", VA = "0x1810308D0", Slot = "20")]
|
||||
protected override byte[] HashFinal()
|
||||
{
|
||||
return null;
|
||||
}
|
||||
|
||||
// Token: 0x06002507 RID: 9479 RVA: 0x00002050 File Offset: 0x00000250
|
||||
[Token(Token = "0x6002507")]
|
||||
[Address(RVA = "0x10308E0", Offset = "0x102F8E0", VA = "0x1810308E0")]
|
||||
private void InitializeState()
|
||||
{
|
||||
}
|
||||
|
||||
// Token: 0x06002508 RID: 9480 RVA: 0x00002050 File Offset: 0x00000250
|
||||
[Token(Token = "0x6002508")]
|
||||
[Address(RVA = "0x10315D0", Offset = "0x10305D0", VA = "0x1810315D0")]
|
||||
private void _HashData(byte[] partIn, int ibStart, int cbSize)
|
||||
{
|
||||
}
|
||||
|
||||
// Token: 0x06002509 RID: 9481 RVA: 0x00002082 File Offset: 0x00000282
|
||||
[Token(Token = "0x6002509")]
|
||||
[Address(RVA = "0x1031380", Offset = "0x1030380", VA = "0x181031380")]
|
||||
private byte[] _EndHash()
|
||||
{
|
||||
return null;
|
||||
}
|
||||
|
||||
// Token: 0x0600250A RID: 9482 RVA: 0x00002050 File Offset: 0x00000250
|
||||
[Token(Token = "0x600250A")]
|
||||
[Address(RVA = "0x1030B90", Offset = "0x102FB90", VA = "0x181030B90")]
|
||||
private unsafe static void SHATransform(uint* expandedBuffer, uint* state, byte* block)
|
||||
{
|
||||
}
|
||||
|
||||
// Token: 0x0600250B RID: 9483 RVA: 0x00017328 File Offset: 0x00015528
|
||||
[Token(Token = "0x600250B")]
|
||||
[Address(RVA = "0x1030AC0", Offset = "0x102FAC0", VA = "0x181030AC0")]
|
||||
private static uint RotateRight(uint x, int n)
|
||||
{
|
||||
return 0U;
|
||||
}
|
||||
|
||||
// Token: 0x0600250C RID: 9484 RVA: 0x00017340 File Offset: 0x00015540
|
||||
[Token(Token = "0x600250C")]
|
||||
[Address(RVA = "0x10308B0", Offset = "0x102F8B0", VA = "0x1810308B0")]
|
||||
private static uint Ch(uint x, uint y, uint z)
|
||||
{
|
||||
return 0U;
|
||||
}
|
||||
|
||||
// Token: 0x0600250D RID: 9485 RVA: 0x00017358 File Offset: 0x00015558
|
||||
[Token(Token = "0x600250D")]
|
||||
[Address(RVA = "0x1030AB0", Offset = "0x102FAB0", VA = "0x181030AB0")]
|
||||
private static uint Maj(uint x, uint y, uint z)
|
||||
{
|
||||
return 0U;
|
||||
}
|
||||
|
||||
// Token: 0x0600250E RID: 9486 RVA: 0x00017370 File Offset: 0x00015570
|
||||
[Token(Token = "0x600250E")]
|
||||
[Address(RVA = "0x1031900", Offset = "0x1030900", VA = "0x181031900")]
|
||||
private static uint sigma_0(uint x)
|
||||
{
|
||||
return 0U;
|
||||
}
|
||||
|
||||
// Token: 0x0600250F RID: 9487 RVA: 0x00017388 File Offset: 0x00015588
|
||||
[Token(Token = "0x600250F")]
|
||||
[Address(RVA = "0x1031970", Offset = "0x1030970", VA = "0x181031970")]
|
||||
private static uint sigma_1(uint x)
|
||||
{
|
||||
return 0U;
|
||||
}
|
||||
|
||||
// Token: 0x06002510 RID: 9488 RVA: 0x000173A0 File Offset: 0x000155A0
|
||||
[Token(Token = "0x6002510")]
|
||||
[Address(RVA = "0x10312A0", Offset = "0x10302A0", VA = "0x1810312A0")]
|
||||
private static uint Sigma_0(uint x)
|
||||
{
|
||||
return 0U;
|
||||
}
|
||||
|
||||
// Token: 0x06002511 RID: 9489 RVA: 0x000173B8 File Offset: 0x000155B8
|
||||
[Token(Token = "0x6002511")]
|
||||
[Address(RVA = "0x1031310", Offset = "0x1030310", VA = "0x181031310")]
|
||||
private static uint Sigma_1(uint x)
|
||||
{
|
||||
return 0U;
|
||||
}
|
||||
|
||||
// Token: 0x06002512 RID: 9490 RVA: 0x00002050 File Offset: 0x00000250
|
||||
[Token(Token = "0x6002512")]
|
||||
[Address(RVA = "0x1030AE0", Offset = "0x102FAE0", VA = "0x181030AE0")]
|
||||
private unsafe static void SHA256Expand(uint* x)
|
||||
{
|
||||
}
|
||||
|
||||
// Token: 0x0400148C RID: 5260
|
||||
[global::Cpp2IlInjected.FieldOffset(Offset = "0x28")]
|
||||
[Token(Token = "0x400148C")]
|
||||
private byte[] _buffer;
|
||||
|
||||
// Token: 0x0400148D RID: 5261
|
||||
[global::Cpp2IlInjected.FieldOffset(Offset = "0x30")]
|
||||
[Token(Token = "0x400148D")]
|
||||
private long _count;
|
||||
|
||||
// Token: 0x0400148E RID: 5262
|
||||
[global::Cpp2IlInjected.FieldOffset(Offset = "0x38")]
|
||||
[Token(Token = "0x400148E")]
|
||||
private uint[] _stateSHA256;
|
||||
|
||||
// Token: 0x0400148F RID: 5263
|
||||
[global::Cpp2IlInjected.FieldOffset(Offset = "0x40")]
|
||||
[Token(Token = "0x400148F")]
|
||||
private uint[] _W;
|
||||
|
||||
// Token: 0x04001490 RID: 5264
|
||||
[Token(Token = "0x4001490")]
|
||||
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: 0x0200042A RID: 1066
|
||||
[Token(Token = "0x200042A")]
|
||||
[ComVisible(true)]
|
||||
public abstract class SHA384 : HashAlgorithm
|
||||
{
|
||||
/// <summary>Initializes a new instance of <see cref="T:System.Security.Cryptography.SHA384" />.</summary>
|
||||
// Token: 0x06002514 RID: 9492 RVA: 0x00002050 File Offset: 0x00000250
|
||||
[Token(Token = "0x6002514")]
|
||||
[Address(RVA = "0x1032F40", Offset = "0x1031F40", VA = "0x181032F40")]
|
||||
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: 0x06002515 RID: 9493 RVA: 0x00002082 File Offset: 0x00000282
|
||||
[Token(Token = "0x6002515")]
|
||||
[Address(RVA = "0x1032DB0", Offset = "0x1031DB0", VA = "0x181032DB0")]
|
||||
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: 0x06002516 RID: 9494 RVA: 0x00002082 File Offset: 0x00000282
|
||||
[Token(Token = "0x6002516")]
|
||||
[Address(RVA = "0x1032EB0", Offset = "0x1031EB0", VA = "0x181032EB0")]
|
||||
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: 0x0200042B RID: 1067
|
||||
[Token(Token = "0x200042B")]
|
||||
[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: 0x06002517 RID: 9495 RVA: 0x00002050 File Offset: 0x00000250
|
||||
[Token(Token = "0x6002517")]
|
||||
[Address(RVA = "0x1032BD0", Offset = "0x1031BD0", VA = "0x181032BD0")]
|
||||
public SHA384Managed()
|
||||
{
|
||||
}
|
||||
|
||||
/// <summary>Initializes an instance of <see cref="T:System.Security.Cryptography.SHA384Managed" />.</summary>
|
||||
// Token: 0x06002518 RID: 9496 RVA: 0x00002050 File Offset: 0x00000250
|
||||
[Token(Token = "0x6002518")]
|
||||
[Address(RVA = "0x1031D80", Offset = "0x1030D80", VA = "0x181031D80", 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: 0x06002519 RID: 9497 RVA: 0x00002050 File Offset: 0x00000250
|
||||
[Token(Token = "0x6002519")]
|
||||
[Address(RVA = "0x1031BA0", Offset = "0x1030BA0", VA = "0x181031BA0", 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: 0x0600251A RID: 9498 RVA: 0x00002082 File Offset: 0x00000282
|
||||
[Token(Token = "0x600251A")]
|
||||
[Address(RVA = "0x1031BB0", Offset = "0x1030BB0", VA = "0x181031BB0", Slot = "20")]
|
||||
protected override byte[] HashFinal()
|
||||
{
|
||||
return null;
|
||||
}
|
||||
|
||||
// Token: 0x0600251B RID: 9499 RVA: 0x00002050 File Offset: 0x00000250
|
||||
[Token(Token = "0x600251B")]
|
||||
[Address(RVA = "0x1031BC0", Offset = "0x1030BC0", VA = "0x181031BC0")]
|
||||
private void InitializeState()
|
||||
{
|
||||
}
|
||||
|
||||
// Token: 0x0600251C RID: 9500 RVA: 0x00002050 File Offset: 0x00000250
|
||||
[Token(Token = "0x600251C")]
|
||||
[Address(RVA = "0x1032970", Offset = "0x1031970", VA = "0x181032970")]
|
||||
private void _HashData(byte[] partIn, int ibStart, int cbSize)
|
||||
{
|
||||
}
|
||||
|
||||
// Token: 0x0600251D RID: 9501 RVA: 0x00002082 File Offset: 0x00000282
|
||||
[Token(Token = "0x600251D")]
|
||||
[Address(RVA = "0x1032720", Offset = "0x1031720", VA = "0x181032720")]
|
||||
private byte[] _EndHash()
|
||||
{
|
||||
return null;
|
||||
}
|
||||
|
||||
// Token: 0x0600251E RID: 9502 RVA: 0x00002050 File Offset: 0x00000250
|
||||
[Token(Token = "0x600251E")]
|
||||
[Address(RVA = "0x1031EB0", Offset = "0x1030EB0", VA = "0x181031EB0")]
|
||||
private unsafe static void SHATransform(ulong* expandedBuffer, ulong* state, byte* block)
|
||||
{
|
||||
}
|
||||
|
||||
// Token: 0x0600251F RID: 9503 RVA: 0x000173D0 File Offset: 0x000155D0
|
||||
[Token(Token = "0x600251F")]
|
||||
[Address(RVA = "0x1031DE0", Offset = "0x1030DE0", VA = "0x181031DE0")]
|
||||
private static ulong RotateRight(ulong x, int n)
|
||||
{
|
||||
return 0UL;
|
||||
}
|
||||
|
||||
// Token: 0x06002520 RID: 9504 RVA: 0x000173E8 File Offset: 0x000155E8
|
||||
[Token(Token = "0x6002520")]
|
||||
[Address(RVA = "0x1031B90", Offset = "0x1030B90", VA = "0x181031B90")]
|
||||
private static ulong Ch(ulong x, ulong y, ulong z)
|
||||
{
|
||||
return 0UL;
|
||||
}
|
||||
|
||||
// Token: 0x06002521 RID: 9505 RVA: 0x00017400 File Offset: 0x00015600
|
||||
[Token(Token = "0x6002521")]
|
||||
[Address(RVA = "0x1031DD0", Offset = "0x1030DD0", VA = "0x181031DD0")]
|
||||
private static ulong Maj(ulong x, ulong y, ulong z)
|
||||
{
|
||||
return 0UL;
|
||||
}
|
||||
|
||||
// Token: 0x06002522 RID: 9506 RVA: 0x00017418 File Offset: 0x00015618
|
||||
[Token(Token = "0x6002522")]
|
||||
[Address(RVA = "0x1032620", Offset = "0x1031620", VA = "0x181032620")]
|
||||
private static ulong Sigma_0(ulong x)
|
||||
{
|
||||
return 0UL;
|
||||
}
|
||||
|
||||
// Token: 0x06002523 RID: 9507 RVA: 0x00017430 File Offset: 0x00015630
|
||||
[Token(Token = "0x6002523")]
|
||||
[Address(RVA = "0x10326A0", Offset = "0x10316A0", VA = "0x1810326A0")]
|
||||
private static ulong Sigma_1(ulong x)
|
||||
{
|
||||
return 0UL;
|
||||
}
|
||||
|
||||
// Token: 0x06002524 RID: 9508 RVA: 0x00017448 File Offset: 0x00015648
|
||||
[Token(Token = "0x6002524")]
|
||||
[Address(RVA = "0x1032CB0", Offset = "0x1031CB0", VA = "0x181032CB0")]
|
||||
private static ulong sigma_0(ulong x)
|
||||
{
|
||||
return 0UL;
|
||||
}
|
||||
|
||||
// Token: 0x06002525 RID: 9509 RVA: 0x00017460 File Offset: 0x00015660
|
||||
[Token(Token = "0x6002525")]
|
||||
[Address(RVA = "0x1032D30", Offset = "0x1031D30", VA = "0x181032D30")]
|
||||
private static ulong sigma_1(ulong x)
|
||||
{
|
||||
return 0UL;
|
||||
}
|
||||
|
||||
// Token: 0x06002526 RID: 9510 RVA: 0x00002050 File Offset: 0x00000250
|
||||
[Token(Token = "0x6002526")]
|
||||
[Address(RVA = "0x1031E00", Offset = "0x1030E00", VA = "0x181031E00")]
|
||||
private unsafe static void SHA384Expand(ulong* x)
|
||||
{
|
||||
}
|
||||
|
||||
// Token: 0x04001491 RID: 5265
|
||||
[global::Cpp2IlInjected.FieldOffset(Offset = "0x28")]
|
||||
[Token(Token = "0x4001491")]
|
||||
private byte[] _buffer;
|
||||
|
||||
// Token: 0x04001492 RID: 5266
|
||||
[global::Cpp2IlInjected.FieldOffset(Offset = "0x30")]
|
||||
[Token(Token = "0x4001492")]
|
||||
private ulong _count;
|
||||
|
||||
// Token: 0x04001493 RID: 5267
|
||||
[global::Cpp2IlInjected.FieldOffset(Offset = "0x38")]
|
||||
[Token(Token = "0x4001493")]
|
||||
private ulong[] _stateSHA384;
|
||||
|
||||
// Token: 0x04001494 RID: 5268
|
||||
[global::Cpp2IlInjected.FieldOffset(Offset = "0x40")]
|
||||
[Token(Token = "0x4001494")]
|
||||
private ulong[] _W;
|
||||
|
||||
// Token: 0x04001495 RID: 5269
|
||||
[Token(Token = "0x4001495")]
|
||||
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: 0x0200042C RID: 1068
|
||||
[Token(Token = "0x200042C")]
|
||||
[ComVisible(true)]
|
||||
public abstract class SHA512 : HashAlgorithm
|
||||
{
|
||||
/// <summary>Initializes a new instance of <see cref="T:System.Security.Cryptography.SHA512" />.</summary>
|
||||
// Token: 0x06002528 RID: 9512 RVA: 0x00002050 File Offset: 0x00000250
|
||||
[Token(Token = "0x6002528")]
|
||||
[Address(RVA = "0x10342D0", Offset = "0x10332D0", VA = "0x1810342D0")]
|
||||
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: 0x06002529 RID: 9513 RVA: 0x00002082 File Offset: 0x00000282
|
||||
[Token(Token = "0x6002529")]
|
||||
[Address(RVA = "0x10341D0", Offset = "0x10331D0", VA = "0x1810341D0")]
|
||||
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: 0x0600252A RID: 9514 RVA: 0x00002082 File Offset: 0x00000282
|
||||
[Token(Token = "0x600252A")]
|
||||
[Address(RVA = "0x1034140", Offset = "0x1033140", VA = "0x181034140")]
|
||||
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: 0x0200042D RID: 1069
|
||||
[Token(Token = "0x200042D")]
|
||||
[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: 0x0600252B RID: 9515 RVA: 0x00002050 File Offset: 0x00000250
|
||||
[Token(Token = "0x600252B")]
|
||||
[Address(RVA = "0x1033F60", Offset = "0x1032F60", VA = "0x181033F60")]
|
||||
public SHA512Managed()
|
||||
{
|
||||
}
|
||||
|
||||
/// <summary>Initializes an instance of the <see cref="T:System.Security.Cryptography.SHA512Managed" /> class using the managed library.</summary>
|
||||
// Token: 0x0600252C RID: 9516 RVA: 0x00002050 File Offset: 0x00000250
|
||||
[Token(Token = "0x600252C")]
|
||||
[Address(RVA = "0x1033140", Offset = "0x1032140", VA = "0x181033140", 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: 0x0600252D RID: 9517 RVA: 0x00002050 File Offset: 0x00000250
|
||||
[Token(Token = "0x600252D")]
|
||||
[Address(RVA = "0x1032F60", Offset = "0x1031F60", VA = "0x181032F60", 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: 0x0600252E RID: 9518 RVA: 0x00002082 File Offset: 0x00000282
|
||||
[Token(Token = "0x600252E")]
|
||||
[Address(RVA = "0x1032F70", Offset = "0x1031F70", VA = "0x181032F70", Slot = "20")]
|
||||
protected override byte[] HashFinal()
|
||||
{
|
||||
return null;
|
||||
}
|
||||
|
||||
// Token: 0x0600252F RID: 9519 RVA: 0x00002050 File Offset: 0x00000250
|
||||
[Token(Token = "0x600252F")]
|
||||
[Address(RVA = "0x1032F80", Offset = "0x1031F80", VA = "0x181032F80")]
|
||||
private void InitializeState()
|
||||
{
|
||||
}
|
||||
|
||||
// Token: 0x06002530 RID: 9520 RVA: 0x00002050 File Offset: 0x00000250
|
||||
[Token(Token = "0x6002530")]
|
||||
[Address(RVA = "0x1033D00", Offset = "0x1032D00", VA = "0x181033D00")]
|
||||
private void _HashData(byte[] partIn, int ibStart, int cbSize)
|
||||
{
|
||||
}
|
||||
|
||||
// Token: 0x06002531 RID: 9521 RVA: 0x00002082 File Offset: 0x00000282
|
||||
[Token(Token = "0x6002531")]
|
||||
[Address(RVA = "0x1033AB0", Offset = "0x1032AB0", VA = "0x181033AB0")]
|
||||
private byte[] _EndHash()
|
||||
{
|
||||
return null;
|
||||
}
|
||||
|
||||
// Token: 0x06002532 RID: 9522 RVA: 0x00002050 File Offset: 0x00000250
|
||||
[Token(Token = "0x6002532")]
|
||||
[Address(RVA = "0x1033240", Offset = "0x1032240", VA = "0x181033240")]
|
||||
private unsafe static void SHATransform(ulong* expandedBuffer, ulong* state, byte* block)
|
||||
{
|
||||
}
|
||||
|
||||
// Token: 0x06002533 RID: 9523 RVA: 0x00017478 File Offset: 0x00015678
|
||||
[Token(Token = "0x6002533")]
|
||||
[Address(RVA = "0x1031DE0", Offset = "0x1030DE0", VA = "0x181031DE0")]
|
||||
private static ulong RotateRight(ulong x, int n)
|
||||
{
|
||||
return 0UL;
|
||||
}
|
||||
|
||||
// Token: 0x06002534 RID: 9524 RVA: 0x00017490 File Offset: 0x00015690
|
||||
[Token(Token = "0x6002534")]
|
||||
[Address(RVA = "0x1031B90", Offset = "0x1030B90", VA = "0x181031B90")]
|
||||
private static ulong Ch(ulong x, ulong y, ulong z)
|
||||
{
|
||||
return 0UL;
|
||||
}
|
||||
|
||||
// Token: 0x06002535 RID: 9525 RVA: 0x000174A8 File Offset: 0x000156A8
|
||||
[Token(Token = "0x6002535")]
|
||||
[Address(RVA = "0x1031DD0", Offset = "0x1030DD0", VA = "0x181031DD0")]
|
||||
private static ulong Maj(ulong x, ulong y, ulong z)
|
||||
{
|
||||
return 0UL;
|
||||
}
|
||||
|
||||
// Token: 0x06002536 RID: 9526 RVA: 0x000174C0 File Offset: 0x000156C0
|
||||
[Token(Token = "0x6002536")]
|
||||
[Address(RVA = "0x10339B0", Offset = "0x10329B0", VA = "0x1810339B0")]
|
||||
private static ulong Sigma_0(ulong x)
|
||||
{
|
||||
return 0UL;
|
||||
}
|
||||
|
||||
// Token: 0x06002537 RID: 9527 RVA: 0x000174D8 File Offset: 0x000156D8
|
||||
[Token(Token = "0x6002537")]
|
||||
[Address(RVA = "0x1033A30", Offset = "0x1032A30", VA = "0x181033A30")]
|
||||
private static ulong Sigma_1(ulong x)
|
||||
{
|
||||
return 0UL;
|
||||
}
|
||||
|
||||
// Token: 0x06002538 RID: 9528 RVA: 0x000174F0 File Offset: 0x000156F0
|
||||
[Token(Token = "0x6002538")]
|
||||
[Address(RVA = "0x1034040", Offset = "0x1033040", VA = "0x181034040")]
|
||||
private static ulong sigma_0(ulong x)
|
||||
{
|
||||
return 0UL;
|
||||
}
|
||||
|
||||
// Token: 0x06002539 RID: 9529 RVA: 0x00017508 File Offset: 0x00015708
|
||||
[Token(Token = "0x6002539")]
|
||||
[Address(RVA = "0x10340C0", Offset = "0x10330C0", VA = "0x1810340C0")]
|
||||
private static ulong sigma_1(ulong x)
|
||||
{
|
||||
return 0UL;
|
||||
}
|
||||
|
||||
// Token: 0x0600253A RID: 9530 RVA: 0x00002050 File Offset: 0x00000250
|
||||
[Token(Token = "0x600253A")]
|
||||
[Address(RVA = "0x1033190", Offset = "0x1032190", VA = "0x181033190")]
|
||||
private unsafe static void SHA512Expand(ulong* x)
|
||||
{
|
||||
}
|
||||
|
||||
// Token: 0x04001496 RID: 5270
|
||||
[global::Cpp2IlInjected.FieldOffset(Offset = "0x28")]
|
||||
[Token(Token = "0x4001496")]
|
||||
private byte[] _buffer;
|
||||
|
||||
// Token: 0x04001497 RID: 5271
|
||||
[global::Cpp2IlInjected.FieldOffset(Offset = "0x30")]
|
||||
[Token(Token = "0x4001497")]
|
||||
private ulong _count;
|
||||
|
||||
// Token: 0x04001498 RID: 5272
|
||||
[global::Cpp2IlInjected.FieldOffset(Offset = "0x38")]
|
||||
[Token(Token = "0x4001498")]
|
||||
private ulong[] _stateSHA512;
|
||||
|
||||
// Token: 0x04001499 RID: 5273
|
||||
[global::Cpp2IlInjected.FieldOffset(Offset = "0x40")]
|
||||
[Token(Token = "0x4001499")]
|
||||
private ulong[] _W;
|
||||
|
||||
// Token: 0x0400149A RID: 5274
|
||||
[Token(Token = "0x400149A")]
|
||||
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: 0x0200042E RID: 1070
|
||||
[Token(Token = "0x200042E")]
|
||||
[ComVisible(true)]
|
||||
public class SignatureDescription
|
||||
{
|
||||
/// <summary>Initializes a new instance of the <see cref="T:System.Security.Cryptography.SignatureDescription" /> class.</summary>
|
||||
// Token: 0x0600253C RID: 9532 RVA: 0x00002050 File Offset: 0x00000250
|
||||
[Token(Token = "0x600253C")]
|
||||
[Address(RVA = "0x412370", Offset = "0x411370", VA = "0x180412370")]
|
||||
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: 0x0600253D RID: 9533 RVA: 0x00002050 File Offset: 0x00000250
|
||||
[Token(Token = "0x600253D")]
|
||||
[Address(RVA = "0xD0C8B0", Offset = "0xD0B8B0", VA = "0x180D0C8B0")]
|
||||
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: 0x1700054B RID: 1355
|
||||
// (get) Token: 0x0600253E RID: 9534 RVA: 0x00002082 File Offset: 0x00000282
|
||||
// (set) Token: 0x0600253F RID: 9535 RVA: 0x00002050 File Offset: 0x00000250
|
||||
[Token(Token = "0x1700054B")]
|
||||
public string KeyAlgorithm
|
||||
{
|
||||
[Token(Token = "0x600253E")]
|
||||
[Address(RVA = "0x411530", Offset = "0x410530", VA = "0x180411530")]
|
||||
get
|
||||
{
|
||||
return null;
|
||||
}
|
||||
[Token(Token = "0x600253F")]
|
||||
[Address(RVA = "0x415800", Offset = "0x414800", VA = "0x180415800")]
|
||||
set
|
||||
{
|
||||
}
|
||||
}
|
||||
|
||||
/// <summary>Gets or sets the digest algorithm for the signature description.</summary>
|
||||
/// <returns>The digest algorithm for the signature description.</returns>
|
||||
// Token: 0x1700054C RID: 1356
|
||||
// (get) Token: 0x06002540 RID: 9536 RVA: 0x00002082 File Offset: 0x00000282
|
||||
// (set) Token: 0x06002541 RID: 9537 RVA: 0x00002050 File Offset: 0x00000250
|
||||
[Token(Token = "0x1700054C")]
|
||||
public string DigestAlgorithm
|
||||
{
|
||||
[Token(Token = "0x6002540")]
|
||||
[Address(RVA = "0x4157B0", Offset = "0x4147B0", VA = "0x1804157B0")]
|
||||
get
|
||||
{
|
||||
return null;
|
||||
}
|
||||
[Token(Token = "0x6002541")]
|
||||
[Address(RVA = "0x4157F0", Offset = "0x4147F0", VA = "0x1804157F0")]
|
||||
set
|
||||
{
|
||||
}
|
||||
}
|
||||
|
||||
/// <summary>Gets or sets the formatter algorithm for the signature description.</summary>
|
||||
/// <returns>The formatter algorithm for the signature description.</returns>
|
||||
// Token: 0x1700054D RID: 1357
|
||||
// (get) Token: 0x06002542 RID: 9538 RVA: 0x00002082 File Offset: 0x00000282
|
||||
// (set) Token: 0x06002543 RID: 9539 RVA: 0x00002050 File Offset: 0x00000250
|
||||
[Token(Token = "0x1700054D")]
|
||||
public string FormatterAlgorithm
|
||||
{
|
||||
[Token(Token = "0x6002542")]
|
||||
[Address(RVA = "0x4157C0", Offset = "0x4147C0", VA = "0x1804157C0")]
|
||||
get
|
||||
{
|
||||
return null;
|
||||
}
|
||||
[Token(Token = "0x6002543")]
|
||||
[Address(RVA = "0x415810", Offset = "0x414810", VA = "0x180415810")]
|
||||
set
|
||||
{
|
||||
}
|
||||
}
|
||||
|
||||
/// <summary>Gets or sets the deformatter algorithm for the signature description.</summary>
|
||||
/// <returns>The deformatter algorithm for the signature description.</returns>
|
||||
// Token: 0x1700054E RID: 1358
|
||||
// (get) Token: 0x06002544 RID: 9540 RVA: 0x00002082 File Offset: 0x00000282
|
||||
// (set) Token: 0x06002545 RID: 9541 RVA: 0x00002050 File Offset: 0x00000250
|
||||
[Token(Token = "0x1700054E")]
|
||||
public string DeformatterAlgorithm
|
||||
{
|
||||
[Token(Token = "0x6002544")]
|
||||
[Address(RVA = "0x4157D0", Offset = "0x4147D0", VA = "0x1804157D0")]
|
||||
get
|
||||
{
|
||||
return null;
|
||||
}
|
||||
[Token(Token = "0x6002545")]
|
||||
[Address(RVA = "0x415820", Offset = "0x414820", VA = "0x180415820")]
|
||||
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: 0x06002546 RID: 9542 RVA: 0x00002082 File Offset: 0x00000282
|
||||
[Token(Token = "0x6002546")]
|
||||
[Address(RVA = "0xD0C6C0", Offset = "0xD0B6C0", VA = "0x180D0C6C0", 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: 0x06002547 RID: 9543 RVA: 0x00002082 File Offset: 0x00000282
|
||||
[Token(Token = "0x6002547")]
|
||||
[Address(RVA = "0xD0C800", Offset = "0xD0B800", VA = "0x180D0C800", 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: 0x06002548 RID: 9544 RVA: 0x00002082 File Offset: 0x00000282
|
||||
[Token(Token = "0x6002548")]
|
||||
[Address(RVA = "0xD0C770", Offset = "0xD0B770", VA = "0x180D0C770", Slot = "6")]
|
||||
public virtual HashAlgorithm CreateDigest()
|
||||
{
|
||||
return null;
|
||||
}
|
||||
|
||||
// Token: 0x0400149B RID: 5275
|
||||
[global::Cpp2IlInjected.FieldOffset(Offset = "0x10")]
|
||||
[Token(Token = "0x400149B")]
|
||||
private string _strKey;
|
||||
|
||||
// Token: 0x0400149C RID: 5276
|
||||
[global::Cpp2IlInjected.FieldOffset(Offset = "0x18")]
|
||||
[Token(Token = "0x400149C")]
|
||||
private string _strDigest;
|
||||
|
||||
// Token: 0x0400149D RID: 5277
|
||||
[global::Cpp2IlInjected.FieldOffset(Offset = "0x20")]
|
||||
[Token(Token = "0x400149D")]
|
||||
private string _strFormatter;
|
||||
|
||||
// Token: 0x0400149E RID: 5278
|
||||
[global::Cpp2IlInjected.FieldOffset(Offset = "0x28")]
|
||||
[Token(Token = "0x400149E")]
|
||||
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: 0x02000435 RID: 1077
|
||||
[Token(Token = "0x2000435")]
|
||||
[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: 0x06002551 RID: 9553 RVA: 0x00002050 File Offset: 0x00000250
|
||||
[Token(Token = "0x6002551")]
|
||||
[Address(RVA = "0xD17F30", Offset = "0xD16F30", VA = "0x180D17F30")]
|
||||
protected SymmetricAlgorithm()
|
||||
{
|
||||
}
|
||||
|
||||
/// <summary>Releases all resources used by the current instance of the <see cref="T:System.Security.Cryptography.SymmetricAlgorithm" /> class.</summary>
|
||||
// Token: 0x06002552 RID: 9554 RVA: 0x00002050 File Offset: 0x00000250
|
||||
[Token(Token = "0x6002552")]
|
||||
[Address(RVA = "0xD17DE0", Offset = "0xD16DE0", VA = "0x180D17DE0", Slot = "4")]
|
||||
public void Dispose()
|
||||
{
|
||||
}
|
||||
|
||||
/// <summary>Releases all resources used by the <see cref="T:System.Security.Cryptography.SymmetricAlgorithm" /> class.</summary>
|
||||
// Token: 0x06002553 RID: 9555 RVA: 0x00002050 File Offset: 0x00000250
|
||||
[Token(Token = "0x6002553")]
|
||||
[Address(RVA = "0xD17BB0", Offset = "0xD16BB0", VA = "0x180D17BB0")]
|
||||
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: 0x06002554 RID: 9556 RVA: 0x00002050 File Offset: 0x00000250
|
||||
[Token(Token = "0x6002554")]
|
||||
[Address(RVA = "0xD17D90", Offset = "0xD16D90", VA = "0x180D17D90", 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: 0x1700054F RID: 1359
|
||||
// (get) Token: 0x06002555 RID: 9557 RVA: 0x00017520 File Offset: 0x00015720
|
||||
// (set) Token: 0x06002556 RID: 9558 RVA: 0x00002050 File Offset: 0x00000250
|
||||
[Token(Token = "0x1700054F")]
|
||||
public virtual int BlockSize
|
||||
{
|
||||
[Token(Token = "0x6002555")]
|
||||
[Address(RVA = "0x40F000", Offset = "0x40E000", VA = "0x18040F000", Slot = "6")]
|
||||
get
|
||||
{
|
||||
return 0;
|
||||
}
|
||||
[Token(Token = "0x6002556")]
|
||||
[Address(RVA = "0xD181A0", Offset = "0xD171A0", VA = "0x180D181A0", 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: 0x17000550 RID: 1360
|
||||
// (get) Token: 0x06002557 RID: 9559 RVA: 0x00017538 File Offset: 0x00015738
|
||||
// (set) Token: 0x06002558 RID: 9560 RVA: 0x00002050 File Offset: 0x00000250
|
||||
[Token(Token = "0x17000550")]
|
||||
public virtual int FeedbackSize
|
||||
{
|
||||
[Token(Token = "0x6002557")]
|
||||
[Address(RVA = "0x4936D0", Offset = "0x4926D0", VA = "0x1804936D0", Slot = "8")]
|
||||
get
|
||||
{
|
||||
return 0;
|
||||
}
|
||||
[Token(Token = "0x6002558")]
|
||||
[Address(RVA = "0xD182D0", Offset = "0xD172D0", VA = "0x180D182D0", 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: 0x17000551 RID: 1361
|
||||
// (get) Token: 0x06002559 RID: 9561 RVA: 0x00002082 File Offset: 0x00000282
|
||||
// (set) Token: 0x0600255A RID: 9562 RVA: 0x00002050 File Offset: 0x00000250
|
||||
[Token(Token = "0x17000551")]
|
||||
public virtual byte[] IV
|
||||
{
|
||||
[Token(Token = "0x6002559")]
|
||||
[Address(RVA = "0xD17F60", Offset = "0xD16F60", VA = "0x180D17F60", Slot = "10")]
|
||||
get
|
||||
{
|
||||
return null;
|
||||
}
|
||||
[Token(Token = "0x600255A")]
|
||||
[Address(RVA = "0xD18370", Offset = "0xD17370", VA = "0x180D18370", 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: 0x17000552 RID: 1362
|
||||
// (get) Token: 0x0600255B RID: 9563 RVA: 0x00002082 File Offset: 0x00000282
|
||||
// (set) Token: 0x0600255C RID: 9564 RVA: 0x00002050 File Offset: 0x00000250
|
||||
[Token(Token = "0x17000552")]
|
||||
public virtual byte[] Key
|
||||
{
|
||||
[Token(Token = "0x600255B")]
|
||||
[Address(RVA = "0xD18000", Offset = "0xD17000", VA = "0x180D18000", Slot = "12")]
|
||||
get
|
||||
{
|
||||
return null;
|
||||
}
|
||||
[Token(Token = "0x600255C")]
|
||||
[Address(RVA = "0xD18500", Offset = "0xD17500", VA = "0x180D18500", 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: 0x17000553 RID: 1363
|
||||
// (get) Token: 0x0600255D RID: 9565 RVA: 0x00002082 File Offset: 0x00000282
|
||||
[Token(Token = "0x17000553")]
|
||||
public virtual KeySizes[] LegalBlockSizes
|
||||
{
|
||||
[Token(Token = "0x600255D")]
|
||||
[Address(RVA = "0xD180A0", Offset = "0xD170A0", VA = "0x180D180A0", 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: 0x17000554 RID: 1364
|
||||
// (get) Token: 0x0600255E RID: 9566 RVA: 0x00002082 File Offset: 0x00000282
|
||||
[Token(Token = "0x17000554")]
|
||||
public virtual KeySizes[] LegalKeySizes
|
||||
{
|
||||
[Token(Token = "0x600255E")]
|
||||
[Address(RVA = "0xD18120", Offset = "0xD17120", VA = "0x180D18120", 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: 0x17000555 RID: 1365
|
||||
// (get) Token: 0x0600255F RID: 9567 RVA: 0x00017550 File Offset: 0x00015750
|
||||
// (set) Token: 0x06002560 RID: 9568 RVA: 0x00002050 File Offset: 0x00000250
|
||||
[Token(Token = "0x17000555")]
|
||||
public virtual int KeySize
|
||||
{
|
||||
[Token(Token = "0x600255F")]
|
||||
[Address(RVA = "0x42B830", Offset = "0x42A830", VA = "0x18042B830", Slot = "16")]
|
||||
get
|
||||
{
|
||||
return 0;
|
||||
}
|
||||
[Token(Token = "0x6002560")]
|
||||
[Address(RVA = "0xD18470", Offset = "0xD17470", VA = "0x180D18470", 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: 0x17000556 RID: 1366
|
||||
// (get) Token: 0x06002561 RID: 9569 RVA: 0x00017568 File Offset: 0x00015768
|
||||
// (set) Token: 0x06002562 RID: 9570 RVA: 0x00002050 File Offset: 0x00000250
|
||||
[Token(Token = "0x17000556")]
|
||||
public virtual CipherMode Mode
|
||||
{
|
||||
[Token(Token = "0x6002561")]
|
||||
[Address(RVA = "0x696860", Offset = "0x695860", VA = "0x180696860", Slot = "18")]
|
||||
get
|
||||
{
|
||||
return (CipherMode)0;
|
||||
}
|
||||
[Token(Token = "0x6002562")]
|
||||
[Address(RVA = "0xD18620", Offset = "0xD17620", VA = "0x180D18620", 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: 0x17000557 RID: 1367
|
||||
// (get) Token: 0x06002563 RID: 9571 RVA: 0x00017580 File Offset: 0x00015780
|
||||
// (set) Token: 0x06002564 RID: 9572 RVA: 0x00002050 File Offset: 0x00000250
|
||||
[Token(Token = "0x17000557")]
|
||||
public virtual PaddingMode Padding
|
||||
{
|
||||
[Token(Token = "0x6002563")]
|
||||
[Address(RVA = "0x678D20", Offset = "0x677D20", VA = "0x180678D20", Slot = "20")]
|
||||
get
|
||||
{
|
||||
return (PaddingMode)0;
|
||||
}
|
||||
[Token(Token = "0x6002564")]
|
||||
[Address(RVA = "0xD186A0", Offset = "0xD176A0", VA = "0x180D186A0", 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: 0x06002565 RID: 9573 RVA: 0x00017598 File Offset: 0x00015798
|
||||
[Token(Token = "0x6002565")]
|
||||
[Address(RVA = "0xD17E50", Offset = "0xD16E50", VA = "0x180D17E50")]
|
||||
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: 0x06002566 RID: 9574 RVA: 0x00002082 File Offset: 0x00000282
|
||||
[Token(Token = "0x6002566")]
|
||||
[Address(RVA = "0xD17D40", Offset = "0xD16D40", VA = "0x180D17D40")]
|
||||
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: 0x06002567 RID: 9575 RVA: 0x00002082 File Offset: 0x00000282
|
||||
[Token(Token = "0x6002567")]
|
||||
[Address(RVA = "0xD17CB0", Offset = "0xD16CB0", VA = "0x180D17CB0")]
|
||||
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: 0x06002568 RID: 9576 RVA: 0x00002082 File Offset: 0x00000282
|
||||
[Token(Token = "0x6002568")]
|
||||
[Address(RVA = "0xD17C50", Offset = "0xD16C50", VA = "0x180D17C50", 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: 0x06002569 RID: 9577
|
||||
[Token(Token = "0x6002569")]
|
||||
[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: 0x0600256A RID: 9578 RVA: 0x00002082 File Offset: 0x00000282
|
||||
[Token(Token = "0x600256A")]
|
||||
[Address(RVA = "0xD17BF0", Offset = "0xD16BF0", VA = "0x180D17BF0", 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: 0x0600256B RID: 9579
|
||||
[Token(Token = "0x600256B")]
|
||||
[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: 0x0600256C RID: 9580
|
||||
[Token(Token = "0x600256C")]
|
||||
[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: 0x0600256D RID: 9581
|
||||
[Token(Token = "0x600256D")]
|
||||
[Address(Slot = "27")]
|
||||
public abstract void GenerateIV();
|
||||
|
||||
/// <summary>Represents the block size, in bits, of the cryptographic operation.</summary>
|
||||
// Token: 0x040014A0 RID: 5280
|
||||
[global::Cpp2IlInjected.FieldOffset(Offset = "0x10")]
|
||||
[Token(Token = "0x40014A0")]
|
||||
protected int BlockSizeValue;
|
||||
|
||||
/// <summary>Represents the feedback size, in bits, of the cryptographic operation.</summary>
|
||||
// Token: 0x040014A1 RID: 5281
|
||||
[global::Cpp2IlInjected.FieldOffset(Offset = "0x14")]
|
||||
[Token(Token = "0x40014A1")]
|
||||
protected int FeedbackSizeValue;
|
||||
|
||||
/// <summary>Represents the initialization vector (<see cref="P:System.Security.Cryptography.SymmetricAlgorithm.IV" />) for the symmetric algorithm.</summary>
|
||||
// Token: 0x040014A2 RID: 5282
|
||||
[global::Cpp2IlInjected.FieldOffset(Offset = "0x18")]
|
||||
[Token(Token = "0x40014A2")]
|
||||
protected byte[] IVValue;
|
||||
|
||||
/// <summary>Represents the secret key for the symmetric algorithm.</summary>
|
||||
// Token: 0x040014A3 RID: 5283
|
||||
[global::Cpp2IlInjected.FieldOffset(Offset = "0x20")]
|
||||
[Token(Token = "0x40014A3")]
|
||||
protected byte[] KeyValue;
|
||||
|
||||
/// <summary>Specifies the block sizes, in bits, that are supported by the symmetric algorithm.</summary>
|
||||
// Token: 0x040014A4 RID: 5284
|
||||
[global::Cpp2IlInjected.FieldOffset(Offset = "0x28")]
|
||||
[Token(Token = "0x40014A4")]
|
||||
protected KeySizes[] LegalBlockSizesValue;
|
||||
|
||||
/// <summary>Specifies the key sizes, in bits, that are supported by the symmetric algorithm.</summary>
|
||||
// Token: 0x040014A5 RID: 5285
|
||||
[global::Cpp2IlInjected.FieldOffset(Offset = "0x30")]
|
||||
[Token(Token = "0x40014A5")]
|
||||
protected KeySizes[] LegalKeySizesValue;
|
||||
|
||||
/// <summary>Represents the size, in bits, of the secret key used by the symmetric algorithm.</summary>
|
||||
// Token: 0x040014A6 RID: 5286
|
||||
[global::Cpp2IlInjected.FieldOffset(Offset = "0x38")]
|
||||
[Token(Token = "0x40014A6")]
|
||||
protected int KeySizeValue;
|
||||
|
||||
/// <summary>Represents the cipher mode used in the symmetric algorithm.</summary>
|
||||
// Token: 0x040014A7 RID: 5287
|
||||
[global::Cpp2IlInjected.FieldOffset(Offset = "0x3C")]
|
||||
[Token(Token = "0x40014A7")]
|
||||
protected CipherMode ModeValue;
|
||||
|
||||
/// <summary>Represents the padding mode used in the symmetric algorithm.</summary>
|
||||
// Token: 0x040014A8 RID: 5288
|
||||
[global::Cpp2IlInjected.FieldOffset(Offset = "0x40")]
|
||||
[Token(Token = "0x40014A8")]
|
||||
protected PaddingMode PaddingValue;
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,173 @@
|
||||
using System;
|
||||
using System.IO;
|
||||
using Cpp2IlInjected;
|
||||
|
||||
namespace System.Security.Cryptography
|
||||
{
|
||||
// Token: 0x02000410 RID: 1040
|
||||
[Token(Token = "0x2000410")]
|
||||
internal sealed class TailStream : Stream
|
||||
{
|
||||
// Token: 0x06002400 RID: 9216 RVA: 0x00002050 File Offset: 0x00000250
|
||||
[Token(Token = "0x6002400")]
|
||||
[Address(RVA = "0xD18A80", Offset = "0xD17A80", VA = "0x180D18A80")]
|
||||
public TailStream(int bufferSize)
|
||||
{
|
||||
}
|
||||
|
||||
// Token: 0x06002401 RID: 9217 RVA: 0x00002050 File Offset: 0x00000250
|
||||
[Token(Token = "0x6002401")]
|
||||
[Address(RVA = "0x9DE1B0", Offset = "0x9DD1B0", VA = "0x1809DE1B0")]
|
||||
public void Clear()
|
||||
{
|
||||
}
|
||||
|
||||
// Token: 0x06002402 RID: 9218 RVA: 0x00002050 File Offset: 0x00000250
|
||||
[Token(Token = "0x6002402")]
|
||||
[Address(RVA = "0xD18720", Offset = "0xD17720", VA = "0x180D18720", Slot = "16")]
|
||||
protected override void Dispose(bool disposing)
|
||||
{
|
||||
}
|
||||
|
||||
// Token: 0x17000521 RID: 1313
|
||||
// (get) Token: 0x06002403 RID: 9219 RVA: 0x00002082 File Offset: 0x00000282
|
||||
[Token(Token = "0x17000521")]
|
||||
public byte[] Buffer
|
||||
{
|
||||
[Token(Token = "0x6002403")]
|
||||
[Address(RVA = "0xD18B00", Offset = "0xD17B00", VA = "0x180D18B00")]
|
||||
get
|
||||
{
|
||||
return null;
|
||||
}
|
||||
}
|
||||
|
||||
// Token: 0x17000522 RID: 1314
|
||||
// (get) Token: 0x06002404 RID: 9220 RVA: 0x00016E90 File Offset: 0x00015090
|
||||
[Token(Token = "0x17000522")]
|
||||
public override bool CanRead
|
||||
{
|
||||
[Token(Token = "0x6002404")]
|
||||
[Address(RVA = "0x424690", Offset = "0x423690", VA = "0x180424690", Slot = "7")]
|
||||
get
|
||||
{
|
||||
return default(bool);
|
||||
}
|
||||
}
|
||||
|
||||
// Token: 0x17000523 RID: 1315
|
||||
// (get) Token: 0x06002405 RID: 9221 RVA: 0x00016EA8 File Offset: 0x000150A8
|
||||
[Token(Token = "0x17000523")]
|
||||
public override bool CanSeek
|
||||
{
|
||||
[Token(Token = "0x6002405")]
|
||||
[Address(RVA = "0x424690", Offset = "0x423690", VA = "0x180424690", Slot = "8")]
|
||||
get
|
||||
{
|
||||
return default(bool);
|
||||
}
|
||||
}
|
||||
|
||||
// Token: 0x17000524 RID: 1316
|
||||
// (get) Token: 0x06002406 RID: 9222 RVA: 0x00016EC0 File Offset: 0x000150C0
|
||||
[Token(Token = "0x17000524")]
|
||||
public override bool CanWrite
|
||||
{
|
||||
[Token(Token = "0x6002406")]
|
||||
[Address(RVA = "0xD18B80", Offset = "0xD17B80", VA = "0x180D18B80", Slot = "9")]
|
||||
get
|
||||
{
|
||||
return default(bool);
|
||||
}
|
||||
}
|
||||
|
||||
// Token: 0x17000525 RID: 1317
|
||||
// (get) Token: 0x06002407 RID: 9223 RVA: 0x00016ED8 File Offset: 0x000150D8
|
||||
[Token(Token = "0x17000525")]
|
||||
public override long Length
|
||||
{
|
||||
[Token(Token = "0x6002407")]
|
||||
[Address(RVA = "0xD18B90", Offset = "0xD17B90", VA = "0x180D18B90", Slot = "10")]
|
||||
get
|
||||
{
|
||||
return 0L;
|
||||
}
|
||||
}
|
||||
|
||||
// Token: 0x17000526 RID: 1318
|
||||
// (get) Token: 0x06002408 RID: 9224 RVA: 0x00016EF0 File Offset: 0x000150F0
|
||||
// (set) Token: 0x06002409 RID: 9225 RVA: 0x00002050 File Offset: 0x00000250
|
||||
[Token(Token = "0x17000526")]
|
||||
public override long Position
|
||||
{
|
||||
[Token(Token = "0x6002408")]
|
||||
[Address(RVA = "0xD18C00", Offset = "0xD17C00", VA = "0x180D18C00", Slot = "11")]
|
||||
get
|
||||
{
|
||||
return 0L;
|
||||
}
|
||||
[Token(Token = "0x6002409")]
|
||||
[Address(RVA = "0xD18C70", Offset = "0xD17C70", VA = "0x180D18C70", Slot = "12")]
|
||||
set
|
||||
{
|
||||
}
|
||||
}
|
||||
|
||||
// Token: 0x0600240A RID: 9226 RVA: 0x00002050 File Offset: 0x00000250
|
||||
[Token(Token = "0x600240A")]
|
||||
[Address(RVA = "0x4242D0", Offset = "0x4232D0", VA = "0x1804242D0", Slot = "17")]
|
||||
public override void Flush()
|
||||
{
|
||||
}
|
||||
|
||||
// Token: 0x0600240B RID: 9227 RVA: 0x00016F08 File Offset: 0x00015108
|
||||
[Token(Token = "0x600240B")]
|
||||
[Address(RVA = "0xD18830", Offset = "0xD17830", VA = "0x180D18830", Slot = "25")]
|
||||
public override long Seek(long offset, SeekOrigin origin)
|
||||
{
|
||||
return 0L;
|
||||
}
|
||||
|
||||
// Token: 0x0600240C RID: 9228 RVA: 0x00002050 File Offset: 0x00000250
|
||||
[Token(Token = "0x600240C")]
|
||||
[Address(RVA = "0xD188A0", Offset = "0xD178A0", VA = "0x180D188A0", Slot = "26")]
|
||||
public override void SetLength(long value)
|
||||
{
|
||||
}
|
||||
|
||||
// Token: 0x0600240D RID: 9229 RVA: 0x00016F20 File Offset: 0x00015120
|
||||
[Token(Token = "0x600240D")]
|
||||
[Address(RVA = "0xD187C0", Offset = "0xD177C0", VA = "0x180D187C0", Slot = "27")]
|
||||
public override int Read(byte[] buffer, int offset, int count)
|
||||
{
|
||||
return 0;
|
||||
}
|
||||
|
||||
// Token: 0x0600240E RID: 9230 RVA: 0x00002050 File Offset: 0x00000250
|
||||
[Token(Token = "0x600240E")]
|
||||
[Address(RVA = "0xD18910", Offset = "0xD17910", VA = "0x180D18910", Slot = "29")]
|
||||
public override void Write(byte[] buffer, int offset, int count)
|
||||
{
|
||||
}
|
||||
|
||||
// Token: 0x0400142D RID: 5165
|
||||
[FieldOffset(Offset = "0x28")]
|
||||
[Token(Token = "0x400142D")]
|
||||
private byte[] _Buffer;
|
||||
|
||||
// Token: 0x0400142E RID: 5166
|
||||
[FieldOffset(Offset = "0x30")]
|
||||
[Token(Token = "0x400142E")]
|
||||
private int _BufferSize;
|
||||
|
||||
// Token: 0x0400142F RID: 5167
|
||||
[FieldOffset(Offset = "0x34")]
|
||||
[Token(Token = "0x400142F")]
|
||||
private int _BufferIndex;
|
||||
|
||||
// Token: 0x04001430 RID: 5168
|
||||
[FieldOffset(Offset = "0x38")]
|
||||
[Token(Token = "0x4001430")]
|
||||
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: 0x020003F0 RID: 1008
|
||||
[Token(Token = "0x20003F0")]
|
||||
[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: 0x170004F7 RID: 1271
|
||||
// (get) Token: 0x0600232A RID: 9002 RVA: 0x00016A28 File Offset: 0x00014C28
|
||||
[Token(Token = "0x170004F7")]
|
||||
public int InputBlockSize
|
||||
{
|
||||
[Token(Token = "0x600232A")]
|
||||
[Address(RVA = "0x4DB5B0", Offset = "0x4DA5B0", VA = "0x1804DB5B0", Slot = "4")]
|
||||
get
|
||||
{
|
||||
return 0;
|
||||
}
|
||||
}
|
||||
|
||||
/// <summary>Gets the output block size.</summary>
|
||||
/// <returns>The size of the output data blocks in bytes.</returns>
|
||||
// Token: 0x170004F8 RID: 1272
|
||||
// (get) Token: 0x0600232B RID: 9003 RVA: 0x00016A40 File Offset: 0x00014C40
|
||||
[Token(Token = "0x170004F8")]
|
||||
public int OutputBlockSize
|
||||
{
|
||||
[Token(Token = "0x600232B")]
|
||||
[Address(RVA = "0x680C20", Offset = "0x67FC20", VA = "0x180680C20", 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: 0x170004F9 RID: 1273
|
||||
// (get) Token: 0x0600232C RID: 9004 RVA: 0x00016A58 File Offset: 0x00014C58
|
||||
[Token(Token = "0x170004F9")]
|
||||
public bool CanTransformMultipleBlocks
|
||||
{
|
||||
[Token(Token = "0x600232C")]
|
||||
[Address(RVA = "0x424690", Offset = "0x423690", VA = "0x180424690", 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: 0x170004FA RID: 1274
|
||||
// (get) Token: 0x0600232D RID: 9005 RVA: 0x00016A70 File Offset: 0x00014C70
|
||||
[Token(Token = "0x170004FA")]
|
||||
public virtual bool CanReuseTransform
|
||||
{
|
||||
[Token(Token = "0x600232D")]
|
||||
[Address(RVA = "0x4246A0", Offset = "0x4236A0", VA = "0x1804246A0", 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: 0x0600232E RID: 9006 RVA: 0x00016A88 File Offset: 0x00014C88
|
||||
[Token(Token = "0x600232E")]
|
||||
[Address(RVA = "0xD18DD0", Offset = "0xD17DD0", VA = "0x180D18DD0", 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: 0x0600232F RID: 9007 RVA: 0x00002082 File Offset: 0x00000282
|
||||
[Token(Token = "0x600232F")]
|
||||
[Address(RVA = "0xD19030", Offset = "0xD18030", VA = "0x180D19030", 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: 0x06002330 RID: 9008 RVA: 0x00002050 File Offset: 0x00000250
|
||||
[Token(Token = "0x6002330")]
|
||||
[Address(RVA = "0xD18CE0", Offset = "0xD17CE0", VA = "0x180D18CE0", Slot = "10")]
|
||||
public void Dispose()
|
||||
{
|
||||
}
|
||||
|
||||
/// <summary>Releases all resources used by the <see cref="T:System.Security.Cryptography.ToBase64Transform" />.</summary>
|
||||
// Token: 0x06002331 RID: 9009 RVA: 0x00002050 File Offset: 0x00000250
|
||||
[Token(Token = "0x6002331")]
|
||||
[Address(RVA = "0xD18CE0", Offset = "0xD17CE0", VA = "0x180D18CE0")]
|
||||
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: 0x06002332 RID: 9010 RVA: 0x00002050 File Offset: 0x00000250
|
||||
[Token(Token = "0x6002332")]
|
||||
[Address(RVA = "0x4242D0", Offset = "0x4232D0", VA = "0x1804242D0", 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: 0x06002333 RID: 9011 RVA: 0x00002050 File Offset: 0x00000250
|
||||
[Token(Token = "0x6002333")]
|
||||
[Address(RVA = "0xD18D50", Offset = "0xD17D50", VA = "0x180D18D50", Slot = "1")]
|
||||
protected override void Finalize()
|
||||
{
|
||||
}
|
||||
|
||||
/// <summary>Initializes a new instance of the <see cref="T:System.Security.Cryptography.ToBase64Transform" /> class.</summary>
|
||||
// Token: 0x06002334 RID: 9012 RVA: 0x00002050 File Offset: 0x00000250
|
||||
[Token(Token = "0x6002334")]
|
||||
[Address(RVA = "0x412370", Offset = "0x411370", VA = "0x180412370")]
|
||||
public ToBase64Transform()
|
||||
{
|
||||
}
|
||||
}
|
||||
}
|
||||
Some files were not shown because too many files have changed in this diff Show More
Reference in New Issue
Block a user