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(node/crypto): Diffie Hellman Support #18943

Merged
merged 12 commits into from
May 15, 2023
Merged

Conversation

levex
Copy link
Contributor

@levex levex commented May 1, 2023

Support crypto.DiffieHellman class in ext/node/crypto

@@ -800,6 +801,30 @@ pub fn op_node_dh_generate(
dh_generate(prime, prime_len, generator)
}

// TODO(lev): This duplication should be avoided.
Copy link
Contributor Author

Choose a reason for hiding this comment

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

Very ugly

Copy link
Contributor Author

Choose a reason for hiding this comment

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

@littledivy any ideas on how to avoid this duplication?

@levex levex marked this pull request as ready for review May 3, 2023 12:04
@ry ry changed the title WIP: feat(node/crypto): Diffie Hellman Support feat(node/crypto): Diffie Hellman Support May 3, 2023
Copy link
Member

@littledivy littledivy left a comment

Choose a reason for hiding this comment

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

Looks good, needs tests

ext/node/ops/crypto/mod.rs Show resolved Hide resolved
ext/node/polyfills/internal/crypto/diffiehellman.ts Outdated Show resolved Hide resolved
@levex levex force-pushed the node-crypto-dh branch 2 times, most recently from 092c645 to 1c32537 Compare May 15, 2023 13:39
@levex levex force-pushed the node-crypto-dh branch from 703ee42 to f01e1bd Compare May 15, 2023 16:12
@levex levex requested a review from bartlomieju May 15, 2023 16:36
Copy link
Member

@littledivy littledivy left a comment

Choose a reason for hiding this comment

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

LGTM

Copy link
Member

@bartlomieju bartlomieju left a comment

Choose a reason for hiding this comment

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

LGTM too, nice work!

@levex levex merged commit 3356173 into denoland:main May 15, 2023
@levex levex deleted the node-crypto-dh branch May 15, 2023 17:41
levex added a commit that referenced this pull request May 18, 2023
Support crypto.DiffieHellman class in ext/node/crypto
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