Compartir a través de


IAuthenticatedEncryptorFactory.CreateEncryptorInstance(IKey) Método

Definición

Crea una IAuthenticatedEncryptor instancia basada en el especificado Descriptor.

public:
 Microsoft::AspNetCore::DataProtection::AuthenticatedEncryption::IAuthenticatedEncryptor ^ CreateEncryptorInstance(Microsoft::AspNetCore::DataProtection::KeyManagement::IKey ^ key);
public Microsoft.AspNetCore.DataProtection.AuthenticatedEncryption.IAuthenticatedEncryptor CreateEncryptorInstance (Microsoft.AspNetCore.DataProtection.KeyManagement.IKey key);
public Microsoft.AspNetCore.DataProtection.AuthenticatedEncryption.IAuthenticatedEncryptor? CreateEncryptorInstance (Microsoft.AspNetCore.DataProtection.KeyManagement.IKey key);
abstract member CreateEncryptorInstance : Microsoft.AspNetCore.DataProtection.KeyManagement.IKey -> Microsoft.AspNetCore.DataProtection.AuthenticatedEncryption.IAuthenticatedEncryptor
Public Function CreateEncryptorInstance (key As IKey) As IAuthenticatedEncryptor

Parámetros

key
IKey

Devoluciones

Instancia de IAuthenticatedEncryptor.

Comentarios

Para un determinado Descriptor, las dos instancias devueltas por este método deben considerarse equivalentes, por ejemplo, la carga devuelta por el método de uno Encrypt(ArraySegment<Byte>, ArraySegment<Byte>) debe ser consumible por el método del Decrypt(ArraySegment<Byte>, ArraySegment<Byte>) otro.

Se aplica a