KeyVaultCryptoProviderSignAsync Method

Signs a block of data with a key stored in the Azure Key Vault using either the RSA-512 or ES-256K algorithm as appropriate for the key.

Definition

Namespace: InnerDrive.Azure
Assembly: InnerDrive.Azure (in InnerDrive.Azure.dll) Version: 5.2.9417.0
C#
public Task<string?> SignAsync(
	string data,
	string keyName,
	CancellationToken cancellationToken = default
)

Parameters

data  String
The data to sign in Base-64 format
keyName  String
The name of the key in your Key Vault to use
cancellationToken  CancellationToken  (Optional)
A cancellation token

Return Value

TaskString
A Base-64 encoded string containing the signed data

Implements

ICryptoProviderSignAsync(String, String, CancellationToken)

Remarks

This version only supports RSA and EC keys.

See Also