Skip to content

Wip policy api#33

Merged
pabuhler merged 11 commits into
mainfrom
wip-policy-api
May 14, 2026
Merged

Wip policy api#33
pabuhler merged 11 commits into
mainfrom
wip-policy-api

Conversation

@pabuhler

Copy link
Copy Markdown
Owner

No description provided.

pabuhler added 11 commits April 18, 2026 21:44
Includes a minima implementation and unit tests.
Fully replace old policy struct with new policy API.
Update SRTP core policy validation/stream init to consume the new policy layout, including MKI/key handling and null-null policy behavior.
Only validate policy once where it is passed in.
Remove policy lists, multiple policies now need to be add via srtp_add_stream API.
Migrate tests, fuzzer, and docs to the new API and expand policy API test coverage.
Use add and remove in the same way as the keys api.
The new policy api replaces the need for public srtp_crypto_policy_t.
If for some reason there is a need to explicitly set key lengths etc it
can be add to the policy api later.
It is a little unclear is a key should be provided or not.
Keep current behavior for now.
Add explicit policy tests for srtp_profile_null_sha1_80 and
srtp_profile_null_sha1_32. The tests verify that both profiles require a
16-byte master key and 14-byte salt.
@pabuhler pabuhler merged commit fd21462 into main May 14, 2026
91 of 92 checks passed
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.

1 participant