Make AesEncrypter disposable (#19)

This commit is contained in:
2022-06-07 12:49:39 +02:00
committed by GitHub
parent a46fde652d
commit 3c741ab969
2 changed files with 7 additions and 2 deletions
@@ -6,7 +6,7 @@ using System.Security.Utilities;
namespace System.Security.Encryption
{
public sealed class AesEncrypter : ISymmetricEncrypter
public sealed class AesEncrypter : ISymmetricEncrypter, IDisposable
{
private readonly Aes aes;
@@ -218,5 +218,10 @@ namespace System.Security.Encryption
{
return new MemoryStream(value);
}
public void Dispose()
{
this.aes.Dispose();
}
}
}