Skip to content

Cleanup/alg specific foo - #46

Merged
iaik-jheher merged 6 commits into
developmentfrom
cleanup/alg-specific-foo
Jul 29, 2026
Merged

Cleanup/alg specific foo#46
iaik-jheher merged 6 commits into
developmentfrom
cleanup/alg-specific-foo

Conversation

@iaik-jheher

Copy link
Copy Markdown
Collaborator

closes #44

@iaik-jheher
iaik-jheher requested a review from JesusMcCloud July 27, 2026 16:27
@github-actions

Copy link
Copy Markdown

⚠️⚠️ This pull request targets main. I am re-targeting it to development. ⚠️⚠️

@github-actions
github-actions Bot changed the base branch from main to development July 27, 2026 16:27

@JesusMcCloud JesusMcCloud left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

Leave the old ones with deprecation marks. Add a changelog entry

*/
val X509AlgorithmIdentifier.rsaSsaPssParams: RsaSsaPssParams get() = runRethrowing {
require(oid == RSA_SSA_PSS_OID)
DER.decodeFromTlv<RsaSsaPssParams>(

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

Hardcoding DER was cursed from the get-go. Given that this does not have to live inside X509AlgorithmIdentifier any more, we can reshape it from a getter to something else entirely, that properly deserializes

@iaik-jheher
iaik-jheher requested a review from JesusMcCloud July 28, 2026 11:35

@JesusMcCloud JesusMcCloud left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

Still no changelog, no spotlessApply and no deprecation of the removed functions in X509AlgorithmIdentifier

@iaik-jheher

Copy link
Copy Markdown
Collaborator Author

I don't want to leave the deprecated functions on the object itself for shadowing reasons.

@JesusMcCloud

Copy link
Copy Markdown
Contributor

I don't want to leave the deprecated functions on the object itself for shadowing reasons.

Fair enough. Changelog still missing

@iaik-jheher
iaik-jheher requested a review from JesusMcCloud July 28, 2026 12:37

@JesusMcCloud JesusMcCloud left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

Pending the changelog indentation

Comment thread CHANGELOG.md Outdated
Comment on lines +7 to +15
* Previously, it took a `List` that could only reasonably have 0-1 elements, enforced by the `parameters` getter. Deprecated that constructor variant.
* Clean up algorithm-specific parsers and move them out of the generic element they parse
* `RsaSsaPssParams`:
* `X509AlgorithmIdentifier.rsaSsaPssParams` -> `RsaSsaPssParams.of(X509AlgorithmIdentifier)`
* new extension on `RsaSsaPssParams` companion: `X509AlgorithmIdentifier.of(RsaSsaPssParams)`
* `EcdsaSigValue`:
* new class: `EcdsaSigValue` models `ECDSA-Sig-Value` from RFC 5480
* `X509SignatureValue.decodeRS()` in class -> `X509SignatureValue.toEcdsaSigValue()` on `EcdsaSigValue` companion
* `X509SignatureValue.fromRS()` -> `EcdsaSigValue.toX509SignatureValue()`

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

Needs four spaces indentation per nested level, otherwise it will not render correctly in the HMTL docs

@iaik-jheher
iaik-jheher requested a review from JesusMcCloud July 28, 2026 12:54
@iaik-jheher
iaik-jheher merged commit b8341cf into development Jul 29, 2026
12 checks passed
@iaik-jheher
iaik-jheher deleted the cleanup/alg-specific-foo branch July 29, 2026 08: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.

Isolate algorithm-specific foo properly

2 participants