Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add ConstantTimeEq implementation for [T; N]. #114

Open
wants to merge 2 commits into
base: main
Choose a base branch
from

Commits on Sep 7, 2023

  1. Add ConstantTimeEq implementation for [T; N].

    Only when the const-generics feature is enabled.
    
    I had to modify a few tests: they were relying on [u8; N] being
    automatically dereferenced into &[u8] to get the blanket ConstantTimeEq
    implementation for [T]. But once a blanket implementation is also
    available for [T; N], Rust attempts to use it instead & then complains
    that it can't compare arrays of different lengths. I suppose this
    technically counts as a backwards-compatibility break.
    branlwyd committed Sep 7, 2023
    Configuration menu
    Copy the full SHA
    17edc81 View commit details
    Browse the repository at this point in the history

Commits on Sep 8, 2023

  1. Configuration menu
    Copy the full SHA
    a829f68 View commit details
    Browse the repository at this point in the history