Skip to content

x448: simplify the low-order assertion - #1917

Open
elonfliter wants to merge 1 commit into
RustCrypto:masterfrom
elonfliter:test/simplify-low-order-assertion
Open

x448: simplify the low-order assertion#1917
elonfliter wants to merge 1 commit into
RustCrypto:masterfrom
elonfliter:test/simplify-low-order-assertion

Conversation

@elonfliter

Copy link
Copy Markdown

Replace assert!(low_order == false) with the idiomatic assert!(!low_order) in the X448 random Diffie-Hellman test.

The assertion checks the same boolean condition directly and avoids an unnecessary comparison. Test behavior is unchanged.

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.

1 participant