This commit is contained in:
lsreevatsa 2006-03-29 11:59:07 +00:00
parent b7b75b8ab7
commit cd5d118158

View File

@ -241,8 +241,8 @@ namespace sscs.crypto
fsDecrypt.Close();
return null;
}
ulong fileLen = fsDecrypt.Length - HASH_SIZE;
byte[] fromEncrypt = new byte[fileLen];
ulong fileLen = (ulong)(fsDecrypt.Length - HASH_SIZE);
byte[] fromEncrypt = new byte[fileLen];
//Read the data out of the crypto stream.
int bytesRead = csDecrypt.Read(fromEncrypt, 0, fromEncrypt.Length);