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

feat(webcrypto): Implement X25519 key derivation #13798

Draft
wants to merge 1 commit into
base: main
Choose a base branch
from

Conversation

jlucaso1
Copy link
Contributor

@jlucaso1 jlucaso1 commented Sep 7, 2024

What does this PR do?

I need help finishing this PR, since my knowledge of C/C++ is limited.
⚠️ Currently the build is failing

This PR implements X25519 key derivation in the webcrypto module. It introduces a new algorithm identifier for X25519, updates the relevant classes and methods to support key generation, derivation, import, and export for this algorithm.
With this algorithm it will unblock to use https://github.com/WhiskeySockets/Baileys Whatsapp library

Key Changes:

  • Added X25519 to CryptoAlgorithmIdentifierTag and CryptoAlgorithmIdentifier.

  • Implemented the CryptoAlgorithmX25519 class with methods for key generation, derivation, import, and export (From Webkit)

  • Updated the SubtleCrypto class to recognize and handle the new X25519 algorithm.

  • Documentation or TypeScript types (it's okay to leave the rest blank in this case)

  • Code changes

Fixes:

How did you verify your code works?

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.

1 participant