Fix build failure without cryptography library.