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

372 lines
17 KiB
C#

using System;
using System.Runtime.InteropServices;
using Cpp2IlInjected;
namespace System.Security.Cryptography
{
/// <summary>Represents the abstract base class from which all implementations of symmetric algorithms must inherit.</summary>
// Token: 0x02000419 RID: 1049
[Token(Token = "0x2000419")]
[ComVisible(true)]
public abstract class SymmetricAlgorithm : IDisposable
{
/// <summary>Initializes a new instance of the <see cref="T:System.Security.Cryptography.SymmetricAlgorithm" /> class.</summary>
/// <exception cref="T:System.Security.Cryptography.CryptographicException">The implementation of the class derived from the symmetric algorithm is not valid.</exception>
// Token: 0x06002345 RID: 9029 RVA: 0x00002050 File Offset: 0x00000250
[Token(Token = "0x6002345")]
[Address(RVA = "0x2E01930", Offset = "0x2E00730", VA = "0x182E01930")]
protected SymmetricAlgorithm()
{
}
/// <summary>Releases all resources used by the current instance of the <see cref="T:System.Security.Cryptography.SymmetricAlgorithm" /> class.</summary>
// Token: 0x06002346 RID: 9030 RVA: 0x00002050 File Offset: 0x00000250
[Token(Token = "0x6002346")]
[Address(RVA = "0x2E017E0", Offset = "0x2E005E0", VA = "0x182E017E0", Slot = "4")]
public void Dispose()
{
}
/// <summary>Releases all resources used by the <see cref="T:System.Security.Cryptography.SymmetricAlgorithm" /> class.</summary>
// Token: 0x06002347 RID: 9031 RVA: 0x00002050 File Offset: 0x00000250
[Token(Token = "0x6002347")]
[Address(RVA = "0x2E01670", Offset = "0x2E00470", VA = "0x182E01670")]
public void Clear()
{
}
/// <summary>Releases the unmanaged resources used by the <see cref="T:System.Security.Cryptography.SymmetricAlgorithm" /> and optionally releases the managed resources.</summary>
/// <param name="disposing">
/// <see langword="true" /> to release both managed and unmanaged resources; <see langword="false" /> to release only unmanaged resources.</param>
// Token: 0x06002348 RID: 9032 RVA: 0x00002050 File Offset: 0x00000250
[Token(Token = "0x6002348")]
[Address(RVA = "0x2E01790", Offset = "0x2E00590", VA = "0x182E01790", Slot = "5")]
protected virtual void Dispose(bool disposing)
{
}
/// <summary>Gets or sets the block size, in bits, of the cryptographic operation.</summary>
/// <returns>The block size, in bits.</returns>
/// <exception cref="T:System.Security.Cryptography.CryptographicException">The block size is invalid.</exception>
// Token: 0x170004D8 RID: 1240
// (get) Token: 0x06002349 RID: 9033 RVA: 0x00015150 File Offset: 0x00013350
// (set) Token: 0x0600234A RID: 9034 RVA: 0x00002050 File Offset: 0x00000250
[Token(Token = "0x170004D8")]
public virtual int BlockSize
{
[Token(Token = "0x6002349")]
[Address(RVA = "0x3FA560", Offset = "0x3F9360", VA = "0x1803FA560", Slot = "6")]
get
{
return 0;
}
[Token(Token = "0x600234A")]
[Address(RVA = "0x2E01BA0", Offset = "0x2E009A0", VA = "0x182E01BA0", Slot = "7")]
set
{
}
}
/// <summary>Gets or sets the feedback size, in bits, of the cryptographic operation.</summary>
/// <returns>The feedback size in bits.</returns>
/// <exception cref="T:System.Security.Cryptography.CryptographicException">The feedback size is larger than the block size.</exception>
// Token: 0x170004D9 RID: 1241
// (get) Token: 0x0600234B RID: 9035 RVA: 0x00015168 File Offset: 0x00013368
// (set) Token: 0x0600234C RID: 9036 RVA: 0x00002050 File Offset: 0x00000250
[Token(Token = "0x170004D9")]
public virtual int FeedbackSize
{
[Token(Token = "0x600234B")]
[Address(RVA = "0x495080", Offset = "0x493E80", VA = "0x180495080", Slot = "8")]
get
{
return 0;
}
[Token(Token = "0x600234C")]
[Address(RVA = "0x2E01CD0", Offset = "0x2E00AD0", VA = "0x182E01CD0", Slot = "9")]
set
{
}
}
/// <summary>Gets or sets the initialization vector (<see cref="P:System.Security.Cryptography.SymmetricAlgorithm.IV" />) for the symmetric algorithm.</summary>
/// <returns>The initialization vector.</returns>
/// <exception cref="T:System.ArgumentNullException">An attempt was made to set the initialization vector to <see langword="null" />.</exception>
/// <exception cref="T:System.Security.Cryptography.CryptographicException">An attempt was made to set the initialization vector to an invalid size.</exception>
// Token: 0x170004DA RID: 1242
// (get) Token: 0x0600234D RID: 9037 RVA: 0x00002082 File Offset: 0x00000282
// (set) Token: 0x0600234E RID: 9038 RVA: 0x00002050 File Offset: 0x00000250
[Token(Token = "0x170004DA")]
public virtual byte[] IV
{
[Token(Token = "0x600234D")]
[Address(RVA = "0x2E01960", Offset = "0x2E00760", VA = "0x182E01960", Slot = "10")]
get
{
return null;
}
[Token(Token = "0x600234E")]
[Address(RVA = "0x2E01D70", Offset = "0x2E00B70", VA = "0x182E01D70", Slot = "11")]
set
{
}
}
/// <summary>Gets or sets the secret key for the symmetric algorithm.</summary>
/// <returns>The secret key to use for the symmetric algorithm.</returns>
/// <exception cref="T:System.ArgumentNullException">An attempt was made to set the key to <see langword="null" />.</exception>
/// <exception cref="T:System.Security.Cryptography.CryptographicException">The key size is invalid.</exception>
// Token: 0x170004DB RID: 1243
// (get) Token: 0x0600234F RID: 9039 RVA: 0x00002082 File Offset: 0x00000282
// (set) Token: 0x06002350 RID: 9040 RVA: 0x00002050 File Offset: 0x00000250
[Token(Token = "0x170004DB")]
public virtual byte[] Key
{
[Token(Token = "0x600234F")]
[Address(RVA = "0x2E01A00", Offset = "0x2E00800", VA = "0x182E01A00", Slot = "12")]
get
{
return null;
}
[Token(Token = "0x6002350")]
[Address(RVA = "0x2E01F00", Offset = "0x2E00D00", VA = "0x182E01F00", Slot = "13")]
set
{
}
}
/// <summary>Gets the block sizes, in bits, that are supported by the symmetric algorithm.</summary>
/// <returns>An array that contains the block sizes supported by the algorithm.</returns>
// Token: 0x170004DC RID: 1244
// (get) Token: 0x06002351 RID: 9041 RVA: 0x00002082 File Offset: 0x00000282
[Token(Token = "0x170004DC")]
public virtual KeySizes[] LegalBlockSizes
{
[Token(Token = "0x6002351")]
[Address(RVA = "0x2E01AA0", Offset = "0x2E008A0", VA = "0x182E01AA0", Slot = "14")]
get
{
return null;
}
}
/// <summary>Gets the key sizes, in bits, that are supported by the symmetric algorithm.</summary>
/// <returns>An array that contains the key sizes supported by the algorithm.</returns>
// Token: 0x170004DD RID: 1245
// (get) Token: 0x06002352 RID: 9042 RVA: 0x00002082 File Offset: 0x00000282
[Token(Token = "0x170004DD")]
public virtual KeySizes[] LegalKeySizes
{
[Token(Token = "0x6002352")]
[Address(RVA = "0x2E01B20", Offset = "0x2E00920", VA = "0x182E01B20", Slot = "15")]
get
{
return null;
}
}
/// <summary>Gets or sets the size, in bits, of the secret key used by the symmetric algorithm.</summary>
/// <returns>The size, in bits, of the secret key used by the symmetric algorithm.</returns>
/// <exception cref="T:System.Security.Cryptography.CryptographicException">The key size is not valid.</exception>
// Token: 0x170004DE RID: 1246
// (get) Token: 0x06002353 RID: 9043 RVA: 0x00015180 File Offset: 0x00013380
// (set) Token: 0x06002354 RID: 9044 RVA: 0x00002050 File Offset: 0x00000250
[Token(Token = "0x170004DE")]
public virtual int KeySize
{
[Token(Token = "0x6002353")]
[Address(RVA = "0x40FFE0", Offset = "0x40EDE0", VA = "0x18040FFE0", Slot = "16")]
get
{
return 0;
}
[Token(Token = "0x6002354")]
[Address(RVA = "0x2E01E70", Offset = "0x2E00C70", VA = "0x182E01E70", Slot = "17")]
set
{
}
}
/// <summary>Gets or sets the mode for operation of the symmetric algorithm.</summary>
/// <returns>The mode for operation of the symmetric algorithm. The default is <see cref="F:System.Security.Cryptography.CipherMode.CBC" />.</returns>
/// <exception cref="T:System.Security.Cryptography.CryptographicException">The cipher mode is not one of the <see cref="T:System.Security.Cryptography.CipherMode" /> values.</exception>
// Token: 0x170004DF RID: 1247
// (get) Token: 0x06002355 RID: 9045 RVA: 0x00015198 File Offset: 0x00013398
// (set) Token: 0x06002356 RID: 9046 RVA: 0x00002050 File Offset: 0x00000250
[Token(Token = "0x170004DF")]
public virtual CipherMode Mode
{
[Token(Token = "0x6002355")]
[Address(RVA = "0x567E30", Offset = "0x566C30", VA = "0x180567E30", Slot = "18")]
get
{
return (CipherMode)0;
}
[Token(Token = "0x6002356")]
[Address(RVA = "0x2E02020", Offset = "0x2E00E20", VA = "0x182E02020", Slot = "19")]
set
{
}
}
/// <summary>Gets or sets the padding mode used in the symmetric algorithm.</summary>
/// <returns>The padding mode used in the symmetric algorithm. The default is <see cref="F:System.Security.Cryptography.PaddingMode.PKCS7" />.</returns>
/// <exception cref="T:System.Security.Cryptography.CryptographicException">The padding mode is not one of the <see cref="T:System.Security.Cryptography.PaddingMode" /> values.</exception>
// Token: 0x170004E0 RID: 1248
// (get) Token: 0x06002357 RID: 9047 RVA: 0x000151B0 File Offset: 0x000133B0
// (set) Token: 0x06002358 RID: 9048 RVA: 0x00002050 File Offset: 0x00000250
[Token(Token = "0x170004E0")]
public virtual PaddingMode Padding
{
[Token(Token = "0x6002357")]
[Address(RVA = "0x3F63F0", Offset = "0x3F51F0", VA = "0x1803F63F0", Slot = "20")]
get
{
return (PaddingMode)0;
}
[Token(Token = "0x6002358")]
[Address(RVA = "0x2E020A0", Offset = "0x2E00EA0", VA = "0x182E020A0", Slot = "21")]
set
{
}
}
/// <summary>Determines whether the specified key size is valid for the current algorithm.</summary>
/// <param name="bitLength">The length, in bits, to check for a valid key size.</param>
/// <returns>
/// <see langword="true" /> if the specified key size is valid for the current algorithm; otherwise, <see langword="false" />.</returns>
// Token: 0x06002359 RID: 9049 RVA: 0x000151C8 File Offset: 0x000133C8
[Token(Token = "0x6002359")]
[Address(RVA = "0x2E01850", Offset = "0x2E00650", VA = "0x182E01850")]
public bool ValidKeySize(int bitLength)
{
return default(bool);
}
/// <summary>Creates a default cryptographic object used to perform the symmetric algorithm.</summary>
/// <returns>A default cryptographic object used to perform the symmetric algorithm.</returns>
// Token: 0x0600235A RID: 9050 RVA: 0x00002082 File Offset: 0x00000282
[Token(Token = "0x600235A")]
[Address(RVA = "0x2E01740", Offset = "0x2E00540", VA = "0x182E01740")]
public static SymmetricAlgorithm Create()
{
return null;
}
/// <summary>Creates the specified cryptographic object used to perform the symmetric algorithm.</summary>
/// <param name="algName">The name of the specific implementation of the <see cref="T:System.Security.Cryptography.SymmetricAlgorithm" /> class to use.</param>
/// <returns>A cryptographic object used to perform the symmetric algorithm.</returns>
// Token: 0x0600235B RID: 9051 RVA: 0x00002082 File Offset: 0x00000282
[Token(Token = "0x600235B")]
[Address(RVA = "0x2E016B0", Offset = "0x2E004B0", VA = "0x182E016B0")]
public static SymmetricAlgorithm Create(string algName)
{
return null;
}
/// <summary>Creates a symmetric encryptor object with the current <see cref="P:System.Security.Cryptography.SymmetricAlgorithm.Key" /> property and initialization vector (<see cref="P:System.Security.Cryptography.SymmetricAlgorithm.IV" />).</summary>
/// <returns>A symmetric encryptor object.</returns>
// Token: 0x0600235C RID: 9052 RVA: 0x00002082 File Offset: 0x00000282
[Token(Token = "0x600235C")]
[Address(RVA = "0x6B27C0", Offset = "0x6B15C0", VA = "0x1806B27C0", Slot = "22")]
public virtual ICryptoTransform CreateEncryptor()
{
return null;
}
/// <summary>When overridden in a derived class, creates a symmetric encryptor object with the specified <see cref="P:System.Security.Cryptography.SymmetricAlgorithm.Key" /> property and initialization vector (<see cref="P:System.Security.Cryptography.SymmetricAlgorithm.IV" />).</summary>
/// <param name="rgbKey">The secret key to use for the symmetric algorithm.</param>
/// <param name="rgbIV">The initialization vector to use for the symmetric algorithm.</param>
/// <returns>A symmetric encryptor object.</returns>
// Token: 0x0600235D RID: 9053
[Token(Token = "0x600235D")]
[Address(Slot = "23")]
public abstract ICryptoTransform CreateEncryptor(byte[] rgbKey, byte[] rgbIV);
/// <summary>Creates a symmetric decryptor object with the current <see cref="P:System.Security.Cryptography.SymmetricAlgorithm.Key" /> property and initialization vector (<see cref="P:System.Security.Cryptography.SymmetricAlgorithm.IV" />).</summary>
/// <returns>A symmetric decryptor object.</returns>
// Token: 0x0600235E RID: 9054 RVA: 0x00002082 File Offset: 0x00000282
[Token(Token = "0x600235E")]
[Address(RVA = "0x6B2760", Offset = "0x6B1560", VA = "0x1806B2760", Slot = "24")]
public virtual ICryptoTransform CreateDecryptor()
{
return null;
}
/// <summary>When overridden in a derived class, creates a symmetric decryptor object with the specified <see cref="P:System.Security.Cryptography.SymmetricAlgorithm.Key" /> property and initialization vector (<see cref="P:System.Security.Cryptography.SymmetricAlgorithm.IV" />).</summary>
/// <param name="rgbKey">The secret key to use for the symmetric algorithm.</param>
/// <param name="rgbIV">The initialization vector to use for the symmetric algorithm.</param>
/// <returns>A symmetric decryptor object.</returns>
// Token: 0x0600235F RID: 9055
[Token(Token = "0x600235F")]
[Address(Slot = "25")]
public abstract ICryptoTransform CreateDecryptor(byte[] rgbKey, byte[] rgbIV);
/// <summary>When overridden in a derived class, generates a random key (<see cref="P:System.Security.Cryptography.SymmetricAlgorithm.Key" />) to use for the algorithm.</summary>
// Token: 0x06002360 RID: 9056
[Token(Token = "0x6002360")]
[Address(Slot = "26")]
public abstract void GenerateKey();
/// <summary>When overridden in a derived class, generates a random initialization vector (<see cref="P:System.Security.Cryptography.SymmetricAlgorithm.IV" />) to use for the algorithm.</summary>
// Token: 0x06002361 RID: 9057
[Token(Token = "0x6002361")]
[Address(Slot = "27")]
public abstract void GenerateIV();
/// <summary>Represents the block size, in bits, of the cryptographic operation.</summary>
// Token: 0x040013DD RID: 5085
[global::Cpp2IlInjected.FieldOffset(Offset = "0x10")]
[Token(Token = "0x40013DD")]
protected int BlockSizeValue;
/// <summary>Represents the feedback size, in bits, of the cryptographic operation.</summary>
// Token: 0x040013DE RID: 5086
[global::Cpp2IlInjected.FieldOffset(Offset = "0x14")]
[Token(Token = "0x40013DE")]
protected int FeedbackSizeValue;
/// <summary>Represents the initialization vector (<see cref="P:System.Security.Cryptography.SymmetricAlgorithm.IV" />) for the symmetric algorithm.</summary>
// Token: 0x040013DF RID: 5087
[global::Cpp2IlInjected.FieldOffset(Offset = "0x18")]
[Token(Token = "0x40013DF")]
protected byte[] IVValue;
/// <summary>Represents the secret key for the symmetric algorithm.</summary>
// Token: 0x040013E0 RID: 5088
[global::Cpp2IlInjected.FieldOffset(Offset = "0x20")]
[Token(Token = "0x40013E0")]
protected byte[] KeyValue;
/// <summary>Specifies the block sizes, in bits, that are supported by the symmetric algorithm.</summary>
// Token: 0x040013E1 RID: 5089
[global::Cpp2IlInjected.FieldOffset(Offset = "0x28")]
[Token(Token = "0x40013E1")]
protected KeySizes[] LegalBlockSizesValue;
/// <summary>Specifies the key sizes, in bits, that are supported by the symmetric algorithm.</summary>
// Token: 0x040013E2 RID: 5090
[global::Cpp2IlInjected.FieldOffset(Offset = "0x30")]
[Token(Token = "0x40013E2")]
protected KeySizes[] LegalKeySizesValue;
/// <summary>Represents the size, in bits, of the secret key used by the symmetric algorithm.</summary>
// Token: 0x040013E3 RID: 5091
[global::Cpp2IlInjected.FieldOffset(Offset = "0x38")]
[Token(Token = "0x40013E3")]
protected int KeySizeValue;
/// <summary>Represents the cipher mode used in the symmetric algorithm.</summary>
// Token: 0x040013E4 RID: 5092
[global::Cpp2IlInjected.FieldOffset(Offset = "0x3C")]
[Token(Token = "0x40013E4")]
protected CipherMode ModeValue;
/// <summary>Represents the padding mode used in the symmetric algorithm.</summary>
// Token: 0x040013E5 RID: 5093
[global::Cpp2IlInjected.FieldOffset(Offset = "0x40")]
[Token(Token = "0x40013E5")]
protected PaddingMode PaddingValue;
}
}