41 lines
2.2 KiB
C#
41 lines
2.2 KiB
C#
using System;
|
|
using System.Runtime.InteropServices;
|
|
|
|
namespace System.Security.Cryptography
|
|
{
|
|
/// <summary>Computes the <see cref="T:System.Security.Cryptography.SHA512" /> hash for the input data. </summary>
|
|
// Token: 0x02000532 RID: 1330
|
|
[ComVisible(true)]
|
|
public abstract class SHA512 : HashAlgorithm
|
|
{
|
|
/// <summary>Initializes a new instance of <see cref="T:System.Security.Cryptography.SHA512" />.</summary>
|
|
// Token: 0x060030B8 RID: 12472 RVA: 0x000A7710 File Offset: 0x000A5910
|
|
protected SHA512()
|
|
{
|
|
this.HashSizeValue = 512;
|
|
}
|
|
|
|
/// <summary>Creates an instance of the default implementation of <see cref="T:System.Security.Cryptography.SHA512" />.</summary>
|
|
/// <returns>A new instance of <see cref="T:System.Security.Cryptography.SHA512" />.</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: 0x060030B9 RID: 12473 RVA: 0x000A7724 File Offset: 0x000A5924
|
|
public new static SHA512 Create()
|
|
{
|
|
return SHA512.Create("System.Security.Cryptography.SHA512");
|
|
}
|
|
|
|
/// <summary>Creates an instance of a specified implementation of <see cref="T:System.Security.Cryptography.SHA512" />.</summary>
|
|
/// <returns>A new instance of <see cref="T:System.Security.Cryptography.SHA512" /> using the specified implementation.</returns>
|
|
/// <param name="hashName">The name of the specific implementation of <see cref="T:System.Security.Cryptography.SHA512" /> 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: 0x060030BA RID: 12474 RVA: 0x000A7730 File Offset: 0x000A5930
|
|
public new static SHA512 Create(string hashName)
|
|
{
|
|
return (SHA512)CryptoConfig.CreateFromName(hashName);
|
|
}
|
|
}
|
|
}
|