~ubuntu-branches/ubuntu/precise/gnupg2/precise-proposed

« back to all changes in this revision

Viewing changes to checks/sigs-dsa.test

  • Committer: Bazaar Package Importer
  • Author(s): Matthias Urlichs
  • Date: 2006-01-24 04:31:42 UTC
  • mfrom: (1.1.2 upstream)
  • Revision ID: james.westby@ubuntu.com-20060124043142-pbg192or6qxv3yk2
Tags: 1.9.20-1
* New Upstream version. Closes:#306890,#344530
  * Closes:#320490: gpg-protect-tool fails to decrypt PKCS-12 files 
* Depend on libopensc2-dev, not -1-. Closes:#348106

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 DSA signatures (default digest algo)
 
6
for i in $plain_files $data_files; do
 
7
    $GPG $dsa_keyrings -s -o x --yes -u $dsa_usrname1 $i
 
8
    $GPG $dsa_keyrings -o y --yes x
 
9
    cmp $i y || error "$i: mismatch"
 
10
done
 
11
 
 
12
for da in ripemd160 sha1; do
 
13
    for i in $plain_files; do
 
14
        $GPG $dsa_keyrings --digest-algo $da \
 
15
                                -s -o x --yes -u $dsa_usrname1 $i
 
16
        $GPG $dsa_keyrings -o y --yes x
 
17
        cmp $i y || error "$i: mismatch"
 
18
        # process only the first one
 
19
        break
 
20
    done
 
21
done
 
22