Edit

Share via


DSA.CreateSignatureCore(ReadOnlySpan<Byte>, DSASignatureFormat) Method

Definition

Creates the DSA signature for the specified hash value in the indicated format.

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()

Parameters

hash
ReadOnlySpan<Byte>

The hash value to sign.

signatureFormat
DSASignatureFormat

The encoding format to use for the signature.

Returns

Byte[]

The DSA signature for the specified data.

Exceptions

An error occurred in the signing operation.

Applies to