Use AF_ALG for md5 too
Signed-off-by: Matteo Croce
---
lib/md5.c | 18 +-
modules/crypto/md5 | 6 +-
2 files changed, 22 insertions(+), 2 deletions(-)
diff --git a/lib/md5.c b/lib/md5.c
index 68d00a6c7..307abbbe7 100644
--- a/lib/md5.c
+++ b/lib/md5.c
@@ -32,6 +32,
Use AF_ALG for sha384 and sha512 too
Signed-off-by: Matteo Croce
---
lib/sha512.c | 32 ++--
modules/crypto/sha512 | 6 +-
2 files changed, 35 insertions(+), 3 deletions(-)
diff --git a/lib/sha512.c b/lib/sha512.c
index 8a6dd4e83..72e5fdd24 100644
--- a
Linux supports accessing kernel crypto API via AF_ALG since
version 2.6.38. Coreutils uses libcrypto when available and fallbacks to
generic C implementation of various hashing functions.
Add a generic afalg_stream() function which uses AF_ALG to calculate the
hash of a stream and use sendfile() w
Let md5sum and all sha*sum utilities use Linux kernel cryptographic API via the
AF_ALG address family.
Speed gain depends on the CPU type:
Xeon E3-1265L V2:
$ truncate -s 2GB 2g.bin
$ time sha1sum 2g.bin
752ef2367f479e79e4f0cded9c270c2890506ab0 2g.bin
real0m4.829s
user
Use AF_ALG for sha224 and sha256 too
Signed-off-by: Matteo Croce
---
lib/sha256.c | 32 ++--
modules/crypto/sha256 | 6 +-
2 files changed, 35 insertions(+), 3 deletions(-)
diff --git a/lib/sha256.c b/lib/sha256.c
index 85405b20f..578f43e4d 100644
--- a
* build-aux/bootstrap: Remove unused variable gnulib_mk.
Set $gnulib_extra_files early so it can be overridden in .conf.
Remove redundant --import flag from $gnulib_tool_options.
Set $use_gnulib to false if no gnulib modules or files are needed.
If $use_gnulib is false, don't do anything related to
* build-aux/gcc-warning.spec: Add -Wcatch-value,
-Wclass-memaccess, -Wdo-subscript, -Wextra-semi. Adjust to the
fact that the GCC help message now mentions operands for
-Warray-bounds, -Wformat, -Wformat-overflow, -Wformat-truncation,
-Wimplicit-fallthrough, -Wplacement-new, -Wshift-overflow,
-Wst
Thanks, but it looks like Evolution broke the patch by folding lines; could you
please resend it as an attachment? "git format-patch" is a good way to format
patches, and I use "git send-email" to send them if you prefer not to use
attachments.
On Sat, 2018-04-28 at 14:00 -0700, Paul Eggert wrote:
> Thanks, but it looks like Evolution broke the patch by folding lines; could
> you
> please resend it as an attachment? "git format-patch" is a good way to format
> patches, and I use "git send-email" to send them if you prefer not to use
>
Paul Smith wrote:
I've never figured out how to use git send-email with SMTP servers
which require secure connections.
To get that to work, I put something like the following into my ~/.gitconfig
file (I used my own info of course, with UCLA-CS's SMTP server). Admittedly it's
a bit of a black
That email was empty, so I attempted to repair Evolution's damage in the patch
you originally sent, and installed the attached into the Gnulib master on
Savannah. Please give a try. Thanks.
>From b48a0b952b98b15fb1abb1f18f3676a647935a5f Mon Sep 17 00:00:00 2001
From: Paul Smith
Date: Sat, 28 Apr
* build-aux/bootstrap: Remove unused variable gnulib_mk.
Set $gnulib_extra_files early so it can be overridden in .conf.
Remove redundant --import flag from $gnulib_tool_options.
Set $use_gnulib to false if no gnulib modules or files are needed.
If $use_gnulib is false, don't do anything related to
13 matches
Mail list logo