cisco / libsrtp

Library for SRTP (Secure Realtime Transport Protocol)
Other
1.19k stars 472 forks source link

Call `set_aad` and `get_tag` in AEAD performance tests #614

Closed bifurcation closed 1 year ago

bifurcation commented 1 year ago

Right now, the cipher speed test in srtp_cipher_bits_per_second only calls set_iv and encrypt. In reality, when an AEAD cipher is used, there are also calls to set_aad and get_tag. This PR adds those calls to srtp_cipher_bits_per_second so that it more accurately reflects AEAD performance.