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

Fix code scanning alert no. 10: Use of a cryptographic algorithm with insufficient key size #2

Merged
merged 1 commit into from
Jan 11, 2025

Conversation

offsoc
Copy link
Owner

@offsoc offsoc commented Jan 11, 2025

Fixes https://github.com/offsoc/Signal-Server/security/code-scanning/10

To fix the problem, we need to increase the key size used in the RSA key pair generation to at least 2048 bits. This change will ensure that the key size meets the recommended minimum for RSA encryption, thereby enhancing the security of the system.

The specific change involves updating the initialize method call on the KeyPairGenerator instance to use a key size of 2048 bits instead of 1024 bits. This change should be made in the static block where the RSA key pair is generated.

Suggested fixes powered by Copilot Autofix. Review carefully before merging.

… insufficient key size

Co-authored-by: Copilot Autofix powered by AI <62310815+github-advanced-security[bot]@users.noreply.github.com>
@offsoc offsoc marked this pull request as ready for review January 11, 2025 16:00
@offsoc offsoc merged commit e0b9e53 into main Jan 11, 2025
6 of 7 checks passed
@offsoc offsoc deleted the alert-autofix-10 branch January 11, 2025 16:00
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.

1 participant