132 lines
6.7 KiB
C#
132 lines
6.7 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) implementation of the <see cref="T:System.Security.Cryptography.RC2" /> algorithm. This class cannot be inherited.</summary>
|
|
// Token: 0x02000417 RID: 1047
|
|
[Token(Token = "0x2000417")]
|
|
[ComVisible(true)]
|
|
public sealed class RC2CryptoServiceProvider : RC2
|
|
{
|
|
/// <summary>Initializes a new instance of the <see cref="T:System.Security.Cryptography.RC2CryptoServiceProvider" /> class.</summary>
|
|
/// <exception cref="T:System.Security.Cryptography.CryptographicException">The cryptographic service provider (CSP) cannot be acquired.</exception>
|
|
/// <exception cref="T:System.InvalidOperationException">A non-compliant FIPS algorithm was found.</exception>
|
|
// Token: 0x0600243D RID: 9277 RVA: 0x00002050 File Offset: 0x00000250
|
|
[Token(Token = "0x600243D")]
|
|
[Address(RVA = "0xC10D20", Offset = "0xC0FD20", VA = "0x180C10D20")]
|
|
public RC2CryptoServiceProvider()
|
|
{
|
|
}
|
|
|
|
/// <summary>Gets or sets the effective size, in bits, of the secret key used by the <see cref="T:System.Security.Cryptography.RC2" /> algorithm.</summary>
|
|
/// <returns>The effective key size, in bits, used by the <see cref="T:System.Security.Cryptography.RC2" /> algorithm.</returns>
|
|
/// <exception cref="T:System.Security.Cryptography.CryptographicUnexpectedOperationException">The <see cref="P:System.Security.Cryptography.RC2CryptoServiceProvider.EffectiveKeySize" /> property was set to a value other than the <see cref="F:System.Security.Cryptography.SymmetricAlgorithm.KeySizeValue" /> property.</exception>
|
|
// Token: 0x1700052D RID: 1325
|
|
// (get) Token: 0x0600243E RID: 9278 RVA: 0x00016F80 File Offset: 0x00015180
|
|
// (set) Token: 0x0600243F RID: 9279 RVA: 0x00002050 File Offset: 0x00000250
|
|
[Token(Token = "0x1700052D")]
|
|
public override int EffectiveKeySize
|
|
{
|
|
[Token(Token = "0x600243E")]
|
|
[Address(RVA = "0x42B830", Offset = "0x42A830", VA = "0x18042B830", Slot = "28")]
|
|
get
|
|
{
|
|
return 0;
|
|
}
|
|
[Token(Token = "0x600243F")]
|
|
[Address(RVA = "0xC10EB0", Offset = "0xC0FEB0", VA = "0x180C10EB0", Slot = "29")]
|
|
set
|
|
{
|
|
}
|
|
}
|
|
|
|
/// <summary>Gets or sets a value that determines whether to create a key with an 11-byte-long, zero-value salt.</summary>
|
|
/// <returns>
|
|
/// <see langword="true" /> if the key should be created with an 11-byte-long, zero-value salt; otherwise, <see langword="false" />. The default is <see langword="false" />.</returns>
|
|
// Token: 0x1700052E RID: 1326
|
|
// (get) Token: 0x06002440 RID: 9280 RVA: 0x00016F98 File Offset: 0x00015198
|
|
// (set) Token: 0x06002441 RID: 9281 RVA: 0x00002050 File Offset: 0x00000250
|
|
[Token(Token = "0x1700052E")]
|
|
[ComVisible(false)]
|
|
public bool UseSalt
|
|
{
|
|
[Token(Token = "0x6002440")]
|
|
[Address(RVA = "0x41CF80", Offset = "0x41BF80", VA = "0x18041CF80")]
|
|
get
|
|
{
|
|
return default(bool);
|
|
}
|
|
[Token(Token = "0x6002441")]
|
|
[Address(RVA = "0x41D090", Offset = "0x41C090", VA = "0x18041D090")]
|
|
set
|
|
{
|
|
}
|
|
}
|
|
|
|
/// <summary>Creates a symmetric <see cref="T:System.Security.Cryptography.RC2" /> 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.RC2" /> encryptor object.</returns>
|
|
/// <exception cref="T:System.Security.Cryptography.CryptographicException">An <see cref="F:System.Security.Cryptography.CipherMode.OFB" /> cipher mode was used.
|
|
/// -or-
|
|
/// A <see cref="F:System.Security.Cryptography.CipherMode.CFB" /> cipher mode with a feedback size other than 8 bits was used.
|
|
/// -or-
|
|
/// An invalid key size was used.
|
|
/// -or-
|
|
/// The algorithm key size was not available.</exception>
|
|
// Token: 0x06002442 RID: 9282 RVA: 0x00002082 File Offset: 0x00000282
|
|
[Token(Token = "0x6002442")]
|
|
[Address(RVA = "0xC10A70", Offset = "0xC0FA70", VA = "0x180C10A70", Slot = "23")]
|
|
public override ICryptoTransform CreateEncryptor(byte[] rgbKey, byte[] rgbIV)
|
|
{
|
|
return null;
|
|
}
|
|
|
|
/// <summary>Creates a symmetric <see cref="T:System.Security.Cryptography.RC2" /> 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.RC2" /> decryptor object.</returns>
|
|
/// <exception cref="T:System.Security.Cryptography.CryptographicException">An <see cref="F:System.Security.Cryptography.CipherMode.OFB" /> cipher mode was used.
|
|
/// -or-
|
|
/// A <see cref="F:System.Security.Cryptography.CipherMode.CFB" /> cipher mode with a feedback size other than 8 bits was used.
|
|
/// -or-
|
|
/// An invalid key size was used.
|
|
/// -or-
|
|
/// The algorithm key size was not available.</exception>
|
|
// Token: 0x06002443 RID: 9283 RVA: 0x00002082 File Offset: 0x00000282
|
|
[Token(Token = "0x6002443")]
|
|
[Address(RVA = "0xC109B0", Offset = "0xC0F9B0", VA = "0x180C109B0", 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: 0x06002444 RID: 9284 RVA: 0x00002050 File Offset: 0x00000250
|
|
[Token(Token = "0x6002444")]
|
|
[Address(RVA = "0xC10BC0", Offset = "0xC0FBC0", VA = "0x180C10BC0", 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: 0x06002445 RID: 9285 RVA: 0x00002050 File Offset: 0x00000250
|
|
[Token(Token = "0x6002445")]
|
|
[Address(RVA = "0xC10B30", Offset = "0xC0FB30", VA = "0x180C10B30", Slot = "27")]
|
|
public override void GenerateIV()
|
|
{
|
|
}
|
|
|
|
// Token: 0x0400143E RID: 5182
|
|
[global::Cpp2IlInjected.FieldOffset(Offset = "0x50")]
|
|
[Token(Token = "0x400143E")]
|
|
private bool m_use40bitSalt;
|
|
|
|
// Token: 0x0400143F RID: 5183
|
|
[Token(Token = "0x400143F")]
|
|
private static KeySizes[] s_legalKeySizes;
|
|
}
|
|
}
|