Use crypto_sign_detached() instead of temporary buffers