ECDsa.SignHashCore(ReadOnlySpan<Byte>, DSASignatureFormat) 方法

定义

采用指定格式为指定的哈希值计算 ECDSA 签名。

protected:
 virtual cli::array <System::Byte> ^ SignHashCore(ReadOnlySpan<System::Byte> hash, System::Security::Cryptography::DSASignatureFormat signatureFormat);
protected virtual byte[] SignHashCore (ReadOnlySpan<byte> hash, System.Security.Cryptography.DSASignatureFormat signatureFormat);
abstract member SignHashCore : ReadOnlySpan<byte> * System.Security.Cryptography.DSASignatureFormat -> byte[]
override this.SignHashCore : ReadOnlySpan<byte> * System.Security.Cryptography.DSASignatureFormat -> byte[]
Protected Overridable Function SignHashCore (hash As ReadOnlySpan(Of Byte), signatureFormat As DSASignatureFormat) As Byte()

参数

hash
ReadOnlySpan<Byte>

要签名的哈希值。

signatureFormat
DSASignatureFormat

用于签名的编码格式。

返回

Byte[]

指定数据的 ECDSA 签名。

例外

签名时出错。

适用于