File tree Expand file tree Collapse file tree 1 file changed +3
-3
lines changed
src/Confluent.SchemaRegistry.Encryption.Azure Expand file tree Collapse file tree 1 file changed +3
-3
lines changed Original file line number Diff line number Diff line change @@ -31,14 +31,14 @@ public bool DoesSupport(string uri)
31
31
public async Task < byte [ ] > Encrypt ( byte [ ] plaintext )
32
32
{
33
33
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 ) ;
35
35
return result . Ciphertext ;
36
36
}
37
37
38
38
public async Task < byte [ ] > Decrypt ( byte [ ] ciphertext )
39
39
{
40
40
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 ) ;
42
42
return result . Plaintext ;
43
43
}
44
44
@@ -51,4 +51,4 @@ private CryptographyClient GetCryptographyClient()
51
51
return kmsClient ;
52
52
}
53
53
}
54
- }
54
+ }
You can’t perform that action at this time.
0 commit comments