From 0873e4230047553c366dff11444d56fe9977b61f Mon Sep 17 00:00:00 2001 From: Jay Berkenbilt Date: Sat, 29 Dec 2012 08:07:46 -0500 Subject: SHA2 pipeline with support for 256, 384, and 512 bits Implemented pipeline around sph sha calls using standard test vectors for full-byte values. Did not test or support partial byte values. --- libtests/qtest/sha2.test | 18 ++++++++++++++++++ 1 file changed, 18 insertions(+) create mode 100644 libtests/qtest/sha2.test (limited to 'libtests/qtest/sha2.test') diff --git a/libtests/qtest/sha2.test b/libtests/qtest/sha2.test new file mode 100644 index 00000000..34d668f7 --- /dev/null +++ b/libtests/qtest/sha2.test @@ -0,0 +1,18 @@ +#!/usr/bin/env perl +require 5.008; +BEGIN { $^W = 1; } +use strict; + +chdir("sha2") or die "chdir testdir failed: $!\n"; + +require TestDriver; + +my $td = new TestDriver('sha2'); + +$td->runtest("sha2", + {$td->COMMAND => "sha2"}, + {$td->FILE => "sha2.out", + $td->EXIT_STATUS => 0}, + $td->NORMALIZE_NEWLINES); + +$td->report(1); -- cgit v1.2.3-54-g00ecf