RootEncoder
Toggle table of contents
2.8.0
release
Target filter
release
Switch theme
Search in API
Skip to content
RootEncoder
rtsp
/
com.pedro.rtsp.utils
/
CryptoUtils
Crypto
Utils
class
CryptoUtils
(
cryptoProperties
:
CryptoProperties
)
Created by pedro on 11/7/25.
Crypto class used to encrypt in SRTP implementation RFC 3711
Members
Constructors
Crypto
Utils
Link copied to clipboard
constructor
(
cryptoProperties
:
CryptoProperties
)
Functions
calculate
Hmac
Link copied to clipboard
fun
calculateHmac
(
buffer
:
ByteArray
,
roc
:
Int
?
=
null
)
:
ByteArray
encrypt
Link copied to clipboard
fun
encrypt
(
buffer
:
ByteArray
,
ivData
:
ByteArray
)
:
ByteArray
generate
Iv
Link copied to clipboard
fun
generateIv
(
ssrc
:
Long
,
index
:
Long
)
:
ByteArray