Skip to content

change some rsa oaep tests to acceptable#145

Merged
cpu merged 1 commit intoC2SP:masterfrom
reaperhulk:patch-2
May 2, 2025
Merged

change some rsa oaep tests to acceptable#145
cpu merged 1 commit intoC2SP:masterfrom
reaperhulk:patch-2

Conversation

@reaperhulk
Copy link
Copy Markdown
Contributor

@reaperhulk reaperhulk commented May 1, 2025

NIST SP800-56Br2 Section 7.1.2.1 specifies that when decrypting a ciphertext outside the range 1 < ct < (n-1) it should be rejected. The test cases updated in this commit had a ct integer value of 1 or 0, which violate this requirement.

This also adds a new flag SmallIntegerCiphertext to make it easier for consumers to skip on this.

Copy link
Copy Markdown
Member

@cpu cpu left a comment

Choose a reason for hiding this comment

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

LGTM.

Would you mind squashing everything into one commit? Alternatively we could squash-merge on our end. Either works for me :-)

@reaperhulk
Copy link
Copy Markdown
Contributor Author

I can squash it, one moment 😄

NIST SP800-56Br2 Section 7.1.2.1 specifies that when decrypting a ciphertext outside the range 1 < ct < (n-1) should be rejected. The test cases updated in this commit had a ct integer value of 1 or 0, which violate this requirement.
@reaperhulk
Copy link
Copy Markdown
Contributor Author

Done 😄

@cpu cpu requested a review from FiloSottile May 1, 2025 19:12
@cpu cpu merged commit df4e933 into C2SP:master May 2, 2025
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.

4 participants