OpenBSD CVS

CVS log for src/include/sha2.h


[BACK] Up to [local] / src / include

Request diff between arbitrary revisions


Default branch: MAIN


Revision 1.10 / (download) - annotate - [select for diffs], Sat Sep 3 17:00:29 2016 UTC (7 years, 8 months ago) by tedu
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, 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, 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, HEAD
Changes since 1.9: +21 -1 lines
Diff to previous 1.9 (colored)

i forgot to commit sha2.h changes for SHA512/256

Revision 1.9 / (download) - annotate - [select for diffs], Mon Apr 15 15:54:17 2013 UTC (11 years, 1 month ago) by millert
Branch: MAIN
CVS Tags: 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, OPENBSD_5_6_BASE, OPENBSD_5_6, OPENBSD_5_5_BASE, OPENBSD_5_5, OPENBSD_5_4_BASE, OPENBSD_5_4
Changes since 1.8: +22 -2 lines
Diff to previous 1.8 (colored)

SHA-224 is to SHA-256 as SHA-384 is to SHA-512.  It was added in a
later revision of FIPS-180.  OK miod@ jmc@ guenther@ djm@

Revision 1.8 / (download) - annotate - [select for diffs], Wed Dec 5 23:19:57 2012 UTC (11 years, 5 months ago) by deraadt
Branch: MAIN
CVS Tags: OPENBSD_5_3_BASE, OPENBSD_5_3
Changes since 1.7: +1 -3 lines
Diff to previous 1.7 (colored)

Remove excessive sys/cdefs.h inclusion
ok guenther millert kettenis

Revision 1.7 / (download) - annotate - [select for diffs], Sat Sep 6 12:00:19 2008 UTC (15 years, 8 months ago) by djm
Branch: MAIN
CVS Tags: 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, 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: +35 -39 lines
Diff to previous 1.6 (colored)

Rename SHA256/384/512 API to avoid namespace collisions with
forthcoming OpenSSL update.

Function names lose their underscore (SHA256_Init => SHA256Init) and
the various SHA256_CTX, SHA512_CTX are merged into a single SHA2_CTX
that is used for all these hashes.

ok millert@ manpage bits jmc@ "please commit" deraadt@

Revision 1.6 / (download) - annotate - [select for diffs], Tue Jun 22 01:57:30 2004 UTC (19 years, 11 months ago) by jfb
Branch: MAIN
CVS Tags: 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: +7 -7 lines
Diff to previous 1.5 (colored)

Make the `filename' parameter to HASHFile() and HASHFileChunk() const
ok pedro@, millert@

Revision 1.5 / (download) - annotate - [select for diffs], Wed May 5 17:39:47 2004 UTC (20 years ago) by millert
Branch: MAIN
Changes since 1.4: +4 -1 lines
Diff to previous 1.4 (colored)

Make the Transform functions match the other hash types and document them.
Use sizeof() in the Init functions where it makes sense.
Use weak aliases instead of wrapper functions.

Probably should have gone in before the major bump but as these are only
used internally by the sha2 functions themselves there should be no problem.

Revision 1.4 / (download) - annotate - [select for diffs], Mon May 3 17:30:14 2004 UTC (20 years ago) by millert
Branch: MAIN
Changes since 1.3: +10 -1 lines
Diff to previous 1.3 (colored)

Add Pad and FileChunk functions for each family of hash functions.
The Pad function does padding like in Final but does not finish processing.
The FileChunk function creates a digest from a portion of a file.
Also made the length parameters consistent (and size_t).

Revision 1.3 / (download) - annotate - [select for diffs], Thu Apr 29 15:51:16 2004 UTC (20 years ago) by millert
Branch: MAIN
Changes since 1.2: +13 -13 lines
Diff to previous 1.2 (colored)

Undo some recent prototype changes; it is legal to pass the helper
functions can take a NULL buf pointer.  They will malloc memory as
needed in this case.

Revision 1.2 / (download) - annotate - [select for diffs], Tue Apr 27 17:50:36 2004 UTC (20 years ago) by millert
Branch: MAIN
Changes since 1.1: +34 -16 lines
Diff to previous 1.1 (colored)

Add __bounded__ attributes like the other hash functions have.
With help from avsm@

Revision 1.1 / (download) - annotate - [select for diffs], Thu May 8 23:34:55 2003 UTC (21 years ago) by millert
Branch: MAIN
CVS Tags: OPENBSD_3_5_BASE, OPENBSD_3_5, OPENBSD_3_4_BASE, OPENBSD_3_4

Add sha2 routines based on code by Aaron D. Gifford with minor
massaging and a man page by me.  I used the phk-derived stuff for
sha2hl.c instead of Aaron's for consistency with our other hash
routines.

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.