Files
27Aug2021-Cpp2IL-Dump/System.Core/System/Security/Cryptography/AesManaged.cs
T
niko c12fbe3fc6 m
2026-04-12 16:51:38 +02:00

230 lines
9.3 KiB
C#

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;
}
}