186 lines
8.0 KiB
C#
186 lines
8.0 KiB
C#
using System;
|
|
using Cpp2IlInjected;
|
|
|
|
namespace System.Security.Cryptography
|
|
{
|
|
/// <summary>Specifies the name of a cryptographic hash algorithm.</summary>
|
|
// Token: 0x020003C8 RID: 968
|
|
[Token(Token = "0x20003C8")]
|
|
public struct HashAlgorithmName : IEquatable<HashAlgorithmName>
|
|
{
|
|
/// <summary>Gets a hash algorithm name that represents "MD5".</summary>
|
|
/// <returns>A hash algorithm name that represents "MD5".</returns>
|
|
// Token: 0x1700046A RID: 1130
|
|
// (get) Token: 0x060020CE RID: 8398 RVA: 0x000143E8 File Offset: 0x000125E8
|
|
[Token(Token = "0x1700046A")]
|
|
public static HashAlgorithmName MD5
|
|
{
|
|
[Token(Token = "0x60020CE")]
|
|
[Address(RVA = "0x2DA9B40", Offset = "0x2DA8940", VA = "0x182DA9B40")]
|
|
get
|
|
{
|
|
return default(HashAlgorithmName);
|
|
}
|
|
}
|
|
|
|
/// <summary>Gets a hash algorithm name that represents "SHA1".</summary>
|
|
/// <returns>A hash algorithm name that represents "SHA1".</returns>
|
|
// Token: 0x1700046B RID: 1131
|
|
// (get) Token: 0x060020CF RID: 8399 RVA: 0x00014400 File Offset: 0x00012600
|
|
[Token(Token = "0x1700046B")]
|
|
public static HashAlgorithmName SHA1
|
|
{
|
|
[Token(Token = "0x60020CF")]
|
|
[Address(RVA = "0x2DA9B70", Offset = "0x2DA8970", VA = "0x182DA9B70")]
|
|
get
|
|
{
|
|
return default(HashAlgorithmName);
|
|
}
|
|
}
|
|
|
|
/// <summary>Gets a hash algorithm name that represents "SHA256".</summary>
|
|
/// <returns>A hash algorithm name that represents "SHA256".</returns>
|
|
// Token: 0x1700046C RID: 1132
|
|
// (get) Token: 0x060020D0 RID: 8400 RVA: 0x00014418 File Offset: 0x00012618
|
|
[Token(Token = "0x1700046C")]
|
|
public static HashAlgorithmName SHA256
|
|
{
|
|
[Token(Token = "0x60020D0")]
|
|
[Address(RVA = "0x2DA9BA0", Offset = "0x2DA89A0", VA = "0x182DA9BA0")]
|
|
get
|
|
{
|
|
return default(HashAlgorithmName);
|
|
}
|
|
}
|
|
|
|
/// <summary>Gets a hash algorithm name that represents "SHA384".</summary>
|
|
/// <returns>A hash algorithm name that represents "SHA384".</returns>
|
|
// Token: 0x1700046D RID: 1133
|
|
// (get) Token: 0x060020D1 RID: 8401 RVA: 0x00014430 File Offset: 0x00012630
|
|
[Token(Token = "0x1700046D")]
|
|
public static HashAlgorithmName SHA384
|
|
{
|
|
[Token(Token = "0x60020D1")]
|
|
[Address(RVA = "0x2DA9BD0", Offset = "0x2DA89D0", VA = "0x182DA9BD0")]
|
|
get
|
|
{
|
|
return default(HashAlgorithmName);
|
|
}
|
|
}
|
|
|
|
/// <summary>Gets a hash algorithm name that represents "SHA512".</summary>
|
|
/// <returns>A hash algorithm name that represents "SHA512".</returns>
|
|
// Token: 0x1700046E RID: 1134
|
|
// (get) Token: 0x060020D2 RID: 8402 RVA: 0x00014448 File Offset: 0x00012648
|
|
[Token(Token = "0x1700046E")]
|
|
public static HashAlgorithmName SHA512
|
|
{
|
|
[Token(Token = "0x60020D2")]
|
|
[Address(RVA = "0x2DA9C00", Offset = "0x2DA8A00", VA = "0x182DA9C00")]
|
|
get
|
|
{
|
|
return default(HashAlgorithmName);
|
|
}
|
|
}
|
|
|
|
/// <summary>Initializes a new instance of the <see cref="T:System.Security.Cryptography.HashAlgorithmName" /> structure with a custom name.</summary>
|
|
/// <param name="name">The custom hash algorithm name.</param>
|
|
// Token: 0x060020D3 RID: 8403 RVA: 0x00002050 File Offset: 0x00000250
|
|
[Token(Token = "0x60020D3")]
|
|
[Address(RVA = "0x461A30", Offset = "0x460830", VA = "0x180461A30")]
|
|
public HashAlgorithmName(string name)
|
|
{
|
|
}
|
|
|
|
/// <summary>Gets the underlying string representation of the algorithm name.</summary>
|
|
/// <returns>The string representation of the algorithm name, or <see langword="null" /> or <see cref="F:System.String.Empty" /> if no hash algorithm is available.</returns>
|
|
// Token: 0x1700046F RID: 1135
|
|
// (get) Token: 0x060020D4 RID: 8404 RVA: 0x00002082 File Offset: 0x00000282
|
|
[Token(Token = "0x1700046F")]
|
|
public string Name
|
|
{
|
|
[Token(Token = "0x60020D4")]
|
|
[Address(RVA = "0x41D090", Offset = "0x41BE90", VA = "0x18041D090")]
|
|
get
|
|
{
|
|
return null;
|
|
}
|
|
}
|
|
|
|
/// <summary>Returns the string representation of the current <see cref="T:System.Security.Cryptography.HashAlgorithmName" /> instance.</summary>
|
|
/// <returns>The string representation of the current <see cref="T:System.Security.Cryptography.HashAlgorithmName" /> instance.</returns>
|
|
// Token: 0x060020D5 RID: 8405 RVA: 0x00002082 File Offset: 0x00000282
|
|
[Token(Token = "0x60020D5")]
|
|
[Address(RVA = "0x2DA9AF0", Offset = "0x2DA88F0", VA = "0x182DA9AF0", Slot = "3")]
|
|
public override string ToString()
|
|
{
|
|
return null;
|
|
}
|
|
|
|
/// <summary>Returns a value that indicates whether the current instance and a specified object are equal.</summary>
|
|
/// <param name="obj">The object to compare with the current instance.</param>
|
|
/// <returns>
|
|
/// <see langword="true" /> if <paramref name="obj" /> is a <see cref="T:System.Security.Cryptography.HashAlgorithmName" /> object and its <see cref="P:System.Security.Cryptography.HashAlgorithmName.Name" /> property is equal to that of the current instance. The comparison is ordinal and case-sensitive.</returns>
|
|
// Token: 0x060020D6 RID: 8406 RVA: 0x00014460 File Offset: 0x00012660
|
|
[Token(Token = "0x60020D6")]
|
|
[Address(RVA = "0x2DA9A60", Offset = "0x2DA8860", VA = "0x182DA9A60", Slot = "0")]
|
|
public override bool Equals(object obj)
|
|
{
|
|
return default(bool);
|
|
}
|
|
|
|
/// <summary>Returns a value that indicates whether two <see cref="T:System.Security.Cryptography.HashAlgorithmName" /> instances are equal.</summary>
|
|
/// <param name="other">The object to compare with the current instance.</param>
|
|
/// <returns>
|
|
/// <see langword="true" /> if the <see cref="P:System.Security.Cryptography.HashAlgorithmName.Name" /> property of <paramref name="other" /> is equal to that of the current instance. The comparison is ordinal and case-sensitive.</returns>
|
|
// Token: 0x060020D7 RID: 8407 RVA: 0x00014478 File Offset: 0x00012678
|
|
[Token(Token = "0x60020D7")]
|
|
[Address(RVA = "0x2DA9A50", Offset = "0x2DA8850", VA = "0x182DA9A50", Slot = "4")]
|
|
public bool Equals(HashAlgorithmName other)
|
|
{
|
|
return default(bool);
|
|
}
|
|
|
|
/// <summary>Returns the hash code for the current instance.</summary>
|
|
/// <returns>The hash code for the current instance, or 0 if no <paramref name="name" /> value was supplied to the <see cref="T:System.Security.Cryptography.HashAlgorithmName" /> constructor.</returns>
|
|
// Token: 0x060020D8 RID: 8408 RVA: 0x00014490 File Offset: 0x00012690
|
|
[Token(Token = "0x60020D8")]
|
|
[Address(RVA = "0x29D2F40", Offset = "0x29D1D40", VA = "0x1829D2F40", Slot = "2")]
|
|
public override int GetHashCode()
|
|
{
|
|
return 0;
|
|
}
|
|
|
|
/// <summary>Determines whether two specified <see cref="T:System.Security.Cryptography.HashAlgorithmName" /> 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 both <paramref name="left" /> and <paramref name="right" /> have the same <see cref="P:System.Security.Cryptography.HashAlgorithmName.Name" /> value; otherwise, <see langword="false" />.</returns>
|
|
// Token: 0x060020D9 RID: 8409 RVA: 0x000144A8 File Offset: 0x000126A8
|
|
[Token(Token = "0x60020D9")]
|
|
[Address(RVA = "0x2DA9C30", Offset = "0x2DA8A30", VA = "0x182DA9C30")]
|
|
public static bool operator ==(HashAlgorithmName left, HashAlgorithmName right)
|
|
{
|
|
return default(bool);
|
|
}
|
|
|
|
/// <summary>Determines whether two specified <see cref="T:System.Security.Cryptography.HashAlgorithmName" /> objects are not 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 both <paramref name="left" /> and <paramref name="right" /> do not have the same <see cref="P:System.Security.Cryptography.HashAlgorithmName.Name" /> value; otherwise, <see langword="false" />.</returns>
|
|
// Token: 0x060020DA RID: 8410 RVA: 0x000144C0 File Offset: 0x000126C0
|
|
[Token(Token = "0x60020DA")]
|
|
[Address(RVA = "0x2DA9C40", Offset = "0x2DA8A40", VA = "0x182DA9C40")]
|
|
public static bool operator !=(HashAlgorithmName left, HashAlgorithmName right)
|
|
{
|
|
return default(bool);
|
|
}
|
|
|
|
// Token: 0x040012DE RID: 4830
|
|
[FieldOffset(Offset = "0x0")]
|
|
[Token(Token = "0x40012DE")]
|
|
private readonly string _name;
|
|
}
|
|
}
|