Module Name: src Committed By: pooka Date: Thu Nov 11 22:38:47 UTC 2010
Modified Files: src/tests/dev: Makefile Added Files: src/tests/dev/cgd: Makefile t_cgd.sh src/tests/dev/cgd/h_img2cgd: Makefile cgd.conf img2cgd.c Log Message: Add rudimentary cgd tests. The tests use cgd to transform a plaintext into into an encrypted image and back into plaintext by doing rump I/O on /dev/cgd. There is one test to check that giving the same password for both encryption and decryption produces the same plaintext and another to check that giving a different passwords does not produce the same plaintext. This could be fairly easily extended to test all feature of cgd (hint hint). For example, now cgd.conf is included in cvs, but the only reason for that is that without further hacking cgdconfig uses /dev/random quality random to generate the salt for a pkcsetcetc_kdf2 cgconfig -g, and making an automated test block on the entropy pool is just not good form. Details are everything. To generate a diff of this commit: cvs rdiff -u -r1.3 -r1.4 src/tests/dev/Makefile cvs rdiff -u -r0 -r1.1 src/tests/dev/cgd/Makefile src/tests/dev/cgd/t_cgd.sh cvs rdiff -u -r0 -r1.1 src/tests/dev/cgd/h_img2cgd/Makefile \ src/tests/dev/cgd/h_img2cgd/cgd.conf \ src/tests/dev/cgd/h_img2cgd/img2cgd.c Please note that diffs are not public domain; they are subject to the copyright notices on the relevant files.