Files
Apr2020-Cpp2Il-Dump/mscorlib/System/Security/Cryptography/TripleDESCryptoServiceProvider.cs
T
niko 8fc35183db a
2026-04-11 22:19:20 +02:00

79 lines
5.2 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 <see cref="T:System.Security.Cryptography.TripleDES" /> algorithm. This class cannot be inherited.</summary>
// Token: 0x0200041B RID: 1051
[Token(Token = "0x200041B")]
[ComVisible(true)]
public sealed class TripleDESCryptoServiceProvider : TripleDES
{
/// <summary>Initializes a new instance of the <see cref="T:System.Security.Cryptography.TripleDESCryptoServiceProvider" /> class.</summary>
/// <exception cref="T:System.Security.Cryptography.CryptographicException">The <see cref="T:System.Security.Cryptography.TripleDES" /> cryptographic service provider is not available.</exception>
// Token: 0x0600236B RID: 9067 RVA: 0x00002050 File Offset: 0x00000250
[Token(Token = "0x600236B")]
[Address(RVA = "0x2E02FC0", Offset = "0x2E01DC0", VA = "0x182E02FC0")]
public TripleDESCryptoServiceProvider()
{
}
/// <summary>Creates a symmetric <see cref="T:System.Security.Cryptography.TripleDES" /> 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.
///
/// The initialization vector must be 8 bytes long. If it is longer than 8 bytes, it is truncated and an exception is not thrown. Before you call <see cref="M:System.Security.Cryptography.TripleDESCryptoServiceProvider.CreateEncryptor(System.Byte[],System.Byte[])" />, check the length of the initialization vector and throw an exception if it is too long.</param>
/// <returns>A symmetric <see cref="T:System.Security.Cryptography.TripleDES" /> 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: 0x0600236C RID: 9068 RVA: 0x00002082 File Offset: 0x00000282
[Token(Token = "0x600236C")]
[Address(RVA = "0x2E02D40", Offset = "0x2E01B40", VA = "0x182E02D40", Slot = "23")]
public override ICryptoTransform CreateEncryptor(byte[] rgbKey, byte[] rgbIV)
{
return null;
}
/// <summary>Creates a symmetric <see cref="T:System.Security.Cryptography.TripleDES" /> 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.TripleDES" /> 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: 0x0600236D RID: 9069 RVA: 0x00002082 File Offset: 0x00000282
[Token(Token = "0x600236D")]
[Address(RVA = "0x2E02C50", Offset = "0x2E01A50", VA = "0x182E02C50", Slot = "25")]
public override ICryptoTransform CreateDecryptor(byte[] rgbKey, byte[] rgbIV)
{
return null;
}
/// <summary>Generates a random <see cref="P:System.Security.Cryptography.SymmetricAlgorithm.Key" /> to be used for the algorithm.</summary>
// Token: 0x0600236E RID: 9070 RVA: 0x00002050 File Offset: 0x00000250
[Token(Token = "0x600236E")]
[Address(RVA = "0x2E02EC0", Offset = "0x2E01CC0", VA = "0x182E02EC0", 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: 0x0600236F RID: 9071 RVA: 0x00002050 File Offset: 0x00000250
[Token(Token = "0x600236F")]
[Address(RVA = "0x2E02E30", Offset = "0x2E01C30", VA = "0x182E02E30", Slot = "27")]
public override void GenerateIV()
{
}
}
}