AsymmetricSignatureFormatter.CreateSignature Method
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
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[])
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
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)
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
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.