aboutsummaryrefslogtreecommitdiff
path: root/src/identity/test_identity_messages.sh
diff options
context:
space:
mode:
authorMartin Schanzenbach <schanzen@gnunet.org>2023-07-16 19:26:09 +0200
committerMartin Schanzenbach <schanzen@gnunet.org>2023-07-16 19:26:09 +0200
commita2c3a72d0157c0de4966cea417d1802727c3ed1e (patch)
tree6e938c29b09fb646a387f3ca55528dc999ece248 /src/identity/test_identity_messages.sh
parent7eb848d29db698432b25283b994383d2f35465b5 (diff)
downloadgnunet-a2c3a72d0157c0de4966cea417d1802727c3ed1e.tar.gz
gnunet-a2c3a72d0157c0de4966cea417d1802727c3ed1e.zip
NEWS: Added new CCA-secure KEM and use in IDENTITY encryption
Diffstat (limited to 'src/identity/test_identity_messages.sh')
-rwxr-xr-xsrc/identity/test_identity_messages.sh21
1 files changed, 18 insertions, 3 deletions
diff --git a/src/identity/test_identity_messages.sh b/src/identity/test_identity_messages.sh
index d29d14acc..edb4d5805 100755
--- a/src/identity/test_identity_messages.sh
+++ b/src/identity/test_identity_messages.sh
@@ -20,10 +20,21 @@ which timeout >/dev/null 2>&1 && DO_TIMEOUT="timeout 30"
20TEST_MSG="This is a test message. 123" 20TEST_MSG="This is a test message. 123"
21gnunet-arm -s -c test_identity.conf 21gnunet-arm -s -c test_identity.conf
22gnunet-identity -C recipientego -c test_identity.conf 22gnunet-identity -C recipientego -c test_identity.conf
23gnunet-identity -C recipientegoed -X -c test_identity.conf
23RECIPIENT_KEY=`gnunet-identity -d -e recipientego -q -c test_identity.conf` 24RECIPIENT_KEY=`gnunet-identity -d -e recipientego -q -c test_identity.conf`
24MSG_ENC=`gnunet-identity -W "$TEST_MSG" -k $RECIPIENT_KEY -c test_identity.conf` 25MSG_ENC=`gnunet-identity -W "$TEST_MSG" -k $RECIPIENT_KEY -c test_identity.conf`
25MSG_DEC=`gnunet-identity -R "$MSG_ENC" -e recipientego -c test_identity.conf` 26if [ $? == 0 ]
27then
28 MSG_DEC=`gnunet-identity -R "$MSG_ENC" -e recipientego -c test_identity.conf`
29fi
30RECIPIENT_KEY_ED=`gnunet-identity -d -e recipientegoed -q -c test_identity.conf`
31MSG_ENC_ED=`gnunet-identity -W "$TEST_MSG" -k $RECIPIENT_KEY_ED -c test_identity.conf`
32if [ $? == 0 ]
33then
34 MSG_DEC_ED=`gnunet-identity -R "$MSG_ENC_ED" -e recipientegoed -c test_identity.conf`
35fi
26gnunet-identity -D recipientego -c test_identity.conf 36gnunet-identity -D recipientego -c test_identity.conf
37gnunet-identity -D recipientegoed -c test_identity.conf
27gnunet-arm -e -c test_identity.conf 38gnunet-arm -e -c test_identity.conf
28if [ "$TEST_MSG" != "$MSG_DEC" ] 39if [ "$TEST_MSG" != "$MSG_DEC" ]
29then 40then
@@ -31,5 +42,9 @@ then
31 echo "Failed - \"$TEST_MSG\" != \"$MSG_DEC\"" 42 echo "Failed - \"$TEST_MSG\" != \"$MSG_DEC\""
32 exit 1 43 exit 1
33fi 44fi
34 45if [ "$TEST_MSG" != "$MSG_DEC_ED" ]
35 46then
47 diff <(echo "$TEST_MSG" ) <(echo "$MSG_DEC_ED")
48 echo "Failed - \"$TEST_MSG\" != \"$MSG_DEC_ED\""
49 exit 1
50fi