OpenBSD CVS

CVS log for src/sys/crypto/sha2.c


[BACK] Up to [local] / src / sys / crypto

Request diff between arbitrary revisions


Default branch: MAIN


Revision 1.21 / (download) - annotate - [select for diffs], Tue Dec 27 20:13:03 2022 UTC (17 months, 2 weeks ago) by patrick
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.20: +4 -4 lines
Diff to previous 1.20 (colored)

Fix array bounds mismatch with clang 15

New warning -Warray-parameter is a bit overzealous.
ok millert@ tb@

Revision 1.20 / (download) - annotate - [select for diffs], Mon Aug 29 06:08:03 2022 UTC (21 months, 1 week ago) by jsg
Branch: MAIN
CVS Tags: OPENBSD_7_2_BASE, OPENBSD_7_2
Changes since 1.19: +6 -6 lines
Diff to previous 1.19 (colored)

static const, not const static

c99 6.11.5:
"The placement of a storage-class specifier other than at the beginning
of the declaration specifiers in a declaration is an obsolescent
feature."

ok miod@ tb@

Revision 1.19 / (download) - annotate - [select for diffs], Fri Mar 12 10:22:46 2021 UTC (3 years, 3 months ago) by jsg
Branch: MAIN
CVS Tags: OPENBSD_7_1_BASE, OPENBSD_7_1, OPENBSD_7_0_BASE, OPENBSD_7_0, OPENBSD_6_9_BASE, OPENBSD_6_9
Changes since 1.18: +2 -2 lines
Diff to previous 1.18 (colored)

spelling

Revision 1.18 / (download) - annotate - [select for diffs], Sat Mar 14 03:38:46 2015 UTC (9 years, 3 months ago) by jsg
Branch: MAIN
CVS Tags: OPENBSD_6_8_BASE, OPENBSD_6_8, OPENBSD_6_7_BASE, OPENBSD_6_7, 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
Changes since 1.17: +1 -2 lines
Diff to previous 1.17 (colored)

Remove some includes include-what-you-use claims don't
have any direct symbols used.  Tested for indirect use by compiling
amd64/i386/sparc64 kernels.

ok tedu@ deraadt@

Revision 1.17 / (download) - annotate - [select for diffs], Wed Dec 31 16:56:55 2014 UTC (9 years, 5 months ago) by tedu
Branch: MAIN
CVS Tags: OPENBSD_5_7_BASE, OPENBSD_5_7
Changes since 1.16: +7 -13 lines
Diff to previous 1.16 (colored)

recent changes broke alignment requirements on arm.
simplify a bit more, swapping only aligned values and then using memcpy
to fill the digest. fix confirmed by jsg.
ok jsg kettenis millert

Revision 1.16 / (download) - annotate - [select for diffs], Tue Dec 23 20:40:06 2014 UTC (9 years, 5 months ago) by tedu
Branch: MAIN
Changes since 1.15: +55 -66 lines
Diff to previous 1.15 (colored)

as in libc, always assume digest is passed to Final. no null allowed.

Revision 1.15 / (download) - annotate - [select for diffs], Tue Dec 23 20:34:41 2014 UTC (9 years, 5 months ago) by tedu
Branch: MAIN
Changes since 1.14: +1 -7 lines
Diff to previous 1.14 (colored)

as in libc, there's no need to check for calling Init on null context

Revision 1.14 / (download) - annotate - [select for diffs], Tue Dec 23 19:21:58 2014 UTC (9 years, 5 months ago) by tedu
Branch: MAIN
Changes since 1.13: +7 -31 lines
Diff to previous 1.13 (colored)

use endian.h swap macros instead of home grown versions

Revision 1.13 / (download) - annotate - [select for diffs], Fri Dec 19 17:16:57 2014 UTC (9 years, 5 months ago) by tedu
Branch: MAIN
Changes since 1.12: +82 -86 lines
Diff to previous 1.12 (colored)

make the code look more like libc by changing Transform to take the state
ok millert

Revision 1.12 / (download) - annotate - [select for diffs], Fri Dec 19 02:50:27 2014 UTC (9 years, 5 months ago) by tedu
Branch: MAIN
Changes since 1.11: +29 -24 lines
Diff to previous 1.11 (colored)

convert bcopy/zero to memcpy. ok deraadt djm

Revision 1.11 / (download) - annotate - [select for diffs], Thu Dec 18 20:29:08 2014 UTC (9 years, 5 months ago) by tedu
Branch: MAIN
Changes since 1.10: +3 -2 lines
Diff to previous 1.10 (colored)

only unroll on i386 and amd64 (where confirmed to be much faster).
naddy found sparc64 gets a little slower when unrolled.
ok deraadt

Revision 1.10 / (download) - annotate - [select for diffs], Wed Dec 17 19:40:24 2014 UTC (9 years, 5 months ago) by tedu
Branch: MAIN
Changes since 1.9: +4 -1 lines
Diff to previous 1.9 (colored)

unroll loops for sha2. quite a bit faster for amd64.
ok deraadt millert

Revision 1.9 / (download) - annotate - [select for diffs], Sun Nov 16 17:39:09 2014 UTC (9 years, 6 months ago) by tedu
Branch: MAIN
Changes since 1.8: +7 -5 lines
Diff to previous 1.8 (colored)

Defining the interface in terms of char * means most callers are
required to cast their pointers, which is ugly and possibly error
prone. accidentally casting an int to a pointer, for example, instead
of the address of the int. implicit void * casting is safer.

