Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

V3 Playground #701

Draft
wants to merge 8 commits into
base: main
Choose a base branch
from
Draft

V3 Playground #701

wants to merge 8 commits into from

Conversation

pabuhler
Copy link
Member

A place to make visible and try out various changes that will be proposed for V3.

This PR will not be merged in in to main, but commits from this PR might be moved out to new PR's when they are ready for review & merging.

Note: the commit history of this branch will be rewritten often

A layer to the srtp driver test is added to be able to run the tests both in-place & not-in-place without duplicating the test.

The not-in-place functions are currently a minimal implementation using a memcpy.
The keystream prefix needs to be placed in auth tag before the auth is calculated. This was done for all protect / unprotect functions except unprotect_rtcp. Now functionality is aligned.
The mki_size member of the srtp_stream_ctx_t has the correct value at
all times, no need to manage the value of a separate mke_size variable.
The protect/unprotect api's can now operate both in-place or not in-place, depending on the requirements of the caller.
The length of the out buffer can now be checked to ensure there is sufficient space.

Tests are add to verify validation of the output buffer length.
They can now be reused in other tests.
Switch from err_check to CHECK_OK in srtp_driver.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

1 participant