[Mono-list] Re: MemoryStream problem

ginga@kit.hi-ho.ne.jp ginga@kit.hi-ho.ne.jp
Mon, 24 Feb 2003 10:58:03 +0900


Hi,

> It may (or may not) be a MemoryStream issue. The current CryptoStream
> implementation is very rudimentary - it was able to run some samples from MS
> but it's still far from complete. It's also one of the few crypto class that
> still doesn't have any unit tests.

I assume it is because MemoryStream.Close() resets its internal buffer
and CryptoStream.FlushFinalBlock() closes the stream.

I don't know that Close() disposes internal buffer by ECMA spec.
MS stream apparently holds.

Regards,
  Atsushi Eno