DSA.CreateSignatureCore(ReadOnlySpan<Byte>, DSASignatureFormat) 方法

定义

采用指定格式为指定的哈希值创建 DSA 签名。

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

参数

hash
ReadOnlySpan<Byte>

要签名的哈希值。

signatureFormat
DSASignatureFormat

要用于签名的编码格式。

返回

Byte[]

指定数据的 DSA 签名。

例外

签名时出错。

适用于