BaseKeyProvider

class BaseKeyProvider(ratchetSalt: String = defaultRatchetSalt, uncryptedMagicBytes: String = defaultMagicBytes, ratchetWindowSize: Int = defaultRatchetWindowSize, var enableSharedKey: Boolean = true, failureTolerance: Int = defaultFailureTolerance, keyRingSize: Int = defaultKeyRingSize, discardFrameWhenCryptorNotReady: Boolean = defaultDiscardFrameWhenCryptorNotReady) : KeyProvider

Constructors

Link copied to clipboard
constructor(ratchetSalt: String = defaultRatchetSalt, uncryptedMagicBytes: String = defaultMagicBytes, ratchetWindowSize: Int = defaultRatchetWindowSize, enableSharedKey: Boolean = true, failureTolerance: Int = defaultFailureTolerance, keyRingSize: Int = defaultKeyRingSize, discardFrameWhenCryptorNotReady: Boolean = defaultDiscardFrameWhenCryptorNotReady)

Properties

Link copied to clipboard
open override var enableSharedKey: Boolean
Link copied to clipboard
open override val rtcKeyProvider: FrameCryptorKeyProvider

Functions

Link copied to clipboard
open override fun exportKey(participantId: String, keyIndex: Int?): ByteArray
Link copied to clipboard
open override fun exportSharedKey(keyIndex: Int?): ByteArray
Link copied to clipboard
open override fun ratchetKey(participantId: String, keyIndex: Int?): ByteArray
Link copied to clipboard
open override fun ratchetSharedKey(keyIndex: Int?): ByteArray
Link copied to clipboard
open override fun setKey(key: String, participantId: String?, keyIndex: Int?)

Set a key for a participant

Link copied to clipboard
open override fun setSharedKey(key: String, keyIndex: Int?): Boolean
Link copied to clipboard
open override fun setSifTrailer(trailer: ByteArray)