sha2: Write final hash directly to output buffer