diff --git a/src/Confluent.SchemaRegistry.Encryption.Azure/AzureKmsClient.cs b/src/Confluent.SchemaRegistry.Encryption.Azure/AzureKmsClient.cs index 783a9354f..2ef3f1cd7 100644 --- a/src/Confluent.SchemaRegistry.Encryption.Azure/AzureKmsClient.cs +++ b/src/Confluent.SchemaRegistry.Encryption.Azure/AzureKmsClient.cs @@ -31,14 +31,14 @@ public bool DoesSupport(string uri) public async Task Encrypt(byte[] plaintext) { var client = GetCryptographyClient(); - var result = await client.EncryptAsync(EncryptionAlgorithm.RsaOaep, plaintext).ConfigureAwait(false); + var result = await client.EncryptAsync(EncryptionAlgorithm.RsaOaep256, plaintext).ConfigureAwait(false); return result.Ciphertext; } public async Task Decrypt(byte[] ciphertext) { var client = GetCryptographyClient(); - var result = await client.DecryptAsync(EncryptionAlgorithm.RsaOaep, ciphertext).ConfigureAwait(false); + var result = await client.DecryptAsync(EncryptionAlgorithm.RsaOaep256, ciphertext).ConfigureAwait(false); return result.Plaintext; } @@ -51,4 +51,4 @@ private CryptographyClient GetCryptographyClient() return kmsClient; } } -} \ No newline at end of file +}