Skip to content

Add configurable OAEP and MGF1 to RSA operations - #246

Merged
felixb1515 merged 7 commits into
developfrom
feat/rsa-oaep
Jul 3, 2026
Merged

Add configurable OAEP and MGF1 to RSA operations#246
felixb1515 merged 7 commits into
developfrom
feat/rsa-oaep

Conversation

@felixb1515

Copy link
Copy Markdown
Collaborator

For RSA operations, the hash functions for OAEP and MGF1 can now be selected separately, allowing for more granular control.

fhaag95 and others added 7 commits August 26, 2025 12:56
Bumps [com.fasterxml.jackson.core:jackson-core](https://github.com/FasterXML/jackson-core) from 2.19.2 to 2.21.1.
- [Commits](FasterXML/jackson-core@jackson-core-2.19.2...jackson-core-2.21.1)

---
updated-dependencies:
- dependency-name: com.fasterxml.jackson.core:jackson-core
  dependency-version: 2.21.1
  dependency-type: direct:production
...

Signed-off-by: dependabot[bot] <support@github.com>
…kson.core-jackson-core-2.21.1

Bump com.fasterxml.jackson.core:jackson-core from 2.19.2 to 2.21.1
The RSA Encryption/Decryption operations previously only did RSA/ECB/
  PKCS1Padding in PEM mode, and in KeyStore mode relied on named OAEP
  transformations (e.g. OAEPWITHSHA-256ANDMGF1PADDING) which silently keep
  MGF1 at SHA-1 under SunJCE. Neither could reproduce a common client-side
  config such as forge's RSA-OAEP with SHA-256 for both the OAEP and MGF1
  digests.

  Introduce RsaCipherBuilder, a small helper that builds an RSA Cipher from
  a padding plus, for OAEP, an explicit OAEPParameterSpec with independently
  selectable OAEP and MGF1 message digests. Both operations now expose
  'Padding', 'OAEP Hash' and 'MGF1 Hash' dropdowns in PEM and KeyStore mode;
  the hash fields are shown only while OAEP is selected. Defaults stay on
  PKCS1Padding so existing recipes are unaffected.

  KeyStore padding choices are sourced from the provider but always include
  an OAEP option, since some JVMs (incl. Burp's bundled JRE) advertise a
  reduced RSA padding list that omits OAEP.

  Add RsaCipherBuilderTest covering OAEP round-trips, mixed digests, PKCS1
  backward-compat and the KeyStore padding fallbacks.
Add configurable RSA-OAEP support (selectable OAEP & MGF1 digests)
@felixb1515
felixb1515 merged commit 97bd0aa into develop Jul 3, 2026
1 check passed
@felixb1515
felixb1515 deleted the feat/rsa-oaep branch July 3, 2026 09:08
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.

3 participants