#constant_time

no-std constant_time_eq

Compares two equal-sized byte strings in constant time

5 releases

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

#46 in Cryptography

Download history 44692/week @ 2019-10-15 46548/week @ 2019-10-22 43105/week @ 2019-10-29 49117/week @ 2019-11-05 48201/week @ 2019-11-12 48624/week @ 2019-11-19 42846/week @ 2019-11-26 49397/week @ 2019-12-03 50264/week @ 2019-12-10 45281/week @ 2019-12-17 25176/week @ 2019-12-24 29894/week @ 2019-12-31 55689/week @ 2020-01-07 56867/week @ 2020-01-14 49303/week @ 2020-01-21

190,252 downloads per month
Used in 2,081 crates (13 directly)

CC0 license

5KB

Compares two equal-sized byte strings in constant time.

Inspired by the Linux kernel's crypto_memneq.

No runtime deps