btrfs-progs: tests: add SHA256
authorDavid Sterba <dsterba@suse.com>
Tue, 14 Mar 2017 18:30:47 +0000 (19:30 +0100)
committerDavid Sterba <dsterba@suse.com>
Thu, 16 Mar 2017 16:02:44 +0000 (17:02 +0100)
commit4ddd6055c333932b561046ad1d41234d773246d2
tree45a829b666959aab5878870e670735c99ea804f6
parent1d684ec0e0c3663a140e362f5c7397134c4030f7
btrfs-progs: tests: add SHA256

In order to drop dependency on SSL library to compute MD5 in fssum,
we'll use the reference implementation from RFC 6234.

The checksum is not in a cryptographically sensitive context, but we're
going to skip MD5 and SHA-1 anyway.

Signed-off-by: David Sterba <dsterba@suse.com>
tests/sha-private.h [new file with mode: 0644]
tests/sha.h [new file with mode: 0644]
tests/sha224-256.c [new file with mode: 0644]