public override byte[] DoFinal() { byte[] buf = buffer.ToArray(); Reset(); return engine.ProcessBlock(buf, 0, buf.Length); }