-
Notifications
You must be signed in to change notification settings - Fork 14
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
Remove ed-25519-java move to Bouncy Castle #118
base: main
Are you sure you want to change the base?
Conversation
* Remove ed-25519-java because of the security issue * Split the public keys representation to avoid the use of the SecurityProvide and heavy exception
@@ -157,7 +156,7 @@ private static SerializedBiscuit deserialize(Schema.Biscuit data) | |||
external)); | |||
} | |||
|
|||
if (!(data.getProof().hasNextSecret() ^ data.getProof().hasFinalSignature())) { | |||
if (data.getProof().hasNextSecret() == data.getProof().hasFinalSignature()) { |
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.
we should not allw the case where there's both a next secret and a final signature. The previous XOR was confusing but right.
Maybe split the two conditions? "empty proof" where both are false, and "invalid proof" where both are true
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.
Auto fix from the IDE. The result is the same than before but we have a case we shouldn’t have.
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.
Splitting the condition is the clearer solution.
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.
everything looks good, there's just the bit about the proof format check to fix, and that will be good to go
* Empty proof: no flag of the proof is set * Invalid proof: both flags of the proof are set (impossible case)
https://github.com/eclipse-biscuit/biscuit-java/security/dependabot/4