Skip to content

Commit 0da59b2

Browse files
authored
Fix Azure algorithm to RsaOaep256 (#2270)
* Fix Azure algorithm to RsaOaep256 * Update Azure Identity * Revert "Update Azure Identity" This reverts commit be6dddb.
1 parent eb4d2c1 commit 0da59b2

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

src/Confluent.SchemaRegistry.Encryption.Azure/AzureKmsClient.cs

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -31,14 +31,14 @@ public bool DoesSupport(string uri)
3131
public async Task<byte[]> Encrypt(byte[] plaintext)
3232
{
3333
var client = GetCryptographyClient();
34-
var result = await client.EncryptAsync(EncryptionAlgorithm.RsaOaep, plaintext).ConfigureAwait(false);
34+
var result = await client.EncryptAsync(EncryptionAlgorithm.RsaOaep256, plaintext).ConfigureAwait(false);
3535
return result.Ciphertext;
3636
}
3737

3838
public async Task<byte[]> Decrypt(byte[] ciphertext)
3939
{
4040
var client = GetCryptographyClient();
41-
var result = await client.DecryptAsync(EncryptionAlgorithm.RsaOaep, ciphertext).ConfigureAwait(false);
41+
var result = await client.DecryptAsync(EncryptionAlgorithm.RsaOaep256, ciphertext).ConfigureAwait(false);
4242
return result.Plaintext;
4343
}
4444

@@ -51,4 +51,4 @@ private CryptographyClient GetCryptographyClient()
5151
return kmsClient;
5252
}
5353
}
54-
}
54+
}

0 commit comments

Comments
 (0)