-if (!defined('SSODIUM_CRYPTO_STREAM_XCHACHA20_KEYBYTES')) {
- define('SODIUM_CRYPTO_STREAM_XCHACHA20_KEYBYTES', 32);
-}
+if (extension_loaded('sodium')) {
+ if (!defined('SODIUM_CRYPTO_STREAM_XCHACHA20_KEYBYTES')) {
+ define('SODIUM_CRYPTO_STREAM_XCHACHA20_KEYBYTES', 32);
+ }