| 41 | namespace encrypt_config { |
| 42 | |
| 43 | EncryptConfig::EncryptConfig(const std::string& minifi_home) : minifi_home_(minifi_home) { |
| 44 | if (sodium_init() < 0) { |
| 45 | throw std::runtime_error{"Could not initialize the libsodium library!"}; |
| 46 | } |
| 47 | // encryption/decryption depends on the libsodium library which needs to be initialized |
| 48 | keys_ = getEncryptionKeys(); |
| 49 | } |
| 50 | |
| 51 | EncryptConfig::EncryptionType EncryptConfig::encryptSensitiveProperties() const { |
| 52 | encryptSensitiveProperties(keys_); |
nothing calls this directly
no outgoing calls
no test coverage detected