Files
Aug2021-Cpp2IL-Dump/mscorlib/System/Security/Cryptography/DESCryptoServiceProvider.cs
T
2026-04-10 22:50:51 +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: 0x020003E4 RID: 996
[Token(Token = "0x20003E4")]
[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: 0x06002186 RID: 8582 RVA: 0x00002050 File Offset: 0x00000250
[Token(Token = "0x6002186")]
[Address(RVA = "0x2DA2580", Offset = "0x2DA1380", VA = "0x182DA2580")]
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: 0x06002187 RID: 8583 RVA: 0x00002082 File Offset: 0x00000282
[Token(Token = "0x6002187")]
[Address(RVA = "0x2DA2260", Offset = "0x2DA1060", VA = "0x182DA2260", 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: 0x06002188 RID: 8584 RVA: 0x00002082 File Offset: 0x00000282
[Token(Token = "0x6002188")]
[Address(RVA = "0x2DA20F0", Offset = "0x2DA0EF0", VA = "0x182DA20F0", 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: 0x06002189 RID: 8585 RVA: 0x00002050 File Offset: 0x00000250
[Token(Token = "0x6002189")]
[Address(RVA = "0x2DA2460", Offset = "0x2DA1260", VA = "0x182DA2460", 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: 0x0600218A RID: 8586 RVA: 0x00002050 File Offset: 0x00000250
[Token(Token = "0x600218A")]
[Address(RVA = "0x2DA23D0", Offset = "0x2DA11D0", VA = "0x182DA23D0", Slot = "27")]
public override void GenerateIV()
{
}
}
}