MCPcopy Create free account
hub / github.com/SIPp/sipp / setPacketIV

Method setPacketIV

src/jlsrtp.cpp:397–414  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

395}
396
397int JLSRTP::setPacketIV()
398{
399 unsigned int ivSize = 0;
400
401 ivSize = _packetIV.size();
402 assert(ivSize == JLSRTP_SALTING_KEY_LENGTH);
403 if (ivSize == JLSRTP_SALTING_KEY_LENGTH)
404 {
405 // Copy 'IV' into high-order bytes [0..13] -- low-order bytes [14..15] remain zero
406 memcpy(_cipherstate.ivec, _packetIV.data(), _packetIV.size());
407
408 return 0;
409 }
410 else
411 {
412 return -1;
413 }
414}
415
416int JLSRTP::computePacketIV(unsigned long long i)
417{

Callers

nothing calls this directly

Calls 1

sizeMethod · 0.80

Tested by

no test coverage detected