Skip to content

cmov: add CmovEq for slices#954

Merged
tarcieri merged 1 commit into
RustCrypto:masterfrom
codahale:master
Oct 3, 2023
Merged

cmov: add CmovEq for slices#954
tarcieri merged 1 commit into
RustCrypto:masterfrom
codahale:master

Conversation

@codahale
Copy link
Copy Markdown
Contributor

@codahale codahale commented Sep 27, 2023

Add a CmovEq impl for slices.

@tarcieri
Copy link
Copy Markdown
Member

tarcieri commented Oct 3, 2023

I think you should be able to implement this generically as something like:

impl CmovEq for [T]
where
    T: CmovEq
{
   ...
}

@codahale codahale changed the title cmov: add ct_eq for slice comparison cmov: add CmovEq for slices Oct 3, 2023
@codahale
Copy link
Copy Markdown
Contributor Author

codahale commented Oct 3, 2023

That’s a better idea. Done.

@tarcieri tarcieri merged commit c19c5cc into RustCrypto:master Oct 3, 2023
@tarcieri tarcieri mentioned this pull request Oct 14, 2023
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