Skip to content

Make SecretKeySpec accept randomized key material#289

Merged
swissiety merged 5 commits intomasterfrom
secretkeyspec-randomized
Apr 8, 2026
Merged

Make SecretKeySpec accept randomized key material#289
swissiety merged 5 commits intomasterfrom
secretkeyspec-randomized

Conversation

@jmpersch
Copy link
Copy Markdown
Contributor

@jmpersch jmpersch commented Apr 2, 2026

SecretKeySpec requires "preparedKeyMaterial[keyMaterial]", but SecureRandom ensures "randomized" and not "preparedKeyMaterial".

This commit extends the predicate in the "REQUIRES" section of SecretKeySpec by || randomized[keyMaterial] to make it also accept randomized key material.

SecretKeySpec requires "preparedKeyMaterial[keyMaterial]", but
SecureRandom ensures "randomized" and not "preparedKeyMaterial".

This commit extends the predicate in the "REQUIRES" section of
SecretKeySpec by "|| randomized[keyMaterial]" to make it also accept
randomized key material.
Copy link
Copy Markdown
Collaborator

@swissiety swissiety left a comment

Choose a reason for hiding this comment

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

👍 good job finding & fixing that

@swissiety swissiety merged commit 4887e83 into master Apr 8, 2026
1 check 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