Partager via


CryptographyClient.IKeyEncryptionKey.WrapKeyAsync Méthode

Définition

Chiffre la clé spécifiée à l'aide de l'algorithme spécifié.

System.Threading.Tasks.Task<byte[]> IKeyEncryptionKey.WrapKeyAsync (string algorithm, ReadOnlyMemory<byte> key, System.Threading.CancellationToken cancellationToken);
abstract member Azure.Core.Cryptography.IKeyEncryptionKey.WrapKeyAsync : string * ReadOnlyMemory<byte> * System.Threading.CancellationToken -> System.Threading.Tasks.Task<byte[]>
override this.Azure.Core.Cryptography.IKeyEncryptionKey.WrapKeyAsync : string * ReadOnlyMemory<byte> * System.Threading.CancellationToken -> System.Threading.Tasks.Task<byte[]>
Function WrapKeyAsync (algorithm As String, key As ReadOnlyMemory(Of Byte), cancellationToken As CancellationToken) As Task(Of Byte()) Implements IKeyEncryptionKey.WrapKeyAsync

Paramètres

algorithm
String

Algorithme de habillage de clé utilisé pour chiffrer la clé spécifiée.

key
ReadOnlyMemory<Byte>

Clé à chiffrer.

cancellationToken
CancellationToken

CancellationToken Contrôle de la durée de vie de la requête.

Retours

Task<Byte[]>

Octets de clé chiffrés.

Implémente

S’applique à