Rediger

Del via


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 cli::array <System::Byte> ^ CreateSignature(cli::array <System::Byte> ^ rgbHash);
public abstract byte[] CreateSignature (byte[] rgbHash);
abstract member CreateSignature : byte[] -> byte[]
Public MustOverride Function CreateSignature (rgbHash As Byte()) As Byte()

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

CreateSignature(HashAlgorithm)

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

Creates the signature from the specified hash value.

public:
 virtual cli::array <System::Byte> ^ CreateSignature(System::Security::Cryptography::HashAlgorithm ^ hash);
public virtual byte[] CreateSignature (System.Security.Cryptography.HashAlgorithm hash);
abstract member CreateSignature : System.Security.Cryptography.HashAlgorithm -> byte[]
override this.CreateSignature : System.Security.Cryptography.HashAlgorithm -> byte[]
Public Overridable Function CreateSignature (hash As HashAlgorithm) As Byte()

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