45 lines
2.7 KiB
C#
45 lines
2.7 KiB
C#
using System;
|
|
using System.Runtime.InteropServices;
|
|
using Cpp2IlInjected;
|
|
|
|
namespace System.Security.Cryptography
|
|
{
|
|
/// <summary>Computes the <see cref="T:System.Security.Cryptography.SHA256" /> hash for the input data.</summary>
|
|
// Token: 0x02000428 RID: 1064
|
|
[Token(Token = "0x2000428")]
|
|
[ComVisible(true)]
|
|
public abstract class SHA256 : HashAlgorithm
|
|
{
|
|
/// <summary>Initializes a new instance of <see cref="T:System.Security.Cryptography.SHA256" />.</summary>
|
|
// Token: 0x06002500 RID: 9472 RVA: 0x00002050 File Offset: 0x00000250
|
|
[Token(Token = "0x6002500")]
|
|
[Address(RVA = "0x1031B70", Offset = "0x1030B70", VA = "0x181031B70")]
|
|
protected SHA256()
|
|
{
|
|
}
|
|
|
|
/// <summary>Creates an instance of the default implementation of <see cref="T:System.Security.Cryptography.SHA256" />.</summary>
|
|
/// <returns>A new instance of <see cref="T:System.Security.Cryptography.SHA256" />. On the .NET Framework, this method creates an instance of the <see cref="T:System.Security.Cryptography.SHA256Managed" /> class if FIPS mode is not active; if FIPS mode is active, it creates an instance of the <see cref="T:System.Security.Cryptography.SHA256Cng" /> class. On .NET Core, it returns an instance of a private class derived from <see cref="T:System.Security.Cryptography.SHA256" />.</returns>
|
|
/// <exception cref="T:System.Reflection.TargetInvocationException">On the .NET Framework 4.6.1 and earlier versions only: The algorithm was used with Federal Information Processing Standards (FIPS) mode enabled, but is not FIPS compatible.</exception>
|
|
// Token: 0x06002501 RID: 9473 RVA: 0x00002082 File Offset: 0x00000282
|
|
[Token(Token = "0x6002501")]
|
|
[Address(RVA = "0x1031A70", Offset = "0x1030A70", VA = "0x181031A70")]
|
|
public new static SHA256 Create()
|
|
{
|
|
return null;
|
|
}
|
|
|
|
/// <summary>Creates an instance of a specified implementation of <see cref="T:System.Security.Cryptography.SHA256" />.</summary>
|
|
/// <param name="hashName">The name of the specific implementation of <see cref="T:System.Security.Cryptography.SHA256" /> to be used.</param>
|
|
/// <returns>A new instance of <see cref="T:System.Security.Cryptography.SHA256" /> using the specified implementation.</returns>
|
|
/// <exception cref="T:System.Reflection.TargetInvocationException">On the .NET Framework only: FIPS mode is enabled, but <paramref name="hashName" /> requests <see cref="T:System.Security.Cryptography.SHA256Managed" />, which is not FIPS compatible.</exception>
|
|
// Token: 0x06002502 RID: 9474 RVA: 0x00002082 File Offset: 0x00000282
|
|
[Token(Token = "0x6002502")]
|
|
[Address(RVA = "0x10319E0", Offset = "0x10309E0", VA = "0x1810319E0")]
|
|
public new static SHA256 Create(string hashName)
|
|
{
|
|
return null;
|
|
}
|
|
}
|
|
}
|