Skip to content

Make SecretKeySpec accept randomized key material#289

Open
jmpersch wants to merge 2 commits intomasterfrom
secretkeyspec-randomized
Open

Make SecretKeySpec accept randomized key material#289
jmpersch wants to merge 2 commits intomasterfrom
secretkeyspec-randomized

Conversation

@jmpersch
Copy link
Copy Markdown

@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

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