X509SignatureGenerator.SignData(Byte[], HashAlgorithmName) 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.
When overridden in a derived class, produces a signature for the specified data using the specified hash algorithm and encodes the results appropriately for X.509 signature values.
public:
abstract cli::array <System::Byte> ^ SignData(cli::array <System::Byte> ^ data, System::Security::Cryptography::HashAlgorithmName hashAlgorithm);
public abstract byte[] SignData (byte[] data, System.Security.Cryptography.HashAlgorithmName hashAlgorithm);
abstract member SignData : byte[] * System.Security.Cryptography.HashAlgorithmName -> byte[]
Public MustOverride Function SignData (data As Byte(), hashAlgorithm As HashAlgorithmName) As Byte()
Parameters
- data
- Byte[]
The input data for which to produce the signature.
- hashAlgorithm
- HashAlgorithmName
The hash algorithm to use to produce the signature.
Returns
Byte[]
The X.509 signature for the specified data.
Applies to
Samarbejd med os på GitHub
Kilden til dette indhold kan findes på GitHub, hvor du også kan oprette og gennemse problemer og pullanmodninger. Du kan få flere oplysninger i vores vejledning til bidragydere.