Прочетете на английски Редактиране

Споделяне чрез


DSA.TryCreateSignatureCore Method

Definition

Attempts to create the DSA signature for the specified hash value in the indicated format and place it into the provided buffer.

C#
protected virtual bool TryCreateSignatureCore(ReadOnlySpan<byte> hash, Span<byte> destination, System.Security.Cryptography.DSASignatureFormat signatureFormat, out int bytesWritten);

Parameters

hash
ReadOnlySpan<Byte>

The hash value to sign.

destination
Span<Byte>

The buffer to receive the signature.

signatureFormat
DSASignatureFormat

The encoding format to use for the signature.

bytesWritten
Int32

When this method returns, contains a value that indicates the number of bytes written to destination. This parameter is treated as uninitialized.

Returns

true if destination is large enough to receive the signature; otherwise, false.

Exceptions

An error occurred in the signing operation.

Applies to

Продукт Версии
.NET 5, 6, 7, 8, 9, 10