mirror of
https://github.com/AlexMacocian/SystemExtensions.git
synced 2026-07-16 14:39:28 +00:00
24 lines
564 B
C#
24 lines
564 B
C#
using System.IO;
|
|
using System.Security.Cryptography;
|
|
|
|
namespace System.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);
|
|
}
|
|
}
|
|
}
|