tech-userlevel archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

Re: New function: consttime_memcmp(3)



It happened that consttime_memcmp(3) is without known use-cases.
Please apply the following patch to make it clear for others.
This change may stimulate our users to unveil a valid use-case for a timing safe memcmp function.

Index: lib/libc/string/consttime_memequal.3
===================================================================
RCS file: /cvsroot/src/lib/libc/string/consttime_memequal.3,v
retrieving revision 1.4
diff -u -w -r1.4 consttime_memequal.3
--- lib/libc/string/consttime_memequal.3        14 Nov 2014 22:46:34 -0000      1.4
+++ lib/libc/string/consttime_memequal.3        17 Mar 2015 23:34:53 -0000
@@ -86,3 +86,8 @@
 .Fn consttime_memequal
 function appeared in
 .Nx 7.0 .
+.Nx
+does not ship with a function with lexicographic ordering,
+because of the lack of a known
+.Sq constant time
+use case.


Home | Main Index | Thread Index | Old Index