7 #ifndef IFM3D_CRYPTO_CRYPTO_H
8 #define IFM3D_CRYPTO_CRYPTO_H
25 SealedBox(
const std::vector<uint8_t>& public_key,
26 const std::optional<
const std::vector<uint8_t>>& private_key =
31 std::vector<uint8_t> Encrypt(
const std::string& plaintext);
32 std::string Decrypt(
const std::vector<uint8_t>& ciphertext);
35 std::vector<uint8_t> _public_key;
36 std::optional<std::vector<uint8_t>> _private_key;
39 std::vector<uint8_t> random_nonce();
43 #endif // IFM3D_CRYPTO_CRYPTO_H