changed key format, now includes the ed25519 pubkey for signing.

This commit is contained in:
git@daemon.de
2013-11-08 12:50:04 +01:00
parent e6733e5e56
commit 60ee58b106
25 changed files with 281 additions and 136 deletions

View File

@@ -23,6 +23,9 @@
pcp = ../src/pcp1
vault = v1
passwd = xxx
md5msg = 66b8c4ca9e5d2a7e3c0559c3cdea3d50
include keys.cfg
<test check-show-help>
cmd = $pcp -h
@@ -70,8 +73,6 @@ dxmorg@florida.cops.gov
expect-file-contains = testkey-self Dexter
</test>
bartid = 0xEA14904F02A39174
bartserial = 0x1A184AFF
<test check-import-public-key>
cmd = $pcp -V $vault -P -I bart.pub
expect = /key $bartid added/
@@ -89,7 +90,7 @@ bartserial = 0x1A184AFF
<test check-if-vault-still-valid>
cmd = $pcp -V $vault -t
expect = /Vault version: 00000001/
expect = /Vault version: 00000002/
</test>
<test check-if-deleted-public-key-is-away>
@@ -99,11 +100,6 @@ bartserial = 0x1A184AFF
#
# encryption tests
idbobby = 0x9BBC8CFD7B519006
idalicia = 0xC7062F147D8C4D91
mailbobby = bobby@local
mailalicia = alicia@local
md5msg = 66b8c4ca9e5d2a7e3c0559c3cdea3d50
<test check-crypto-alicia-init>
# alicias part
prepare = echo ${md5msg} > testmessage
@@ -197,11 +193,22 @@ md5msg = 66b8c4ca9e5d2a7e3c0559c3cdea3d50
</test>
</test>
#
# signature test
<test check-sign-to-bobby>
cmd = $pcp -V va -g -I README -O testsig -x a
expect-file testsig
</test>
<test check-verify-signature>
cmd = $pcp -V vb -c testsig -I README
expect = /verified/
</test>
#
# negative tests, check for error handling
<test check-if-catch-conflicting-params>
cmd = $pcp -S -P
cmd = $pcp -V $vault -S -P
expect = /invalid combination of commandline parameters/
</test>