MCPcopy Create free account
hub / github.com/error311/FileRise / isAvailable

Method isAvailable

src/FileRise/Support/CryptoAtRest.php:36–44  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

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 {

Callers 11

decodeKeyStringMethod · 0.95
getMasterKeyOrNullMethod · 0.95
encryptFileInPlaceMethod · 0.95
decryptFileInPlaceMethod · 0.95
streamDecryptedMethod · 0.95
capabilitiesMethod · 0.80
encryptionPlanMethod · 0.80
encryptionJobStartMethod · 0.80
getConfigMethod · 0.80
setEncryptionKeyMethod · 0.80
handleUploadMethod · 0.80

Calls

no outgoing calls

Tested by

no test coverage detected