251 lines
11 KiB
C#
251 lines
11 KiB
C#
using System;
|
|
using Cpp2IlInjected;
|
|
|
|
namespace System.Security.Cryptography
|
|
{
|
|
/// <summary>Specifies the padding mode and parameters to use with RSA encryption or decryption operations.</summary>
|
|
// Token: 0x020003E5 RID: 997
|
|
[Token(Token = "0x20003E5")]
|
|
public sealed class RSAEncryptionPadding : IEquatable<RSAEncryptionPadding>
|
|
{
|
|
/// <summary>Gets an object that represents the PKCS #1 encryption standard.</summary>
|
|
/// <returns>An object that represents the PKCS #1 encryption standard.</returns>
|
|
// Token: 0x170004E7 RID: 1255
|
|
// (get) Token: 0x060022E7 RID: 8935 RVA: 0x00002082 File Offset: 0x00000282
|
|
[Token(Token = "0x170004E7")]
|
|
public static RSAEncryptionPadding Pkcs1
|
|
{
|
|
[Token(Token = "0x60022E7")]
|
|
[Address(RVA = "0x10247A0", Offset = "0x10237A0", VA = "0x1810247A0")]
|
|
get
|
|
{
|
|
return null;
|
|
}
|
|
}
|
|
|
|
/// <summary>Gets an object that represents the Optimal Asymmetric Encryption Padding (OAEP) encryption standard with a SHA1 hash algorithm.</summary>
|
|
/// <returns>An object that represents the OAEP encryption standard with a SHA1 hash algorithm.</returns>
|
|
// Token: 0x170004E8 RID: 1256
|
|
// (get) Token: 0x060022E8 RID: 8936 RVA: 0x00002082 File Offset: 0x00000282
|
|
[Token(Token = "0x170004E8")]
|
|
public static RSAEncryptionPadding OaepSHA1
|
|
{
|
|
[Token(Token = "0x60022E8")]
|
|
[Address(RVA = "0x10245C0", Offset = "0x10235C0", VA = "0x1810245C0")]
|
|
get
|
|
{
|
|
return null;
|
|
}
|
|
}
|
|
|
|
/// <summary>Gets an object that represents the Optimal Asymmetric Encryption Padding (OAEP) encryption standard with a SHA256 hash algorithm.</summary>
|
|
/// <returns>An object that represents the OAEP encryption standard with a SHA256 hash algorithm.</returns>
|
|
// Token: 0x170004E9 RID: 1257
|
|
// (get) Token: 0x060022E9 RID: 8937 RVA: 0x00002082 File Offset: 0x00000282
|
|
[Token(Token = "0x170004E9")]
|
|
public static RSAEncryptionPadding OaepSHA256
|
|
{
|
|
[Token(Token = "0x60022E9")]
|
|
[Address(RVA = "0x1024680", Offset = "0x1023680", VA = "0x181024680")]
|
|
get
|
|
{
|
|
return null;
|
|
}
|
|
}
|
|
|
|
/// <summary>Gets an object that represents the Optimal Asymmetric Encryption Padding (OAEP) encryption standard with a SHA-384 hash algorithm.</summary>
|
|
/// <returns>An object that represents the OAEP encryption standard with a SHA384 hash algorithm.</returns>
|
|
// Token: 0x170004EA RID: 1258
|
|
// (get) Token: 0x060022EA RID: 8938 RVA: 0x00002082 File Offset: 0x00000282
|
|
[Token(Token = "0x170004EA")]
|
|
public static RSAEncryptionPadding OaepSHA384
|
|
{
|
|
[Token(Token = "0x60022EA")]
|
|
[Address(RVA = "0x10246E0", Offset = "0x10236E0", VA = "0x1810246E0")]
|
|
get
|
|
{
|
|
return null;
|
|
}
|
|
}
|
|
|
|
/// <summary>Gets an object that represents the Optimal Asymmetric Encryption Padding (OAEP) encryption standard with a SHA512 hash algorithm.</summary>
|
|
/// <returns>An object that represents the OAEP encryption standard with a SHA512 hash algorithm.</returns>
|
|
// Token: 0x170004EB RID: 1259
|
|
// (get) Token: 0x060022EB RID: 8939 RVA: 0x00002082 File Offset: 0x00000282
|
|
[Token(Token = "0x170004EB")]
|
|
public static RSAEncryptionPadding OaepSHA512
|
|
{
|
|
[Token(Token = "0x60022EB")]
|
|
[Address(RVA = "0x1024740", Offset = "0x1023740", VA = "0x181024740")]
|
|
get
|
|
{
|
|
return null;
|
|
}
|
|
}
|
|
|
|
// Token: 0x060022EC RID: 8940 RVA: 0x00002050 File Offset: 0x00000250
|
|
[Token(Token = "0x60022EC")]
|
|
[Address(RVA = "0x1024550", Offset = "0x1023550", VA = "0x181024550")]
|
|
private RSAEncryptionPadding(RSAEncryptionPaddingMode mode, HashAlgorithmName oaepHashAlgorithm)
|
|
{
|
|
}
|
|
|
|
/// <summary>Creates a new <see cref="T:System.Security.Cryptography.RSAEncryptionPadding" /> instance whose <see cref="P:System.Security.Cryptography.RSAEncryptionPadding.Mode" /> is <see cref="F:System.Security.Cryptography.RSAEncryptionPaddingMode.Oaep" /> with the given hash algorithm.</summary>
|
|
/// <param name="hashAlgorithm">The hash algorithm.</param>
|
|
/// <returns>An object whose mode is <see cref="P:System.Security.Cryptography.RSAEncryptionPadding.Mode" /> is <see cref="F:System.Security.Cryptography.RSAEncryptionPaddingMode.Oaep" /> with the hash algorithm specified by <paramref name="hashAlgorithm" />.</returns>
|
|
/// <exception cref="T:System.ArgumentException">The <see cref="P:System.Security.Cryptography.HashAlgorithmName.Name" /> property of <paramref name="hashAlgorithm" /> is either <see langword="null" /> or <see cref="F:System.String.Empty" />.</exception>
|
|
// Token: 0x060022ED RID: 8941 RVA: 0x00002082 File Offset: 0x00000282
|
|
[Token(Token = "0x60022ED")]
|
|
[Address(RVA = "0x1024170", Offset = "0x1023170", VA = "0x181024170")]
|
|
public static RSAEncryptionPadding CreateOaep(HashAlgorithmName hashAlgorithm)
|
|
{
|
|
return null;
|
|
}
|
|
|
|
/// <summary>Gets the padding mode represented by this <see cref="T:System.Security.Cryptography.RSAEncryptionPadding" /> instance.</summary>
|
|
/// <returns>A padding mode.</returns>
|
|
// Token: 0x170004EC RID: 1260
|
|
// (get) Token: 0x060022EE RID: 8942 RVA: 0x000168A8 File Offset: 0x00014AA8
|
|
[Token(Token = "0x170004EC")]
|
|
public RSAEncryptionPaddingMode Mode
|
|
{
|
|
[Token(Token = "0x60022EE")]
|
|
[Address(RVA = "0x40F000", Offset = "0x40E000", VA = "0x18040F000")]
|
|
get
|
|
{
|
|
return RSAEncryptionPaddingMode.Pkcs1;
|
|
}
|
|
}
|
|
|
|
/// <summary>Gets the hash algorithm used in conjunction with the <see cref="F:System.Security.Cryptography.RSAEncryptionPaddingMode.Oaep" /> padding mode. If the value of the <see cref="P:System.Security.Cryptography.RSAEncryptionPadding.Mode" /> property is not <see cref="F:System.Security.Cryptography.RSAEncryptionPaddingMode.Oaep" />, <see cref="P:System.Security.Cryptography.HashAlgorithmName.Name" /> is <see langword="null" />.</summary>
|
|
/// <returns>The hash algorithm.</returns>
|
|
// Token: 0x170004ED RID: 1261
|
|
// (get) Token: 0x060022EF RID: 8943 RVA: 0x000168C0 File Offset: 0x00014AC0
|
|
[Token(Token = "0x170004ED")]
|
|
public HashAlgorithmName OaepHashAlgorithm
|
|
{
|
|
[Token(Token = "0x60022EF")]
|
|
[Address(RVA = "0x4157B0", Offset = "0x4147B0", VA = "0x1804157B0")]
|
|
get
|
|
{
|
|
return default(HashAlgorithmName);
|
|
}
|
|
}
|
|
|
|
/// <summary>Returns the hash code of this <see cref="T:System.Security.Cryptography.RSAEncryptionPadding" /> object.</summary>
|
|
/// <returns>The hash code of this instance.</returns>
|
|
// Token: 0x060022F0 RID: 8944 RVA: 0x000168D8 File Offset: 0x00014AD8
|
|
[Token(Token = "0x60022F0")]
|
|
[Address(RVA = "0x1024350", Offset = "0x1023350", VA = "0x181024350", Slot = "2")]
|
|
public override int GetHashCode()
|
|
{
|
|
return 0;
|
|
}
|
|
|
|
// Token: 0x060022F1 RID: 8945 RVA: 0x000168F0 File Offset: 0x00014AF0
|
|
[Token(Token = "0x60022F1")]
|
|
[Address(RVA = "0xF7C460", Offset = "0xF7B460", VA = "0x180F7C460")]
|
|
private static int CombineHashCodes(int h1, int h2)
|
|
{
|
|
return 0;
|
|
}
|
|
|
|
/// <summary>Determines whether the current instance is equal to the specified object.</summary>
|
|
/// <param name="obj">The object to compare.</param>
|
|
/// <returns>
|
|
/// <see langword="true" /> if <paramref name="obj" /> is equal to the current instance; otherwise, <see langword="false" />.</returns>
|
|
// Token: 0x060022F2 RID: 8946 RVA: 0x00016908 File Offset: 0x00014B08
|
|
[Token(Token = "0x60022F2")]
|
|
[Address(RVA = "0x10242F0", Offset = "0x10232F0", VA = "0x1810242F0", Slot = "0")]
|
|
public override bool Equals(object obj)
|
|
{
|
|
return default(bool);
|
|
}
|
|
|
|
/// <summary>Determines whether the current instance is equal to the specified <see cref="T:System.Security.Cryptography.RSAEncryptionPadding" /> object.</summary>
|
|
/// <param name="other">The object to compare.</param>
|
|
/// <returns>
|
|
/// <see langword="true" /> if <paramref name="other" /> is equal to the current instance; otherwise, <see langword="false" />.</returns>
|
|
// Token: 0x060022F3 RID: 8947 RVA: 0x00016920 File Offset: 0x00014B20
|
|
[Token(Token = "0x60022F3")]
|
|
[Address(RVA = "0x1024220", Offset = "0x1023220", VA = "0x181024220", Slot = "4")]
|
|
public bool Equals(RSAEncryptionPadding other)
|
|
{
|
|
return default(bool);
|
|
}
|
|
|
|
/// <summary>Indicates whether two specified <see cref="T:System.Security.Cryptography.RSAEncryptionPadding" /> objects are equal.</summary>
|
|
/// <param name="left">The first object to compare.</param>
|
|
/// <param name="right">The second object to compare.</param>
|
|
/// <returns>
|
|
/// <see langword="true" /> if <see langword="left" /> and <see langword="right" /> are equal; otherwise, <see langword="false" />.</returns>
|
|
// Token: 0x060022F4 RID: 8948 RVA: 0x00016938 File Offset: 0x00014B38
|
|
[Token(Token = "0x60022F4")]
|
|
[Address(RVA = "0x1024860", Offset = "0x1023860", VA = "0x181024860")]
|
|
public static bool operator ==(RSAEncryptionPadding left, RSAEncryptionPadding right)
|
|
{
|
|
return default(bool);
|
|
}
|
|
|
|
/// <summary>Indicates whether two specified <see cref="T:System.Security.Cryptography.RSAEncryptionPadding" /> objects are unequal.</summary>
|
|
/// <param name="left">The first object to compare.</param>
|
|
/// <param name="right">The second object to compare.</param>
|
|
/// <returns>
|
|
/// <see langword="true" /> if <see langword="left" /> and <see langword="right" /> are not equal; otherwise, <see langword="false" />.</returns>
|
|
// Token: 0x060022F5 RID: 8949 RVA: 0x00016950 File Offset: 0x00014B50
|
|
[Token(Token = "0x60022F5")]
|
|
[Address(RVA = "0x1024880", Offset = "0x1023880", VA = "0x181024880")]
|
|
public static bool operator !=(RSAEncryptionPadding left, RSAEncryptionPadding right)
|
|
{
|
|
return default(bool);
|
|
}
|
|
|
|
/// <summary>Returns the string representation of the current <see cref="T:System.Security.Cryptography.RSAEncryptionPadding" /> instance.</summary>
|
|
/// <returns>The string representation of the current object.</returns>
|
|
// Token: 0x060022F6 RID: 8950 RVA: 0x00002082 File Offset: 0x00000282
|
|
[Token(Token = "0x60022F6")]
|
|
[Address(RVA = "0x10243C0", Offset = "0x10233C0", VA = "0x1810243C0", Slot = "3")]
|
|
public override string ToString()
|
|
{
|
|
return null;
|
|
}
|
|
|
|
// Token: 0x060022F8 RID: 8952 RVA: 0x00002050 File Offset: 0x00000250
|
|
[Token(Token = "0x60022F8")]
|
|
[Address(RVA = "0x1024590", Offset = "0x1023590", VA = "0x181024590")]
|
|
internal RSAEncryptionPadding()
|
|
{
|
|
}
|
|
|
|
// Token: 0x040013A2 RID: 5026
|
|
[Token(Token = "0x40013A2")]
|
|
private static readonly RSAEncryptionPadding s_pkcs1;
|
|
|
|
// Token: 0x040013A3 RID: 5027
|
|
[Token(Token = "0x40013A3")]
|
|
private static readonly RSAEncryptionPadding s_oaepSHA1;
|
|
|
|
// Token: 0x040013A4 RID: 5028
|
|
[Token(Token = "0x40013A4")]
|
|
private static readonly RSAEncryptionPadding s_oaepSHA256;
|
|
|
|
// Token: 0x040013A5 RID: 5029
|
|
[Token(Token = "0x40013A5")]
|
|
private static readonly RSAEncryptionPadding s_oaepSHA384;
|
|
|
|
// Token: 0x040013A6 RID: 5030
|
|
[Token(Token = "0x40013A6")]
|
|
private static readonly RSAEncryptionPadding s_oaepSHA512;
|
|
|
|
// Token: 0x040013A7 RID: 5031
|
|
[FieldOffset(Offset = "0x10")]
|
|
[Token(Token = "0x40013A7")]
|
|
private RSAEncryptionPaddingMode _mode;
|
|
|
|
// Token: 0x040013A8 RID: 5032
|
|
[FieldOffset(Offset = "0x18")]
|
|
[Token(Token = "0x40013A8")]
|
|
private HashAlgorithmName _oaepHashAlgorithm;
|
|
}
|
|
}
|