Source-Changes archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

CVS import: othersrc/external/bsd/multigest



Module Name:    othersrc
Committed By:   agc
Date:           Fri Aug 16 06:47:54 UTC 2013

Update of /cvsroot/othersrc/external/bsd/multigest
In directory ivanova.netbsd.org:/tmp/cvs-serv27702

Log Message:
multigest is a library and utility program which calculates multiple
digests in parallel.  The resulting digests are concatenated to make
one large digest value.

The following digest types are supported:

           BLAKE2
           CRC32C
           MD5
           RMD160
           SHA1
           SHA256
           SHA3-224
           SHA3-256
           SHA3-384
           SHA3-512
           SHA512
           SIZE
           TIGER2
           TIGER
           WHIRLPOOL

2 separate interfaces are provided to the multigest routines, and
these mirror the existing digest interfaces:

1. Low-level interface

        *_init(), *_update() and *_final() functions

2. High-level interface

        *_data and *_file functions

Version Control System Identifiers ($Id$, $NetBSD$, etc) can be
normalised using the -s /regexp/replacement/ argument.  The -r
argument is a shorthand for normalising the RCS/CVS identifiers, $Id$
and $NetBSD$

Multiple digests are specified as part of a comma-specified list.

multigest includes new digest functions, such as the keccak/sha3
family of digests, as well as blake2 (also from the sha3 contest). 
crc32c is provided as a lightweight digest.  A size pseudo-digest
algorithm is provided (suggested a long time ago by tron).

There is also a "check" command line argument, which allows files
to be compared to previously calculated multigest output.

Sample usage as follows:

% multigest -a sha1,sha256 2.in
SHA1,SHA256 (bin/2.in) () = 
564d6d5d84ba22fb47dded32b90578ef31124457eead5829df188e5e0f06be2760fea7814bb0844121f6dc61da1d0e65896fe445
% multigest -r -a sha1,sha256 2.in
SHA1,SHA256 (bin/2.in) (,\$(Id|NetBSD)[^\n]*\$,$NetBSD$) = 
114f266e7a71dc51811df9dc994bce4de69170c9835bc89fbf57f3a6aa9168b776bd3ef2ba6bcf6e6934a12380b10272ae73679c
% echo -n "The quick brown fox jumps over the lazy dog" | multigest -a sha3-512
d135bb84d0439dbac432247ee573a23ea7d3c9deb2a968eb31d47c4fb45f1ef4422d6c531b5b9bd6f449ebcc449ea94d0a8f05f62130fda612da53c79659f609

which matches the output shown on the wikipedia page for keccak:

        http://en.wikipedia.org/wiki/SHA-3

To check previously calculated multigest values:

% multigest -o calculated -a crc32c,md5,rmd160,sha1,sha256,sha512 -r 2.in
% cat calculated
CRC32C,MD5,RMD160,SHA1,SHA256,SHA512 (2.in) (,\$(Id|NetBSD)[^\n]*\$,$NetBSD$) = 
279934d7b43c46ba05e28788df71eaea4777912ffaad8f20db6708582703a0ef4bc79a61c34a91bc114f266e7a71dc51811df9dc994bce4de69170c9835bc89fbf57f3a6aa9168b776bd3ef2ba6bcf6e6934a12380b10272ae73679ca92644bdf34583700776b58728501c15ee8300feb6ddba910c462618bce2221a0445036a2d46e676ef32988283372710701eb39fa7a59821b740bf07a3d364a5
% multigest -c calculated
provided digest:   
'279934d7b43c46ba05e28788df71eaea4777912ffaad8f20db6708582703a0ef4bc79a61c34a91bc114f266e7a71dc51811df9dc994bce4de69170c9835bc89fbf57f3a6aa9168b776bd3ef2ba6bcf6e6934a12380b10272ae73679ca92644bdf34583700776b58728501c15ee8300feb6ddba910c462618bce2221a0445036a2d46e676ef32988283372710701eb39fa7a59821b740bf07a3d364a5'
calculated digest: 
'279934d7b43c46ba05e28788df71eaea4777912ffaad8f20db6708582703a0ef4bc79a61c34a91bc114f266e7a71dc51811df9dc994bce4de69170c9835bc89fbf57f3a6aa9168b776bd3ef2ba6bcf6e6934a12380b10272ae73679ca92644bdf34583700776b58728501c15ee8300feb6ddba910c462618bce2221a0445036a2d46e676ef32988283372710701eb39fa7a59821b740bf07a3d364a5'
%

Status:

Vendor Tag:     CROOKS
Release Tags:   multigest-base
                
N othersrc/external/bsd/multigest/Makefile
N othersrc/external/bsd/multigest/bin/1.expected
N othersrc/external/bsd/multigest/bin/10.expected
N othersrc/external/bsd/multigest/bin/1.in
N othersrc/external/bsd/multigest/bin/2.in.normalised
N othersrc/external/bsd/multigest/bin/11.expected
N othersrc/external/bsd/multigest/bin/12.expected
N othersrc/external/bsd/multigest/bin/13.expected
N othersrc/external/bsd/multigest/bin/2.expected
N othersrc/external/bsd/multigest/bin/2.in
N othersrc/external/bsd/multigest/bin/4.expected
N othersrc/external/bsd/multigest/bin/5.expected
N othersrc/external/bsd/multigest/bin/6.expected
N othersrc/external/bsd/multigest/bin/7.expected
N othersrc/external/bsd/multigest/bin/8.expected
N othersrc/external/bsd/multigest/bin/9.expected
N othersrc/external/bsd/multigest/bin/Makefile
N othersrc/external/bsd/multigest/bin/18.expected
N othersrc/external/bsd/multigest/bin/15.expected
N othersrc/external/bsd/multigest/bin/16.expected
N othersrc/external/bsd/multigest/bin/17.expected
N othersrc/external/bsd/multigest/bin/19.expected
N othersrc/external/bsd/multigest/bin/20.expected
N othersrc/external/bsd/multigest/lib/shlib_version
N othersrc/external/bsd/multigest/lib/Makefile
N othersrc/external/bsd/multigest/dist/libmultigest.3
N othersrc/external/bsd/multigest/dist/multigest.1
N othersrc/external/bsd/multigest/dist/blake2.c
N othersrc/external/bsd/multigest/dist/blake2.h
N othersrc/external/bsd/multigest/dist/crc32c.c
N othersrc/external/bsd/multigest/dist/crc32c.h
N othersrc/external/bsd/multigest/dist/main.c
N othersrc/external/bsd/multigest/dist/md5.h
N othersrc/external/bsd/multigest/dist/md5c.c
N othersrc/external/bsd/multigest/dist/multigest.c
N othersrc/external/bsd/multigest/dist/multigest.h
N othersrc/external/bsd/multigest/dist/rmd160.c
N othersrc/external/bsd/multigest/dist/rmd160.h
N othersrc/external/bsd/multigest/dist/sha1.c
N othersrc/external/bsd/multigest/dist/sha1.h
N othersrc/external/bsd/multigest/dist/sha2.c
N othersrc/external/bsd/multigest/dist/sha2.h
N othersrc/external/bsd/multigest/dist/keccak.c
N othersrc/external/bsd/multigest/dist/tiger.c
N othersrc/external/bsd/multigest/dist/tiger.h
N othersrc/external/bsd/multigest/dist/whirlpool.c
N othersrc/external/bsd/multigest/dist/whirlpool.h
N othersrc/external/bsd/multigest/dist/keccak.h

No conflicts created by this import




Home | Main Index | Thread Index | Old Index