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

117 lines
5.3 KiB
C#

using System;
using System.Runtime.InteropServices;
using Cpp2IlInjected;
namespace System.Security.Cryptography
{
/// <summary>Represents the base class for the Data Encryption Standard (DES) algorithm from which all <see cref="T:System.Security.Cryptography.DES" /> implementations must derive.</summary>
// Token: 0x020003FF RID: 1023
[Token(Token = "0x20003FF")]
[ComVisible(true)]
public abstract class DES : SymmetricAlgorithm
{
/// <summary>Initializes a new instance of the <see cref="T:System.Security.Cryptography.DES" /> class.</summary>
// Token: 0x06002388 RID: 9096 RVA: 0x00002050 File Offset: 0x00000250
[Token(Token = "0x6002388")]
[Address(RVA = "0xC06620", Offset = "0xC05620", VA = "0x180C06620")]
protected DES()
{
}
/// <summary>Gets or sets the secret key for the Data Encryption Standard (<see cref="T:System.Security.Cryptography.DES" />) algorithm.</summary>
/// <returns>The secret key for the <see cref="T:System.Security.Cryptography.DES" /> algorithm.</returns>
/// <exception cref="T:System.ArgumentNullException">An attempt was made to set the key to <see langword="null" />.</exception>
/// <exception cref="T:System.ArgumentException">An attempt was made to set a key whose length is not equal to <see cref="F:System.Security.Cryptography.SymmetricAlgorithm.BlockSizeValue" />.</exception>
/// <exception cref="T:System.Security.Cryptography.CryptographicException">An attempt was made to set a weak key (see <see cref="M:System.Security.Cryptography.DES.IsWeakKey(System.Byte[])" />) or a semi-weak key (see <see cref="M:System.Security.Cryptography.DES.IsSemiWeakKey(System.Byte[])" />).</exception>
// Token: 0x1700050D RID: 1293
// (get) Token: 0x06002389 RID: 9097 RVA: 0x00002082 File Offset: 0x00000282
// (set) Token: 0x0600238A RID: 9098 RVA: 0x00002050 File Offset: 0x00000250
[Token(Token = "0x1700050D")]
public override byte[] Key
{
[Token(Token = "0x6002389")]
[Address(RVA = "0xC066C0", Offset = "0xC056C0", VA = "0x180C066C0", Slot = "12")]
get
{
return null;
}
[Token(Token = "0x600238A")]
[Address(RVA = "0xC067C0", Offset = "0xC057C0", VA = "0x180C067C0", Slot = "13")]
set
{
}
}
/// <summary>Creates an instance of a cryptographic object to perform the Data Encryption Standard (<see cref="T:System.Security.Cryptography.DES" />) algorithm.</summary>
/// <returns>A cryptographic object.</returns>
// Token: 0x0600238B RID: 9099 RVA: 0x00002082 File Offset: 0x00000282
[Token(Token = "0x600238B")]
[Address(RVA = "0xC05F60", Offset = "0xC04F60", VA = "0x180C05F60")]
public new static DES Create()
{
return null;
}
/// <summary>Creates an instance of a cryptographic object to perform the specified implementation of the Data Encryption Standard (<see cref="T:System.Security.Cryptography.DES" />) algorithm.</summary>
/// <param name="algName">The name of the specific implementation of <see cref="T:System.Security.Cryptography.DES" /> to use.</param>
/// <returns>A cryptographic object.</returns>
// Token: 0x0600238C RID: 9100 RVA: 0x00002082 File Offset: 0x00000282
[Token(Token = "0x600238C")]
[Address(RVA = "0xC05FB0", Offset = "0xC04FB0", VA = "0x180C05FB0")]
public new static DES Create(string algName)
{
return null;
}
/// <summary>Determines whether the specified key is weak.</summary>
/// <param name="rgbKey">The secret key to test for weakness.</param>
/// <returns>
/// <see langword="true" /> if the key is weak; otherwise, <see langword="false" />.</returns>
/// <exception cref="T:System.Security.Cryptography.CryptographicException">The size of the <paramref name="rgbKey" /> parameter is not valid.</exception>
// Token: 0x0600238D RID: 9101 RVA: 0x00016CB0 File Offset: 0x00014EB0
[Token(Token = "0x600238D")]
[Address(RVA = "0xC06230", Offset = "0xC05230", VA = "0x180C06230")]
public static bool IsWeakKey(byte[] rgbKey)
{
return default(bool);
}
/// <summary>Determines whether the specified key is semi-weak.</summary>
/// <param name="rgbKey">The secret key to test for semi-weakness.</param>
/// <returns>
/// <see langword="true" /> if the key is semi-weak; otherwise, <see langword="false" />.</returns>
/// <exception cref="T:System.Security.Cryptography.CryptographicException">The size of the <paramref name="rgbKey" /> parameter is not valid.</exception>
// Token: 0x0600238E RID: 9102 RVA: 0x00016CC8 File Offset: 0x00014EC8
[Token(Token = "0x600238E")]
[Address(RVA = "0xC06060", Offset = "0xC05060", VA = "0x180C06060")]
public static bool IsSemiWeakKey(byte[] rgbKey)
{
return default(bool);
}
// Token: 0x0600238F RID: 9103 RVA: 0x00016CE0 File Offset: 0x00014EE0
[Token(Token = "0x600238F")]
[Address(RVA = "0xC06040", Offset = "0xC05040", VA = "0x180C06040")]
private static bool IsLegalKeySize(byte[] rgbKey)
{
return default(bool);
}
// Token: 0x06002390 RID: 9104 RVA: 0x00016CF8 File Offset: 0x00014EF8
[Token(Token = "0x6002390")]
[Address(RVA = "0xC06370", Offset = "0xC05370", VA = "0x180C06370")]
private static ulong QuadWordFromBigEndian(byte[] block)
{
return 0UL;
}
// Token: 0x0400140B RID: 5131
[Token(Token = "0x400140B")]
private static KeySizes[] s_legalBlockSizes;
// Token: 0x0400140C RID: 5132
[Token(Token = "0x400140C")]
private static KeySizes[] s_legalKeySizes;
}
}