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

230 lines
9.2 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: 0x02000014 RID: 20
[Token(Token = "0x2000014")]
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: 0x0600004E RID: 78 RVA: 0x00002053 File Offset: 0x00000253
[Token(Token = "0x600004E")]
[Address(RVA = "0x6B2EE0", Offset = "0x6B1CE0", VA = "0x1806B2EE0")]
public AesManaged()
{
}
/// <summary>Gets or sets the number of bits to use as feedback. </summary>
/// <returns>The feedback size, in bits.</returns>
// Token: 0x17000001 RID: 1
// (get) Token: 0x0600004F RID: 79 RVA: 0x00002058 File Offset: 0x00000258
// (set) Token: 0x06000050 RID: 80 RVA: 0x00002053 File Offset: 0x00000253
[Token(Token = "0x17000001")]
public override int FeedbackSize
{
[Token(Token = "0x600004F")]
[Address(RVA = "0x6B3010", Offset = "0x6B1E10", VA = "0x1806B3010", Slot = "8")]
get
{
return 0;
}
[Token(Token = "0x6000050")]
[Address(RVA = "0x6B3130", Offset = "0x6B1F30", VA = "0x1806B3130", 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: 0x17000002 RID: 2
// (get) Token: 0x06000051 RID: 81 RVA: 0x00002050 File Offset: 0x00000250
// (set) Token: 0x06000052 RID: 82 RVA: 0x00002053 File Offset: 0x00000253
[Token(Token = "0x17000002")]
public override byte[] IV
{
[Token(Token = "0x6000051")]
[Address(RVA = "0x6B3040", Offset = "0x6B1E40", VA = "0x1806B3040", Slot = "10")]
get
{
return null;
}
[Token(Token = "0x6000052")]
[Address(RVA = "0x6B3160", Offset = "0x6B1F60", VA = "0x1806B3160", 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: 0x17000003 RID: 3
// (get) Token: 0x06000053 RID: 83 RVA: 0x00002050 File Offset: 0x00000250
// (set) Token: 0x06000054 RID: 84 RVA: 0x00002053 File Offset: 0x00000253
[Token(Token = "0x17000003")]
public override byte[] Key
{
[Token(Token = "0x6000053")]
[Address(RVA = "0x6B30A0", Offset = "0x6B1EA0", VA = "0x1806B30A0", Slot = "12")]
get
{
return null;
}
[Token(Token = "0x6000054")]
[Address(RVA = "0x6B31C0", Offset = "0x6B1FC0", VA = "0x1806B31C0", 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: 0x17000004 RID: 4
// (get) Token: 0x06000055 RID: 85 RVA: 0x00002070 File Offset: 0x00000270
// (set) Token: 0x06000056 RID: 86 RVA: 0x00002053 File Offset: 0x00000253
[Token(Token = "0x17000004")]
public override int KeySize
{
[Token(Token = "0x6000055")]
[Address(RVA = "0x6B3070", Offset = "0x6B1E70", VA = "0x1806B3070", Slot = "16")]
get
{
return 0;
}
[Token(Token = "0x6000056")]
[Address(RVA = "0x6B3190", Offset = "0x6B1F90", VA = "0x1806B3190", 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: 0x17000005 RID: 5
// (get) Token: 0x06000057 RID: 87 RVA: 0x00002088 File Offset: 0x00000288
// (set) Token: 0x06000058 RID: 88 RVA: 0x00002053 File Offset: 0x00000253
[Token(Token = "0x17000005")]
public override CipherMode Mode
{
[Token(Token = "0x6000057")]
[Address(RVA = "0x6B30D0", Offset = "0x6B1ED0", VA = "0x1806B30D0", Slot = "18")]
get
{
return (CipherMode)0;
}
[Token(Token = "0x6000058")]
[Address(RVA = "0x6B31F0", Offset = "0x6B1FF0", VA = "0x1806B31F0", 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: 0x17000006 RID: 6
// (get) Token: 0x06000059 RID: 89 RVA: 0x000020A0 File Offset: 0x000002A0
// (set) Token: 0x0600005A RID: 90 RVA: 0x00002053 File Offset: 0x00000253
[Token(Token = "0x17000006")]
public override PaddingMode Padding
{
[Token(Token = "0x6000059")]
[Address(RVA = "0x6B3100", Offset = "0x6B1F00", VA = "0x1806B3100", Slot = "20")]
get
{
return (PaddingMode)0;
}
[Token(Token = "0x600005A")]
[Address(RVA = "0x6B3290", Offset = "0x6B2090", VA = "0x1806B3290", 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: 0x0600005B RID: 91 RVA: 0x00002050 File Offset: 0x00000250
[Token(Token = "0x600005B")]
[Address(RVA = "0x6B2AA0", Offset = "0x6B18A0", VA = "0x1806B2AA0", 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: 0x0600005C RID: 92 RVA: 0x00002050 File Offset: 0x00000250
[Token(Token = "0x600005C")]
[Address(RVA = "0x6B2AD0", Offset = "0x6B18D0", VA = "0x1806B2AD0", 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: 0x0600005D RID: 93 RVA: 0x00002050 File Offset: 0x00000250
[Token(Token = "0x600005D")]
[Address(RVA = "0x6B2C30", Offset = "0x6B1A30", VA = "0x1806B2C30", 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: 0x0600005E RID: 94 RVA: 0x00002050 File Offset: 0x00000250
[Token(Token = "0x600005E")]
[Address(RVA = "0x6B2C60", Offset = "0x6B1A60", VA = "0x1806B2C60", Slot = "23")]
public override ICryptoTransform CreateEncryptor(byte[] key, byte[] iv)
{
return null;
}
// Token: 0x0600005F RID: 95 RVA: 0x00002053 File Offset: 0x00000253
[Token(Token = "0x600005F")]
[Address(RVA = "0x6B2DC0", Offset = "0x6B1BC0", VA = "0x1806B2DC0", Slot = "5")]
protected override void Dispose(bool disposing)
{
}
/// <summary>Generates a random initialization vector (IV) to use for the symmetric algorithm.</summary>
// Token: 0x06000060 RID: 96 RVA: 0x00002053 File Offset: 0x00000253
[Token(Token = "0x6000060")]
[Address(RVA = "0x6B2E80", Offset = "0x6B1C80", VA = "0x1806B2E80", Slot = "27")]
public override void GenerateIV()
{
}
/// <summary>Generates a random key to use for the symmetric algorithm. </summary>
// Token: 0x06000061 RID: 97 RVA: 0x00002053 File Offset: 0x00000253
[Token(Token = "0x6000061")]
[Address(RVA = "0x6B2EB0", Offset = "0x6B1CB0", VA = "0x1806B2EB0", Slot = "26")]
public override void GenerateKey()
{
}
// Token: 0x04000005 RID: 5
[FieldOffset(Offset = "0x48")]
[Token(Token = "0x4000005")]
private RijndaelManaged m_rijndael;
}
}