SignatureProvider.Sign Method

Definition

Overloads

Sign(Byte[])

This must be overridden to produce a signature over the 'input'.

Sign(Byte[], Int32, Int32)

Produces a signature over the specified region of the input.

Sign(ReadOnlySpan<Byte>, Span<Byte>, Int32)

Produces a signature over the data and writes it to destination.

Sign(Byte[])

This must be overridden to produce a signature over the 'input'.

public abstract byte[] Sign (byte[] input);
abstract member Sign : byte[] -> byte[]
Public MustOverride Function Sign (input As Byte()) As Byte()

Parameters

input
Byte[]

bytes to sign.

Returns

Byte[]

signed bytes

Applies to

Sign(Byte[], Int32, Int32)

Produces a signature over the specified region of the input.

public virtual byte[] Sign (byte[] input, int offset, int count);
abstract member Sign : byte[] * int * int -> byte[]
override this.Sign : byte[] * int * int -> byte[]
Public Overridable Function Sign (input As Byte(), offset As Integer, count As Integer) As Byte()

Parameters

input
Byte[]

The bytes to produce a signature over.

offset
Int32

The offset to specify the beginning of the region.

count
Int32

The count to specify the end of the region.

Returns

Byte[]

The signature bytes.

Applies to

Sign(ReadOnlySpan<Byte>, Span<Byte>, Int32)

Produces a signature over the data and writes it to destination.

public virtual bool Sign (ReadOnlySpan<byte> data, Span<byte> destination, out int bytesWritten);
abstract member Sign : ReadOnlySpan<byte> * Span<byte> * int -> bool
override this.Sign : ReadOnlySpan<byte> * Span<byte> * int -> bool
Public Overridable Function Sign (data As ReadOnlySpan(Of Byte), destination As Span(Of Byte), ByRef bytesWritten As Integer) As Boolean

Parameters

data
ReadOnlySpan<Byte>

The bytes to produce a signature over.

destination
Span<Byte>

The pre-allocated span where signature bytes will be placed.

bytesWritten
Int32

The number of bytes written into the signature span.

Returns

returns true if creation of signature succeeded, false otherwise.

Applies to