#constant-time

no-std constant_time_eq

Compares two equal-sized byte strings in constant time

5 releases

Uses old Rust 2015

0.1.5 Jan 11, 2020
0.1.4 Aug 20, 2019
0.1.3 Aug 13, 2017
0.1.2 Jan 30, 2016
0.1.0 May 22, 2015

#73 in Cryptography

Download history 101399/week @ 2021-06-30 103197/week @ 2021-07-07 103462/week @ 2021-07-14 97720/week @ 2021-07-21 107351/week @ 2021-07-28 117662/week @ 2021-08-04 129099/week @ 2021-08-11 140332/week @ 2021-08-18 103327/week @ 2021-08-25 107026/week @ 2021-09-01 123167/week @ 2021-09-08 118610/week @ 2021-09-15 103420/week @ 2021-09-22 110763/week @ 2021-09-29 135492/week @ 2021-10-06 122109/week @ 2021-10-13

398,331 downloads per month
Used in 1,252 crates (20 directly)

CC0 license

5KB

Compares two equal-sized byte strings in constant time.

Inspired by the Linux kernel's crypto_memneq.

No runtime deps