• Home
  • Features
  • Pricing
  • Docs
  • Announcements
  • Sign In

pions / srtp
42%
master: 41%

Build:
Build:
LAST BUILD BRANCH: optimize-new-ctr
DEFAULT BRANCH: master
Repo Added 28 Jan 2019 02:51AM UTC
Files 13
Badge
Embed ▾
README BADGES
x

If you need to use a raster PNG badge, change the '.svg' to '.png' in the link

Markdown

Textile

RDoc

HTML

Rst

LAST BUILD ON BRANCH optimize-session-auth-tag
branch: optimize-session-auth-tag
CHANGE BRANCH
x
Reset
  • optimize-session-auth-tag
  • 10--fix-out-of-bounds-access
  • constant-time-compare
  • issue-3
  • keying
  • master
  • optimize-generate-counter
  • optimize-new-ctr
  • optimize-write-rtp
  • read-buffer
  • session-alloc
  • update-rtcp
  • v1.0.1
  • v1.0.2
  • v1.0.3
  • v1.0.4
  • v1.1.0
  • v1.1.1
  • write-batch

pending completion
50

Pull #6

travis-ci

web-flow
Optimize session auth tag generation

I profiled my application and crypto/hmac.New was taking 5.71% of the
total CPU time. Since the session key does not change, you can call
crypto/hmac.Reset() instead of making a new object. This reuses previous
work done for the key.

With a separate generateAuthTag function for RTP/RTCP, it's now possible
to pass in the ROC instead of appending it to the buffer. This primarily
helps DecryptRTP, as it was otherwise doing an extra append just for the
ROC.

name                 old time/op    new time/op    delta
EncryptRTP-8           2.20µs ± 5%    2.00µs ± 4%   -9.00%
EncryptRTPInPlace-8    2.20µs ± 1%    1.97µs ± 5%  -10.52%
DecryptRTP-8           2.13µs ± 3%    1.79µs ± 4%  -16.18%

name                 old alloc/op   new alloc/op   delta
EncryptRTP-8           1.23kB ± 0%    0.79kB ± 0%  -36.04%
EncryptRTPInPlace-8    1.10kB ± 0%    0.66kB ± 0%  -40.22%
DecryptRTP-8           1.17kB ± 0%    0.69kB ± 0%  -40.75%

name                 old allocs/op  new allocs/op  delta
EncryptRTP-8             11.0 ± 0%       7.0 ± 0%  -36.36%
EncryptRTPInPlace-8      10.0 ± 0%       6.0 ± 0%  -40.00%
DecryptRTP-8             12.0 ± 0%       7.0 ± 0%  -41.67%
Pull Request #6: Optimize session auth tag generation

49 of 49 new or added lines in 3 files covered. (100.0%)

319 of 761 relevant lines covered (41.92%)

10.69 hits per line

Relevant lines Covered
Build:
Build:
761 RELEVANT LINES 319 COVERED LINES
10.69 HITS PER LINE
Source Files on optimize-session-auth-tag
  • List 0
  • Changed 4
  • Source Changed 3
  • Coverage Changed 3
Coverage ∆ File Lines Relevant Covered Missed Hits/Line

Recent builds

Builds Branch Commit Type Ran Committer Via Coverage
50 optimize-session-auth-tag Optimize session auth tag generation I profiled my application and crypto/hmac.New was taking 5.71% of the total CPU time. Since the session key does not change, you can call crypto/hmac.Reset() instead of making a new object. This reuses previou... Pull #6 17 Feb 2019 01:36PM UTC web-flow travis-ci pending completion  
49 optimize-session-auth-tag Optimize session auth tag generation I profiled my application and crypto/hmac.New was taking 5.71% of the total CPU time. Since the session key does not change, you can call crypto/hmac.Reset() instead of making a new object. This reuses previou... push 17 Feb 2019 01:36PM UTC kixelated travis-ci pending completion  
40 optimize-session-auth-tag Optimize session auth tag generation I profiled my application and crypto/hmac.New was taking 5.71% of the total CPU time. Since the session key does not change, you can call crypto/hmac.Reset() instead of making a new object. This reuses previou... Pull #6 16 Feb 2019 08:44AM UTC web-flow travis-ci pending completion  
39 optimize-session-auth-tag Optimize session auth tag generation I profiled my application and crypto/hmac.New was taking 5.71% of the total CPU time. Since the session key does not change, you can call crypto/hmac.Reset() instead of making a new object. This reuses previou... push 16 Feb 2019 08:44AM UTC kixelated travis-ci pending completion  
38 optimize-session-auth-tag Optimize session auth tag generation I profiled my application and crypto/hmac.New was taking 5.71% of the total CPU time. Since the session key does not change, you can call crypto/hmac.Reset() instead of making a new object. This reuses previou... push 16 Feb 2019 08:41AM UTC kixelated travis-ci pending completion  
31 optimize-session-auth-tag Optimize session auth tag generation I profiled my application and crypto/hmac.New was taking 5.71% of the total CPU time. Since the session key does not change, you can call crypto/hmac.Reset() instead of making a new object. This reuses previou... Pull #6 16 Feb 2019 04:20AM UTC web-flow travis-ci pending completion  
30 optimize-session-auth-tag Optimize session auth tag generation I profiled my application and crypto/hmac.New was taking 5.71% of the total CPU time. Since the session key does not change, you can call crypto/hmac.Reset() instead of making a new object. This reuses previou... push 16 Feb 2019 04:14AM UTC kixelated travis-ci pending completion  
See All Builds (96)
  • Repo on GitHub
STATUS · Troubleshooting · Open an Issue · Sales · Support · CAREERS · ENTERPRISE · START FREE · SCHEDULE DEMO
ANNOUNCEMENTS · TWITTER · TOS & SLA · Supported CI Services · What's a CI service? · Automated Testing

© 2025 Coveralls, Inc