()
| 34 | private static ?string $cachedKey = null; |
| 35 | |
| 36 | public static function isAvailable(): bool |
| 37 | { |
| 38 | return function_exists('sodium_crypto_secretstream_xchacha20poly1305_init_push') |
| 39 | && function_exists('sodium_crypto_secretstream_xchacha20poly1305_init_pull') |
| 40 | && function_exists('sodium_crypto_secretstream_xchacha20poly1305_push') |
| 41 | && function_exists('sodium_crypto_secretstream_xchacha20poly1305_pull') |
| 42 | && defined('SODIUM_CRYPTO_SECRETSTREAM_XCHACHA20POLY1305_KEYBYTES') |
| 43 | && defined('SODIUM_CRYPTO_SECRETSTREAM_XCHACHA20POLY1305_HEADERBYTES'); |
| 44 | } |
| 45 | |
| 46 | public static function masterKeyIsConfigured(): bool |
| 47 | { |
no outgoing calls
no test coverage detected