7 #ifndef IFM3D_CRYPTO_CRYPTO_H
8 #define IFM3D_CRYPTO_CRYPTO_H
20 SealedBox(
const std::vector<uint8_t>& public_key,
21 const std::optional<
const std::vector<uint8_t>>& private_key =
26 std::vector<uint8_t> Encrypt(
const std::string& plaintext);
27 std::string Decrypt(
const std::vector<uint8_t>& ciphertext);
30 std::vector<uint8_t> public_key_;
31 std::optional<std::vector<uint8_t>> private_key_;
34 std::vector<uint8_t> RandomNonce();
38 #endif // IFM3D_CRYPTO_CRYPTO_H