Async load database encrypted bytes to memory while entering password

This commit is contained in:
AlexVallat
2013-07-17 19:19:17 +01:00
parent 75297418c5
commit 689f468b8f
4 changed files with 47 additions and 19 deletions

View File

@@ -162,17 +162,6 @@ namespace KeePassLib.Serialization
finally { CommonCleanUpRead(sSource, hashedStream); }
}
public static void CopyStream(Stream input, Stream output)
{
byte[] buffer = new byte[4096];
int read;
while ((read = input.Read(buffer, 0, buffer.Length)) > 0)
{
output.Write(buffer, 0, read);
}
output.Seek(0, SeekOrigin.Begin);
}
private void CommonCleanUpRead(Stream sSource, HashingStreamEx hashedStream)
{
hashedStream.Close();