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.SHA384" /> hash for the input data.</summary>
|
|
// Token: 0x02000530 RID: 1328
|
|
[ComVisible(true)]
|
|
public abstract class SHA384 : HashAlgorithm
|
|
{
|
|
/// <summary>Initializes a new instance of <see cref="T:System.Security.Cryptography.SHA384" />.</summary>
|
|
// Token: 0x060030AA RID: 12458 RVA: 0x000A708C File Offset: 0x000A528C
|
|
protected SHA384()
|
|
{
|
|
this.HashSizeValue = 384;
|
|
}
|
|
|
|
/// <summary>Creates an instance of the default implementation of <see cref="T:System.Security.Cryptography.SHA384" />.</summary>
|
|
/// <returns>A new instance of <see cref="T:System.Security.Cryptography.SHA384" />.</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: 0x060030AB RID: 12459 RVA: 0x000A70A0 File Offset: 0x000A52A0
|
|
public new static SHA384 Create()
|
|
{
|
|
return SHA384.Create("System.Security.Cryptography.SHA384");
|
|
}
|
|
|
|
/// <summary>Creates an instance of a specified implementation of <see cref="T:System.Security.Cryptography.SHA384" />.</summary>
|
|
/// <returns>A new instance of <see cref="T:System.Security.Cryptography.SHA384" /> using the specified implementation.</returns>
|
|
/// <param name="hashName">The name of the specific implementation of <see cref="T:System.Security.Cryptography.SHA384" /> 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: 0x060030AC RID: 12460 RVA: 0x000A70AC File Offset: 0x000A52AC
|
|
public new static SHA384 Create(string hashName)
|
|
{
|
|
return (SHA384)CryptoConfig.CreateFromName(hashName);
|
|
}
|
|
}
|
|
}
|