RSAKeyVault.SignHash(Byte[], HashAlgorithmName, RSASignaturePadding) 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.
Computes the signature for the specified hash value by encrypting it with the private key using the specified padding.
public override byte[] SignHash (byte[] hash, System.Security.Cryptography.HashAlgorithmName hashAlgorithm, System.Security.Cryptography.RSASignaturePadding padding);
override this.SignHash : byte[] * System.Security.Cryptography.HashAlgorithmName * System.Security.Cryptography.RSASignaturePadding -> byte[]
Public Overrides Function SignHash (hash As Byte(), hashAlgorithm As HashAlgorithmName, padding As RSASignaturePadding) As Byte()
Parameters
- hash
- Byte[]
The hash value of the data to be signed.
- hashAlgorithm
- HashAlgorithmName
The hash algorithm used to create the hash value of the data.
- padding
- RSASignaturePadding
The padding.
Returns
The RSA signature for the specified hash value.
Exceptions
Hash algorithm hashAlgorithm
with padding
padding is not supported.
The server returned an error. See Message for details returned from the server.
Applies to
Azure SDK for .NET