Up to [local] / src / lib / libutil
Request diff between arbitrary revisions
Default branch: MAIN
Revision 1.17 / (download) - annotate - [select for diffs], Tue Dec 27 17:10:08 2022 UTC (17 months ago) by jmc
Branch: MAIN
CVS Tags: OPENBSD_7_5_BASE,
OPENBSD_7_5,
OPENBSD_7_4_BASE,
OPENBSD_7_4,
OPENBSD_7_3_BASE,
OPENBSD_7_3,
HEAD
Changes since 1.16: +2 -2 lines
Diff to previous 1.16 (colored)
spelling fixes; from paul tagliamonte any changes not taken noted on tech, but chiefly here i did not take the cancelation - cancellation changes;
Revision 1.16 / (download) - annotate - [select for diffs], Sun Aug 2 18:35:48 2020 UTC (3 years, 10 months ago) by tb
Branch: MAIN
CVS Tags: OPENBSD_7_2_BASE,
OPENBSD_7_2,
OPENBSD_7_1_BASE,
OPENBSD_7_1,
OPENBSD_7_0_BASE,
OPENBSD_7_0,
OPENBSD_6_9_BASE,
OPENBSD_6_9,
OPENBSD_6_8_BASE,
OPENBSD_6_8
Changes since 1.15: +2 -2 lines
Diff to previous 1.15 (colored)
Squelch warning by using idiom from libc bcrypt(3) Clang 10 warns about the expression sizeof(cdata) / sizeof(uint64_t) as cdata is an array of uint32_t and it expects that the intent of this is to compute the number of array elements. Use BCRYPT_WORDS / 2 instead. Same diff as millert's commit sys/lib/libsa/bcrypt_pbkdf.c -r1.2, which was ok kettenis. deraadt confirms that this satisfies clang 10.
Revision 1.15 / (download) - annotate - [select for diffs], Thu Nov 21 16:13:39 2019 UTC (4 years, 6 months ago) by tedu
Branch: MAIN
CVS Tags: OPENBSD_6_7_BASE,
OPENBSD_6_7
Changes since 1.14: +2 -1 lines
Diff to previous 1.14 (colored)
zero tmpout too. reminded by related diff from tim
Revision 1.14 / (download) - annotate - [select for diffs], Thu Nov 21 16:07:24 2019 UTC (4 years, 6 months ago) by tedu
Branch: MAIN
Changes since 1.13: +8 -3 lines
Diff to previous 1.13 (colored)
overwrite the key in failure modes in case the caller doesn't check. ok deraadt
Revision 1.13 / (download) - annotate - [select for diffs], Mon Jan 12 03:20:04 2015 UTC (9 years, 4 months ago) by tedu
Branch: MAIN
CVS Tags: OPENBSD_6_6_BASE,
OPENBSD_6_6,
OPENBSD_6_5_BASE,
OPENBSD_6_5,
OPENBSD_6_4_BASE,
OPENBSD_6_4,
OPENBSD_6_3_BASE,
OPENBSD_6_3,
OPENBSD_6_2_BASE,
OPENBSD_6_2,
OPENBSD_6_1_BASE,
OPENBSD_6_1,
OPENBSD_6_0_BASE,
OPENBSD_6_0,
OPENBSD_5_9_BASE,
OPENBSD_5_9,
OPENBSD_5_8_BASE,
OPENBSD_5_8,
OPENBSD_5_7_BASE,
OPENBSD_5_7
Changes since 1.12: +6 -6 lines
Diff to previous 1.12 (colored)
rename blocks to words. bcrypt "blocks" are unrelated to blowfish blocks, nor are they the same size.
Revision 1.12 / (download) - annotate - [select for diffs], Thu Jan 8 00:30:07 2015 UTC (9 years, 4 months ago) by deraadt
Branch: MAIN
Changes since 1.11: +4 -2 lines
Diff to previous 1.11 (colored)
declare a local version of MIN(), call it MINIMUM()
Revision 1.11 / (download) - annotate - [select for diffs], Wed Jan 7 21:34:23 2015 UTC (9 years, 4 months ago) by deraadt
Branch: MAIN
Changes since 1.10: +2 -2 lines
Diff to previous 1.10 (colored)
Do not need sys/param.h
Revision 1.10 / (download) - annotate - [select for diffs], Tue Dec 30 01:41:43 2014 UTC (9 years, 5 months ago) by djm
Branch: MAIN
Changes since 1.9: +2 -2 lines
Diff to previous 1.9 (colored)
typo in comment: ouput => output
Revision 1.9 / (download) - annotate - [select for diffs], Sun Jul 13 21:21:25 2014 UTC (9 years, 10 months ago) by tedu
Branch: MAIN
CVS Tags: OPENBSD_5_6_BASE,
OPENBSD_5_6
Changes since 1.8: +2 -1 lines
Diff to previous 1.8 (colored)
include stdint.h for standard ints. from Jean-Philippe Ouellet
Revision 1.8 / (download) - annotate - [select for diffs], Mon Jun 30 00:26:22 2014 UTC (9 years, 11 months ago) by deraadt
Branch: MAIN
Changes since 1.7: +1 -2 lines
Diff to previous 1.7 (colored)
sys/types.h rather than sys/param.h, where applicable. avoid overreach.
Revision 1.7 / (download) - annotate - [select for diffs], Tue Apr 8 14:20:01 2014 UTC (10 years, 1 month ago) by tedu
Branch: MAIN
Changes since 1.6: +9 -4 lines
Diff to previous 1.6 (colored)
fix an error in the stride calculations. the math only works for multiples of the stride. don't overwrite past the end of the buffer, and also save that amount for later so the array is completely filled. ok deraadt djm reported by Dmitry Chestnykh (dchest)
Revision 1.6 / (download) - annotate - [select for diffs], Fri Jan 31 16:56:32 2014 UTC (10 years, 4 months ago) by tedu
Branch: MAIN
CVS Tags: OPENBSD_5_5_BASE,
OPENBSD_5_5
Changes since 1.5: +6 -6 lines
Diff to previous 1.5 (colored)
explicit_bzero where useful
Revision 1.5 / (download) - annotate - [select for diffs], Sun Dec 22 03:29:07 2013 UTC (10 years, 5 months ago) by tedu
Branch: MAIN
Changes since 1.4: +3 -3 lines
Diff to previous 1.4 (colored)
tweak comment
Revision 1.4 / (download) - annotate - [select for diffs], Mon Jul 29 00:55:53 2013 UTC (10 years, 10 months ago) by tedu
Branch: MAIN
CVS Tags: OPENBSD_5_4_BASE,
OPENBSD_5_4
Changes since 1.3: +6 -7 lines
Diff to previous 1.3 (colored)
fix a colossal cockup due to pointer/array confusion. code isn't used yet, thankfully. first observed by djm running regress. ok deraadt djm
Revision 1.3 / (download) - annotate - [select for diffs], Tue Jun 4 15:55:50 2013 UTC (11 years ago) by tedu
Branch: MAIN
Changes since 1.2: +3 -1 lines
Diff to previous 1.2 (colored)
revert. check is < 1, not < 0.
Revision 1.2 / (download) - annotate - [select for diffs], Tue Jun 4 15:54:32 2013 UTC (11 years ago) by tedu
Branch: MAIN
Changes since 1.1: +1 -3 lines
Diff to previous 1.1 (colored)
oops, rounds is unsigned now
Revision 1.1 / (download) - annotate - [select for diffs], Mon Jun 3 21:07:02 2013 UTC (11 years ago) by tedu
Branch: MAIN
Add bcrypt_pbkdf, a password based key derivation function using bcrypt. Technically, it's a slight variant of bcrypt better suited for use as a pluggable hash with PKCS #5 PBKDF2. ok djm (also tweak pkcs5_pbkdf2() prototype to have consistent types.)