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

use size_t for all memory length variables #675

Merged
merged 2 commits into from
Jan 8, 2024
Merged

Conversation

pabuhler
Copy link
Member

@pabuhler pabuhler commented Jan 5, 2024

This change effects both public API and internal API and variables. It is meant to provide a consistent interface that reduces the amount of casts and increases readability of the code.

Part of #671.

This change effects both public API and internal API and variables. It is meant to provide a consistent interface that reduces the amount of casts and increases readability of the code.

Part of cisco#671.
@pabuhler pabuhler requested a review from paulej January 5, 2024 14:06
{
srtp_aes_icm_ctx_t *c = (srtp_aes_icm_ctx_t *)cv;
unsigned int bytes_to_encr = *enc_len;
unsigned int bytes_to_encr = (unsigned int)*enc_len;
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Why is this one not also size_t?

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Because changing it led to a lot of other changes in in the aes code that I think require more understanding. Should maybe do it as it's own commit.

@pabuhler pabuhler merged commit cce898a into cisco:main Jan 8, 2024
33 checks passed
@pabuhler pabuhler deleted the use-size_t branch January 8, 2024 14:14
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.

2 participants