AsymmetricSignatureFormatter.CreateSignature Method

Definition

Creates the signature.

Overloads

CreateSignature(Byte[])

When overridden in a derived class, creates the signature for the specified data.

CreateSignature(HashAlgorithm)

Creates the signature from the specified hash value.

CreateSignature(Byte[])

Source:
AsymmetricSignatureFormatter.cs
Source:
AsymmetricSignatureFormatter.cs
Source:
AsymmetricSignatureFormatter.cs

When overridden in a derived class, creates the signature for the specified data.

public abstract byte[] CreateSignature (byte[] rgbHash);

Parameters

rgbHash
Byte[]

The data to be signed.

Returns

Byte[]

The digital signature for the rgbHash parameter.

Remarks

You must specify a key and a hash algorithm before calling this method.

See also

Applies to

.NET 9 og aðrar útgáfur
Vara Útgáfur
.NET Core 2.0, Core 2.1, Core 2.2, Core 3.0, Core 3.1, 5, 6, 7, 8, 9
.NET Framework 1.1, 2.0, 3.0, 3.5, 4.0, 4.5, 4.5.1, 4.5.2, 4.6, 4.6.1, 4.6.2, 4.7, 4.7.1, 4.7.2, 4.8, 4.8.1
.NET Standard 2.0, 2.1

CreateSignature(HashAlgorithm)

Source:
AsymmetricSignatureFormatter.cs
Source:
AsymmetricSignatureFormatter.cs
Source:
AsymmetricSignatureFormatter.cs

Creates the signature from the specified hash value.

public virtual byte[] CreateSignature (System.Security.Cryptography.HashAlgorithm hash);

Parameters

hash
HashAlgorithm

The hash algorithm to use to create the signature.

Returns

Byte[]

The signature for the specified hash value.

Exceptions

The hash parameter is null.

Remarks

This method sets the hash algorithm to be used, then returns the signature of the input hash algorithm value.

See also

Applies to

.NET 9 og aðrar útgáfur
Vara Útgáfur
.NET Core 2.0, Core 2.1, Core 2.2, Core 3.0, Core 3.1, 5, 6, 7, 8, 9
.NET Framework 1.1, 2.0, 3.0, 3.5, 4.0, 4.5, 4.5.1, 4.5.2, 4.6, 4.6.1, 4.6.2, 4.7, 4.7.1, 4.7.2, 4.8, 4.8.1
.NET Standard 2.0, 2.1