| Commit message (Collapse) | Author | Age | Files | Lines |
|
|
|
|
|
|
|
|
|
|
|
|
| |
Connect it to userland (libmd, libcrypt, sbin/md5) and kernel (crypto.ko)
Support for skein as a ZFS checksum algorithm was introduced in r289422
but is disconnected because FreeBSD lacked a Skein implementation.
A further commit will enable it in ZFS.
Reviewed by: cem
Sponsored by: ScaleEngine Inc.
Differential Revision: https://reviews.freebsd.org/D6166
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
This implements SHA-512/256, which generates a 256 bit hash by
calculating the SHA-512 then truncating the result. A different initial
value is used, making the result different from the first 256 bits of
the SHA-512 of the same input. SHA-512 is ~50% faster than SHA-256 on
64bit platforms, so the result is a faster 256 bit hash.
The main goal of this implementation is to enable support for this
faster hashing algorithm in ZFS. The feature was introduced into ZFS
in r289422, but is disconnected because SHA-512/256 support was missing.
A further commit will enable it in ZFS.
This is the follow on to r292782
Reviewed by: cem
Sponsored by: ScaleEngine Inc.
Differential Revision: https://reviews.freebsd.org/D6061
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
cperciva's libmd implementation is 5-30% faster
The same was done for SHA256 previously in r263218
cperciva's implementation was lacking SHA-384 which I implemented, validated against OpenSSL and the NIST documentation
Extend sbin/md5 to create sha384(1)
Chase dependancies on sys/crypto/sha2/sha2.{c,h} and replace them with sha512{c.c,.h}
Reviewed by: cperciva, des, delphij
Approved by: secteam, bapt (mentor)
MFC after: 2 weeks
Sponsored by: ScaleEngine Inc.
Differential Revision: https://reviews.freebsd.org/D3929
|
|
|
|
|
| |
Suggested by: rdivacky
MFC after: 2 weeks
|
|
|
|
| |
MFC after: 2 weeks
|
|
|
|
|
|
|
|
| |
- Staticify flags that are not used outside the file scope.
PR: bin/193471
Submitted by: Robert Sprowson <webpages sprow.co.uk>
MFC after: 2 weeks
|
|
|
|
| |
MFC after: 1 month
|
|
|
|
|
|
|
| |
PR: bin/167463
Submitted by: "Bryan Drewery" <bryan@shatow.net>
Approved by: cperciva
MFC after: 3 days
|
|
|
|
|
|
|
|
|
| |
PR: bin/146541
Submitted by: eadler
Reviewed by: jhell@dataix.net
Approved by: secteam (cperciva)
Approved by: cperciva
MFC after: 3 weeks
|
| |
|
| |
|
|
|
|
| |
of unsigned char* argument.
|
|
|
|
|
|
|
|
| |
add support for SHA256.
Tested on: i386, sparc64
Tested using: NIST test vectors, built-in tests
X-MFC-after: 5.4-RELEASE
|
|
|
|
|
| |
Noticed by: Joshua Goodall <joshua@roughtrade.net>
Approved by: ru
|
|
|
|
|
|
|
|
| |
Since the algorithms are already supported in libmd,
the size increase is small when a dynamic root is used.
Approved by: joerg, ru
MFC after: 2 weeks
|
|
|
|
| |
could not be opened.
|
| |
|
|
|
|
| |
benchmarks, and prints out results in float format.
|
|
|
|
|
|
| |
the correctness of this program. Previously, it printed out
the MD5 values of some test strings, but did not tell you
if they were correct or not!
|
|
|
|
|
|
|
| |
md5 -q -s foo
to not expect input on stdin after hashing the string.
MFC after: 1 week
|
| |
|
|
|
|
| |
Please-read-style(9): dd
|
|
|
|
| |
PR: bin/28386
|
|
|
|
| |
builtins (e.g., exit, strcmp).
|
|
|
|
|
|
|
| |
Make this compile with WARNS=2.
PR: bin/27524
MFC after: 3 days
|
|
|
|
| |
Submitted by: nectar
|
| |
|
| |
|
| |
|
|
|
|
| |
hash is printed. This aids visual diffs.
|
| |
|
|
|
|
| |
include the proper header.
|
|
|
|
|
|
|
|
|
|
| |
* Don't buffer "Digesting..." output - flush it immediately.
* Increase the number of repetitions by a factor of 100, and the block size by
a factor of 10 so as to give meaningful results on modern machines (108
seconds on my P120, and ~26 seconds on a P-II 350).
PR: bin/10604
Submitted by: Stanislav Shalunov <shalunov@lynxhub.lz.att.com>
|
| |
|
|
|
|
| |
Submitted by: Bruce Evans <bde@zeta.org.au>
|
|
|
|
|
|
|
| |
while here.
PR: 5387
Submitted by: Matthew Hunt <mph@pobox.com>
|
| |
|
|
|
|
|
| |
Reviewed by: phk
Submitted by: Martin Ibert <mib@ppe.bb-data.de>
|
|
|
|
|
|
|
|
| |
This will make a number of things easier in the future, as well as (finally!)
avoiding the Id-smashing problem which has plagued developers for so long.
Boy, I'm glad we're not using sup anymore. This update would have been
insane otherwise.
|
|
|
|
|
|
| |
<stdio.h> doesn't (bogusly) include <sys/types.h>.
Cleaned up #includes.
|
| |
|
| |
|
| |
|
|
|
|
| |
ctm deltas.
|
| |
|
|
|