Skip to content

Conversation

@whisk
Copy link

@whisk whisk commented Oct 26, 2025

Description

rsa2 implementation failed to encrypt/decrypt binary strings because it was encoding runes, 1 or 2 byte sequences, packed into 64 bits; but it was always decoding 64 bits as a full rune

Fix

  • fixed rsa2 implementation to work with binary strings by using byte-to-byte processing
  • minor performance improvement by using strings.Builder instead of appending a string
  • added a fuzz test as suggested in Add FuzzXxx tests to cipher algorithms #480

@github-actions
Copy link

This PR is stale because it has been open 30 days with no activity. Remove stale label or comment or this will be closed in 5 days.

@github-actions github-actions bot added the stale label Nov 26, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant