AsymmetricSignatureFormatter.CreateSignature Method
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.
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. |
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
.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 |
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.
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 |
.NET umsögn
.NET er opið verkefni. Veldu tengil til að gefa umsögn: