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 ECDSA key support (SECP256R1) #101

Open
wants to merge 22 commits into
base: master
Choose a base branch
from

Conversation

itstheceo
Copy link

@itstheceo itstheceo commented May 24, 2024

Uses BouncyCastle for the provider. There are a few outstanding todos yet to be addressed, any pointers there and feedback in general would be greatly appreciated. Thanks!

Screenshot 2024-05-24 at 11 47 57 AM

@itstheceo itstheceo marked this pull request as ready for review May 24, 2024 03:03
itstheceo and others added 7 commits May 24, 2024 15:30
This implements 3rd party block generation and appending to existing tokens. It also fixes existing issues with public key interning which made deserialization of tokens with 3rd party blocks incorrect in some cases.

Co-authored-by: Geoffroy Couprie <[email protected]>
@Geal
Copy link
Contributor

Geal commented Jun 25, 2024

#104 is merged at last, and I tried to keep the conflict to a minimum, and have a similar API to what you used to sign the 3rd party blocks

itstheceo and others added 3 commits June 26, 2024 10:38
# Conflicts:
#	src/main/java/org/biscuitsec/biscuit/crypto/KeyPair.java
#	src/main/java/org/biscuitsec/biscuit/crypto/PublicKey.java
#	src/main/java/org/biscuitsec/biscuit/token/Biscuit.java
#	src/main/java/org/biscuitsec/biscuit/token/UnverifiedBiscuit.java
#	src/main/java/org/biscuitsec/biscuit/token/builder/parser/Parser.java
#	src/main/java/org/biscuitsec/biscuit/token/format/SerializedBiscuit.java
#	src/test/java/org/biscuitsec/biscuit/token/BiscuitTest.java
Implement 3rd party block creation (#104)
@itstheceo
Copy link
Author

Updated and resolved the conflicts. Had some bumps with syncing upstream hopefully doesn't cause any issues. Would suggest squash merging this one, when it's satisfactory.

@itstheceo
Copy link
Author

@Geal rebased the remote signer branch as well, was a few touchpoints for the external signature handling which I've consolidated into the Signer class. Both branches passing again.

https://github.com/phocassoftware/biscuit-java/pull/2/files#diff-49f7203cf4239e61d6eb58b99a066338d08f58a1214b91c56959eab97b37cbcbR11-R49

@Geal
Copy link
Contributor

Geal commented Jun 26, 2024

Great. Timing wise, we have to release the library with the public key interning fix and another fix that will come within a few days, in a minor version, then this will be merged with other API changes in a major version very soon

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