[misc] Improve dependency of crypto modules