Module Name: src Committed By: agc Date: Tue Dec 22 07:09:39 UTC 2009
Modified Files: src/crypto/external/bsd/netpgp/dist: tst Log Message: Add tests for memory encryption and decryption, and signing and verification (by pipes). To generate a diff of this commit: cvs rdiff -u -r1.17 -r1.18 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.17 src/crypto/external/bsd/netpgp/dist/tst:1.18 --- src/crypto/external/bsd/netpgp/dist/tst:1.17 Tue Dec 22 06:53:26 2009 +++ src/crypto/external/bsd/netpgp/dist/tst Tue Dec 22 07:09:39 2009 @@ -31,7 +31,7 @@ su root -c "make install"' passed=0 -total=21 +total=23 echo "======> sign/verify 180938 file" cp configure a /usr/bin/netpgp --sign a @@ -103,5 +103,11 @@ sudo /usr/bin/netpgp --ssh-keys --sshkeyfile=/etc/ssh/ssh_host_rsa_key.pub --sign a sudo chmod 644 a.gpg /usr/bin/netpgp --verify --ssh-keys --sshkeyfile=/etc/ssh/ssh_host_rsa_key.pub a.gpg && passed=$(expr $passed + 1) -rm -f a a.gpg b b.gpg c c.gpg d d.gpg e f f.sig g g.asc a2 a3 +echo "======> pipeline and memory encrypt/decrypt" +/usr/bin/netpgp --encrypt < a | /usr/bin/netpgp --decrypt > a4 +diff a a4 && passed=$(expr $passed + 1) +echo "======> pipeline and memory sign/verify" +/usr/bin/netpgp --sign < a | /usr/bin/netpgp --cat > a5 +diff a a5 && passed=$(expr $passed + 1) +rm -f a a.gpg b b.gpg c c.gpg d d.gpg e f f.sig g g.asc a2 a3 a4 a5 echo "Passed ${passed}/${total} tests"