From fcdc91db88d9f375eb805dca4c5970090662be34 Mon Sep 17 00:00:00 2001 From: Robert Yokota Date: Mon, 29 Jul 2024 13:35:19 -0700 Subject: [PATCH] Fix Azure algorithm to RsaOaep256 --- .../AzureKmsClient.cs | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) 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 +}