SignDigestAsync(ReadOnlyMemory, HashAlgorithmName, CancellationToken) Method

Definition

Assembly Broadside.dll

Signs digest asynchronously, for a signer that waits on a device or a remote service.

ValueTask<byte[]> SignDigestAsync(ReadOnlyMemory<byte> digest, HashAlgorithmName digestAlgorithm, CancellationToken cancellationToken)

Parameters

digest
ReadOnlyMemory<Byte>

The digest to sign.

digestAlgorithm
HashAlgorithmName

The algorithm digest was computed with.

cancellationToken
CancellationToken

Cancels the signing.

Returns

Remarks

ISO 32000-2 §12.8.3.3. SignAsync(Stream, IPdfSigner, PdfSignatureOptions?, CancellationToken) calls this, Sign(Stream, IPdfSigner, PdfSignatureOptions?) calls SignDigest(ReadOnlySpan<Byte>, HashAlgorithmName). The default implementation calls SignDigest(ReadOnlySpan<Byte>, HashAlgorithmName).