sha256_via: ensure that found nonce is copied back into output data buffer Also, some minor cleanups, removing unused args.