117 lines
5.3 KiB
C#
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: 0x020003E3 RID: 995
|
|
[Token(Token = "0x20003E3")]
|
|
[ComVisible(true)]
|
|
public abstract class DES : SymmetricAlgorithm
|
|
{
|
|
/// <summary>Initializes a new instance of the <see cref="T:System.Security.Cryptography.DES" /> class.</summary>
|
|
// Token: 0x0600217C RID: 8572 RVA: 0x00002050 File Offset: 0x00000250
|
|
[Token(Token = "0x600217C")]
|
|
[Address(RVA = "0x2DA4950", Offset = "0x2DA3750", VA = "0x182DA4950")]
|
|
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: 0x17000496 RID: 1174
|
|
// (get) Token: 0x0600217D RID: 8573 RVA: 0x00002082 File Offset: 0x00000282
|
|
// (set) Token: 0x0600217E RID: 8574 RVA: 0x00002050 File Offset: 0x00000250
|
|
[Token(Token = "0x17000496")]
|
|
public override byte[] Key
|
|
{
|
|
[Token(Token = "0x600217D")]
|
|
[Address(RVA = "0x2DA49F0", Offset = "0x2DA37F0", VA = "0x182DA49F0", Slot = "12")]
|
|
get
|
|
{
|
|
return null;
|
|
}
|
|
[Token(Token = "0x600217E")]
|
|
[Address(RVA = "0x2DA4AF0", Offset = "0x2DA38F0", VA = "0x182DA4AF0", 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: 0x0600217F RID: 8575 RVA: 0x00002082 File Offset: 0x00000282
|
|
[Token(Token = "0x600217F")]
|
|
[Address(RVA = "0x2DA4160", Offset = "0x2DA2F60", VA = "0x182DA4160")]
|
|
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: 0x06002180 RID: 8576 RVA: 0x00002082 File Offset: 0x00000282
|
|
[Token(Token = "0x6002180")]
|
|
[Address(RVA = "0x2DA42E0", Offset = "0x2DA30E0", VA = "0x182DA42E0")]
|
|
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: 0x06002181 RID: 8577 RVA: 0x000148E0 File Offset: 0x00012AE0
|
|
[Token(Token = "0x6002181")]
|
|
[Address(RVA = "0x2DA4560", Offset = "0x2DA3360", VA = "0x182DA4560")]
|
|
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: 0x06002182 RID: 8578 RVA: 0x000148F8 File Offset: 0x00012AF8
|
|
[Token(Token = "0x6002182")]
|
|
[Address(RVA = "0x2DA4390", Offset = "0x2DA3190", VA = "0x182DA4390")]
|
|
public static bool IsSemiWeakKey(byte[] rgbKey)
|
|
{
|
|
return default(bool);
|
|
}
|
|
|
|
// Token: 0x06002183 RID: 8579 RVA: 0x00014910 File Offset: 0x00012B10
|
|
[Token(Token = "0x6002183")]
|
|
[Address(RVA = "0x2DA4370", Offset = "0x2DA3170", VA = "0x182DA4370")]
|
|
private static bool IsLegalKeySize(byte[] rgbKey)
|
|
{
|
|
return default(bool);
|
|
}
|
|
|
|
// Token: 0x06002184 RID: 8580 RVA: 0x00014928 File Offset: 0x00012B28
|
|
[Token(Token = "0x6002184")]
|
|
[Address(RVA = "0x2DA46A0", Offset = "0x2DA34A0", VA = "0x182DA46A0")]
|
|
private static ulong QuadWordFromBigEndian(byte[] block)
|
|
{
|
|
return 0UL;
|
|
}
|
|
|
|
// Token: 0x04001348 RID: 4936
|
|
[Token(Token = "0x4001348")]
|
|
private static KeySizes[] s_legalBlockSizes;
|
|
|
|
// Token: 0x04001349 RID: 4937
|
|
[Token(Token = "0x4001349")]
|
|
private static KeySizes[] s_legalKeySizes;
|
|
}
|
|
}
|