Skip to content

Conversation

@ansasaki
Copy link
Contributor

Move the SymmKey structure from common.rs into the keylime library (crypto::symmkey).

This is to continue the effort to move the code that can be shared from the keylime-agent application to the keylime library

@ansasaki ansasaki force-pushed the move_symmkey branch 2 times, most recently from f7f6d68 to a82d7dc Compare April 10, 2025 12:02
@codecov
Copy link

codecov bot commented Apr 10, 2025

Codecov Report

All modified and coverable lines are covered by tests ✅

Project coverage is 63.43%. Comparing base (9cbdb10) to head (fcea403).
Report is 2 commits behind head on master.

Additional details and impacted files
Flag Coverage Δ
e2e-testsuite 63.43% <100.00%> (+0.04%) ⬆️
upstream-unit-tests 63.43% <100.00%> (+0.04%) ⬆️

Flags with carried forward coverage won't be shown. Click here to find out more.

Files with missing lines Coverage Δ
keylime-agent/src/common.rs 66.12% <ø> (-3.21%) ⬇️
keylime-agent/src/keys_handler.rs 65.45% <ø> (-0.26%) ⬇️
keylime-agent/src/payloads.rs 83.90% <ø> (ø)
keylime/src/crypto.rs 67.23% <ø> (ø)
keylime/src/crypto/symmkey.rs 100.00% <100.00%> (ø)

... and 2 files with indirect coverage changes

🚀 New features to boost your workflow:
  • ❄️ Test Analytics: Detect flaky tests, report on failures, and find test suite problems.

Copy link
Contributor

@sarroutbi sarroutbi left a comment

Choose a reason for hiding this comment

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

I really like this kind of code refactor, due to two main reasons:
1 - It isolates and modularizes code outside agent
2 - It provides a complete coverage of the refactor code
Changes LGTM

Copy link
Contributor

@sergio-correia sergio-correia left a comment

Choose a reason for hiding this comment

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

Thanks, looks good to me.

Signed-off-by: Anderson Toshiyuki Sasaki <ansasaki@redhat.com>
Move the code for the shared type SymmKey out of the common.rs file into
the keylime library.

Signed-off-by: Anderson Toshiyuki Sasaki <ansasaki@redhat.com>
Copy link
Contributor

@sarroutbi sarroutbi left a comment

Choose a reason for hiding this comment

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

LGTM

@ansasaki ansasaki merged commit 990652a into keylime:master Apr 11, 2025
11 checks passed
@ansasaki ansasaki deleted the move_symmkey branch April 11, 2025 08:58
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.

3 participants