-
Notifications
You must be signed in to change notification settings - Fork 22
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
base: main
Are you sure you want to change the base?
Conversation
…and XDH (X25519/X448) interfaces
There was a problem hiding this 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 |
There was a problem hiding this comment.
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 :)
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@@ -0,0 +1,76 @@ | |||
package dev.whyoleg.cryptography.algorithm |
There was a problem hiding this comment.
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 |
There was a problem hiding this comment.
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 |
There was a problem hiding this comment.
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 |
There was a problem hiding this comment.
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 |
There was a problem hiding this comment.
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 |
There was a problem hiding this comment.
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
#60 is already included in this branch.