Skip to content

fix(sspi): tls connection: improve cipher block size calculation #272

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

Merged
merged 1 commit into from
Jul 26, 2024

Conversation

TheBestTvarynka
Copy link
Collaborator

Hi,
In this pull request, I've improved the cipher block size extraction. Related comment: #263 (comment)

I browsed the new API and tried different methods. Conclusion: there is no good way of extracting the cipher block size. So, I decided to take supported cipher suites in SChannel (Windows 10/11) + popular ones and list all of them in one match.
Such a code is more explicit and easy to maintain.

@TheBestTvarynka TheBestTvarynka self-assigned this Jul 25, 2024
@TheBestTvarynka TheBestTvarynka marked this pull request as ready for review July 25, 2024 16:53
@TheBestTvarynka TheBestTvarynka requested a review from CBenoit July 25, 2024 16:53
@CBenoit CBenoit changed the title refactor(sspi): tls connection: improve cipher block size calculation fix(sspi): tls connection: improve cipher block size calculation Jul 26, 2024
Copy link
Member

@CBenoit CBenoit left a comment

Choose a reason for hiding this comment

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

This approach is satisfying. Thank you!

@CBenoit CBenoit merged commit cbcd4bf into master Jul 26, 2024
42 checks passed
@CBenoit CBenoit deleted the refactor/rustls-integration branch July 26, 2024 07:13
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Development

Successfully merging this pull request may close these issues.

2 participants