-
Notifications
You must be signed in to change notification settings - Fork 510
mbedtls files changed and cmake instruction added to support MbedTLS … #782
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
base: main
Are you sure you want to change the base?
mbedtls files changed and cmake instruction added to support MbedTLS … #782
Conversation
1791e08 to
40c43bf
Compare
|
How can I check CI before push my code? |
|
I normally just try to replicate the environment, or else do a lot of pushing to a PR and then clean up and squash before creating the final PR. Just looking quickly I would guess you need to update the CI scripts to use MbedTLS 4 or ? |
I tested this scripts on Ubuntu 24.04 and Ubuntu 22.04. Maybe you face python errors because of absence of some packages. Please install them via pip. If you face no python error, you could create a .sh file and source it:
|
|
@seyednasermoravej I made some change to get the CI to pass, hope it was OK to push to this branch. You can do what you want with them. I would suggest rebasing and removing the commits which are not related to getting mbtls working. |
e9c82bb to
6c4dadb
Compare
Apologies for my delayed response. Is there anything in the code that could be improved? |
|
@seyednasermoravej I am not sure you need the change to the readme as when this is merged then it should just build as before. |
The aes interface in libsrtp expects to be able to call encrypt multiple times in a progressive manor. A call to set the IV should reset for a new set of operations. This interface is not so oblivious and there is currently no indication of the last call. This should really be improved.
Pass dst_len as it is the actual buffer size. Remove unused code, full_tag & ciphertext_len.
6c4dadb to
2bf6953
Compare
I removed the "README.md" changes from the branch "migration-to-psa-crypto" |
Hi Cisco team, and Merry Christmas 🎄
This PR is a draft for the migration to Mbed TLS v4.0.
For easier review and comparison, I’ve kept both the legacy code and the new implementation side by side.
There are still some unnecessary fields in a few structures, and in some places the implementation can be improved (for example, using
statusinstead oferrCode). I intentionally kept the changes as minimal as possible for now; we can clean up and refine these parts in follow-up steps once the migration direction is agreed upon.Feedback and suggestions are very welcome.