<feed xmlns='http://www.w3.org/2005/Atom'>
<title>coreutils/src/blake2, branch v9.0</title>
<subtitle>Mirror of https://https.git.savannah.gnu.org/git/coreutils.git/
</subtitle>
<id>https://git.shady.money/coreutils/atom?h=v9.0</id>
<link rel='self' href='https://git.shady.money/coreutils/atom?h=v9.0'/>
<link rel='alternate' type='text/html' href='https://git.shady.money/coreutils/'/>
<updated>2021-08-22T20:10:26Z</updated>
<entry>
<title>maint: use clearerr on stdin when appropriate</title>
<updated>2021-08-22T20:10:26Z</updated>
<author>
<name>Paul Eggert</name>
<email>eggert@cs.ucla.edu</email>
</author>
<published>2021-08-22T18:54:44Z</published>
<link rel='alternate' type='text/html' href='https://git.shady.money/coreutils/commit/?id=88846befff58d181c5f77d50ec4b11980af16563'/>
<id>urn:sha1:88846befff58d181c5f77d50ec4b11980af16563</id>
<content type='text'>
This is so that commands like ‘fmt - -’ read from stdin
both times, even when it is a tty.  Fix some other minor
issues that are related.
* src/blake2/b2sum.c (main):
* src/cksum.c (cksum):
* src/cut.c (cut_file):
* src/expand-common.c (next_file):
* src/fmt.c (fmt):
* src/fold.c (fold_file):
* src/md5sum.c (digest_file, digest_check):
* src/nl.c (nl_file):
* src/od.c (check_and_close):
* src/paste.c (paste_parallel, paste_serial):
* src/pr.c (close_file):
* src/sum.c (bsd_sum_file):
Use clearerr on stdin so that stdin can be read multiple times
even if it is a tty.  Do not assume that ferror preserves errno as
POSIX does not guarantee this.  Coalesce duplicate diagnostic
calls.
* src/blake2/b2sum.c (main):
* src/fmt.c (main, fmt):
Report read error, even if it's merely fclose failure.
* src/fmt.c: Include die.h.
(fmt): New arg FILE.  Close input (reporting error) if not stdin.
All callers changed.
* src/ptx.c (swallow_file_in_memory): Clear stdin's EOF flag.
* src/sort.c (xfclose): Remove unnecessary feof call.
</content>
</entry>
<entry>
<title>b2sum: sync better with upstream</title>
<updated>2020-02-25T13:51:21Z</updated>
<author>
<name>Pádraig Brady</name>
<email>P@draigBrady.com</email>
</author>
<published>2020-02-25T13:30:39Z</published>
<link rel='alternate' type='text/html' href='https://git.shady.money/coreutils/commit/?id=ead8464e3acffdd6eedf44ad623bb00c943302dc'/>
<id>urn:sha1:ead8464e3acffdd6eedf44ad623bb00c943302dc</id>
<content type='text'>
* src/blake2/blake2-impl.h: Sync load16() implementation,
which doesn't change code generation.
Also leverage (builtin) memcpy to more efficiently
move data on little endian systems,
giving a 2% win with GCC 9.2.1 on an i3-2310M.
</content>
</entry>
<entry>
<title>b2sum: port blake2b-ref.c to HP-UX aCC</title>
<updated>2019-05-17T14:58:32Z</updated>
<author>
<name>Paul Eggert</name>
<email>eggert@cs.ucla.edu</email>
</author>
<published>2019-05-17T14:57:39Z</published>
<link rel='alternate' type='text/html' href='https://git.shady.money/coreutils/commit/?id=a60af87f242a74c654ad5754d2653562e766a105'/>
<id>urn:sha1:a60af87f242a74c654ad5754d2653562e766a105</id>
<content type='text'>
Continue the fix for Bug#35650.
* src/blake2/blake2b-ref.c [HAVE_CONFIG_H]: Include &lt;config.h&gt;.
</content>
</entry>
<entry>
<title>b2sum: sync better with upstream</title>
<updated>2019-05-15T19:58:13Z</updated>
<author>
<name>Paul Eggert</name>
<email>eggert@cs.ucla.edu</email>
</author>
<published>2019-05-15T19:57:53Z</published>
<link rel='alternate' type='text/html' href='https://git.shady.money/coreutils/commit/?id=de54e1a8094ea0e60a408de73baa312cf80a5485'/>
<id>urn:sha1:de54e1a8094ea0e60a408de73baa312cf80a5485</id>
<content type='text'>
* src/blake2/b2sum.c: Reorder source code to minimize diffs from:
https://github.com/BLAKE2/BLAKE2/blob/master/b2sum/b2sum.c
</content>
</entry>
<entry>
<title>b2sum: port to HP-UX aCC</title>
<updated>2019-05-15T19:42:58Z</updated>
<author>
<name>Paul Eggert</name>
<email>eggert@cs.ucla.edu</email>
</author>
<published>2019-05-15T19:42:23Z</published>
<link rel='alternate' type='text/html' href='https://git.shady.money/coreutils/commit/?id=5f261e239f4cdeb0b091228dc62f10fd5e9a9991'/>
<id>urn:sha1:5f261e239f4cdeb0b091228dc62f10fd5e9a9991</id>
<content type='text'>
Its support for the -include option is flaky.  Problem reported by
Michael Osipov (Bug#35650).  Plus, we could run into other
compilers that don’t support any option like -include.  Change the
code so that -include is not needed.  Although this causes us to
depart from the upstream version, we’re already doing that for
other reasons.
* configure.ac (USE_XLC_INCLUDE): Remove, as there’s no
guarantee a compiler will support something like -include.
* src/blake2/b2sum.c [HAVE_CONFIG_H]: Include &lt;config.h&gt;.
* src/local.mk (src_b2sum_CPPFLAGS): Add -DHAVE_CONFIG_H.
Do not use -include or a substitute.
</content>
</entry>
<entry>
<title>b2sum: port to HP-UX C</title>
<updated>2019-05-11T20:55:54Z</updated>
<author>
<name>Paul Eggert</name>
<email>eggert@cs.ucla.edu</email>
</author>
<published>2019-05-11T20:48:16Z</published>
<link rel='alternate' type='text/html' href='https://git.shady.money/coreutils/commit/?id=6e97d361b47c981966f0bfef03659c572409bcba'/>
<id>urn:sha1:6e97d361b47c981966f0bfef03659c572409bcba</id>
<content type='text'>
* src/blake2/blake2.h (BLAKE2_PACKED):
Don’t assume __attribute__ ((packed)) works on non-Microsoft
compilers.  Instead, assume it works only if we have good
reason to assume so, and fall back on Microsoft (or not packing)
otherwise.  In practice, not packing is good enough and the
BLAKE2_PACKED macro is mostly just for documentation.
</content>
</entry>
<entry>
<title>all: prefer HTTPS in URLs</title>
<updated>2017-09-19T08:22:54Z</updated>
<author>
<name>Paul Eggert</name>
<email>eggert@cs.ucla.edu</email>
</author>
<published>2017-09-19T08:13:23Z</published>
<link rel='alternate' type='text/html' href='https://git.shady.money/coreutils/commit/?id=be87d61299f52e366bcb65fd176ccf325b0f77e0'/>
<id>urn:sha1:be87d61299f52e366bcb65fd176ccf325b0f77e0</id>
<content type='text'>
</content>
</entry>
<entry>
<title>maint: resync with blake2 upstream</title>
<updated>2017-07-23T19:25:40Z</updated>
<author>
<name>Pádraig Brady</name>
<email>P@draigBrady.com</email>
</author>
<published>2017-07-23T08:50:37Z</published>
<link rel='alternate' type='text/html' href='https://git.shady.money/coreutils/commit/?id=8b1c6eebaccb1105adc29ec4ae76691df9e691fa'/>
<id>urn:sha1:8b1c6eebaccb1105adc29ec4ae76691df9e691fa</id>
<content type='text'>
* src/blake2/blake2-impl.h: Don't use the equivalent explicit_bzero().
</content>
</entry>
<entry>
<title>shred: use explicit_bzero</title>
<updated>2017-07-20T21:02:47Z</updated>
<author>
<name>Paul Eggert</name>
<email>eggert@cs.ucla.edu</email>
</author>
<published>2017-07-20T21:01:14Z</published>
<link rel='alternate' type='text/html' href='https://git.shady.money/coreutils/commit/?id=73d55732df36ac4f32e7065392780a8258f5e21b'/>
<id>urn:sha1:73d55732df36ac4f32e7065392780a8258f5e21b</id>
<content type='text'>
* NEWS: Document this.
* bootstrap.conf (gnulib_modules): Add explicit_bzero.
* gl/lib/randint.c (randint_free):
* gl/lib/randread.c (randread_free):
* src/blake2/blake2-impl.h (secure_zero_memory):
* src/shred.c (dopass, do_wipefd):
Prefer explicit_bzero to memset when erasing secrets.
</content>
</entry>
<entry>
<title>b2sum: a new checksum utility with md5sum like interface</title>
<updated>2016-11-22T20:04:24Z</updated>
<author>
<name>Pádraig Brady</name>
<email>P@draigBrady.com</email>
</author>
<published>2016-10-31T13:29:34Z</published>
<link rel='alternate' type='text/html' href='https://git.shady.money/coreutils/commit/?id=ea94589e9ef02624a3837f97f80efd7d3dcf56bf'/>
<id>urn:sha1:ea94589e9ef02624a3837f97f80efd7d3dcf56bf</id>
<content type='text'>
Note we don't support the --algorithm option of the
b2sum command in the external BLAKE2 project, as that
was deemed too confusing for users.
"BLAKE2b" was chosen as the default algorithm to use,
which is single threaded but performs well on 64 bit.

* src/blake2: CC0 source copied from external project.
* cfg.mk[VC_LIST_ALWAYS_EXCLUDE_REGEX]: Exclude blake2/
from syntax checks, make update-copyright, etc.
* src/local.mk: Reference the sources for b2sum,
and set the compilation flags.
* doc/coreutils.texi (b2sum invocation): Reference the
md5sum invocation node, and add descriptions of -l.
* tests/misc/b2sum.sh: Add new test.
* tests/local.mk: Reference new test.
* AUTHORS: Add new binary.
* README: Likewise.
* build-aux/gen-lists-of-programs.sh: Likewise.
* man/.gitignore: Likewise.
* scripts/git-hooks/commit-msg: Likewise.
* man/b2sum.x: New man page template.
* man/local.mk: Reference new template.
* src/.gitignore: Ignore new binaries.
* src/blake2/.gitignore: Ignore new build atrifacts.
* src/md5sum.c (usage): Describe the new -l option.
* NEWS: Mention the new program.
</content>
</entry>
</feed>
