Files
27Aug2021-Cpp2IL-Dump/mscorlib/System/Security/Cryptography/TripleDESCryptoServiceProvider.cs
T
niko c12fbe3fc6 m
2026-04-12 16:51:38 +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: 0x02000437 RID: 1079
[Token(Token = "0x2000437")]
[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: 0x06002577 RID: 9591 RVA: 0x00002050 File Offset: 0x00000250
[Token(Token = "0x6002577")]
[Address(RVA = "0xD1AB60", Offset = "0xD19B60", VA = "0x180D1AB60")]
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: 0x06002578 RID: 9592 RVA: 0x00002082 File Offset: 0x00000282
[Token(Token = "0x6002578")]
[Address(RVA = "0xD1A8E0", Offset = "0xD198E0", VA = "0x180D1A8E0", 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: 0x06002579 RID: 9593 RVA: 0x00002082 File Offset: 0x00000282
[Token(Token = "0x6002579")]
[Address(RVA = "0xD1A7F0", Offset = "0xD197F0", VA = "0x180D1A7F0", 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: 0x0600257A RID: 9594 RVA: 0x00002050 File Offset: 0x00000250
[Token(Token = "0x600257A")]
[Address(RVA = "0xD1AA60", Offset = "0xD19A60", VA = "0x180D1AA60", 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: 0x0600257B RID: 9595 RVA: 0x00002050 File Offset: 0x00000250
[Token(Token = "0x600257B")]
[Address(RVA = "0xD1A9D0", Offset = "0xD199D0", VA = "0x180D1A9D0", Slot = "27")]
public override void GenerateIV()
{
}
}
}