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: 0x020003FA RID: 1018
|
|
[Token(Token = "0x20003FA")]
|
|
[ComVisible(true)]
|
|
public abstract class RC2 : SymmetricAlgorithm
|
|
{
|
|
/// <summary>Initializes a new instance of <see cref="T:System.Security.Cryptography.RC2" />.</summary>
|
|
// Token: 0x06002229 RID: 8745 RVA: 0x00002050 File Offset: 0x00000250
|
|
[Token(Token = "0x6002229")]
|
|
[Address(RVA = "0x2DB0D10", Offset = "0x2DAFB10", VA = "0x182DB0D10")]
|
|
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: 0x170004B4 RID: 1204
|
|
// (get) Token: 0x0600222A RID: 8746 RVA: 0x00014B80 File Offset: 0x00012D80
|
|
// (set) Token: 0x0600222B RID: 8747 RVA: 0x00002050 File Offset: 0x00000250
|
|
[Token(Token = "0x170004B4")]
|
|
public virtual int EffectiveKeySize
|
|
{
|
|
[Token(Token = "0x600222A")]
|
|
[Address(RVA = "0x2DB0DB0", Offset = "0x2DAFBB0", VA = "0x182DB0DB0", Slot = "28")]
|
|
get
|
|
{
|
|
return 0;
|
|
}
|
|
[Token(Token = "0x600222B")]
|
|
[Address(RVA = "0x2DB0DC0", Offset = "0x2DAFBC0", VA = "0x182DB0DC0", 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: 0x170004B5 RID: 1205
|
|
// (get) Token: 0x0600222C RID: 8748 RVA: 0x00014B98 File Offset: 0x00012D98
|
|
// (set) Token: 0x0600222D RID: 8749 RVA: 0x00002050 File Offset: 0x00000250
|
|
[Token(Token = "0x170004B5")]
|
|
public override int KeySize
|
|
{
|
|
[Token(Token = "0x600222C")]
|
|
[Address(RVA = "0x40FFE0", Offset = "0x40EDE0", VA = "0x18040FFE0", Slot = "16")]
|
|
get
|
|
{
|
|
return 0;
|
|
}
|
|
[Token(Token = "0x600222D")]
|
|
[Address(RVA = "0x2DB0EF0", Offset = "0x2DAFCF0", VA = "0x182DB0EF0", 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: 0x0600222E RID: 8750 RVA: 0x00002082 File Offset: 0x00000282
|
|
[Token(Token = "0x600222E")]
|
|
[Address(RVA = "0x2DB0910", Offset = "0x2DAF710", VA = "0x182DB0910")]
|
|
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: 0x0600222F RID: 8751 RVA: 0x00002082 File Offset: 0x00000282
|
|
[Token(Token = "0x600222F")]
|
|
[Address(RVA = "0x2DB0B10", Offset = "0x2DAF910", VA = "0x182DB0B10")]
|
|
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: 0x04001378 RID: 4984
|
|
[global::Cpp2IlInjected.FieldOffset(Offset = "0x48")]
|
|
[Token(Token = "0x4001378")]
|
|
protected int EffectiveKeySizeValue;
|
|
|
|
// Token: 0x04001379 RID: 4985
|
|
[Token(Token = "0x4001379")]
|
|
private static KeySizes[] s_legalBlockSizes;
|
|
|
|
// Token: 0x0400137A RID: 4986
|
|
[Token(Token = "0x400137A")]
|
|
private static KeySizes[] s_legalKeySizes;
|
|
}
|
|
}
|