summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorAndré Klitzing <aklitzing@gmail.com>2017-09-26 09:36:57 +0200
committerAndré Klitzing <aklitzing@gmail.com>2018-01-10 13:25:25 +0000
commite56eb33cf852ea4f3228103b79f02874e01f081e (patch)
tree4b8040b8484530369bfa04ec9ec19d74a7726b6c
parentff25a7ec056d3381e04251eb65a59c46afe79e08 (diff)
Enable brainpool curves in qsslkey tests
Change-Id: Ibdc0a045e0b0469bfb4dc362e3bc3e6b7940d783 Reviewed-by: Edward Welbourne <edward.welbourne@qt.io> Reviewed-by: Mårten Nordheim <marten.nordheim@qt.io> Reviewed-by: Timur Pocheptsov <timur.pocheptsov@qt.io>
-rw-r--r--tests/auto/network/ssl/qsslkey/keys/ec-pri-256-brainpoolP256r1.derbin0 -> 122 bytes
-rw-r--r--tests/auto/network/ssl/qsslkey/keys/ec-pri-256-brainpoolP256r1.pem5
-rw-r--r--tests/auto/network/ssl/qsslkey/keys/ec-pri-384-brainpoolP384r1.derbin0 -> 171 bytes
-rw-r--r--tests/auto/network/ssl/qsslkey/keys/ec-pri-384-brainpoolP384r1.pem6
-rw-r--r--tests/auto/network/ssl/qsslkey/keys/ec-pri-512-brainpoolP512r1.derbin0 -> 221 bytes
-rw-r--r--tests/auto/network/ssl/qsslkey/keys/ec-pri-512-brainpoolP512r1.pem7
-rw-r--r--tests/auto/network/ssl/qsslkey/keys/ec-pub-256-brainpoolP256r1.derbin0 -> 92 bytes
-rw-r--r--tests/auto/network/ssl/qsslkey/keys/ec-pub-256-brainpoolP256r1.pem4
-rw-r--r--tests/auto/network/ssl/qsslkey/keys/ec-pub-384-brainpoolP384r1.derbin0 -> 124 bytes
-rw-r--r--tests/auto/network/ssl/qsslkey/keys/ec-pub-384-brainpoolP384r1.pem5
-rw-r--r--tests/auto/network/ssl/qsslkey/keys/ec-pub-512-brainpoolP512r1.derbin0 -> 158 bytes
-rw-r--r--tests/auto/network/ssl/qsslkey/keys/ec-pub-512-brainpoolP512r1.pem6
-rwxr-xr-xtests/auto/network/ssl/qsslkey/keys/genkeys.sh4
13 files changed, 34 insertions, 3 deletions
diff --git a/tests/auto/network/ssl/qsslkey/keys/ec-pri-256-brainpoolP256r1.der b/tests/auto/network/ssl/qsslkey/keys/ec-pri-256-brainpoolP256r1.der
new file mode 100644
index 0000000000..ff5a631ef2
--- /dev/null
+++ b/tests/auto/network/ssl/qsslkey/keys/ec-pri-256-brainpoolP256r1.der
Binary files differ
diff --git a/tests/auto/network/ssl/qsslkey/keys/ec-pri-256-brainpoolP256r1.pem b/tests/auto/network/ssl/qsslkey/keys/ec-pri-256-brainpoolP256r1.pem
new file mode 100644
index 0000000000..b9d7290f1c
--- /dev/null
+++ b/tests/auto/network/ssl/qsslkey/keys/ec-pri-256-brainpoolP256r1.pem
@@ -0,0 +1,5 @@
+-----BEGIN EC PRIVATE KEY-----
+MHgCAQEEICkGJVTQ1CxAApDzCDX4SqwtWJ8maYHgk9JQ+TI3vs2poAsGCSskAwMC
+CAEBB6FEA0IABCAhr230hmTi9SziKN7ZJOE2QjuI0FNtL1yZgtRPjNz/a4a+vG3d
+WNAvN+7QWatJGUk1Z5weeDU0D9M6PnRRSnc=
+-----END EC PRIVATE KEY-----
diff --git a/tests/auto/network/ssl/qsslkey/keys/ec-pri-384-brainpoolP384r1.der b/tests/auto/network/ssl/qsslkey/keys/ec-pri-384-brainpoolP384r1.der
new file mode 100644
index 0000000000..697ca6bc4a
--- /dev/null
+++ b/tests/auto/network/ssl/qsslkey/keys/ec-pri-384-brainpoolP384r1.der
Binary files differ
diff --git a/tests/auto/network/ssl/qsslkey/keys/ec-pri-384-brainpoolP384r1.pem b/tests/auto/network/ssl/qsslkey/keys/ec-pri-384-brainpoolP384r1.pem
new file mode 100644
index 0000000000..37e9bf5eb7
--- /dev/null
+++ b/tests/auto/network/ssl/qsslkey/keys/ec-pri-384-brainpoolP384r1.pem
@@ -0,0 +1,6 @@
+-----BEGIN EC PRIVATE KEY-----
+MIGoAgEBBDAJ0lL3eojQpq85spC6f0/mf8o2AqwDs8niN9lw2FmhEaR7sV4iX8Y6
+rKr1unYULMagCwYJKyQDAwIIAQELoWQDYgAES6Rp6pXKoyMaGzpKXRdL/JndNm9J
+L9VkLzZDlnTbleLjtghdGi5SZHGRvBNLZoGLYKOpJLoG2nCRJ6Ci3EHxlKtw6ytz
+Fk0YKn2UAcPefyUrL0HajfRIJkFmVGRavKGx
+-----END EC PRIVATE KEY-----
diff --git a/tests/auto/network/ssl/qsslkey/keys/ec-pri-512-brainpoolP512r1.der b/tests/auto/network/ssl/qsslkey/keys/ec-pri-512-brainpoolP512r1.der
new file mode 100644
index 0000000000..39e8672124
--- /dev/null
+++ b/tests/auto/network/ssl/qsslkey/keys/ec-pri-512-brainpoolP512r1.der
Binary files differ
diff --git a/tests/auto/network/ssl/qsslkey/keys/ec-pri-512-brainpoolP512r1.pem b/tests/auto/network/ssl/qsslkey/keys/ec-pri-512-brainpoolP512r1.pem
new file mode 100644
index 0000000000..a5d848f2f9
--- /dev/null
+++ b/tests/auto/network/ssl/qsslkey/keys/ec-pri-512-brainpoolP512r1.pem
@@ -0,0 +1,7 @@
+-----BEGIN EC PRIVATE KEY-----
+MIHaAgEBBECf7ioHynYtlc1ICFXTqrbGh/aOhflko3J8rQeQ2mBi6ozxkmpEDgRW
+cR6u0QeSCCAEacHJd0kC3hjkA4piB5KroAsGCSskAwMCCAEBDaGBhQOBggAEWvov
+CfjIdPUfC70DNETCfPjIqedVswV7KbM03DdRXqzBREZJb0nwkXrP/wMj+vWEBMui
+tfLBKd9s0vq4xgtEMCagNRNwwuFYzA6vfLzNTPsSCS1phKU1NFqm2dgGiSL+MBg0
+Wf+1Epfcdm9dBU+8IzTx1L+yRheWYohN2okh5Q8=
+-----END EC PRIVATE KEY-----
diff --git a/tests/auto/network/ssl/qsslkey/keys/ec-pub-256-brainpoolP256r1.der b/tests/auto/network/ssl/qsslkey/keys/ec-pub-256-brainpoolP256r1.der
new file mode 100644
index 0000000000..ee7abb84bd
--- /dev/null
+++ b/tests/auto/network/ssl/qsslkey/keys/ec-pub-256-brainpoolP256r1.der
Binary files differ
diff --git a/tests/auto/network/ssl/qsslkey/keys/ec-pub-256-brainpoolP256r1.pem b/tests/auto/network/ssl/qsslkey/keys/ec-pub-256-brainpoolP256r1.pem
new file mode 100644
index 0000000000..d3691cba57
--- /dev/null
+++ b/tests/auto/network/ssl/qsslkey/keys/ec-pub-256-brainpoolP256r1.pem
@@ -0,0 +1,4 @@
+-----BEGIN PUBLIC KEY-----
+MFowFAYHKoZIzj0CAQYJKyQDAwIIAQEHA0IABCAhr230hmTi9SziKN7ZJOE2QjuI
+0FNtL1yZgtRPjNz/a4a+vG3dWNAvN+7QWatJGUk1Z5weeDU0D9M6PnRRSnc=
+-----END PUBLIC KEY-----
diff --git a/tests/auto/network/ssl/qsslkey/keys/ec-pub-384-brainpoolP384r1.der b/tests/auto/network/ssl/qsslkey/keys/ec-pub-384-brainpoolP384r1.der
new file mode 100644
index 0000000000..bf07791c3c
--- /dev/null
+++ b/tests/auto/network/ssl/qsslkey/keys/ec-pub-384-brainpoolP384r1.der
Binary files differ
diff --git a/tests/auto/network/ssl/qsslkey/keys/ec-pub-384-brainpoolP384r1.pem b/tests/auto/network/ssl/qsslkey/keys/ec-pub-384-brainpoolP384r1.pem
new file mode 100644
index 0000000000..57d0108830
--- /dev/null
+++ b/tests/auto/network/ssl/qsslkey/keys/ec-pub-384-brainpoolP384r1.pem
@@ -0,0 +1,5 @@
+-----BEGIN PUBLIC KEY-----
+MHowFAYHKoZIzj0CAQYJKyQDAwIIAQELA2IABEukaeqVyqMjGhs6Sl0XS/yZ3TZv
+SS/VZC82Q5Z025Xi47YIXRouUmRxkbwTS2aBi2CjqSS6BtpwkSegotxB8ZSrcOsr
+cxZNGCp9lAHD3n8lKy9B2o30SCZBZlRkWryhsQ==
+-----END PUBLIC KEY-----
diff --git a/tests/auto/network/ssl/qsslkey/keys/ec-pub-512-brainpoolP512r1.der b/tests/auto/network/ssl/qsslkey/keys/ec-pub-512-brainpoolP512r1.der
new file mode 100644
index 0000000000..eac51290d9
--- /dev/null
+++ b/tests/auto/network/ssl/qsslkey/keys/ec-pub-512-brainpoolP512r1.der
Binary files differ
diff --git a/tests/auto/network/ssl/qsslkey/keys/ec-pub-512-brainpoolP512r1.pem b/tests/auto/network/ssl/qsslkey/keys/ec-pub-512-brainpoolP512r1.pem
new file mode 100644
index 0000000000..66c58e23af
--- /dev/null
+++ b/tests/auto/network/ssl/qsslkey/keys/ec-pub-512-brainpoolP512r1.pem
@@ -0,0 +1,6 @@
+-----BEGIN PUBLIC KEY-----
+MIGbMBQGByqGSM49AgEGCSskAwMCCAEBDQOBggAEWvovCfjIdPUfC70DNETCfPjI
+qedVswV7KbM03DdRXqzBREZJb0nwkXrP/wMj+vWEBMuitfLBKd9s0vq4xgtEMCag
+NRNwwuFYzA6vfLzNTPsSCS1phKU1NFqm2dgGiSL+MBg0Wf+1Epfcdm9dBU+8IzTx
+1L+yRheWYohN2okh5Q8=
+-----END PUBLIC KEY-----
diff --git a/tests/auto/network/ssl/qsslkey/keys/genkeys.sh b/tests/auto/network/ssl/qsslkey/keys/genkeys.sh
index b6ef997b0d..7fb15e91ee 100755
--- a/tests/auto/network/ssl/qsslkey/keys/genkeys.sh
+++ b/tests/auto/network/ssl/qsslkey/keys/genkeys.sh
@@ -71,9 +71,7 @@ done
#--- EC ----------------------------------------------------------------------------
# Note: EC will be generated with pre-defined curves. You can check supported curves
# with openssl ecparam -list_curves.
-# If OpenSSL 1.0.2 is available brainpool should be added!
-# brainpoolP256r1 brainpoolP384r1 brainpoolP512r1
-for curve in secp224r1 prime256v1 secp384r1
+for curve in secp224r1 prime256v1 secp384r1 brainpoolP256r1 brainpoolP384r1 brainpoolP512r1
do
size=`tr -cd 0-9 <<< $curve`
size=${size::-1} # remove last number of curve name as we need bit size only