class BaseSRTPCryptoContext
extends java.lang.Object
Modifier and Type | Field and Description |
---|---|
protected byte[] |
authKey
Derived session authentication key
|
protected SRTPCipherCTR |
cipherCtr
implements the counter cipher mode for RTP according to RFC 3711
|
protected SRTPCipherF8 |
cipherF8
F8 mode cipher
|
protected byte[] |
encKey
Derived session encryption key
|
protected byte[] |
ivStore
Temp store.
|
protected org.bouncycastle.crypto.Mac |
mac
The HMAC object we used to do packet authentication
|
protected byte[] |
masterKey
Master encryption key
|
protected byte[] |
masterSalt
Master salting key
|
protected SRTPPolicy |
policy
Encryption / Authentication policy for this session
|
protected byte[] |
rbStore
Temp store.
|
protected static long |
REPLAY_WINDOW_SIZE
The replay check windows size.
|
protected long |
replayWindow
Bit mask for replay check
|
protected byte[] |
saltKey
Derived session salting key
|
protected int |
ssrc
RTP/RTCP SSRC of this cryptographic context
|
protected byte[] |
tagStore
Temp store.
|
protected byte[] |
tempStore
this is a working store, used by some methods to avoid new operations
the methods must use this only to store results for immediate processing
|
Modifier | Constructor and Description |
---|---|
protected |
BaseSRTPCryptoContext(int ssrc) |
protected |
BaseSRTPCryptoContext(int ssrc,
byte[] masterK,
byte[] masterS,
SRTPPolicy policy) |
Modifier and Type | Method and Description |
---|---|
protected void |
authenticatePacketHMAC(RawPacket pkt,
int rocIn)
Authenticates a packet.
|
void |
close()
Closes this crypto context.
|
int |
getAuthTagLength()
Gets the authentication tag length of this SRTP cryptographic context
|
int |
getMKILength()
Gets the MKI length of this SRTP cryptographic context
|
int |
getSSRC()
Gets the SSRC of this SRTP cryptographic context
|
protected static final long REPLAY_WINDOW_SIZE
protected final byte[] authKey
protected final SRTPCipherCTR cipherCtr
protected final SRTPCipherF8 cipherF8
protected final byte[] encKey
protected final byte[] ivStore
protected final org.bouncycastle.crypto.Mac mac
protected final byte[] masterKey
protected final byte[] masterSalt
protected final SRTPPolicy policy
protected final byte[] rbStore
protected long replayWindow
protected final byte[] saltKey
protected final int ssrc
protected final byte[] tagStore
protected final byte[] tempStore
protected BaseSRTPCryptoContext(int ssrc)
protected BaseSRTPCryptoContext(int ssrc, byte[] masterK, byte[] masterS, SRTPPolicy policy)
protected void authenticatePacketHMAC(RawPacket pkt, int rocIn)
tagStore
.pkt
- the RTP packet to be authenticatedrocIn
- Roll-Over-Counterpublic void close()
public int getAuthTagLength()
public int getMKILength()
public int getSSRC()
Jitsi, the OpenSource Java VoIP and Instant Messaging client.
Distributable under Apache license.