Lines Matching refs:s
108 let s = SrtpSsrcState { in test_valid_packet_counter() localVariable
116 let counter = generate_counter(32846, s.rollover_counter, s.ssrc, &srtp_session_salt)?; in test_valid_packet_counter()
127 let mut s = SrtpSsrcState { in test_rollover_count() localVariable
133 let roc = s.next_rollover_count(65530); in test_rollover_count()
135 s.update_rollover_count(65530); in test_rollover_count()
138 s.next_rollover_count(0); in test_rollover_count()
139 s.next_rollover_count(0x4000); in test_rollover_count()
140 s.next_rollover_count(0x8000); in test_rollover_count()
141 s.next_rollover_count(0xFFFF); in test_rollover_count()
142 s.next_rollover_count(0); in test_rollover_count()
145 let roc = s.next_rollover_count(0); in test_rollover_count()
147 s.update_rollover_count(0); in test_rollover_count()
149 let roc = s.next_rollover_count(65530); in test_rollover_count()
154 s.update_rollover_count(65530); in test_rollover_count()
156 let roc = s.next_rollover_count(5); in test_rollover_count()
161 s.update_rollover_count(5); in test_rollover_count()
163 s.next_rollover_count(6); in test_rollover_count()
164 s.update_rollover_count(6); in test_rollover_count()
166 s.next_rollover_count(7); in test_rollover_count()
167 s.update_rollover_count(7); in test_rollover_count()
169 let roc = s.next_rollover_count(8); in test_rollover_count()
174 s.update_rollover_count(8); in test_rollover_count()
177 let roc = s.next_rollover_count(0x4000); in test_rollover_count()
182 s.update_rollover_count(0x4000); in test_rollover_count()
184 let roc = s.next_rollover_count(0x8000); in test_rollover_count()
189 s.update_rollover_count(0x8000); in test_rollover_count()
191 let roc = s.next_rollover_count(0xFFFF); in test_rollover_count()
196 s.update_rollover_count(0xFFFF); in test_rollover_count()
198 let roc = s.next_rollover_count(0); in test_rollover_count()