crypto: don't pollute the global namespace with sg_next()