--- - branch: MAIN date: Thu Nov 11 22:38:47 UTC 2010 files: - new: '1.4' old: '1.3' path: src/tests/dev/Makefile pathrev: src/tests/dev/Makefile@1.4 type: modified - new: '1.1' old: '0' path: src/tests/dev/cgd/Makefile pathrev: src/tests/dev/cgd/Makefile@1.1 type: added - new: '1.1' old: '0' path: src/tests/dev/cgd/t_cgd.sh pathrev: src/tests/dev/cgd/t_cgd.sh@1.1 type: added - new: '1.1' old: '0' path: src/tests/dev/cgd/h_img2cgd/Makefile pathrev: src/tests/dev/cgd/h_img2cgd/Makefile@1.1 type: added - new: '1.1' old: '0' path: src/tests/dev/cgd/h_img2cgd/cgd.conf pathrev: src/tests/dev/cgd/h_img2cgd/cgd.conf@1.1 type: added - new: '1.1' old: '0' path: src/tests/dev/cgd/h_img2cgd/img2cgd.c pathrev: src/tests/dev/cgd/h_img2cgd/img2cgd.c@1.1 type: added id: 20101111T223847Z.eae02ab2a993b6f87d406bb3ed1590cbe9e9ed5c log: | 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. module: src subject: 'CVS commit: src/tests/dev' unixtime: '1289515127' user: pooka