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

suites: rework ConnectionTrafficSecrets #1497

Merged
merged 1 commit into from
Sep 28, 2023

Conversation

cpu
Copy link
Member

@cpu cpu commented Sep 27, 2023

This branch is a follow up to #1484. It updates ConnectionTrafficSecrets to hold AeadKey and Iv instances, instead of byte arrays, removing the need for the slices_to_arrays and slice_to_array helpers, as suggested by ctz.

@cpu cpu self-assigned this Sep 27, 2023
@codecov
Copy link

codecov bot commented Sep 27, 2023

Codecov Report

Merging #1497 (a1be9f9) into main (940d603) will decrease coverage by 0.01%.
The diff coverage is 100.00%.

@@            Coverage Diff             @@
##             main    #1497      +/-   ##
==========================================
- Coverage   96.46%   96.46%   -0.01%     
==========================================
  Files          72       72              
  Lines       15139    15105      -34     
==========================================
- Hits        14604    14571      -33     
+ Misses        535      534       -1     
Files Coverage Δ
rustls/src/crypto/ring/tls12.rs 97.75% <100.00%> (+0.42%) ⬆️
rustls/src/crypto/ring/tls13.rs 100.00% <100.00%> (ø)
rustls/src/suites.rs 99.24% <ø> (-0.08%) ⬇️

📣 We’re building smart automated test selection to slash your CI/CD build times. Learn more

@cpu
Copy link
Member Author

cpu commented Sep 27, 2023

@fasterthanlime 👋 Hi hi. Tagging you here to see if you have any thoughts since I think this refactoring will require some downstream changes in hapsoc/ktls.

@fasterthanlime
Copy link
Contributor

@fasterthanlime 👋 Hi hi. Tagging you here to see if you have any thoughts since I think this refactoring will require some downstream changes in hapsoc/ktls.

Hi there! As long as the exact same information is available and I just need to peel away the extra typed wrappers, any interface changes are fine!

rustls/src/crypto/ring/tls12.rs Outdated Show resolved Hide resolved
This commit updates `ConnectionTrafficSecrets` to hold `AeadKey` and
`Iv` instances, instead of byte arrays, removing the need for the
`slices_to_arrays` and `slice_to_array` helpers.
@cpu cpu force-pushed the cpu-conn-traff-secrets-types branch from 623eb6f to a1be9f9 Compare September 28, 2023 12:53
@cpu cpu enabled auto-merge September 28, 2023 12:54
@cpu
Copy link
Member Author

cpu commented Sep 28, 2023

cpu enabled auto-merge now

Going to put this in the queue on the assumption Ctz likes his own suggestion. If there's feedback from post-merge reviews I'm happy to iterate.

@cpu cpu added this pull request to the merge queue Sep 28, 2023
Merged via the queue into rustls:main with commit 55bb279 Sep 28, 2023
22 checks passed
@cpu cpu deleted the cpu-conn-traff-secrets-types branch September 28, 2023 13:04
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.

None yet

3 participants