added unittest for symetric crypto

This commit is contained in:
TLINDEN
2014-01-22 23:29:28 +01:00
parent 1efff67d37
commit f09d4774cb
4 changed files with 20 additions and 3 deletions

View File

@@ -5,6 +5,12 @@ especially the asymetric crypto parts. Current master is incompatible
to earlier versions and might or might not work. Head back until
this message disappears. Thanks.>
B<Update 22/01/2014: Changes are complete, all unittests pass. So, pcp is
usable again on its own. However, I'm not sure if it's already fully compatible
with pbp, since I cant get pbp running here. Also, there#s still no key format
agreement between stef and me and not import function for our respective
pubkey formats.>
=head1 DESCRIPTION
B<Pretty Curved Privacy> (pcp1) is a commandline utility which can

View File

@@ -1 +1 @@
0.1.5
0.2.0

View File

@@ -24,8 +24,8 @@
#define _HAVE_PCP_VERSION
#define PCP_VERSION_MAJOR 0
#define PCP_VERSION_MINOR 1
#define PCP_VERSION_PATCH 5
#define PCP_VERSION_MINOR 2
#define PCP_VERSION_PATCH 0
#define PCP_MAKE_VERSION(major, minor, patch) \
((major) * 10000 + (minor) * 100 + (patch))

View File

@@ -178,6 +178,17 @@ dxmorg@florida.cops.gov
</test>
</test>
#
# symetric encryption test
<test check-sym-encrypt>
cmd = echo HELLOWORLD | $pcp -e -O testsymencrypted -x a
expect = /symetrically/
</test>
<test check-sym-decrypt>
cmd = $pcp -d -I testsymencrypted -x a
expect = /HELLO/
</test>
#
# check usage of unencrypted secret key