This updates the kernel hash interfaces to use void *. Similar changes
are possible for userland. I think it's safe, but there may be some
peculiar source compatbility issues there, so let's just do the kernel
first.
ok dlg millert

Revision 1.8 / (download) - annotate - [select for diffs], Tue Jan 11 15:42:05 2011 UTC (13 years, 5 months ago) by deraadt
Branch: MAIN
CVS Tags: OPENBSD_5_6_BASE, OPENBSD_5_6, OPENBSD_5_5_BASE, OPENBSD_5_5, OPENBSD_5_4_BASE, OPENBSD_5_4, OPENBSD_5_3_BASE, OPENBSD_5_3, OPENBSD_5_2_BASE, OPENBSD_5_2, OPENBSD_5_1_BASE, OPENBSD_5_1, OPENBSD_5_0_BASE, OPENBSD_5_0, OPENBSD_4_9_BASE, OPENBSD_4_9
Changes since 1.7: +4 -4 lines
Diff to previous 1.7 (colored)

for key material that is being being discarded, convert bzero() to
explicit_bzero() where required
ok markus mikeb

Revision 1.7 / (download) - annotate - [select for diffs], Sat Sep 6 22:23:20 2008 UTC (15 years, 9 months ago) by djm
Branch: MAIN
CVS Tags: OPENBSD_4_8_BASE, OPENBSD_4_8, OPENBSD_4_7_BASE, OPENBSD_4_7, OPENBSD_4_6_BASE, OPENBSD_4_6, OPENBSD_4_5_BASE, OPENBSD_4_5
Changes since 1.6: +120 -114 lines
Diff to previous 1.6 (colored)

match libc sha2(3) API changes for kernel; ok millert@

Revision 1.2.4.2 / (download) - annotate - [select for diffs], Sat Jun 5 23:12:36 2004 UTC (20 years ago) by niklas
Branch: SMP
Changes since 1.2.4.1: +156 -312 lines
Diff to previous 1.2.4.1 (colored) to branchpoint 1.2 (colored) next main 1.3 (colored)

Merge with the trunk

Revision 1.6 / (download) - annotate - [select for diffs], Mon May 3 02:57:36 2004 UTC (20 years, 1 month ago) by millert
Branch: MAIN
CVS Tags: SMP_SYNC_B, SMP_SYNC_A, OPENBSD_4_4_BASE, OPENBSD_4_4, OPENBSD_4_3_BASE, OPENBSD_4_3, OPENBSD_4_2_BASE, OPENBSD_4_2, OPENBSD_4_1_BASE, OPENBSD_4_1, OPENBSD_4_0_BASE, OPENBSD_4_0, OPENBSD_3_9_BASE, OPENBSD_3_9, OPENBSD_3_8_BASE, OPENBSD_3_8, OPENBSD_3_7_BASE, OPENBSD_3_7, OPENBSD_3_6_BASE, OPENBSD_3_6
Changes since 1.5: +64 -86 lines
Diff to previous 1.5 (colored)

Rev 1.4 was bogus (committed from the wrong tree), this repairs it.

Revision 1.5 / (download) - annotate - [select for diffs], Mon May 3 02:55:56 2004 UTC (20 years, 1 month ago) by millert
Branch: MAIN
Changes since 1.4: +42 -33 lines
Diff to previous 1.4 (colored)

some minor KNF

Revision 1.4 / (download) - annotate - [select for diffs], Thu Apr 29 14:13:18 2004 UTC (20 years, 1 month ago) by millert
Branch: MAIN
Changes since 1.3: +6 -8 lines
Diff to previous 1.3 (colored)

The data pointer passed to the transform function may not be properly
aligned so copy it in a way that a) is endian indepenent and b) does
not rely on alignment.  Problem found and solution tested by hshoexer@

Revision 1.3 / (download) - annotate - [select for diffs], Wed Apr 28 23:11:57 2004 UTC (20 years, 1 month ago) by millert
Branch: MAIN
Changes since 1.2: +81 -222 lines
Diff to previous 1.2 (colored)

Sync userland sha2.c with kernel.  The SHAXXX_End and SHAXXX_Data functions
have been removed; we provide these in userland but not in the kernel.

Revision 1.2.4.1 / (download) - annotate - [select for diffs], Thu Feb 19 10:51:30 2004 UTC (20 years, 3 months ago) by niklas
Branch: SMP
Changes since 1.2: +0 -0 lines
Diff to previous 1.2 (colored)

Merge of current from two weeks agointo the SMP branch

Revision 1.2 / (download) - annotate - [select for diffs], Wed Sep 3 18:26:34 2003 UTC (20 years, 9 months ago) by fgsch
Branch: MAIN
CVS Tags: OPENBSD_3_5_BASE, OPENBSD_3_5, OPENBSD_3_4_BASE, OPENBSD_3_4
Branch point for: SMP
Changes since 1.1: +6 -6 lines
Diff to previous 1.1 (colored)

zap context correctly, from Juergen Buchmueller <pullmoll at stop1984 dot com>
deraadt@ ok.

Revision 1.1 / (download) - annotate - [select for diffs], Thu Jul 24 08:03:19 2003 UTC (20 years, 10 months ago) by itojun
Branch: MAIN

hmac-sha2-{256,384,512} support in AH/ESP auth.  markus ok

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.