allow srtp-debug-helper to specify the ROC

Change-Id: Iecef6446724fa86bfc9da408e6d41420b23afbe3
pull/214/head
Richard Fuchs 10 years ago
parent 0395a24f73
commit 6f2dc0046a

@ -25,11 +25,14 @@ else {
$pack = pack("H*", $pack);
}
my $roc = $ARGV[3] // 0;
print("Packet length: " . length($pack) . " bytes\n");
my ($dec, $roc, $tag, $hmac) = SRTP::decrypt_rtp($cs, $skey, $ssalt, $sauth, 0, $pack);
my ($dec, $roc, $tag, $hmac) = SRTP::decrypt_rtp($cs, $skey, $ssalt, $sauth, $roc, $pack);
print("Auth tag from packet: " . unpack("H*", $tag) . "\n");
print("Computer auth tag: " . unpack("H*", $hmac) . "\n");
print("Computed auth tag: " . unpack("H*", $hmac) . "\n");
print("Decoded packet: " . unpack("H*", $dec) . "\n");

Loading…
Cancel
Save