Files
niko c12fbe3fc6 m
2026-04-12 16:51:38 +02:00

77 lines
4.9 KiB
C#

using System;
using System.Runtime.InteropServices;
using Cpp2IlInjected;
namespace System.Security.Cryptography
{
/// <summary>Defines a wrapper object to access the cryptographic service provider (CSP) version of the Data Encryption Standard (<see cref="T:System.Security.Cryptography.DES" />) algorithm. This class cannot be inherited.</summary>
// Token: 0x02000400 RID: 1024
[Token(Token = "0x2000400")]
[ComVisible(true)]
public sealed class DESCryptoServiceProvider : DES
{
/// <summary>Initializes a new instance of the <see cref="T:System.Security.Cryptography.DESCryptoServiceProvider" /> class.</summary>
/// <exception cref="T:System.Security.Cryptography.CryptographicException">The Data Encryption Standard (<see cref="T:System.Security.Cryptography.DES" />) cryptographic service provider is not available.</exception>
// Token: 0x06002392 RID: 9106 RVA: 0x00002050 File Offset: 0x00000250
[Token(Token = "0x6002392")]
[Address(RVA = "0xC04380", Offset = "0xC03380", VA = "0x180C04380")]
public DESCryptoServiceProvider()
{
}
/// <summary>Creates a symmetric Data Encryption Standard (<see cref="T:System.Security.Cryptography.DES" />) encryptor object with the specified key (<see cref="P:System.Security.Cryptography.SymmetricAlgorithm.Key" />) 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 <see cref="T:System.Security.Cryptography.DES" /> encryptor object.</returns>
/// <exception cref="T:System.Security.Cryptography.CryptographicException">The value of the <see cref="P:System.Security.Cryptography.SymmetricAlgorithm.Mode" /> property is <see cref="F:System.Security.Cryptography.CipherMode.OFB" />.
/// -or-
/// The value of the <see cref="P:System.Security.Cryptography.SymmetricAlgorithm.Mode" /> property is <see cref="F:System.Security.Cryptography.CipherMode.CFB" /> and the value of the <see cref="P:System.Security.Cryptography.SymmetricAlgorithm.FeedbackSize" /> property is not 8.
/// -or-
/// An invalid key size was used.
/// -or-
/// The algorithm key size was not available.</exception>
// Token: 0x06002393 RID: 9107 RVA: 0x00002082 File Offset: 0x00000282
[Token(Token = "0x6002393")]
[Address(RVA = "0xC04060", Offset = "0xC03060", VA = "0x180C04060", Slot = "23")]
public override ICryptoTransform CreateEncryptor(byte[] rgbKey, byte[] rgbIV)
{
return null;
}
/// <summary>Creates a symmetric Data Encryption Standard (<see cref="T:System.Security.Cryptography.DES" />) decryptor object with the specified key (<see cref="P:System.Security.Cryptography.SymmetricAlgorithm.Key" />) 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 <see cref="T:System.Security.Cryptography.DES" /> decryptor object.</returns>
/// <exception cref="T:System.Security.Cryptography.CryptographicException">The value of the <see cref="P:System.Security.Cryptography.SymmetricAlgorithm.Mode" /> property is <see cref="F:System.Security.Cryptography.CipherMode.OFB" />.
/// -or-
/// The value of the <see cref="P:System.Security.Cryptography.SymmetricAlgorithm.Mode" /> property is <see cref="F:System.Security.Cryptography.CipherMode.CFB" /> and the value of the <see cref="P:System.Security.Cryptography.SymmetricAlgorithm.FeedbackSize" /> property is not 8.
/// -or-
/// An invalid key size was used.
/// -or-
/// The algorithm key size was not available.</exception>
// Token: 0x06002394 RID: 9108 RVA: 0x00002082 File Offset: 0x00000282
[Token(Token = "0x6002394")]
[Address(RVA = "0xC03EF0", Offset = "0xC02EF0", VA = "0x180C03EF0", Slot = "25")]
public override ICryptoTransform CreateDecryptor(byte[] rgbKey, byte[] rgbIV)
{
return null;
}
/// <summary>Generates a random key (<see cref="P:System.Security.Cryptography.SymmetricAlgorithm.Key" />) to be used for the algorithm.</summary>
// Token: 0x06002395 RID: 9109 RVA: 0x00002050 File Offset: 0x00000250
[Token(Token = "0x6002395")]
[Address(RVA = "0xC04260", Offset = "0xC03260", VA = "0x180C04260", Slot = "26")]
public override void GenerateKey()
{
}
/// <summary>Generates a random initialization vector (<see cref="P:System.Security.Cryptography.SymmetricAlgorithm.IV" />) to use for the algorithm.</summary>
// Token: 0x06002396 RID: 9110 RVA: 0x00002050 File Offset: 0x00000250
[Token(Token = "0x6002396")]
[Address(RVA = "0xC041D0", Offset = "0xC031D0", VA = "0x180C041D0", Slot = "27")]
public override void GenerateIV()
{
}
}
}