SHA512.Create 方法

定义

允许实例化此抽象类的特定实现。Allows specific implementations of this abstract class to be instantiated.

重载

Create()

创建 SHA512 的默认实现的实例。Creates an instance of the default implementation of SHA512.

Create(String)

创建 SHA512 的指定实现的实例。Creates an instance of a specified implementation of SHA512.

Create()

创建 SHA512 的默认实现的实例。Creates an instance of the default implementation of SHA512.

public:
 static System::Security::Cryptography::SHA512 ^ Create();
public static System.Security.Cryptography.SHA512 Create ();
static member Create : unit -> System.Security.Cryptography.SHA512
Public Shared Function Create () As SHA512

返回

SHA512 的新实例。A new instance of SHA512.

异常

使用算法时启用了美国联邦信息处理标准 (FIPS) 模式,但该算法与 FIPS 不兼容。The algorithm was used with Federal Information Processing Standards (FIPS) mode enabled, but is not FIPS compatible.

另请参阅

Create(String)

创建 SHA512 的指定实现的实例。Creates an instance of a specified implementation of SHA512.

public:
 static System::Security::Cryptography::SHA512 ^ Create(System::String ^ hashName);
public static System.Security.Cryptography.SHA512 Create (string hashName);
static member Create : string -> System.Security.Cryptography.SHA512
Public Shared Function Create (hashName As String) As SHA512

参数

hashName
String

要使用的 SHA512 的特定实现的名称。The name of the specific implementation of SHA512 to be used.

返回

使用指定实现的 SHA512 的新实例。A new instance of SHA512 using the specified implementation.

异常

hashName 参数描述的算法在使用中已启用联邦信息处理标准 (FIPS) 模式,但与 FIPS 不兼容。The algorithm described by the hashName parameter was used with Federal Information Processing Standards (FIPS) mode enabled, but is not FIPS compatible.

注解

的可能的hashName值包括 SHA512、SHA51、SHA512Managed 和 SHA512CryptoServiceProvider.. 和.。Possible values for hashName are SHA512, System.Security.Cryptography.SHA51, System.Security.Cryptography.SHA512Managed, and System.Security.Cryptography.SHA512CryptoServiceProvider.

另请参阅

适用于