scripts
This commit is contained in:
@@ -0,0 +1,40 @@
|
||||
using System;
|
||||
using System.Runtime.InteropServices;
|
||||
|
||||
namespace System.Security.Cryptography
|
||||
{
|
||||
/// <summary>Computes the <see cref="T:System.Security.Cryptography.SHA256" /> hash for the input data. </summary>
|
||||
// Token: 0x0200052E RID: 1326
|
||||
[ComVisible(true)]
|
||||
public abstract class SHA256 : HashAlgorithm
|
||||
{
|
||||
/// <summary>Initializes a new instance of <see cref="T:System.Security.Cryptography.SHA256" />.</summary>
|
||||
// Token: 0x060030A0 RID: 12448 RVA: 0x000A6ABC File Offset: 0x000A4CBC
|
||||
protected SHA256()
|
||||
{
|
||||
this.HashSizeValue = 256;
|
||||
}
|
||||
|
||||
/// <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" />.</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>
|
||||
/// <PermissionSet>
|
||||
/// <IPermission class="System.Security.Permissions.SecurityPermission, mscorlib, Version=2.0.3600.0, Culture=neutral, PublicKeyToken=b77a5c561934e089" version="1" Flags="UnmanagedCode" />
|
||||
/// </PermissionSet>
|
||||
// Token: 0x060030A1 RID: 12449 RVA: 0x000A6AD0 File Offset: 0x000A4CD0
|
||||
public new static SHA256 Create()
|
||||
{
|
||||
return SHA256.Create("System.Security.Cryptography.SHA256");
|
||||
}
|
||||
|
||||
/// <summary>Creates an instance of a specified implementation of <see cref="T:System.Security.Cryptography.SHA256" />.</summary>
|
||||
/// <returns>A new instance of <see cref="T:System.Security.Cryptography.SHA256" /> using the specified implementation.</returns>
|
||||
/// <param name="hashName">The name of the specific implementation of <see cref="T:System.Security.Cryptography.SHA256" /> to be used. </param>
|
||||
/// <exception cref="T:System.Reflection.TargetInvocationException">The algorithm described by the <paramref name="hashName" /> parameter was used with Federal Information Processing Standards (FIPS) mode enabled, but is not FIPS compatible.</exception>
|
||||
// Token: 0x060030A2 RID: 12450 RVA: 0x000A6ADC File Offset: 0x000A4CDC
|
||||
public new static SHA256 Create(string hashName)
|
||||
{
|
||||
return (SHA256)CryptoConfig.CreateFromName(hashName);
|
||||
}
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user