mirror of
https://codeberg.org/scip/pcp.git
synced 2025-12-17 03:50:57 +01:00
added unittest for symetric crypto
This commit is contained in:
@@ -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
|
to earlier versions and might or might not work. Head back until
|
||||||
this message disappears. Thanks.>
|
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
|
=head1 DESCRIPTION
|
||||||
|
|
||||||
B<Pretty Curved Privacy> (pcp1) is a commandline utility which can
|
B<Pretty Curved Privacy> (pcp1) is a commandline utility which can
|
||||||
|
|||||||
@@ -24,8 +24,8 @@
|
|||||||
#define _HAVE_PCP_VERSION
|
#define _HAVE_PCP_VERSION
|
||||||
|
|
||||||
#define PCP_VERSION_MAJOR 0
|
#define PCP_VERSION_MAJOR 0
|
||||||
#define PCP_VERSION_MINOR 1
|
#define PCP_VERSION_MINOR 2
|
||||||
#define PCP_VERSION_PATCH 5
|
#define PCP_VERSION_PATCH 0
|
||||||
|
|
||||||
#define PCP_MAKE_VERSION(major, minor, patch) \
|
#define PCP_MAKE_VERSION(major, minor, patch) \
|
||||||
((major) * 10000 + (minor) * 100 + (patch))
|
((major) * 10000 + (minor) * 100 + (patch))
|
||||||
|
|||||||
@@ -178,6 +178,17 @@ dxmorg@florida.cops.gov
|
|||||||
</test>
|
</test>
|
||||||
</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
|
# check usage of unencrypted secret key
|
||||||
|
|||||||
Reference in New Issue
Block a user