Skip to content

Clean up code style - #829

Open
headscott wants to merge 1 commit into
libtom:developfrom
headscott:style/code-cleanup-rsa
Open

headscott wants to merge 1 commit into
libtom:developfrom
headscott:style/code-cleanup-rsa

Conversation

@headscott

Copy link
Copy Markdown
Contributor

This PR makes minor code cleanup changes in the following RSA functions:

  • rsa_exptmod
  • rsa_sign_hash_v2
  • rsa_verify_hash_v2

Changes:

  • Removed unnecessary whitespace and redundant parentheses.
  • Moved the declaration of variable y in rsa_sign_hash_v2 to the scope where it is actually needed, avoiding its declaration on code paths where it is unused.

No functional changes intended.

@sjaeckel sjaeckel left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

Basically LGTM.

Please squash the two commits together.

@headscott
headscott force-pushed the style/code-cleanup-rsa branch from 5d8de1c to 5fb1df0 Compare November 19, 2026 17:58
@headscott

Copy link
Copy Markdown
Contributor Author

Now they are squashed

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