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

Switch to hybrid enc in workspacesStore #1413

Draft
wants to merge 9 commits into
base: master
Choose a base branch
from

Conversation

TamaraFinogina
Copy link
Contributor

@TamaraFinogina TamaraFinogina commented Jan 9, 2025

Description

Switch encryption to a hybrid version with Kyber and ensure that it works as expected

Related Issues

Relates to PB-2666

Related Pull Requests

Checklist

  • Changes have been tested locally.
  • Unit tests have been written or updated as necessary.
  • The code adheres to the repository's coding standards.
  • Relevant documentation has been added or updated.
  • No new warnings or errors have been introduced.
  • SonarCloud issues have been reviewed and addressed.
  • QA Passed

How Has This Been Tested?

Unit tests:

  1. The new hybrid function works as expected with Kyber key
  2. The new hybrid function works as before without Kyber key

Additional Notes

Copy link

vercel bot commented Jan 9, 2025

The latest updates on your projects. Learn more about Vercel for Git ↗︎

Name Status Preview Comments Updated (UTC)
drive-web ✅ Ready (Inspect) Visit Preview 💬 Add feedback Jan 29, 2025 1:37pm

const { mnemonic, publicKey } = user;
const { mnemonic } = user;
const publicKey = user.keys.ecc.publicKey;
const publicKyberKey = user.keys.kyber.publicKey;
Copy link
Contributor

Choose a reason for hiding this comment

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

do the kyber and ecc fields always exist, right? If not, this may give error

Copy link
Contributor Author

Choose a reason for hiding this comment

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

@CandelR they are defined in the structure as mandatory fields. Encryption should work even if kyber key is '' (empty) - see the test. But if ecc key is empty, the encryption will throw an error. There was no check before, but I can add it

Copy link
Contributor Author

Choose a reason for hiding this comment

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

@CandelR Added test for an empty publicKey

@TamaraFinogina TamaraFinogina marked this pull request as draft January 13, 2025 13:58
Copy link

cloudflare-workers-and-pages bot commented Jan 14, 2025

Deploying drive-web with  Cloudflare Pages  Cloudflare Pages

Latest commit: e38ff6e
Status:⚡️  Build in progress...

View logs

@TamaraFinogina TamaraFinogina marked this pull request as ready for review January 14, 2025 17:17
@TamaraFinogina TamaraFinogina marked this pull request as draft January 14, 2025 17:17
@TamaraFinogina TamaraFinogina self-assigned this Jan 15, 2025
@TamaraFinogina TamaraFinogina requested a review from sg-gs January 15, 2025 09:21
Base automatically changed from feature/PB-2666-implement-pqc to master January 23, 2025 10:23
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.

3 participants