IKeyEncryptionKey
A key which is used to encrypt, or wrap, another key.
The Id of the key used to perform cryptographic operations for the client.
byte[] UnwrapKey(string algorithm, ReadOnlyMemory<byte> encryptedKey, CancellationToken cancellationToken = default)
Decrypts the specified encrypted key using the specified algorithm.
Task<byte[]> UnwrapKeyAsync(string algorithm, ReadOnlyMemory<byte> encryptedKey, CancellationToken cancellationToken = default)
Decrypts the specified encrypted key using the specified algorithm.
byte[] WrapKey(string algorithm, ReadOnlyMemory<byte> key, CancellationToken cancellationToken = default)
Encrypts the specified key using the specified algorithm.
Task<byte[]> WrapKeyAsync(string algorithm, ReadOnlyMemory<byte> key, CancellationToken cancellationToken = default)
Encrypts the specified key using the specified algorithm.