Module Name: src
Committed By: agc
Date: Thu Nov 4 15:39:43 UTC 2010
Modified Files:
src/crypto/external/bsd/netpgp/dist: tst
Log Message:
add an additional test for the user-specified cipher
To generate a diff of this commit:
cvs rdiff -u -r1.29 -r1.30 src/crypto/external/bsd/netpgp/dist/tst
Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.
Modified files:
Index: src/crypto/external/bsd/netpgp/dist/tst
diff -u src/crypto/external/bsd/netpgp/dist/tst:1.29 src/crypto/external/bsd/netpgp/dist/tst:1.30
--- src/crypto/external/bsd/netpgp/dist/tst:1.29 Wed Sep 1 17:25:57 2010
+++ src/crypto/external/bsd/netpgp/dist/tst Thu Nov 4 15:39:42 2010
@@ -36,7 +36,7 @@
su root -c "make install"'
passed=0
-total=35
+total=36
rm -f passed
date > passed
echo "======> sign/verify 180938 file"
@@ -184,5 +184,9 @@
echo "======> single key listing"
/usr/bin/netpgpkeys -l agc && passed=$(expr $passed + 1)
echo "35 " $passed >> passed
-rm -f a a.gpg b b.gpg c c.gpg d d.gpg e f f.sig g g.asc g2 a2 a3 a4 a5 h h.sig i i.asc
+echo "======> pipeline and memory encrypt/decrypt with specified cipher"
+/usr/bin/netpgp -e --cipher camellia128 < a | /usr/bin/netpgp -d > a6
+diff a a6 && passed=$(expr $passed + 1)
+echo "36 " $passed >> passed
+rm -f a a.gpg b b.gpg c c.gpg d d.gpg e f f.sig g g.asc g2 a2 a3 a4 a5 a6 h h.sig i i.asc
echo "Passed ${passed}/${total} tests"