]>
git.ipfire.org Git - people/ms/strongswan.git/blob - scripts/pubkey_speed.sh
3 DIR
=$
(dirname `readlink -f $0`)
6 echo -n " e=3 "; openssl genrsa
-3 $1 2>/dev
/null|
$DIR/pubkey_speed
"$2" rsa
$3
7 echo -n " e=f4 "; openssl genrsa
-f4 $1 2>/dev
/null|
$DIR/pubkey_speed
"$2" rsa
$3
14 rsatest
1024 "$1" 1000
24 openssl ecparam
-genkey -name $1 -noout |
$DIR/pubkey_speed
"$2" ecdsa
$3
28 function ecdsatestall
{
30 ecdsatest prime256v1
"$1" 4000
31 ecdsatest secp384r1
"$1" 1000
32 ecdsatest secp521r1
"$1" 500
35 rsatestall
"gmp gcrypt pem pkcs1"
36 rsatestall
"gcrypt pem pkcs1"
37 rsatestall
"openssl pem"
38 ecdsatestall
"openssl pem"