Share via


RSAKeyVault.SignHash(Byte[], HashAlgorithmName, RSASignaturePadding) Method

Definition

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

Byte[]

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