Added mono-specific AesStream code