mirror of
https://github.com/AlexMacocian/SystemExtensions.git
synced 2026-07-22 17:19:30 +00:00
Make AesEncrypter disposable (#19)
This commit is contained in:
@@ -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();
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user