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

feat: remove Bouncy Castle dependencies #29

Merged
merged 1 commit into from
Nov 18, 2024

Conversation

brusdev
Copy link
Contributor

@brusdev brusdev commented Nov 18, 2024

Removing the Bouncy Castle dependencies simplifies the adoption of pem-keystore in projects that can only use approved cryptographic modules.

pom.xml Outdated
<version>${bouncycastle.version}</version>
<groupId>com.hierynomus</groupId>
<artifactId>asn-one</artifactId>
<version>0.6.0</version>
Copy link
Owner

Choose a reason for hiding this comment

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

Please add a property for this.

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Sure, I have just removed the bouncycastle.version property and added the asn.one.version property

@brusdev brusdev force-pushed the remove_bouncy_castle_deps branch from 20208c7 to fd51f76 Compare November 18, 2024 09:20
@brusdev brusdev force-pushed the remove_bouncy_castle_deps branch from fd51f76 to e94fde6 Compare November 18, 2024 09:26
@ctron
Copy link
Owner

ctron commented Nov 18, 2024

Thanks for the PR. Just to summarize this: The idea is to remove any cryptographic dependencies, because this dependency/keystore doesn't actually do any crypto stuff. It only required to read keys. That's what bouncycastle was used for. However, pulling in BC brings in additional functionality that isn't actually used.

So the idea is to focus on the key parsing (ASN.1) and drop all other crypto stuff.

@ctron ctron merged commit dd00a52 into ctron:master Nov 18, 2024
3 checks passed
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