This has not seen any significant changes for years. So it lacks support for modern algorithms and would require quite some work for an overhaul. Given that we support several other crypto backends, let's just remove this to reduce the maintenance burden. The test scenarios and other references are also removed.
38 lines
1.4 KiB
Bash
Executable File
38 lines
1.4 KiB
Bash
Executable File
#!/bin/bash
|
|
|
|
DIR=$(dirname `readlink -f $0`)
|
|
|
|
# we run an unprinted group, as it seems the first run is inaccurate (cache?)
|
|
|
|
function modptest {
|
|
$DIR/dh_speed "$1" 400 modp768 modp768 modp1024 modp1024s160 modp1536 modp2048 modp2048s224 modp2048s256 | tail -n 7
|
|
$DIR/dh_speed "$1" 100 modp1024 modp3072 modp4096 | tail -n 2
|
|
$DIR/dh_speed "$1" 5 modp2048 modp6144 modp8192 | tail -n 2
|
|
}
|
|
|
|
echo "testing gmp"
|
|
# gmp needs an RNG plugin, pick random
|
|
modptest "gmp random"
|
|
|
|
echo "testing curve25519"
|
|
# curve25519 needs an RNG plugin, pick random
|
|
$DIR/dh_speed "curve25519 random" 300 curve25519 curve25519 | tail -n 1
|
|
|
|
echo "testing openssl"
|
|
modptest "openssl"
|
|
$DIR/dh_speed "openssl" 300 ecp192 ecp192 ecp224 ecp256 ecp384 ecp521 | tail -n 5
|
|
$DIR/dh_speed "openssl" 300 ecp224bp ecp224bp ecp256bp ecp384bp ecp512bp | tail -n 4
|
|
$DIR/dh_speed "openssl" 300 curve25519 curve25519 curve448 | tail -n 2
|
|
|
|
echo "testing wolfssl"
|
|
modptest "wolfssl"
|
|
$DIR/dh_speed "wolfssl" 300 ecp224 ecp224 ecp256 ecp384 ecp521 | tail -n 4
|
|
$DIR/dh_speed "wolfssl" 300 ecp224bp ecp224bp ecp256bp ecp384bp ecp512bp | tail -n 4
|
|
$DIR/dh_speed "wolfssl" 300 curve25519 curve25519 curve448 | tail -n 2
|
|
|
|
echo "testing botan"
|
|
modptest "botan"
|
|
$DIR/dh_speed "botan" 300 ecp256 ecp256 ecp384 ecp521 | tail -n 3
|
|
$DIR/dh_speed "botan" 300 ecp256bp ecp256bp ecp384bp ecp512bp | tail -n 3
|
|
$DIR/dh_speed "botan" 300 curve25519 curve25519 | tail -n 1
|