I have the following code:
MemoryStream mem = new MemoryStream();
CryptoStream crypto = new CryptoStream (mem, encrypt,
CryptoStreamMode.Write);
crypto.Write (plain, offset, length);
crypto.FlushFinalBlock();
byte[] retVal = mem.ToArray();
The code for MemoryStream.ToArray() starts with:
public virtual byte[] ToArray() {
byte[] outBuffer = new byte[capacity];
What's happening is that outBuffer is coming back null! I'm only
requesting 3864 bytes, so I find that extremely odd.
Any advice?
Thanks,
-elan
_______________________________________________
Mono-list maillist - [EMAIL PROTECTED]
http://lists.ximian.com/mailman/listinfo/mono-list