Skip to content

Feature/awesn2#434

Merged
JesusMcCloud merged 71 commits into
developmentfrom
feature/awesn2
Jul 17, 2026
Merged

Feature/awesn2#434
JesusMcCloud merged 71 commits into
developmentfrom
feature/awesn2

Conversation

@JesusMcCloud

Copy link
Copy Markdown
Collaborator

No description provided.

@JesusMcCloud

Copy link
Copy Markdown
Collaborator Author

@iaik-jheher no use to review before awesn1 PRs are done. I'll then push a new awesn1-release and adapt whatever's needed here based on awesn1-feedback

Comment thread indispensable-cosef/src/jvmTest/kotlin/ConversionTests.kt Outdated
Comment on lines 6 to 13
internal actual fun SignatureAlgorithm.RSA.getRSAPlatformSignatureInstance(provider: String?): Signature =
when (this.padding) {
RSAPadding.PKCS1 ->
SignatureAlgorithm.RSA.Padding.PKCS1 ->
sigGetInstance("${this.digest.jcaAlgorithmComponent}withRSA", provider)

RSAPadding.PSS ->
SignatureAlgorithm.RSA.Padding.PSS ->
sigGetInstance("${this.digest.jcaAlgorithmComponent}withRSA/PSS", provider)
}

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

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

is this not done via subclass switching on the parameters instance, now?

Copy link
Copy Markdown
Collaborator Author

Choose a reason for hiding this comment

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

this is just a shorthand that exposes the padding from the params, so it should amount to the same

Comment on lines +47 to +52
//TODO: extensible
enum class Kind {
EC, RSA
}

val kind: Kind

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

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

why do we need this? why can't we just is check against the class?

Copy link
Copy Markdown
Collaborator Author

Choose a reason for hiding this comment

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

because this is half-baked. I was going to move this to the public and private keys and reference it from the sigalg, so we'd have an alignment between key types, and signature algos, but also check it for asymmetric encryption, and key agreement. WDYT?

override fun equals(other: Any?): Boolean {
if (this === other) return true
if (other !is CsrAttribute) return false
return oid == other.oid

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

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

same issue as that other comment about asymmetric equals; if you have a subclass that does not override equals this will break the symmetry contract on equals

@iaik-jheher iaik-jheher left a comment

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

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

As I said async, approved conditional on the linked issues being fixed imminently and minimally. No new structural rewrites, just those issues being fixed at the issue site.

@JesusMcCloud
JesusMcCloud merged commit 0b7e6a7 into development Jul 17, 2026
12 checks passed
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