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

Adding support for Ed448 digital signatures. #84

Closed
wants to merge 1 commit into from

Conversation

armfazh
Copy link
Contributor

@armfazh armfazh commented Feb 4, 2020

Includes the digital signature Ed448.

@armfazh armfazh added the enhancement Improvement over something already in the project label Feb 4, 2020
@armfazh armfazh requested review from Lekensteyn and wbl February 4, 2020 19:22
Copy link

@wbl wbl left a comment

Choose a reason for hiding this comment

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

Generally good, but I have some correctness worries which probably I can be convinced are fine

H := sha3.NewShake256()
_, _ = H.Write(k.private[:])
_, _ = H.Read(h[:])
clamp(h[:Size])
Copy link

Choose a reason for hiding this comment

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

Is this used anywhere? I'm a bit confused about which parts of the private key in the keypair are which, so it's a bit hard for me to see that this is right.

Copy link
Member

Choose a reason for hiding this comment

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

The first part is the scalar called s in the RFC and used blinding in the Schnorr signature. The second part is called prefix in the RFC and is used to derive the nonce. I agree that a comment would be nice.

Copy link
Member

@bwesterb bwesterb left a comment

Choose a reason for hiding this comment

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

First batch of comments. More to come.

@armfazh
Copy link
Contributor Author

armfazh commented Apr 6, 2020

Based on your comments on this PR, I am preparing another PR for ed448 that is based on the goldilocks package. So I will close this for now.

@armfazh armfazh closed this Apr 6, 2020
armfazh added a commit to armfazh/circl that referenced this pull request Apr 7, 2020
armfazh added a commit to armfazh/circl that referenced this pull request Apr 8, 2020
armfazh added a commit that referenced this pull request Apr 21, 2020
armfazh added a commit to armfazh/circl that referenced this pull request Apr 21, 2020
armfazh added a commit that referenced this pull request Apr 21, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement Improvement over something already in the project
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants