The NetBSD Project

CVS log for src/common/lib/libc/string/consttime_memequal.c

[BACK] Up to [cvs.NetBSD.org] / src / common / lib / libc / string

Request diff between arbitrary revisions


Default branch: MAIN


Revision 1.6.16.2 / (download) - annotate - [select for diffs], Tue Apr 21 19:37:51 2020 UTC (3 months, 1 week ago) by martin
Branch: phil-wifi
Changes since 1.6.16.1: +0 -0 lines
Diff to previous 1.6.16.1 (colored) to branchpoint 1.6 (colored)

Ooops, restore accidently removed files from merge mishap

Revision 1.6.16.1, Tue Apr 21 18:41:24 2020 UTC (3 months, 1 week ago) by martin
Branch: phil-wifi
Changes since 1.6: +1 -1 lines
FILE REMOVED

Sync with HEAD

Revision 1.6 / (download) - annotate - [select for diffs], Wed Mar 18 20:11:35 2015 UTC (5 years, 4 months ago) by riastradh
Branch: MAIN
CVS Tags: tls-maxphys-20171202, prg-localcount2-base3, prg-localcount2-base2, prg-localcount2-base1, prg-localcount2-base, prg-localcount2, phil-wifi-base, phil-wifi-20200421, phil-wifi-20200411, phil-wifi-20200406, phil-wifi-20191119, phil-wifi-20190609, pgoyette-localcount-base, pgoyette-localcount-20170426, pgoyette-localcount-20170320, pgoyette-localcount-20170107, pgoyette-localcount-20161104, pgoyette-localcount-20160806, pgoyette-localcount-20160726, pgoyette-localcount, pgoyette-compat-merge-20190127, pgoyette-compat-base, pgoyette-compat-20190127, pgoyette-compat-20190118, pgoyette-compat-1226, pgoyette-compat-1126, pgoyette-compat-1020, pgoyette-compat-0930, pgoyette-compat-0906, pgoyette-compat-0728, pgoyette-compat-0625, pgoyette-compat-0521, pgoyette-compat-0502, pgoyette-compat-0422, pgoyette-compat-0415, pgoyette-compat-0407, pgoyette-compat-0330, pgoyette-compat-0322, pgoyette-compat-0315, pgoyette-compat, perseant-stdc-iso10646-base, perseant-stdc-iso10646, netbsd-9-base, netbsd-9-0-RELEASE, netbsd-9-0-RC2, netbsd-9-0-RC1, netbsd-9, netbsd-8-base, netbsd-8-2-RELEASE, netbsd-8-1-RELEASE, netbsd-8-1-RC1, netbsd-8-0-RELEASE, netbsd-8-0-RC2, netbsd-8-0-RC1, netbsd-8, matt-nb8-mediatek-base, matt-nb8-mediatek, localcount-20160914, is-mlppp-base, is-mlppp, bouyer-xenpvh-base2, bouyer-xenpvh-base1, bouyer-xenpvh-base, bouyer-xenpvh, bouyer-socketcan-base1, bouyer-socketcan-base, bouyer-socketcan, ad-namecache-base3, ad-namecache-base, ad-namecache, HEAD
Branch point for: phil-wifi
Changes since 1.5: +11 -11 lines
Diff to previous 1.5 (colored)

Switch to the suggested constant-time result conversion.

