Fix SRTCP packet index being 47 bits (it's 31 bits)

dtls-srtp
Jonas Herzig 2018-11-08 17:13:50 +01:00
parent 1a1d40a175
commit febcc71ac8
1 changed files with 2 additions and 2 deletions

View File

@ -161,10 +161,10 @@ pub struct SrtcpContext {
// TODO: support other fields // TODO: support other fields
pub master_key: Vec<u8>, pub master_key: Vec<u8>,
pub master_salt: Vec<u8>, pub master_salt: Vec<u8>,
pub highest_recv_index: PacketIndex, // NOTE: 47-bits pub highest_recv_index: u32, // NOTE: 31-bits
pub encryption: EncryptionAlgorithm, pub encryption: EncryptionAlgorithm,
pub authentication: AuthenticationAlgorithm, pub authentication: AuthenticationAlgorithm,
pub replay_list: SplaySet<PacketIndex>, pub replay_list: SplaySet<u32>,
pub session_encr_key: Vec<u8>, pub session_encr_key: Vec<u8>,
pub session_salt_key: Vec<u8>, pub session_salt_key: Vec<u8>,
pub session_auth_key: Vec<u8>, pub session_auth_key: Vec<u8>,