Sign in

    moonbit-community/rtc/srtp does not have a README file

    SrtpError

    pub(all) suberror SrtpError {
    InvalidPacket(String)
    AuthenticationFailed
    ReplayRejected
    KeyExpired
    CryptoUnavailable(String)
    } derive(Eq,
    Debug
    )

    Context

    pub struct Context {
    provider :
    Provider

    profile : ProtectionProfile
    rtp_material : SessionMaterial
    rtcp_material : SessionMaterial
    send_rtp_states : Map[UInt, RtpIndexState]
    receive_rtp_states : Map[UInt, RtpReceiveState]
    send_rtcp_indices : Map[UInt, UInt]
    receive_rtcp_states : Map[UInt, SrtcpReceiveState]
    rtp_replay_window : Int
    rtcp_replay_window : Int
    closed : Bool
    }

    Context::close

    fn Context::close(self : Context) -> Unit

    Context::decrypt_rtcp

    fn Context::decrypt_rtcp(self : Context, encrypted : Bytes) -> Bytes raise SrtpError

    Context::decrypt_rtp

    fn Context::decrypt_rtp(self : Context, encrypted : Bytes) -> Bytes raise SrtpError

    Context::encrypt_rtcp

    fn Context::encrypt_rtcp(self : Context, plaintext : Bytes) -> Bytes raise SrtpError

    Context::encrypt_rtp

    fn Context::encrypt_rtp(self : Context, plaintext : Bytes) -> Bytes raise SrtpError

    Context::new

    fn Context::new(profile~ : ProtectionProfile, master_key~ : Bytes, master_salt~ : Bytes, rtp_replay_window? : Int, rtcp_replay_window? : Int) -> Context raise SrtpError

    Context::profile

    fn Context::profile(self : Context) -> ProtectionProfile

    Context::protect_rtcp

    fn Context::protect_rtcp(self : Context, packets : Array[
    Packet
    ]) -> Bytes raise SrtpError

    Context::protect_rtp

    fn Context::protect_rtp(self : Context, packet :
    Packet
    ) -> Bytes raise SrtpError

    Context::unprotect_rtcp

    fn Context::unprotect_rtcp(self : Context, encrypted : Bytes) -> Array[
    Packet
    ] raise SrtpError

    Context::unprotect_rtp

    fn Context::unprotect_rtp(self : Context, encrypted : Bytes) ->
    Packet
    raise SrtpError

    ProtectionProfile

    pub(all) enum ProtectionProfile {
    Aes128CmHmacSha1_80
    Aes128CmHmacSha1_32
    AeadAes128Gcm
    AeadAes256Gcm
    } derive(Eq,
    Debug
    )

    ProtectionProfile::code

    fn ProtectionProfile::code(self : ProtectionProfile) -> UInt16

    ProtectionProfile::from_code

    fn ProtectionProfile::from_code(code : UInt16) -> ProtectionProfile raise SrtpError

    ProtectionProfile::key_length

    fn ProtectionProfile::key_length(self : ProtectionProfile) -> Int

    ProtectionProfile::rtcp_auth_tag_length

    fn ProtectionProfile::rtcp_auth_tag_length(self : ProtectionProfile) -> Int

    ProtectionProfile::rtp_auth_tag_length

    fn ProtectionProfile::rtp_auth_tag_length(self : ProtectionProfile) -> Int

    ProtectionProfile::salt_length

    fn ProtectionProfile::salt_length(self : ProtectionProfile) -> Int

    RtpIndexState

    type RtpIndexState

    RtpReceiveState

    type RtpReceiveState

    SessionMaterial

    type SessionMaterial

    SrtcpReceiveState

    type SrtcpReceiveState

    Powered by MoonBit

    Site sourceReport issuePackagesBuild queueSkillsStatistics

    © 2026 mooncakes.io