mirror of
https://github.com/AlexMacocian/SystemExtensions.git
synced 2026-07-15 22:29:28 +00:00
22 lines
558 B
C#
22 lines
558 B
C#
using System.IO;
|
|
using System.Security.Cryptography;
|
|
|
|
namespace SystemExtensions.NetStandard.Security.Utilities
|
|
{
|
|
internal sealed class NotClosingCryptoStream : CryptoStream
|
|
{
|
|
public NotClosingCryptoStream(Stream stream, ICryptoTransform transform, CryptoStreamMode mode)
|
|
: base(stream, transform, mode)
|
|
{
|
|
}
|
|
|
|
protected override void Dispose(bool disposing)
|
|
{
|
|
if (!this.HasFlushedFinalBlock)
|
|
this.FlushFinalBlock();
|
|
|
|
base.Dispose(false);
|
|
}
|
|
}
|
|
}
|