CryptographyModelFactory.EncryptParameters Method
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
Initializes a new instance of the EncryptParameters class for mocking purposes.
public static Azure.Security.KeyVault.Keys.Cryptography.EncryptParameters EncryptParameters (Azure.Security.KeyVault.Keys.Cryptography.EncryptionAlgorithm algorithm, byte[] plaintext, byte[] iv = default, byte[] additionalAuthenticatedData = default);
static member EncryptParameters : Azure.Security.KeyVault.Keys.Cryptography.EncryptionAlgorithm * byte[] * byte[] * byte[] -> Azure.Security.KeyVault.Keys.Cryptography.EncryptParameters
Public Shared Function EncryptParameters (algorithm As EncryptionAlgorithm, plaintext As Byte(), Optional iv As Byte() = Nothing, Optional additionalAuthenticatedData As Byte() = Nothing) As EncryptParameters
Parameters
- algorithm
- EncryptionAlgorithm
Sets the Algorithm property.
- additionalAuthenticatedData
- Byte[]
Sets the AdditionalAuthenticatedData property.
Returns
A new instance of the EncryptParameters class for mocking purposes.
Exceptions
plaintext
is null.
Applies to
Совместная работа с нами на GitHub
Источник этого содержимого можно найти на GitHub, где также можно создавать и просматривать проблемы и запросы на вытягивание. Дополнительные сведения см. в нашем руководстве для участников.
Azure SDK for .NET