This commit is contained in:
niko
2026-04-10 22:50:51 +02:00
parent 6d1607d5a2
commit f18d448581
17033 changed files with 2863270 additions and 0 deletions
@@ -0,0 +1,131 @@
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: 0x020003FB RID: 1019
[Token(Token = "0x20003FB")]
[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: 0x06002231 RID: 8753 RVA: 0x00002050 File Offset: 0x00000250
[Token(Token = "0x6002231")]
[Address(RVA = "0x2DAF040", Offset = "0x2DADE40", VA = "0x182DAF040")]
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: 0x170004B6 RID: 1206
// (get) Token: 0x06002232 RID: 8754 RVA: 0x00014BB0 File Offset: 0x00012DB0
// (set) Token: 0x06002233 RID: 8755 RVA: 0x00002050 File Offset: 0x00000250
[Token(Token = "0x170004B6")]
public override int EffectiveKeySize
{
[Token(Token = "0x6002232")]
[Address(RVA = "0x40FFE0", Offset = "0x40EDE0", VA = "0x18040FFE0", Slot = "28")]
get
{
return 0;
}
[Token(Token = "0x6002233")]
[Address(RVA = "0x2DAF220", Offset = "0x2DAE020", VA = "0x182DAF220", 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: 0x170004B7 RID: 1207
// (get) Token: 0x06002234 RID: 8756 RVA: 0x00014BC8 File Offset: 0x00012DC8
// (set) Token: 0x06002235 RID: 8757 RVA: 0x00002050 File Offset: 0x00000250
[Token(Token = "0x170004B7")]
[ComVisible(false)]
public bool UseSalt
{
[Token(Token = "0x6002234")]
[Address(RVA = "0x7722A0", Offset = "0x7710A0", VA = "0x1807722A0")]
get
{
return default(bool);
}
[Token(Token = "0x6002235")]
[Address(RVA = "0x781F80", Offset = "0x780D80", VA = "0x180781F80")]
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: 0x06002236 RID: 8758 RVA: 0x00002082 File Offset: 0x00000282
[Token(Token = "0x6002236")]
[Address(RVA = "0x2DAED90", Offset = "0x2DADB90", VA = "0x182DAED90", 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: 0x06002237 RID: 8759 RVA: 0x00002082 File Offset: 0x00000282
[Token(Token = "0x6002237")]
[Address(RVA = "0x2DAECD0", Offset = "0x2DADAD0", VA = "0x182DAECD0", 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: 0x06002238 RID: 8760 RVA: 0x00002050 File Offset: 0x00000250
[Token(Token = "0x6002238")]
[Address(RVA = "0x2DAEEE0", Offset = "0x2DADCE0", VA = "0x182DAEEE0", 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: 0x06002239 RID: 8761 RVA: 0x00002050 File Offset: 0x00000250
[Token(Token = "0x6002239")]
[Address(RVA = "0x2DAEE50", Offset = "0x2DADC50", VA = "0x182DAEE50", Slot = "27")]
public override void GenerateIV()
{
}
// Token: 0x0400137B RID: 4987
[global::Cpp2IlInjected.FieldOffset(Offset = "0x50")]
[Token(Token = "0x400137B")]
private bool m_use40bitSalt;
// Token: 0x0400137C RID: 4988
[Token(Token = "0x400137C")]
private static KeySizes[] s_legalKeySizes;
}
}