-
Notifications
You must be signed in to change notification settings - Fork 2.6k
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
Additional cipher_info getters #5149
Additional cipher_info getters #5149
Conversation
Signed-off-by: Max Fillinger <max@max-fillinger.net>
Signed-off-by: Max Fillinger <max@max-fillinger.net>
0e9df7f
to
01bd69b
Compare
Signed-off-by: Max Fillinger <max@max-fillinger.net>
Signed-off-by: Max Fillinger <max@max-fillinger.net>
01bd69b
to
7568d1a
Compare
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Looks mostly good to me (and thanks for including tests!), except that I think some types are wrong and some documentation is missing.
Signed-off-by: Max Fillinger <max@max-fillinger.net>
- Document unit (bytes) - Explain what happens for stream ciphers Signed-off-by: Max Fillinger <max@max-fillinger.net>
66acc93
to
e85bb70
Compare
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
A couple of nits, but looks good otherwise.
Signed-off-by: Max Fillinger <max@max-fillinger.net>
Signed-off-by: Max Fillinger <max@max-fillinger.net>
92886bb
to
72abd8a
Compare
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM - thanks!
Description
While trying to add mbedtls 3 support to OpenVPN, we found that we need some additional getter functions that are not yet in the dev branch. This pull request adds functions that get the IV and block size from a
cipher_info
struct and functions that check if the IV or key size of a cipher are variable.We also need some more getter functions in other parts of the library, but I figured it's easier if I keep the pull requests small.
Status
READY
Requires Backporting
NO
Migrations
NO
Todos