using System; using System.Runtime.InteropServices; using Cpp2IlInjected; namespace System.Security.Cryptography { /// Represents the abstract base class from which all implementations of symmetric algorithms must inherit. // Token: 0x02000419 RID: 1049 [Token(Token = "0x2000419")] [ComVisible(true)] public abstract class SymmetricAlgorithm : IDisposable { /// Initializes a new instance of the class. /// The implementation of the class derived from the symmetric algorithm is not valid. // Token: 0x06002345 RID: 9029 RVA: 0x00002050 File Offset: 0x00000250 [Token(Token = "0x6002345")] [Address(RVA = "0x2E01930", Offset = "0x2E00730", VA = "0x182E01930")] protected SymmetricAlgorithm() { } /// Releases all resources used by the current instance of the class. // Token: 0x06002346 RID: 9030 RVA: 0x00002050 File Offset: 0x00000250 [Token(Token = "0x6002346")] [Address(RVA = "0x2E017E0", Offset = "0x2E005E0", VA = "0x182E017E0", Slot = "4")] public void Dispose() { } /// Releases all resources used by the class. // Token: 0x06002347 RID: 9031 RVA: 0x00002050 File Offset: 0x00000250 [Token(Token = "0x6002347")] [Address(RVA = "0x2E01670", Offset = "0x2E00470", VA = "0x182E01670")] public void Clear() { } /// Releases the unmanaged resources used by the and optionally releases the managed resources. /// /// to release both managed and unmanaged resources; to release only unmanaged resources. // 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) { } /// Gets or sets the block size, in bits, of the cryptographic operation. /// The block size, in bits. /// The block size is invalid. // 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 { } } /// Gets or sets the feedback size, in bits, of the cryptographic operation. /// The feedback size in bits. /// The feedback size is larger than the block size. // 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 { } } /// Gets or sets the initialization vector () for the symmetric algorithm. /// The initialization vector. /// An attempt was made to set the initialization vector to . /// An attempt was made to set the initialization vector to an invalid size. // 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 { } } /// Gets or sets the secret key for the symmetric algorithm. /// The secret key to use for the symmetric algorithm. /// An attempt was made to set the key to . /// The key size is invalid. // 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 { } } /// Gets the block sizes, in bits, that are supported by the symmetric algorithm. /// An array that contains the block sizes supported by the algorithm. // 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; } } /// Gets the key sizes, in bits, that are supported by the symmetric algorithm. /// An array that contains the key sizes supported by the algorithm. // 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; } } /// Gets or sets the size, in bits, of the secret key used by the symmetric algorithm. /// The size, in bits, of the secret key used by the symmetric algorithm. /// The key size is not valid. // 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 { } } /// Gets or sets the mode for operation of the symmetric algorithm. /// The mode for operation of the symmetric algorithm. The default is . /// The cipher mode is not one of the values. // 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 { } } /// Gets or sets the padding mode used in the symmetric algorithm. /// The padding mode used in the symmetric algorithm. The default is . /// The padding mode is not one of the values. // 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 { } } /// Determines whether the specified key size is valid for the current algorithm. /// The length, in bits, to check for a valid key size. /// /// if the specified key size is valid for the current algorithm; otherwise, . // 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); } /// Creates a default cryptographic object used to perform the symmetric algorithm. /// A default cryptographic object used to perform the symmetric algorithm. // 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; } /// Creates the specified cryptographic object used to perform the symmetric algorithm. /// The name of the specific implementation of the class to use. /// A cryptographic object used to perform the symmetric algorithm. // 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; } /// Creates a symmetric encryptor object with the current property and initialization vector (). /// A symmetric encryptor object. // 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; } /// When overridden in a derived class, creates a symmetric encryptor object with the specified property and initialization vector (). /// The secret key to use for the symmetric algorithm. /// The initialization vector to use for the symmetric algorithm. /// A symmetric encryptor object. // Token: 0x0600235D RID: 9053 [Token(Token = "0x600235D")] [Address(Slot = "23")] public abstract ICryptoTransform CreateEncryptor(byte[] rgbKey, byte[] rgbIV); /// Creates a symmetric decryptor object with the current property and initialization vector (). /// A symmetric decryptor object. // 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; } /// When overridden in a derived class, creates a symmetric decryptor object with the specified property and initialization vector (). /// The secret key to use for the symmetric algorithm. /// The initialization vector to use for the symmetric algorithm. /// A symmetric decryptor object. // Token: 0x0600235F RID: 9055 [Token(Token = "0x600235F")] [Address(Slot = "25")] public abstract ICryptoTransform CreateDecryptor(byte[] rgbKey, byte[] rgbIV); /// When overridden in a derived class, generates a random key () to use for the algorithm. // Token: 0x06002360 RID: 9056 [Token(Token = "0x6002360")] [Address(Slot = "26")] public abstract void GenerateKey(); /// When overridden in a derived class, generates a random initialization vector () to use for the algorithm. // Token: 0x06002361 RID: 9057 [Token(Token = "0x6002361")] [Address(Slot = "27")] public abstract void GenerateIV(); /// Represents the block size, in bits, of the cryptographic operation. // Token: 0x040013DD RID: 5085 [global::Cpp2IlInjected.FieldOffset(Offset = "0x10")] [Token(Token = "0x40013DD")] protected int BlockSizeValue; /// Represents the feedback size, in bits, of the cryptographic operation. // Token: 0x040013DE RID: 5086 [global::Cpp2IlInjected.FieldOffset(Offset = "0x14")] [Token(Token = "0x40013DE")] protected int FeedbackSizeValue; /// Represents the initialization vector () for the symmetric algorithm. // Token: 0x040013DF RID: 5087 [global::Cpp2IlInjected.FieldOffset(Offset = "0x18")] [Token(Token = "0x40013DF")] protected byte[] IVValue; /// Represents the secret key for the symmetric algorithm. // Token: 0x040013E0 RID: 5088 [global::Cpp2IlInjected.FieldOffset(Offset = "0x20")] [Token(Token = "0x40013E0")] protected byte[] KeyValue; /// Specifies the block sizes, in bits, that are supported by the symmetric algorithm. // Token: 0x040013E1 RID: 5089 [global::Cpp2IlInjected.FieldOffset(Offset = "0x28")] [Token(Token = "0x40013E1")] protected KeySizes[] LegalBlockSizesValue; /// Specifies the key sizes, in bits, that are supported by the symmetric algorithm. // Token: 0x040013E2 RID: 5090 [global::Cpp2IlInjected.FieldOffset(Offset = "0x30")] [Token(Token = "0x40013E2")] protected KeySizes[] LegalKeySizesValue; /// Represents the size, in bits, of the secret key used by the symmetric algorithm. // Token: 0x040013E3 RID: 5091 [global::Cpp2IlInjected.FieldOffset(Offset = "0x38")] [Token(Token = "0x40013E3")] protected int KeySizeValue; /// Represents the cipher mode used in the symmetric algorithm. // Token: 0x040013E4 RID: 5092 [global::Cpp2IlInjected.FieldOffset(Offset = "0x3C")] [Token(Token = "0x40013E4")] protected CipherMode ModeValue; /// Represents the padding mode used in the symmetric algorithm. // Token: 0x040013E5 RID: 5093 [global::Cpp2IlInjected.FieldOffset(Offset = "0x40")] [Token(Token = "0x40013E5")] protected PaddingMode PaddingValue; } }