| #include "EncryptedConnection.h" |
| 6 |
| 7 | namespace tgcalls { |
| 8 |
| 9 | class SignalingEncryption { |
| 10 | public: |
| 11 | SignalingEncryption(EncryptionKey const &encryptionKey); |
| 12 | ~SignalingEncryption(); |
| 13 |
| 14 | absl::optional<rtc::CopyOnWriteBuffer> encryptOutgoing(std::vector<uint8_t> const &data); |
| 15 | absl::optional<rtc::CopyOnWriteBuffer> decryptIncoming(std::vector<uint8_t> const &data); |
| 16 |
| 17 | private: |
| 18 | std::unique_ptr<EncryptedConnection> _connection; |
| 19 | }; |
| 20 |
| 21 | } // namespace tgcalls |
| 22 |
| 23 | #endif |
| 24 |