|
LiveKit C++ SDK
Real-time audio/video SDK for C++
|
#include <e2ee.h>
Public Member Functions | |
| KeyProvider (const KeyProvider &)=delete | |
| KeyProvider & | operator= (const KeyProvider &)=delete |
| KeyProvider (KeyProvider &&) noexcept=default | |
| KeyProvider & | operator= (KeyProvider &&) noexcept=default |
| const KeyProviderOptions & | options () const |
| Returns the options used to initialize this KeyProvider. | |
| void | setSharedKey (const std::vector< std::uint8_t > &key, int key_index=0) |
| Sets the shared key for the given key slot. | |
| std::vector< std::uint8_t > | exportSharedKey (int key_index=0) const |
| Exports the shared key for a given key slot. | |
| std::vector< std::uint8_t > | ratchetSharedKey (int key_index=0) |
| Ratchets the shared key at key_index and returns the newly derived key. | |
| void | setKey (const std::string &participant_identity, const std::vector< std::uint8_t > &key, int key_index=0) |
| Sets a key for a specific participant identity. | |
| std::vector< std::uint8_t > | exportKey (const std::string &participant_identity, int key_index=0) const |
| Exports a participant-specific key. | |
| std::vector< std::uint8_t > | ratchetKey (const std::string &participant_identity, int key_index=0) |
| Ratchets a participant-specific key and returns the new key. | |
Friends | |
| class | E2EEManager |
If your application requires key rotation during the lifetime of a single room or unique keys per participant (such as when implementing the MEGOLM or MLS protocol), you' can do it via key provider and frame cryptor. refer https://docs.livekit.io/home/client/encryption/#custom-key-provider doe details