Skip to content

Fix generateKey - #2319

Open
jpantonow wants to merge 1 commit into
treehouses:masterfrom
jpantonow:fix/generatekey-finding-20260808213739-f5cfa748
Open

Fix generateKey#2319
jpantonow wants to merge 1 commit into
treehouses:masterfrom
jpantonow:fix/generatekey-finding-20260808213739-f5cfa748

Conversation

@jpantonow

@jpantonow jpantonow commented Aug 8, 2026

Copy link
Copy Markdown

Fix generateKey

Repository: treehouses/remote
Type: Pull request


Analysis context

Property Value
Method generateKey
Class io.treehouses.remote.bases.BaseSSHKeyGen
File app/src/main/kotlin/io/treehouses/remote/bases/BaseSSHKeyGen.kt
Specification KeyPairGeneratorSpec
Analysis tool ape

Proposed change

The runtime error confirms that initialize(bitSize) rejected the selected DSA key size. When the requested algorithm is DSA, the method now initializes it with the supported 2048-bit size while leaving the caller-provided size unchanged for all other algorithms.

Validation

  • Change limited to the related file
  • Manual review required
  • Confirmed by a project maintainer

Additional context

I’m an undergraduate Computer Engineering student at the University of Brasília (UnB), and this contribution is part of a research project involving software security analysis.

I’m happy to adjust the implementation to better match the project’s architecture, coding conventions, or maintainers’ recommendations.

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