103 lines
4.6 KiB
C#
103 lines
4.6 KiB
C#
using System;
|
|
using System.Runtime.InteropServices;
|
|
using Cpp2IlInjected;
|
|
|
|
namespace System.Security.Cryptography
|
|
{
|
|
/// <summary>Represents the base class from which all implementations of the <see cref="T:System.Security.Cryptography.RC2" /> algorithm must derive.</summary>
|
|
// Token: 0x02000416 RID: 1046
|
|
[Token(Token = "0x2000416")]
|
|
[ComVisible(true)]
|
|
public abstract class RC2 : SymmetricAlgorithm
|
|
{
|
|
/// <summary>Initializes a new instance of <see cref="T:System.Security.Cryptography.RC2" />.</summary>
|
|
// Token: 0x06002435 RID: 9269 RVA: 0x00002050 File Offset: 0x00000250
|
|
[Token(Token = "0x6002435")]
|
|
[Address(RVA = "0xC127F0", Offset = "0xC117F0", VA = "0x180C127F0")]
|
|
protected RC2()
|
|
{
|
|
}
|
|
|
|
/// <summary>Gets or sets the effective size of the secret key used by the <see cref="T:System.Security.Cryptography.RC2" /> algorithm in bits.</summary>
|
|
/// <returns>The effective key size used by the <see cref="T:System.Security.Cryptography.RC2" /> algorithm.</returns>
|
|
/// <exception cref="T:System.Security.Cryptography.CryptographicException">The effective key size is invalid.</exception>
|
|
// Token: 0x1700052B RID: 1323
|
|
// (get) Token: 0x06002436 RID: 9270 RVA: 0x00016F50 File Offset: 0x00015150
|
|
// (set) Token: 0x06002437 RID: 9271 RVA: 0x00002050 File Offset: 0x00000250
|
|
[Token(Token = "0x1700052B")]
|
|
public virtual int EffectiveKeySize
|
|
{
|
|
[Token(Token = "0x6002436")]
|
|
[Address(RVA = "0xC12890", Offset = "0xC11890", VA = "0x180C12890", Slot = "28")]
|
|
get
|
|
{
|
|
return 0;
|
|
}
|
|
[Token(Token = "0x6002437")]
|
|
[Address(RVA = "0xC128A0", Offset = "0xC118A0", VA = "0x180C128A0", Slot = "29")]
|
|
set
|
|
{
|
|
}
|
|
}
|
|
|
|
/// <summary>Gets or sets the size of the secret key used by the <see cref="T:System.Security.Cryptography.RC2" /> algorithm in bits.</summary>
|
|
/// <returns>The size of the secret key used by the <see cref="T:System.Security.Cryptography.RC2" /> algorithm.</returns>
|
|
/// <exception cref="T:System.Security.Cryptography.CryptographicException">The value for the RC2 key size is less than the effective key size value.</exception>
|
|
// Token: 0x1700052C RID: 1324
|
|
// (get) Token: 0x06002438 RID: 9272 RVA: 0x00016F68 File Offset: 0x00015168
|
|
// (set) Token: 0x06002439 RID: 9273 RVA: 0x00002050 File Offset: 0x00000250
|
|
[Token(Token = "0x1700052C")]
|
|
public override int KeySize
|
|
{
|
|
[Token(Token = "0x6002438")]
|
|
[Address(RVA = "0x42B830", Offset = "0x42A830", VA = "0x18042B830", Slot = "16")]
|
|
get
|
|
{
|
|
return 0;
|
|
}
|
|
[Token(Token = "0x6002439")]
|
|
[Address(RVA = "0xC129D0", Offset = "0xC119D0", VA = "0x180C129D0", Slot = "17")]
|
|
set
|
|
{
|
|
}
|
|
}
|
|
|
|
/// <summary>Creates an instance of a cryptographic object to perform the <see cref="T:System.Security.Cryptography.RC2" /> algorithm.</summary>
|
|
/// <returns>An instance of a cryptographic object.</returns>
|
|
/// <exception cref="T:System.Reflection.TargetInvocationException">The algorithm was used with Federal Information Processing Standards (FIPS) mode enabled, but is not FIPS compatible.</exception>
|
|
// Token: 0x0600243A RID: 9274 RVA: 0x00002082 File Offset: 0x00000282
|
|
[Token(Token = "0x600243A")]
|
|
[Address(RVA = "0xC125A0", Offset = "0xC115A0", VA = "0x180C125A0")]
|
|
public new static RC2 Create()
|
|
{
|
|
return null;
|
|
}
|
|
|
|
/// <summary>Creates an instance of a cryptographic object to perform the specified implementation of the <see cref="T:System.Security.Cryptography.RC2" /> algorithm.</summary>
|
|
/// <param name="AlgName">The name of the specific implementation of <see cref="T:System.Security.Cryptography.RC2" /> to use.</param>
|
|
/// <returns>An instance of a cryptographic object.</returns>
|
|
/// <exception cref="T:System.Reflection.TargetInvocationException">The algorithm described by the <paramref name="algName" /> parameter was used with Federal Information Processing Standards (FIPS) mode enabled, but is not FIPS compatible.</exception>
|
|
// Token: 0x0600243B RID: 9275 RVA: 0x00002082 File Offset: 0x00000282
|
|
[Token(Token = "0x600243B")]
|
|
[Address(RVA = "0xC125F0", Offset = "0xC115F0", VA = "0x180C125F0")]
|
|
public new static RC2 Create(string AlgName)
|
|
{
|
|
return null;
|
|
}
|
|
|
|
/// <summary>Represents the effective size of the secret key used by the <see cref="T:System.Security.Cryptography.RC2" /> algorithm in bits.</summary>
|
|
// Token: 0x0400143B RID: 5179
|
|
[global::Cpp2IlInjected.FieldOffset(Offset = "0x48")]
|
|
[Token(Token = "0x400143B")]
|
|
protected int EffectiveKeySizeValue;
|
|
|
|
// Token: 0x0400143C RID: 5180
|
|
[Token(Token = "0x400143C")]
|
|
private static KeySizes[] s_legalBlockSizes;
|
|
|
|
// Token: 0x0400143D RID: 5181
|
|
[Token(Token = "0x400143D")]
|
|
private static KeySizes[] s_legalKeySizes;
|
|
}
|
|
}
|