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

chore(corecrypto): upgrade CoreCrypto to 1.0.0 pre.6 #1892

Merged
merged 78 commits into from
Jul 19, 2023

Conversation

mchenani
Copy link
Member


PR Submission Checklist for internal contributors

  • The PR Title

    • conforms to the style of semantic commits messages¹ supported in Wire's Github Workflow²
    • contains a reference JIRA issue number like SQPIT-764
    • answers the question: If merged, this PR will: ... ³
  • The PR Description

    • is free of optional paragraphs and you have filled the relevant parts to the best of your ability

What's new in this PR?

Upgrading CoreCrypto to 1.0.0 pre.6 and adopting new functions for mls initialization with E2EI.\


PR Post Submission Checklist for internal contributors (Optional)

  • Wire's Github Workflow has automatically linked the PR to a JIRA issue

PR Post Merge Checklist for internal contributors

  • If any soft of configuration variable was introduced by this PR, it has been added to the relevant documents and the CI jobs have been updated.

References
  1. https://sparkbox.com/foundry/semantic_commit_messages
  2. https://github.com/wireapp/.github#usage
  3. E.g. feat(conversation-list): Sort conversations by most emojis in the title #SQPIT-764.

mchenani added 30 commits May 9, 2023 17:00
…/e2ei/e2ei_usecase

# Conflicts:
#	logic/src/commonMain/kotlin/com/wire/kalium/logic/feature/user/UserScope.kt
…/e2ei/e2ei_usecase

# Conflicts:
#	cryptography/src/commonJvmAndroid/kotlin/com.wire.kalium.cryptography/MLSClientImpl.kt
#	cryptography/src/commonMain/kotlin/com/wire/kalium/cryptography/MLSClient.kt
#	logic/src/commonMain/kotlin/com/wire/kalium/logic/feature/UserSessionScope.kt
#	logic/src/commonMain/kotlin/com/wire/kalium/logic/feature/user/UserScope.kt
Comment on lines 295 to 315
/**
* Enroll Wire E2EI Enrollment Client for renewing certificate
*
* @return wire end to end identity client
*/
fun e2eiNewRotateEnrollment(
displayName: String?,
handle: String?,
expiryDays: UInt,
ciphetSuite: String
): E2EIClient

/**
* Init MLSClient after enrollment
*/
fun e2eiMlsInitOnly(enrollment: E2EIClient, certificateChain: CertificateChain)

/**
* Generate new keypackages after E2EI certificate issued
*/
fun e2eiRotateAll(enrollment: E2EIClient, certificateChain: CertificateChain, newMLSKeyPackageCount: UInt)
Copy link
Member

Choose a reason for hiding this comment

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

Can we add tests to these functions? Maybe local integration tests like what was done with Alice/Bob for message sending?

Not sure how feasible or useful that would be. Just food for thoughts really.

Copy link
Member Author

Choose a reason for hiding this comment

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

This tests are done in CC and we only mock them here; so no benefit in it.

@github-actions
Copy link
Contributor

github-actions bot commented Jul 18, 2023

Unit Test Results

   384 files   - 19     384 suites   - 19   24s ⏱️ - 1m 10s
2 086 tests  - 95  1 964 ✔️  - 119  122 💤 +24  0 ±0 

Results for commit 7ffe5c8. ± Comparison against base commit 8629614.

♻️ This comment has been updated with latest results.

@codecov-commenter
Copy link

Codecov Report

Merging #1892 (7ffe5c8) into develop (33aa16c) will decrease coverage by 0.01%.
The diff coverage is 0.00%.

@@              Coverage Diff              @@
##             develop    #1892      +/-   ##
=============================================
- Coverage      54.91%   54.91%   -0.01%     
  Complexity      1627     1627              
=============================================
  Files           1013     1013              
  Lines          37299    37299              
  Branches        3351     3351              
=============================================
- Hits           20484    20481       -3     
- Misses         15448    15451       +3     
  Partials        1367     1367              
Impacted Files Coverage Δ
...n/kotlin/com/wire/kalium/cryptography/MLSClient.kt 95.45% <ø> (ø)
.../com/wire/kalium/logic/data/e2ei/E2EIRepository.kt 81.48% <0.00%> (ø)

... and 3 files with indirect coverage changes


Continue to review full report in Codecov by Sentry.

Legend - Click here to learn more
Δ = absolute <relative> (impact), ø = not affected, ? = missing data
Powered by Codecov. Last update 8629614...7ffe5c8. Read the comment docs.

@mchenani mchenani merged commit abc276b into develop Jul 19, 2023
9 checks passed
@mchenani mchenani deleted the feat/e2ei/upgrade_cc_1.0.0-pre.6 branch July 19, 2023 05:47
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants