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

Add Ed (edwards curve), EdDSA (Ed25519/Ed448) and XDH (X25519/X448) interfaces #61

Draft
wants to merge 6 commits into
base: main
Choose a base branch
from

Conversation

waltkb
Copy link

@waltkb waltkb commented Feb 12, 2025

#60 is already included in this branch.

Copy link
Owner

@whyoleg whyoleg left a comment

Choose a reason for hiding this comment

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

Thanks for the PR!
This would be a lovely addition to the library!

While I'm investigating a bit regarding the naming for the algorithms and curves, could you try to implement those algorithms in openssl and webcrypto providers?
As far as I see, web crypto recently added support for them (f.e. in deriveBits), so it's better to recheck if it's supported in latest browsers/nodejs
As for openssl - I'm pretty sure it's supported for some time

@@ -0,0 +1,107 @@
package algorithms
Copy link
Owner

Choose a reason for hiding this comment

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

wrong package name, should be prefixed with dev.whyoleg.cryptography.providers.jdk.
Probably an IDE glitch :)

Copy link
Author

Choose a reason for hiding this comment

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

Indeed:

image

@@ -0,0 +1,76 @@
package dev.whyoleg.cryptography.algorithm
Copy link
Owner

Choose a reason for hiding this comment

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

should be dev.whyoleg.cryptography.algorithms (with s at the end)

@@ -0,0 +1,26 @@
package algorithms
Copy link
Owner

Choose a reason for hiding this comment

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

should be dev.whyoleg.cryptography.algorithms

@@ -0,0 +1,26 @@
package algorithms

import dev.whyoleg.cryptography.CryptographyAlgorithmId
Copy link
Owner

Choose a reason for hiding this comment

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

minor: star-imports are preferred and should be enforced by a config in .idea, looks like it doesn't work all the time
(same for other new files)

@@ -0,0 +1,25 @@
package algorithms
Copy link
Owner

Choose a reason for hiding this comment

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

should be dev.whyoleg.cryptography.algorithms

@@ -0,0 +1,39 @@
package algorithms
Copy link
Owner

Choose a reason for hiding this comment

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

should be dev.whyoleg.cryptography.providers.jdk.algorithms

@@ -0,0 +1,43 @@
package algorithms
Copy link
Owner

Choose a reason for hiding this comment

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

should be dev.whyoleg.cryptography.providers.jdk.algorithms

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.

2 participants