1
0
mirror of https://github.com/openbsd/src.git synced 2025-01-04 23:35:36 -08:00
Commit Graph

10 Commits

Author SHA1 Message Date
tedu
f6bf8f90c0 i forgot to commit sha2.h changes for SHA512/256 2016-09-03 17:00:29 +00:00
millert
2c851520d8 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@
2013-04-15 15:54:17 +00:00
deraadt
4a39ccd02c Remove excessive sys/cdefs.h inclusion
ok guenther millert kettenis
2012-12-05 23:19:48 +00:00
djm
4ef0b5fdda 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@
2008-09-06 12:00:19 +00:00
jfb
e480373425 Make the `filename' parameter to HASHFile() and HASHFileChunk() const
ok pedro@, millert@
2004-06-22 01:57:29 +00:00
millert
c2a0ac189b 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.
2004-05-05 17:39:47 +00:00
millert
9dfc8d301f 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).
2004-05-03 17:30:14 +00:00
millert
6cb58d427f 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.
2004-04-29 15:51:16 +00:00
millert
86ad99fc8b Add __bounded__ attributes like the other hash functions have.
With help from avsm@
2004-04-27 17:50:36 +00:00
millert
62c0070c27 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.
2003-05-08 23:34:55 +00:00