This commit is contained in:
niko
2026-04-12 16:51:38 +02:00
parent 1b6f6d81d0
commit c12fbe3fc6
17828 changed files with 2994770 additions and 0 deletions
@@ -0,0 +1,217 @@
using System;
using Cpp2IlInjected;
namespace System.Security.Cryptography
{
/// <summary>Performs symmetric encryption and decryption using the Cryptographic Application Programming Interfaces (CAPI) implementation of the Advanced Encryption Standard (AES) algorithm. </summary>
// Token: 0x02000019 RID: 25
[Token(Token = "0x2000019")]
public sealed class AesCryptoServiceProvider : Aes
{
/// <summary>Initializes a new instance of the <see cref="T:System.Security.Cryptography.AesCryptoServiceProvider" /> class. </summary>
/// <exception cref="T:System.PlatformNotSupportedException">There is no supported key size for the current platform.</exception>
// Token: 0x06000093 RID: 147 RVA: 0x00002053 File Offset: 0x00000253
[Token(Token = "0x6000093")]
[Address(RVA = "0x10CE8C0", Offset = "0x10CD8C0", VA = "0x1810CE8C0")]
public AesCryptoServiceProvider()
{
}
/// <summary>Generates a random initialization vector (IV) to use for the algorithm.</summary>
/// <exception cref="T:System.Security.Cryptography.CryptographicException">The initialization vector (IV) could not be generated. </exception>
// Token: 0x06000094 RID: 148 RVA: 0x00002053 File Offset: 0x00000253
[Token(Token = "0x6000094")]
[Address(RVA = "0x10CE880", Offset = "0x10CD880", VA = "0x1810CE880", Slot = "27")]
public override void GenerateIV()
{
}
/// <summary>Generates a random key to use for the algorithm. </summary>
/// <exception cref="T:System.Security.Cryptography.CryptographicException">The key could not be generated.</exception>
// Token: 0x06000095 RID: 149 RVA: 0x00002053 File Offset: 0x00000253
[Token(Token = "0x6000095")]
[Address(RVA = "0x10CE8A0", Offset = "0x10CD8A0", VA = "0x1810CE8A0", Slot = "26")]
public override void GenerateKey()
{
}
/// <summary>Creates a symmetric AES decryptor object using the specified key and initialization vector (IV).</summary>
/// <param name="key">The secret key to use for the symmetric algorithm.</param>
/// <param name="iv">The initialization vector to use for the symmetric algorithm.</param>
/// <returns>A symmetric AES decryptor object.</returns>
/// <exception cref="T:System.ArgumentNullException">
/// <paramref name="key" /> or <paramref name="iv" /> is <see langword="null" />.</exception>
/// <exception cref="T:System.ArgumentException">
/// <paramref name="key" /> is invalid.</exception>
// Token: 0x06000096 RID: 150 RVA: 0x00002050 File Offset: 0x00000250
[Token(Token = "0x6000096")]
[Address(RVA = "0x10CE6B0", Offset = "0x10CD6B0", VA = "0x1810CE6B0", Slot = "25")]
public override ICryptoTransform CreateDecryptor(byte[] key, byte[] iv)
{
return null;
}
/// <summary>Creates a symmetric encryptor object using the specified key and initialization vector (IV).</summary>
/// <param name="key">The secret key to use for the symmetric algorithm.</param>
/// <param name="iv">The initialization vector to use for the symmetric algorithm.</param>
/// <returns>A symmetric AES encryptor object.</returns>
/// <exception cref="T:System.ArgumentNullException">The <paramref name="key" /> or <paramref name="iv" /> parameter is <see langword="null" />.</exception>
/// <exception cref="T:System.ArgumentException">
/// <paramref name="key" /> is invalid.</exception>
// Token: 0x06000097 RID: 151 RVA: 0x00002050 File Offset: 0x00000250
[Token(Token = "0x6000097")]
[Address(RVA = "0x10CE790", Offset = "0x10CD790", VA = "0x1810CE790", Slot = "23")]
public override ICryptoTransform CreateEncryptor(byte[] key, byte[] iv)
{
return null;
}
// Token: 0x17000012 RID: 18
// (get) Token: 0x06000098 RID: 152 RVA: 0x00002050 File Offset: 0x00000250
// (set) Token: 0x06000099 RID: 153 RVA: 0x00002053 File Offset: 0x00000253
[Token(Token = "0x17000012")]
public override byte[] IV
{
[Token(Token = "0x6000098")]
[Address(RVA = "0x10CE920", Offset = "0x10CD920", VA = "0x1810CE920", Slot = "10")]
get
{
return null;
}
[Token(Token = "0x6000099")]
[Address(RVA = "0x10CE950", Offset = "0x10CD950", VA = "0x1810CE950", Slot = "11")]
set
{
}
}
/// <summary>Gets or sets the symmetric key that is used for encryption and decryption.</summary>
/// <returns>The symmetric key that is used for encryption and decryption.</returns>
/// <exception cref="T:System.ArgumentNullException">The value for the key is <see langword="null" />.</exception>
/// <exception cref="T:System.Security.Cryptography.CryptographicException">The size of the key is invalid.</exception>
// Token: 0x17000013 RID: 19
// (get) Token: 0x0600009A RID: 154 RVA: 0x00002050 File Offset: 0x00000250
// (set) Token: 0x0600009B RID: 155 RVA: 0x00002053 File Offset: 0x00000253
[Token(Token = "0x17000013")]
public override byte[] Key
{
[Token(Token = "0x600009A")]
[Address(RVA = "0x10CE930", Offset = "0x10CD930", VA = "0x1810CE930", Slot = "12")]
get
{
return null;
}
[Token(Token = "0x600009B")]
[Address(RVA = "0x10CE970", Offset = "0x10CD970", VA = "0x1810CE970", Slot = "13")]
set
{
}
}
/// <summary>Gets or sets the size, in bits, of the secret key. </summary>
/// <returns>The size, in bits, of the key.</returns>
// Token: 0x17000014 RID: 20
// (get) Token: 0x0600009C RID: 156 RVA: 0x000022C8 File Offset: 0x000004C8
// (set) Token: 0x0600009D RID: 157 RVA: 0x00002053 File Offset: 0x00000253
[Token(Token = "0x17000014")]
public override int KeySize
{
[Token(Token = "0x600009C")]
[Address(RVA = "0x42B830", Offset = "0x42A830", VA = "0x18042B830", Slot = "16")]
get
{
return 0;
}
[Token(Token = "0x600009D")]
[Address(RVA = "0x10CE960", Offset = "0x10CD960", VA = "0x1810CE960", Slot = "17")]
set
{
}
}
// Token: 0x17000015 RID: 21
// (get) Token: 0x0600009E RID: 158 RVA: 0x000022E0 File Offset: 0x000004E0
// (set) Token: 0x0600009F RID: 159 RVA: 0x00002053 File Offset: 0x00000253
[Token(Token = "0x17000015")]
public override int FeedbackSize
{
[Token(Token = "0x600009E")]
[Address(RVA = "0x4936D0", Offset = "0x4926D0", VA = "0x1804936D0", Slot = "8")]
get
{
return 0;
}
[Token(Token = "0x600009F")]
[Address(RVA = "0x10CE940", Offset = "0x10CD940", VA = "0x1810CE940", Slot = "9")]
set
{
}
}
// Token: 0x17000016 RID: 22
// (get) Token: 0x060000A0 RID: 160 RVA: 0x000022F8 File Offset: 0x000004F8
// (set) Token: 0x060000A1 RID: 161 RVA: 0x00002053 File Offset: 0x00000253
[Token(Token = "0x17000016")]
public override CipherMode Mode
{
[Token(Token = "0x60000A0")]
[Address(RVA = "0x696860", Offset = "0x695860", VA = "0x180696860", Slot = "18")]
get
{
return (CipherMode)0;
}
[Token(Token = "0x60000A1")]
[Address(RVA = "0x10CE980", Offset = "0x10CD980", VA = "0x1810CE980", Slot = "19")]
set
{
}
}
// Token: 0x17000017 RID: 23
// (get) Token: 0x060000A2 RID: 162 RVA: 0x00002310 File Offset: 0x00000510
// (set) Token: 0x060000A3 RID: 163 RVA: 0x00002053 File Offset: 0x00000253
[Token(Token = "0x17000017")]
public override PaddingMode Padding
{
[Token(Token = "0x60000A2")]
[Address(RVA = "0x678D20", Offset = "0x677D20", VA = "0x180678D20", Slot = "20")]
get
{
return (PaddingMode)0;
}
[Token(Token = "0x60000A3")]
[Address(RVA = "0x10CEA00", Offset = "0x10CDA00", VA = "0x1810CEA00", Slot = "21")]
set
{
}
}
/// <summary>Creates a symmetric AES decryptor object using the current key and initialization vector (IV).</summary>
/// <returns>A symmetric AES decryptor object.</returns>
/// <exception cref="T:System.Security.Cryptography.CryptographicException">The current key is invalid or missing.</exception>
// Token: 0x060000A4 RID: 164 RVA: 0x00002050 File Offset: 0x00000250
[Token(Token = "0x60000A4")]
[Address(RVA = "0xD17BF0", Offset = "0xD16BF0", VA = "0x180D17BF0", Slot = "24")]
public override ICryptoTransform CreateDecryptor()
{
return null;
}
/// <summary>Creates a symmetric AES encryptor object using the current key and initialization vector (IV).</summary>
/// <returns>A symmetric AES encryptor object.</returns>
// Token: 0x060000A5 RID: 165 RVA: 0x00002050 File Offset: 0x00000250
[Token(Token = "0x60000A5")]
[Address(RVA = "0xD17C50", Offset = "0xD16C50", VA = "0x180D17C50", Slot = "22")]
public override ICryptoTransform CreateEncryptor()
{
return null;
}
// Token: 0x060000A6 RID: 166 RVA: 0x00002053 File Offset: 0x00000253
[Token(Token = "0x60000A6")]
[Address(RVA = "0x10CE870", Offset = "0x10CD870", VA = "0x1810CE870", Slot = "5")]
protected override void Dispose(bool disposing)
{
}
}
}
@@ -0,0 +1,229 @@
using System;
using Cpp2IlInjected;
namespace System.Security.Cryptography
{
/// <summary>Provides a managed implementation of the Advanced Encryption Standard (AES) symmetric algorithm. </summary>
// Token: 0x02000018 RID: 24
[Token(Token = "0x2000018")]
public sealed class AesManaged : Aes
{
/// <summary>Initializes a new instance of the <see cref="T:System.Security.Cryptography.AesManaged" /> class. </summary>
/// <exception cref="T:System.Security.Cryptography.CryptographicException">The Windows security policy setting for FIPS is enabled.</exception>
/// <exception cref="T:System.InvalidOperationException">This implementation is not part of the Windows Platform FIPS-validated cryptographic algorithms.</exception>
// Token: 0x0600007F RID: 127 RVA: 0x00002053 File Offset: 0x00000253
[Token(Token = "0x600007F")]
[Address(RVA = "0x10CEE50", Offset = "0x10CDE50", VA = "0x1810CEE50")]
public AesManaged()
{
}
/// <summary>Gets or sets the number of bits to use as feedback. </summary>
/// <returns>The feedback size, in bits.</returns>
// Token: 0x1700000C RID: 12
// (get) Token: 0x06000080 RID: 128 RVA: 0x00002268 File Offset: 0x00000468
// (set) Token: 0x06000081 RID: 129 RVA: 0x00002053 File Offset: 0x00000253
[Token(Token = "0x1700000C")]
public override int FeedbackSize
{
[Token(Token = "0x6000080")]
[Address(RVA = "0x10CEF80", Offset = "0x10CDF80", VA = "0x1810CEF80", Slot = "8")]
get
{
return 0;
}
[Token(Token = "0x6000081")]
[Address(RVA = "0x10CF0A0", Offset = "0x10CE0A0", VA = "0x1810CF0A0", Slot = "9")]
set
{
}
}
/// <summary>Gets or sets the initialization vector (IV) to use for the symmetric algorithm. </summary>
/// <returns>The initialization vector to use for the symmetric algorithm</returns>
// Token: 0x1700000D RID: 13
// (get) Token: 0x06000082 RID: 130 RVA: 0x00002050 File Offset: 0x00000250
// (set) Token: 0x06000083 RID: 131 RVA: 0x00002053 File Offset: 0x00000253
[Token(Token = "0x1700000D")]
public override byte[] IV
{
[Token(Token = "0x6000082")]
[Address(RVA = "0x10CEFB0", Offset = "0x10CDFB0", VA = "0x1810CEFB0", Slot = "10")]
get
{
return null;
}
[Token(Token = "0x6000083")]
[Address(RVA = "0x10CF0D0", Offset = "0x10CE0D0", VA = "0x1810CF0D0", Slot = "11")]
set
{
}
}
/// <summary>Gets or sets the secret key used for the symmetric algorithm.</summary>
/// <returns>The key for the symmetric algorithm.</returns>
// Token: 0x1700000E RID: 14
// (get) Token: 0x06000084 RID: 132 RVA: 0x00002050 File Offset: 0x00000250
// (set) Token: 0x06000085 RID: 133 RVA: 0x00002053 File Offset: 0x00000253
[Token(Token = "0x1700000E")]
public override byte[] Key
{
[Token(Token = "0x6000084")]
[Address(RVA = "0x10CF010", Offset = "0x10CE010", VA = "0x1810CF010", Slot = "12")]
get
{
return null;
}
[Token(Token = "0x6000085")]
[Address(RVA = "0x10CF130", Offset = "0x10CE130", VA = "0x1810CF130", Slot = "13")]
set
{
}
}
/// <summary>Gets or sets the size, in bits, of the secret key used for the symmetric algorithm. </summary>
/// <returns>The size, in bits, of the key used by the symmetric algorithm.</returns>
// Token: 0x1700000F RID: 15
// (get) Token: 0x06000086 RID: 134 RVA: 0x00002280 File Offset: 0x00000480
// (set) Token: 0x06000087 RID: 135 RVA: 0x00002053 File Offset: 0x00000253
[Token(Token = "0x1700000F")]
public override int KeySize
{
[Token(Token = "0x6000086")]
[Address(RVA = "0x10CEFE0", Offset = "0x10CDFE0", VA = "0x1810CEFE0", Slot = "16")]
get
{
return 0;
}
[Token(Token = "0x6000087")]
[Address(RVA = "0x10CF100", Offset = "0x10CE100", VA = "0x1810CF100", Slot = "17")]
set
{
}
}
/// <summary>Gets or sets the mode for operation of the symmetric algorithm.</summary>
/// <returns>One of the enumeration values that specifies the block cipher mode to use for encryption. The default is <see cref="F:System.Security.Cryptography.CipherMode.CBC" />.</returns>
/// <exception cref="T:System.Security.Cryptography.CryptographicException">
/// <see cref="P:System.Security.Cryptography.AesManaged.Mode" /> is set to <see cref="F:System.Security.Cryptography.CipherMode.CFB" /> or <see cref="F:System.Security.Cryptography.CipherMode.OFB" />.</exception>
// Token: 0x17000010 RID: 16
// (get) Token: 0x06000088 RID: 136 RVA: 0x00002298 File Offset: 0x00000498
// (set) Token: 0x06000089 RID: 137 RVA: 0x00002053 File Offset: 0x00000253
[Token(Token = "0x17000010")]
public override CipherMode Mode
{
[Token(Token = "0x6000088")]
[Address(RVA = "0x10CF040", Offset = "0x10CE040", VA = "0x1810CF040", Slot = "18")]
get
{
return (CipherMode)0;
}
[Token(Token = "0x6000089")]
[Address(RVA = "0x10CF160", Offset = "0x10CE160", VA = "0x1810CF160", Slot = "19")]
set
{
}
}
/// <summary>Gets or sets the padding mode used in the symmetric algorithm. </summary>
/// <returns>One of the enumeration values that specifies the type of padding to apply. The default is <see cref="F:System.Security.Cryptography.PaddingMode.PKCS7" />.</returns>
// Token: 0x17000011 RID: 17
// (get) Token: 0x0600008A RID: 138 RVA: 0x000022B0 File Offset: 0x000004B0
// (set) Token: 0x0600008B RID: 139 RVA: 0x00002053 File Offset: 0x00000253
[Token(Token = "0x17000011")]
public override PaddingMode Padding
{
[Token(Token = "0x600008A")]
[Address(RVA = "0x10CF070", Offset = "0x10CE070", VA = "0x1810CF070", Slot = "20")]
get
{
return (PaddingMode)0;
}
[Token(Token = "0x600008B")]
[Address(RVA = "0x10CF200", Offset = "0x10CE200", VA = "0x1810CF200", Slot = "21")]
set
{
}
}
/// <summary>Creates a symmetric decryptor object using the current key and initialization vector (IV).</summary>
/// <returns>A symmetric decryptor object.</returns>
// Token: 0x0600008C RID: 140 RVA: 0x00002050 File Offset: 0x00000250
[Token(Token = "0x600008C")]
[Address(RVA = "0x10CEA10", Offset = "0x10CDA10", VA = "0x1810CEA10", Slot = "24")]
public override ICryptoTransform CreateDecryptor()
{
return null;
}
/// <summary>Creates a symmetric decryptor object using the specified key and initialization vector (IV).</summary>
/// <param name="key">The secret key to use for the symmetric algorithm.</param>
/// <param name="iv">The initialization vector to use for the symmetric algorithm.</param>
/// <returns>A symmetric decryptor object.</returns>
/// <exception cref="T:System.ArgumentNullException">
/// <paramref name="key" /> or <paramref name="iv" /> is <see langword="null" />.</exception>
/// <exception cref="T:System.ArgumentException">
/// <paramref name="key" /> is invalid.</exception>
// Token: 0x0600008D RID: 141 RVA: 0x00002050 File Offset: 0x00000250
[Token(Token = "0x600008D")]
[Address(RVA = "0x10CEA40", Offset = "0x10CDA40", VA = "0x1810CEA40", Slot = "25")]
public override ICryptoTransform CreateDecryptor(byte[] key, byte[] iv)
{
return null;
}
/// <summary>Creates a symmetric encryptor object using the current key and initialization vector (IV).</summary>
/// <returns>A symmetric encryptor object.</returns>
// Token: 0x0600008E RID: 142 RVA: 0x00002050 File Offset: 0x00000250
[Token(Token = "0x600008E")]
[Address(RVA = "0x10CEBA0", Offset = "0x10CDBA0", VA = "0x1810CEBA0", Slot = "22")]
public override ICryptoTransform CreateEncryptor()
{
return null;
}
/// <summary>Creates a symmetric encryptor object using the specified key and initialization vector (IV).</summary>
/// <param name="key">The secret key to use for the symmetric algorithm.</param>
/// <param name="iv">The initialization vector to use for the symmetric algorithm.</param>
/// <returns>A symmetric encryptor object.</returns>
/// <exception cref="T:System.ArgumentNullException">
/// <paramref name="key" /> or <paramref name="iv" /> is <see langword="null" />.</exception>
/// <exception cref="T:System.ArgumentException">
/// <paramref name="key" /> is invalid.</exception>
// Token: 0x0600008F RID: 143 RVA: 0x00002050 File Offset: 0x00000250
[Token(Token = "0x600008F")]
[Address(RVA = "0x10CEBD0", Offset = "0x10CDBD0", VA = "0x1810CEBD0", Slot = "23")]
public override ICryptoTransform CreateEncryptor(byte[] key, byte[] iv)
{
return null;
}
// Token: 0x06000090 RID: 144 RVA: 0x00002053 File Offset: 0x00000253
[Token(Token = "0x6000090")]
[Address(RVA = "0x10CED30", Offset = "0x10CDD30", VA = "0x1810CED30", Slot = "5")]
protected override void Dispose(bool disposing)
{
}
/// <summary>Generates a random initialization vector (IV) to use for the symmetric algorithm.</summary>
// Token: 0x06000091 RID: 145 RVA: 0x00002053 File Offset: 0x00000253
[Token(Token = "0x6000091")]
[Address(RVA = "0x10CEDF0", Offset = "0x10CDDF0", VA = "0x1810CEDF0", Slot = "27")]
public override void GenerateIV()
{
}
/// <summary>Generates a random key to use for the symmetric algorithm. </summary>
// Token: 0x06000092 RID: 146 RVA: 0x00002053 File Offset: 0x00000253
[Token(Token = "0x6000092")]
[Address(RVA = "0x10CEE20", Offset = "0x10CDE20", VA = "0x1810CEE20", Slot = "26")]
public override void GenerateKey()
{
}
// Token: 0x04000022 RID: 34
[FieldOffset(Offset = "0x48")]
[Token(Token = "0x4000022")]
private RijndaelManaged m_rijndael;
}
}
@@ -0,0 +1,106 @@
using System;
using Cpp2IlInjected;
using Mono.Security.Cryptography;
namespace System.Security.Cryptography
{
// Token: 0x0200001A RID: 26
[Token(Token = "0x200001A")]
internal class AesTransform : SymmetricTransform
{
// Token: 0x060000A7 RID: 167 RVA: 0x00002053 File Offset: 0x00000253
[Token(Token = "0x60000A7")]
[Address(RVA = "0x10D6410", Offset = "0x10D5410", VA = "0x1810D6410")]
public AesTransform(Aes algo, bool encryption, byte[] key, byte[] iv)
{
}
// Token: 0x060000A8 RID: 168 RVA: 0x00002053 File Offset: 0x00000253
[Token(Token = "0x60000A8")]
[Address(RVA = "0x10D2900", Offset = "0x10D1900", VA = "0x1810D2900", Slot = "17")]
protected override void ECB(byte[] input, byte[] output)
{
}
// Token: 0x060000A9 RID: 169 RVA: 0x00002328 File Offset: 0x00000528
[Token(Token = "0x60000A9")]
[Address(RVA = "0x10D6050", Offset = "0x10D5050", VA = "0x1810D6050")]
private uint SubByte(uint a)
{
return 0U;
}
// Token: 0x060000AA RID: 170 RVA: 0x00002053 File Offset: 0x00000253
[Token(Token = "0x60000AA")]
[Address(RVA = "0x10D2930", Offset = "0x10D1930", VA = "0x1810D2930")]
private void Encrypt128(byte[] indata, byte[] outdata, uint[] ekey)
{
}
// Token: 0x060000AB RID: 171 RVA: 0x00002053 File Offset: 0x00000253
[Token(Token = "0x60000AB")]
[Address(RVA = "0x10CF230", Offset = "0x10CE230", VA = "0x1810CF230")]
private void Decrypt128(byte[] indata, byte[] outdata, uint[] ekey)
{
}
// Token: 0x04000023 RID: 35
[FieldOffset(Offset = "0x58")]
[Token(Token = "0x4000023")]
private uint[] expandedKey;
// Token: 0x04000024 RID: 36
[FieldOffset(Offset = "0x60")]
[Token(Token = "0x4000024")]
private int Nk;
// Token: 0x04000025 RID: 37
[FieldOffset(Offset = "0x64")]
[Token(Token = "0x4000025")]
private int Nr;
// Token: 0x04000026 RID: 38
[Token(Token = "0x4000026")]
private static readonly uint[] Rcon;
// Token: 0x04000027 RID: 39
[Token(Token = "0x4000027")]
private static readonly byte[] SBox;
// Token: 0x04000028 RID: 40
[Token(Token = "0x4000028")]
private static readonly byte[] iSBox;
// Token: 0x04000029 RID: 41
[Token(Token = "0x4000029")]
private static readonly uint[] T0;
// Token: 0x0400002A RID: 42
[Token(Token = "0x400002A")]
private static readonly uint[] T1;
// Token: 0x0400002B RID: 43
[Token(Token = "0x400002B")]
private static readonly uint[] T2;
// Token: 0x0400002C RID: 44
[Token(Token = "0x400002C")]
private static readonly uint[] T3;
// Token: 0x0400002D RID: 45
[Token(Token = "0x400002D")]
private static readonly uint[] iT0;
// Token: 0x0400002E RID: 46
[Token(Token = "0x400002E")]
private static readonly uint[] iT1;
// Token: 0x0400002F RID: 47
[Token(Token = "0x400002F")]
private static readonly uint[] iT2;
// Token: 0x04000030 RID: 48
[Token(Token = "0x4000030")]
private static readonly uint[] iT3;
}
}
@@ -0,0 +1,140 @@
using System;
using Cpp2IlInjected;
namespace System.Security.Cryptography
{
/// <summary>Provides support for computing a hash or Hash-based Message Authentication Code (HMAC) value incrementally across several segments.</summary>
// Token: 0x02000017 RID: 23
[Token(Token = "0x2000017")]
public sealed class IncrementalHash : IDisposable
{
// Token: 0x06000076 RID: 118 RVA: 0x00002053 File Offset: 0x00000253
[Token(Token = "0x6000076")]
[Address(RVA = "0x417DD0", Offset = "0x416DD0", VA = "0x180417DD0")]
private IncrementalHash(HashAlgorithmName name, HashAlgorithm hash)
{
}
/// <summary>Appends the specified data to the data already processed in the hash or HMAC.</summary>
/// <param name="data">The data to process.</param>
/// <exception cref="T:System.ArgumentNullException">
/// <paramref name="data" /> is <see langword="null" />.</exception>
/// <exception cref="T:System.ObjectDisposedException">The <see cref="T:System.Security.Cryptography.IncrementalHash" /> object has already been disposed.</exception>
// Token: 0x06000077 RID: 119 RVA: 0x00002053 File Offset: 0x00000253
[Token(Token = "0x6000077")]
[Address(RVA = "0x10D6FF0", Offset = "0x10D5FF0", VA = "0x1810D6FF0")]
public void AppendData(byte[] data)
{
}
/// <summary>Appends the specified number of bytes from the specified data, starting at the specified offset, to the data already processed in the hash or Hash-based Message Authentication Code (HMAC).</summary>
/// <param name="data">The data to process.</param>
/// <param name="offset">The offset into the byte array from which to begin using data.</param>
/// <param name="count">The number of bytes to use from <paramref name="data" />.</param>
/// <exception cref="T:System.ArgumentNullException">
/// <paramref name="data" /> is <see langword="null" />.</exception>
/// <exception cref="T:System.ArgumentOutOfRangeException">
/// <paramref name="count" /> or <paramref name="offset" /> is negative.-or-<paramref name="count" /> is larger than the lenght of <paramref name="data" />.</exception>
/// <exception cref="T:System.ArgumentException">The sum of <paramref name="offset" /> and <paramref name="count" /> is larger than the data length.</exception>
/// <exception cref="T:System.ObjectDisposedException">The <see cref="T:System.Security.Cryptography.IncrementalHash" /> object has already been disposed.</exception>
// Token: 0x06000078 RID: 120 RVA: 0x00002053 File Offset: 0x00000253
[Token(Token = "0x6000078")]
[Address(RVA = "0x10D6DD0", Offset = "0x10D5DD0", VA = "0x1810D6DD0")]
public void AppendData(byte[] data, int offset, int count)
{
}
/// <summary>Retrieves the hash or Hash-based Message Authentication Code (HMAC) for the data accumulated from prior calls to the
/// <see cref="M:System.Security.Cryptography.IncrementalHash.AppendData(System.Byte[])" /> method, and resets the object to its initial state.</summary>
/// <returns>The computed hash or HMAC.</returns>
/// <exception cref="T:System.ObjectDisposedException">The <see cref="T:System.Security.Cryptography.IncrementalHash" /> object has already been disposed.</exception>
// Token: 0x06000079 RID: 121 RVA: 0x00002050 File Offset: 0x00000250
[Token(Token = "0x6000079")]
[Address(RVA = "0x10D7680", Offset = "0x10D6680", VA = "0x1810D7680")]
public byte[] GetHashAndReset()
{
return null;
}
/// <summary>Releases the resources used by the current instance of the <see cref="T:System.Security.Cryptography.IncrementalHash" /> class.</summary>
// Token: 0x0600007A RID: 122 RVA: 0x00002053 File Offset: 0x00000253
[Token(Token = "0x600007A")]
[Address(RVA = "0x10D7240", Offset = "0x10D6240", VA = "0x1810D7240", Slot = "4")]
public void Dispose()
{
}
/// <summary>Creates an <see cref="T:System.Security.Cryptography.IncrementalHash" /> for the specified algorithm.</summary>
/// <param name="hashAlgorithm">The name of the hash algorithm to perform.</param>
/// <returns>An <see cref="T:System.Security.Cryptography.IncrementalHash" /> instance ready to compute the hash algorithm specified by <paramref name="hashAlgorithm" />.</returns>
/// <exception cref="T:System.ArgumentException">
/// <paramref name="hashAlgorithm" />.<see cref="P:System.Security.Cryptography.HashAlgorithmName.Name" /> is <see langword="null" /> or an empty string.</exception>
/// <exception cref="T:System.Security.Cryptography.CryptographicException">
/// <paramref name="hashAlgorithm" /> is not a known hash algorithm.</exception>
// Token: 0x0600007B RID: 123 RVA: 0x00002050 File Offset: 0x00000250
[Token(Token = "0x600007B")]
[Address(RVA = "0x10D7180", Offset = "0x10D6180", VA = "0x1810D7180")]
public static IncrementalHash CreateHash(HashAlgorithmName hashAlgorithm)
{
return null;
}
/// <summary>Creates an <see cref="T:System.Security.Cryptography.IncrementalHash" /> for the Hash-based Message Authentication Code (HMAC)
/// algorithm using the specified hash algorithm and key.</summary>
/// <param name="hashAlgorithm">The name of the hash algorithm to perform within the HMAC.</param>
/// <param name="key"> The secret key for the HMAC. The key can be of any length, but a key longer than the output size
/// of the specified hash algorithm will be hashed to derive a correctly-sized key. Therefore,
/// the recommended size of the secret key is the output size of the specified hash algorithm.</param>
/// <returns>An instance of the <see cref="T:System.Security.Cryptography.IncrementalHash" /> class ready to compute the specified hash algorithm.</returns>
/// <exception cref="T:System.ArgumentNullException">
/// <paramref name="key" /> 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
/// an empty string.</exception>
/// <exception cref="T:System.Security.Cryptography.CryptographicException">
/// <paramref name="hashAlgorithm" /> is not a known hash algorithm.</exception>
// Token: 0x0600007C RID: 124 RVA: 0x00002050 File Offset: 0x00000250
[Token(Token = "0x600007C")]
[Address(RVA = "0x10D7080", Offset = "0x10D6080", VA = "0x1810D7080")]
public static IncrementalHash CreateHMAC(HashAlgorithmName hashAlgorithm, byte[] key)
{
return null;
}
// Token: 0x0600007D RID: 125 RVA: 0x00002050 File Offset: 0x00000250
[Token(Token = "0x600007D")]
[Address(RVA = "0x10D7430", Offset = "0x10D6430", VA = "0x1810D7430")]
private static HashAlgorithm GetHashAlgorithm(HashAlgorithmName hashAlgorithm)
{
return null;
}
// Token: 0x0600007E RID: 126 RVA: 0x00002050 File Offset: 0x00000250
[Token(Token = "0x600007E")]
[Address(RVA = "0x10D7270", Offset = "0x10D6270", VA = "0x1810D7270")]
private static HashAlgorithm GetHMAC(HashAlgorithmName hashAlgorithm, byte[] key)
{
return null;
}
// Token: 0x0400001E RID: 30
[FieldOffset(Offset = "0x10")]
[Token(Token = "0x400001E")]
private readonly HashAlgorithmName _algorithmName;
// Token: 0x0400001F RID: 31
[FieldOffset(Offset = "0x18")]
[Token(Token = "0x400001F")]
private HashAlgorithm _hash;
// Token: 0x04000020 RID: 32
[FieldOffset(Offset = "0x20")]
[Token(Token = "0x4000020")]
private bool _disposed;
// Token: 0x04000021 RID: 33
[FieldOffset(Offset = "0x21")]
[Token(Token = "0x4000021")]
private bool _resetPending;
}
}
@@ -0,0 +1,58 @@
using System;
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.SHA256" /> algorithm. </summary>
// Token: 0x0200001B RID: 27
[Token(Token = "0x200001B")]
public sealed class SHA256CryptoServiceProvider : SHA256
{
/// <summary>Initializes a new instance of the <see cref="T:System.Security.Cryptography.SHA256CryptoServiceProvider" /> class. </summary>
// Token: 0x060000AD RID: 173 RVA: 0x00002053 File Offset: 0x00000253
[Token(Token = "0x60000AD")]
[Address(RVA = "0x10DB660", Offset = "0x10DA660", VA = "0x1810DB660")]
public SHA256CryptoServiceProvider()
{
}
/// <summary>Initializes, or reinitializes, an instance of a hash algorithm.</summary>
// Token: 0x060000AE RID: 174 RVA: 0x00002053 File Offset: 0x00000253
[Token(Token = "0x60000AE")]
[Address(RVA = "0x10DB5E0", Offset = "0x10DA5E0", VA = "0x1810DB5E0", Slot = "18")]
public override void Initialize()
{
}
// Token: 0x060000AF RID: 175 RVA: 0x00002053 File Offset: 0x00000253
[Token(Token = "0x60000AF")]
[Address(RVA = "0x10DB500", Offset = "0x10DA500", VA = "0x1810DB500", Slot = "19")]
protected override void HashCore(byte[] array, int ibStart, int cbSize)
{
}
// Token: 0x060000B0 RID: 176 RVA: 0x00002050 File Offset: 0x00000250
[Token(Token = "0x60000B0")]
[Address(RVA = "0x10DB530", Offset = "0x10DA530", VA = "0x1810DB530", Slot = "20")]
protected override byte[] HashFinal()
{
return null;
}
// Token: 0x060000B1 RID: 177 RVA: 0x00002053 File Offset: 0x00000253
[Token(Token = "0x60000B1")]
[Address(RVA = "0x10DB490", Offset = "0x10DA490", VA = "0x1810DB490", Slot = "17")]
protected override void Dispose(bool disposing)
{
}
// Token: 0x04000031 RID: 49
[Token(Token = "0x4000031")]
private static byte[] Empty;
// Token: 0x04000032 RID: 50
[FieldOffset(Offset = "0x28")]
[Token(Token = "0x4000032")]
private SHA256 hash;
}
}
@@ -0,0 +1,58 @@
using System;
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.SHA384" /> algorithm. </summary>
// Token: 0x0200001C RID: 28
[Token(Token = "0x200001C")]
public sealed class SHA384CryptoServiceProvider : SHA384
{
/// <summary>Initializes a new instance of the <see cref="T:System.Security.Cryptography.SHA384CryptoServiceProvider" /> class. </summary>
// Token: 0x060000B3 RID: 179 RVA: 0x00002053 File Offset: 0x00000253
[Token(Token = "0x60000B3")]
[Address(RVA = "0x10DB830", Offset = "0x10DA830", VA = "0x1810DB830")]
public SHA384CryptoServiceProvider()
{
}
/// <summary>Initializes, or reinitializes, an instance of a hash algorithm.</summary>
// Token: 0x060000B4 RID: 180 RVA: 0x00002053 File Offset: 0x00000253
[Token(Token = "0x60000B4")]
[Address(RVA = "0x10DB5E0", Offset = "0x10DA5E0", VA = "0x1810DB5E0", Slot = "18")]
public override void Initialize()
{
}
// Token: 0x060000B5 RID: 181 RVA: 0x00002053 File Offset: 0x00000253
[Token(Token = "0x60000B5")]
[Address(RVA = "0x10DB500", Offset = "0x10DA500", VA = "0x1810DB500", Slot = "19")]
protected override void HashCore(byte[] array, int ibStart, int cbSize)
{
}
// Token: 0x060000B6 RID: 182 RVA: 0x00002050 File Offset: 0x00000250
[Token(Token = "0x60000B6")]
[Address(RVA = "0x10DB730", Offset = "0x10DA730", VA = "0x1810DB730", Slot = "20")]
protected override byte[] HashFinal()
{
return null;
}
// Token: 0x060000B7 RID: 183 RVA: 0x00002053 File Offset: 0x00000253
[Token(Token = "0x60000B7")]
[Address(RVA = "0x10DB6C0", Offset = "0x10DA6C0", VA = "0x1810DB6C0", Slot = "17")]
protected override void Dispose(bool disposing)
{
}
// Token: 0x04000033 RID: 51
[Token(Token = "0x4000033")]
private static byte[] Empty;
// Token: 0x04000034 RID: 52
[FieldOffset(Offset = "0x28")]
[Token(Token = "0x4000034")]
private SHA384 hash;
}
}
@@ -0,0 +1,58 @@
using System;
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.SHA512" /> algorithm. </summary>
// Token: 0x0200001D RID: 29
[Token(Token = "0x200001D")]
public sealed class SHA512CryptoServiceProvider : SHA512
{
/// <summary>Initializes a new instance of the <see cref="T:System.Security.Cryptography.SHA512CryptoServiceProvider" /> class. </summary>
// Token: 0x060000B9 RID: 185 RVA: 0x00002053 File Offset: 0x00000253
[Token(Token = "0x60000B9")]
[Address(RVA = "0x10DBA00", Offset = "0x10DAA00", VA = "0x1810DBA00")]
public SHA512CryptoServiceProvider()
{
}
/// <summary>Initializes, or reinitializes, an instance of a hash algorithm.</summary>
// Token: 0x060000BA RID: 186 RVA: 0x00002053 File Offset: 0x00000253
[Token(Token = "0x60000BA")]
[Address(RVA = "0x10DB5E0", Offset = "0x10DA5E0", VA = "0x1810DB5E0", Slot = "18")]
public override void Initialize()
{
}
// Token: 0x060000BB RID: 187 RVA: 0x00002053 File Offset: 0x00000253
[Token(Token = "0x60000BB")]
[Address(RVA = "0x10DB500", Offset = "0x10DA500", VA = "0x1810DB500", Slot = "19")]
protected override void HashCore(byte[] array, int ibStart, int cbSize)
{
}
// Token: 0x060000BC RID: 188 RVA: 0x00002050 File Offset: 0x00000250
[Token(Token = "0x60000BC")]
[Address(RVA = "0x10DB900", Offset = "0x10DA900", VA = "0x1810DB900", Slot = "20")]
protected override byte[] HashFinal()
{
return null;
}
// Token: 0x060000BD RID: 189 RVA: 0x00002053 File Offset: 0x00000253
[Token(Token = "0x60000BD")]
[Address(RVA = "0x10DB890", Offset = "0x10DA890", VA = "0x1810DB890", Slot = "17")]
protected override void Dispose(bool disposing)
{
}
// Token: 0x04000035 RID: 53
[Token(Token = "0x4000035")]
private static byte[] Empty;
// Token: 0x04000036 RID: 54
[FieldOffset(Offset = "0x28")]
[Token(Token = "0x4000036")]
private SHA512 hash;
}
}