Sign Up
Log In
Log In
or
Sign Up
Places
All Projects
Status Monitor
Collapse sidebar
openSUSE:Step:15-SP2
xmltooling.15367
0013-CPPXT-110-Used-Named-curves-for-EC-testing...
Overview
Repositories
Revisions
Requests
Users
Attributes
Meta
File 0013-CPPXT-110-Used-Named-curves-for-EC-testing.patch of Package xmltooling.15367
From 47f8f26b915c0ece5c090e9a7c95a7cf0fe5abce Mon Sep 17 00:00:00 2001 From: Rod Widdowson <rdw@steadingsoftware.com> Date: Mon, 7 Nov 2016 10:28:48 +0000 Subject: [PATCH 13/31] CPPXT-110 Used Named curves for EC testing https://issues.shibboleth.net/jira/browse/CPPXT-110 This will make borrowing the same certificate for KeyInfo testing work. --- xmltoolingtest/SignatureTest.h | 5 ++--- xmltoolingtest/data/ec-cert.pem | 29 ++++++++++------------------- xmltoolingtest/data/ec-key.pem | 16 +++++----------- 3 files changed, 17 insertions(+), 33 deletions(-) diff --git a/xmltoolingtest/SignatureTest.h b/xmltoolingtest/SignatureTest.h index 323c5fe..bdb59a1 100644 --- a/xmltoolingtest/SignatureTest.h +++ b/xmltoolingtest/SignatureTest.h @@ -120,9 +120,8 @@ public: bool worked = ecCred->verifyBase64SignatureDSA(toSign, sizeof(toSign), &outSig[0], len); TSM_ASSERT("EC Round Trip Signature Failed", worked); - char knownGoodSig[] = "JGRaZN8SxNqcwkc4N/NSSTP/ugzp3tjuDVDr+EI+1yu7iNYTgiiPL8kwIPs9dUeH\n" - "XU1qCCu+iay+8MwmneIqnGZB2lhXSpYREJSVk24vUMU7mK5fA7lynssSSXs/K4Il\n"; - unsigned int knownGoodSigSize=0x82; + char knownGoodSig[] = "AkXRDL2H2I+fozXnuHKYa4+UE/k+AnhOLp2AY5d8lAqciZ5wdObHbifX\n"; + unsigned int knownGoodSigSize=0x38; worked = ecCred->verifyBase64SignatureDSA(toSign, sizeof(toSign), knownGoodSig, knownGoodSigSize); TSM_ASSERT("EC Canned Signature Failed", worked); diff --git a/xmltoolingtest/data/ec-cert.pem b/xmltoolingtest/data/ec-cert.pem index e600fe7..c80fedb 100644 --- a/xmltoolingtest/data/ec-cert.pem +++ b/xmltoolingtest/data/ec-cert.pem @@ -1,21 +1,12 @@ -----BEGIN CERTIFICATE----- -MIIDdjCCAv2gAwIBAgIJAMubcFnHNapCMAoGCCqGSM49BAMCMCkxCzAJBgNVBAYT -AlVLMQswCQYDVQQIEwJFTDENMAsGA1UEChMEdGVzdDAgFw0xNjEwMjQxNTU4NTda -GA8zMDE2MDIyNTE1NTg1N1owKTELMAkGA1UEBhMCVUsxCzAJBgNVBAgTAkVMMQ0w -CwYDVQQKEwR0ZXN0MIIBtTCCAU0GByqGSM49AgEwggFAAgEBMDwGByqGSM49AQEC -MQCMuR6CozhtKA9db35Q5kHfFS9xCe1UVrQSsdoZf7cRI6zTpymQHRpxh0cAEzEH -7FMwZAQwjLkegqM4bSgPXW9+UOZB3xUvcQntVFa0ErHaGX+3ESOs06cpkB0acYdH -ABMxB+xQBDB/UZ6tp72oG9gm26ZHkQ+MS5NG7YzNxk5LGr0RdW3OHSB0qiY7iIBc -7XA1WjO0ce4EYQQY3piwLbmjBvKvzXI19yqBm4CrEuvWUxckdv7NRiqr/8T/GRuU -al9U2NCqL0GICMwlqwVpYtMGUaEUr9J1WtM2dH+TR1t6H8o7iPK2ogjM/kaUCFhN -wrKRJnW/W55YKSgCMQCMuR6CozhtKA9db35Q5kHfFS9xCe1UVrMfFm5srAQlp886 -tq9rf8MQO4gyAukEZWUCAQEDYgAEfnYQ/SqjY1Va4le/UarXj67yc3I11ds+5Zug -uM0X7ll9SqpusKTWhXwAW6wzz5/HJSoXKfAgXP9USpmJWk3UphuAdRmeHbXJsSKr -CweMxQllJA36wp+Ht9aaqvxi0uIio4GtMIGqMB0GA1UdDgQWBBS9eY9K/Uyraz1u -CJInFDqlQH7cODBZBgNVHSMEUjBQgBS9eY9K/Uyraz1uCJInFDqlQH7cOKEtpCsw -KTELMAkGA1UEBhMCVUsxCzAJBgNVBAgTAkVMMQ0wCwYDVQQKEwR0ZXN0ggkAy5tw -Wcc1qkIwCwYDVR0PBAQDAgXgMBMGA1UdJQQMMAoGCCsGAQUFBwMBMAwGA1UdEwQF -MAMBAf8wCgYIKoZIzj0EAwIDZwAwZAIwUUhIzpbDOgaYblrrpJv5Mt7B5WhRSF1/ -j4kADMD2GQAjDqTdkfExgSRIDV1Zki0SAjAXeEPtqLTPKvuBr+5NKOEhKEOlaVKL -gIq6zK3v1opw8TcphtWC+JoRkPu1WjV8EiA= +MIIBxzCCAYWgAwIBAgIJAJeua2ybmpZRMAkGByqGSM49BAEwKTELMAkGA1UEBhMC +VUsxCzAJBgNVBAgTAkVDMQ0wCwYDVQQKEwRTaGliMCAXDTE2MTEwNzEwMjQ1MFoY +DzMwMTYwMzEwMTAyNDUwWjApMQswCQYDVQQGEwJVSzELMAkGA1UECBMCRUMxDTAL +BgNVBAoTBFNoaWIwQDAQBgcqhkjOPQIBBgVnKwEEBQMsAAQGCJ3Bp3sCYlMWXao7 +AYkacxhp100FkmRVMZFT5j69uRR9XJKl/tsYmLCjga0wgaowHQYDVR0OBBYEFI41 +G8AtzMY3SurajjyOCcO1p9hgMFkGA1UdIwRSMFCAFI41G8AtzMY3SurajjyOCcO1 +p9hgoS2kKzApMQswCQYDVQQGEwJVSzELMAkGA1UECBMCRUMxDTALBgNVBAoTBFNo +aWKCCQCXrmtsm5qWUTALBgNVHQ8EBAMCBeAwEwYDVR0lBAwwCgYIKwYBBQUHAwEw +DAYDVR0TBAUwAwEB/zAJBgcqhkjOPQQBAzEAMC4CFQJKefzU/Z8/h4pVsJqFtgR0 +4GZZmAIVAKv/Kx/+n0TFHeR4xUbTQo6yZ6aS -----END CERTIFICATE----- diff --git a/xmltoolingtest/data/ec-key.pem b/xmltoolingtest/data/ec-key.pem index bffb12d..b61d13e 100644 --- a/xmltoolingtest/data/ec-key.pem +++ b/xmltoolingtest/data/ec-key.pem @@ -1,13 +1,7 @@ +-----BEGIN EC PARAMETERS----- +BgVnKwEEBQ== +-----END EC PARAMETERS----- -----BEGIN EC PRIVATE KEY----- -MIIB4wIBAQQwZYh/xBvlvHqKdUMHD8JvlIa8e6N9QvwWPxK/7oQJNGrJgE2X1/Ul -YAwRItaJb+WpoIIBRDCCAUACAQEwPAYHKoZIzj0BAQIxAIy5HoKjOG0oD11vflDm -Qd8VL3EJ7VRWtBKx2hl/txEjrNOnKZAdGnGHRwATMQfsUzBkBDCMuR6CozhtKA9d -b35Q5kHfFS9xCe1UVrQSsdoZf7cRI6zTpymQHRpxh0cAEzEH7FAEMH9Rnq2nvagb -2CbbpkeRD4xLk0btjM3GTksavRF1bc4dIHSqJjuIgFztcDVaM7Rx7gRhBBjemLAt -uaMG8q/NcjX3KoGbgKsS69ZTFyR2/s1GKqv/xP8ZG5RqX1TY0KovQYgIzCWrBWli -0wZRoRSv0nVa0zZ0f5NHW3ofyjuI8raiCMz+RpQIWE3CspEmdb9bnlgpKAIxAIy5 -HoKjOG0oD11vflDmQd8VL3EJ7VRWsx8WbmysBCWnzzq2r2t/wxA7iDIC6QRlZQIB -AaFkA2IABH52EP0qo2NVWuJXv1Gq14+u8nNyNdXbPuWboLjNF+5ZfUqqbrCk1oV8 -AFusM8+fxyUqFynwIFz/VEqZiVpN1KYbgHUZnh21ybEiqwsHjMUJZSQN+sKfh7fW -mqr8YtLiIg== +MFMCAQEEFQJ7/qWsygOClxmrdyctnTVr4Q0eMqAHBgVnKwEEBaEuAywABAYIncGn +ewJiUxZdqjsBiRpzGGnXTQWSZFUxkVPmPr25FH1ckqX+2xiYsA== -----END EC PRIVATE KEY----- -- 2.13.6
Locations
Projects
Search
Status Monitor
Help
OpenBuildService.org
Documentation
API Documentation
Code of Conduct
Contact
Support
@OBShq
Terms
openSUSE Build Service is sponsored by
The Open Build Service is an
openSUSE project
.
Sign Up
Log In
Places
Places
All Projects
Status Monitor