<PackageReference Include="Microsoft.Azure.KeyVault.Core" Version="3.0.1" />

Microsoft.Azure.KeyVault.Core.IKey

public interface IKey : IDisposable
Interface for Keys

The default encryption algorithm for this key

string DefaultKeyWrapAlgorithm { get; }

The default key wrap algorithm for this key

string DefaultSignatureAlgorithm { get; }

The default signature algorithm for this key

string Kid { get; }

The key identifier

Task<byte[]> DecryptAsync(byte[] ciphertext, byte[] iv, byte[] authenticationData, byte[] authenticationTag, string algorithm, CancellationToken token)

Decrypts the specified cipher text.

Task<Tuple<byte[], byte[], string>> EncryptAsync(byte[] plaintext, byte[] iv, byte[] authenticationData, string algorithm, CancellationToken token)

Encrypts the specified plain text.

Task<Tuple<byte[], string>> SignAsync(byte[] digest, string algorithm, CancellationToken token)

Signs the specified digest.

Task<byte[]> UnwrapKeyAsync(byte[] encryptedKey, string algorithm, CancellationToken token)

Decrypts the specified key material.

Task<bool> VerifyAsync(byte[] digest, byte[] signature, string algorithm, CancellationToken token)

Verifies the specified signature value

Task<Tuple<byte[], string>> WrapKeyAsync(byte[] key, string algorithm, CancellationToken token)

Encrypts the specified key material.