Not hard to find CPU/compiler combinations with branches for `!res'.

While here, make everything unsigned for good measure.

Revision 1.5.4.2 / (download) - annotate - [select for diffs], Tue Aug 19 23:45:14 2014 UTC (5 years, 11 months ago) by tls
Branch: tls-maxphys
Changes since 1.5.4.1: +37 -0 lines
Diff to previous 1.5.4.1 (colored) to branchpoint 1.5 (colored) next main 1.6 (colored)

Rebase to HEAD as of a few days ago.

Revision 1.4.2.1 / (download) - annotate - [select for diffs], Sun Aug 10 06:47:06 2014 UTC (5 years, 11 months ago) by tls
Branch: tls-earlyentropy
Changes since 1.4: +6 -1 lines
Diff to previous 1.4 (colored) next main 1.5 (colored)

Rebase.

Revision 1.5.4.1, Tue Jun 24 16:39:39 2014 UTC (6 years, 1 month ago) by tls
Branch: tls-maxphys
Changes since 1.5: +0 -37 lines
FILE REMOVED

file consttime_memequal.c was added on branch tls-maxphys on 2014-08-19 23:45:14 +0000

Revision 1.5 / (download) - annotate - [select for diffs], Tue Jun 24 16:39:39 2014 UTC (6 years, 1 month ago) by drochner
Branch: MAIN
CVS Tags: tls-maxphys-base, tls-earlyentropy-base, netbsd-7-nhusb-base-20170116, netbsd-7-nhusb-base, netbsd-7-nhusb, netbsd-7-base, netbsd-7-2-RELEASE, netbsd-7-1-RELEASE, netbsd-7-1-RC2, netbsd-7-1-RC1, netbsd-7-1-2-RELEASE, netbsd-7-1-1-RELEASE, netbsd-7-1, netbsd-7-0-RELEASE, netbsd-7-0-RC3, netbsd-7-0-RC2, netbsd-7-0-RC1, netbsd-7-0-2-RELEASE, netbsd-7-0-1-RELEASE, netbsd-7-0, netbsd-7
Branch point for: tls-maxphys
Changes since 1.4: +6 -1 lines
Diff to previous 1.4 (colored)

add a public domain notice

Revision 1.4.4.2 / (download) - annotate - [select for diffs], Thu May 22 11:26:30 2014 UTC (6 years, 2 months ago) by yamt
Branch: yamt-pagecache
Changes since 1.4.4.1: +32 -0 lines
Diff to previous 1.4.4.1 (colored) to branchpoint 1.4 (colored) next main 1.5 (colored)

sync with head.

for a reference, the tree before this commit was tagged
as yamt-pagecache-tag8.

this commit was splitted into small chunks to avoid
a limitation of cvs.  ("Protocol error: too many arguments")

Revision 1.4.4.1, Wed Aug 28 19:31:14 2013 UTC (6 years, 11 months ago) by yamt
Branch: yamt-pagecache
Changes since 1.4: +0 -32 lines
FILE REMOVED

file consttime_memequal.c was added on branch yamt-pagecache on 2014-05-22 11:26:30 +0000

Revision 1.4 / (download) - annotate - [select for diffs], Wed Aug 28 19:31:14 2013 UTC (6 years, 11 months ago) by riastradh
Branch: MAIN
CVS Tags: yamt-pagecache-base9, rmind-smpnet-nbase, rmind-smpnet-base, riastradh-xf86-video-intel-2-7-1-pre-2-21-15, riastradh-drm2-base3
Branch point for: yamt-pagecache, tls-earlyentropy
Changes since 1.3: +11 -1 lines
Diff to previous 1.3 (colored)

Comment on possible data-dependent branch in `!res'.

Revision 1.3 / (download) - annotate - [select for diffs], Wed Aug 28 17:47:07 2013 UTC (6 years, 11 months ago) by riastradh
Branch: MAIN
Changes since 1.2: +5 -2 lines
Diff to previous 1.2 (colored)

Publish explicit_memset and consttime_memequal in userland libc.

Remove the double-underscore from the userland versions, and do the
weak alias dance instead, now that these are public parts of libc.

As discussed on tech-userlevel:

https://mail-index.netbsd.org/tech-userlevel/2013/06/24/msg007843.html
(option 3)

Revision 1.2 / (download) - annotate - [select for diffs], Wed Aug 28 15:24:41 2013 UTC (6 years, 11 months ago) by riastradh
Branch: MAIN
Changes since 1.1: +2 -2 lines
Diff to previous 1.1 (colored)

Fix sense of consttime_memequal and update all callers.

Now it returns true (nonzero) to mean equal and false (zero) to mean
inequal, as the name suggests.

As promised on tech-userlevel back in June:

https://mail-index.netbsd.org/tech-userlevel/2013/06/24/msg007843.html

Revision 1.1 / (download) - annotate - [select for diffs], Mon Jun 24 04:21:19 2013 UTC (7 years, 1 month ago) by riastradh
Branch: MAIN
CVS Tags: riastradh-drm2-base2, riastradh-drm2-base1, riastradh-drm2-base, riastradh-drm2

Replace consttime_bcmp/explicit_bzero by consttime_memequal/explicit_memset.

consttime_memequal is the same as the old consttime_bcmp.
explicit_memset is to memset as explicit_bzero was to bcmp.

Passes amd64 release and i386/ALL, but I'm sure I missed some spots,
so please let me know.

This form allows you to request diff's between any two revisions of a file. You may select a symbolic revision name using the selection box or you may type in a numeric name using the type-in text box.




CVSweb <webmaster@jp.NetBSD.org>