~ubuntu-branches/ubuntu/feisty/gnupg2/feisty

« back to all changes in this revision

Viewing changes to checks/signencrypt-dsa.test

  • Committer: Bazaar Package Importer
  • Author(s): Jonathan Riddell
  • Date: 2006-07-11 11:38:13 UTC
  • mfrom: (1.1.3 upstream)
  • Revision ID: james.westby@ubuntu.com-20060711113813-zaw7unlbuh7gyxtl
Tags: 1.9.21-0ubuntu1
New upstream release

Show diffs side-by-side

added added

removed removed

Lines of Context:
1
 
#!/bin/sh
2
 
 
3
 
. $srcdir/defs.inc || exit 3
4
 
 
5
 
#info Checking signing and encryption for DSA
6
 
for i in $plain_files $data_files ; do
7
 
    $GPG $dsa_keyrings --always-trust -se -o x --yes \
8
 
                -u "$dsa_usrname1" -r "$dsa_usrname2" $i
9
 
    $GPG $dsa_keyrings -o y --yes x
10
 
    cmp $i y || error "$i: mismatch"
11
 
done
12
 
 
13
 
for da in ripemd160 sha1; do
14
 
    for i in $plain_files; do
15
 
        $GPG $dsa_keyrings --always-trust -se -o x --yes --digest-algo $da \
16
 
                    -u "$dsa_usrname1" -r "$dsa_usrname2" $i
17
 
        $GPG $dsa_keyrings -o y --yes x
18
 
        cmp $i y || error "$i: mismatch"
19
 
        # process only the first one
20
 
        break
21
 
    done
22
 
done