~ubuntu-branches/ubuntu/utopic/strongswan/utopic

« back to all changes in this revision

Viewing changes to scripts/dh_speed.sh

  • Committer: Package Import Robot
  • Author(s): Jonathan Davies
  • Date: 2014-01-20 19:00:59 UTC
  • mfrom: (1.2.6)
  • Revision ID: package-import@ubuntu.com-20140120190059-z8e4dl3g8cd09yi5
Tags: 5.1.2~dr3+git20130120-0ubuntu1
* Upstream Git snapshot for build fixes with regards to entropy.
* debian/rules:
  - Enforcing DEB_BUILD_OPTIONS=nostrip for library integrity checking.
  - Set TESTS_REDUCED_KEYLENGTHS to one generate smallest key-lengths in
    tests.

Show diffs side-by-side

added added

removed removed

Lines of Context:
 
1
#!/bin/bash
 
2
 
 
3
# we run an unprinted group, as it seems the first run is inaccurate (cache?)
 
4
 
 
5
echo "testing gmp"
 
6
# gmp needs a RNG plugin, pick gcrypt
 
7
sudo ./dh_speed "gmp gcrypt" 400 modp768 modp768 modp1024 modp1024s160 modp1536 modp2048 modp2048s224 modp2048s256 | tail -n 7
 
8
sudo ./dh_speed "gmp gcrypt" 100 modp1024 modp3072 modp4096 | tail -n 2
 
9
sudo ./dh_speed "gmp gcrypt" 5 modp2048 modp6144 modp8192 | tail -n 2
 
10
 
 
11
echo "testing gcrypt"
 
12
sudo ./dh_speed "gcrypt" 400 modp768 modp768 modp1024 modp1024s160 modp1536 modp2048 modp2048s224 modp2048s256 | tail -n 7
 
13
sudo ./dh_speed "gcrypt" 100 modp1024 modp3072 modp4096 | tail -n 2
 
14
sudo ./dh_speed "gcrypt" 5 modp2048 modp6144 modp8192 | tail -n 2
 
15
 
 
16
echo "testing openssl"
 
17
sudo ./dh_speed "openssl" 400 modp768 modp768 modp1024 modp1024s160 modp1536 modp2048 modp2048s224 modp2048s256 | tail -n 7
 
18
sudo ./dh_speed "openssl" 100 modp1024 modp3072 modp4096 | tail -n 2
 
19
sudo ./dh_speed "openssl" 5 modp2048 modp6144 modp8192 | tail -n 2
 
20
sudo ./dh_speed "openssl" 300 ecp192 ecp192 ecp224 ecp256 ecp384 ecp521 | tail -n 5
 
21