Additional harnessing on VFS activation

This commit is contained in:
Christophe Deschamps 2021-12-17 11:45:41 +01:00
parent 5f640551dd
commit be282ff47b

View file

@ -186,7 +186,10 @@ import os
log("[VFS] Unable to retrieve encrypted key.", .error)
return false
}
let secret = decrypt(encryptedText: encryptedKey)
guard let secret = decrypt(encryptedText: encryptedKey) else {
log(log: "[VFS] Unable to decryt encrypted key.", level: .error)
return false
}
Factory.Instance.setVfsEncryption(encryptionModule: 2, secret: secret, secretSize: 32)
log("[VFS] activated", .info)
return true