Sign Up
Log In
Log In
or
Sign Up
Places
All Projects
Status Monitor
Collapse sidebar
SUSE:SLE-15-SP1:GA
xmltooling
0009-CPPXT-110-Start-to-add-tests-to-exercise-X...
Overview
Repositories
Revisions
Requests
Users
Attributes
Meta
File 0009-CPPXT-110-Start-to-add-tests-to-exercise-XSEC-paths-.patch of Package xmltooling
From 6539b98be55ad0d753f07c274d6e0fb81d175025 Mon Sep 17 00:00:00 2001 From: Rod Widdowson <rdw@steadingsoftware.com> Date: Fri, 28 Oct 2016 16:39:31 +0100 Subject: [PATCH 09/31] CPPXT-110 Start to add tests to exercise XSEC paths which will change https://issues.shibboleth.net/jira/browse/CPPXT-110 Add five new tests - explicit test for XSECCryptoKeyRSA sign and verify round trip; also compare signature against known good signature - explicit tests for XSECCryptoKeyEC and XSECCryptoKeyDSA to sign and verify round trip; also verify against known good signature - explicit tests for EC and DSA round trip sign/verify of some XML This hits most methods in these classes, leaving just the (error prone) methods to load directly from Base64. Only tested on Windows. Unix build and testing follows --- xmltoolingtest/data/dsa-cert.pem | 16 ++++++++++++++++ xmltoolingtest/data/dsa-key.pem | 14 ++++++++++++++ xmltoolingtest/data/ec-cert.pem | 21 +++++++++++++++++++++ xmltoolingtest/data/ec-key.pem | 13 +++++++++++++ 4 files changed, 64 insertions(+) create mode 100644 xmltoolingtest/data/dsa-cert.pem create mode 100644 xmltoolingtest/data/dsa-key.pem create mode 100644 xmltoolingtest/data/ec-cert.pem create mode 100644 xmltoolingtest/data/ec-key.pem diff --git a/xmltoolingtest/data/dsa-cert.pem b/xmltoolingtest/data/dsa-cert.pem new file mode 100644 index 0000000..867053d --- /dev/null +++ b/xmltoolingtest/data/dsa-cert.pem @@ -0,0 +1,16 @@ +-----BEGIN CERTIFICATE----- +MIIClDCCAlGgAwIBAgIJALnyJ1BTkPBhMAsGCWCGSAFlAwQDAjAxMQswCQYDVQQG +EwJVSzETMBEGA1UECBMKU29tZS1TdGF0ZTENMAsGA1UEChMEdGVzdDAgFw0xNjEw +MjQxNTU5NDZaGA8zMDE2MDIyNTE1NTk0NlowMTELMAkGA1UEBhMCVUsxEzARBgNV +BAgTClNvbWUtU3RhdGUxDTALBgNVBAoTBHRlc3QwgfEwgagGByqGSM44BAEwgZwC +QQDVRgLTdTMa92ZMSnEKmWjMcNkG63uIxvBvihYXD2CUDY4aWB9jvg1VsdNr1eB/ +cqQpz2gDZLQorSrkEogwPZdVAhUAr9ql8awrmkDiKJrWP2oBHRN1rDUCQA5hEKKP +mAFTU1BqJHMtZItNVoDH0wbLz6mI0Q83Jhe6eKCfJ3lQp9AffdI7/VvL/IKb8a/s +OWaUJCcm54CRQI8DRAACQQDCTxcQgfSqenpHTPdB9t87+CTRIZJtalzYseOF3Zei +AAYBPPepKTcxkAwin+onnDu6F/nkyZdysE96DRPvBEMZo4G1MIGyMB0GA1UdDgQW +BBSy0QAHIB9quPNjOHpxHhHexNRTWzBhBgNVHSMEWjBYgBSy0QAHIB9quPNjOHpx +HhHexNRTW6E1pDMwMTELMAkGA1UEBhMCVUsxEzARBgNVBAgTClNvbWUtU3RhdGUx +DTALBgNVBAoTBHRlc3SCCQC58idQU5DwYTALBgNVHQ8EBAMCBeAwEwYDVR0lBAww +CgYIKwYBBQUHAwEwDAYDVR0TBAUwAwEB/zALBglghkgBZQMEAwIDMAAwLQIUfPKR +rqQ3+6LKO7rzK5EX3eps/NoCFQCUJnFAWt1brsfWj/w15nqBYWm7WA== +-----END CERTIFICATE----- diff --git a/xmltoolingtest/data/dsa-key.pem b/xmltoolingtest/data/dsa-key.pem new file mode 100644 index 0000000..7ca312d --- /dev/null +++ b/xmltoolingtest/data/dsa-key.pem @@ -0,0 +1,14 @@ +-----BEGIN DSA PARAMETERS----- +MIGcAkEA1UYC03UzGvdmTEpxCplozHDZBut7iMbwb4oWFw9glA2OGlgfY74NVbHT +a9Xgf3KkKc9oA2S0KK0q5BKIMD2XVQIVAK/apfGsK5pA4iia1j9qAR0Tdaw1AkAO +YRCij5gBU1NQaiRzLWSLTVaAx9MGy8+piNEPNyYXunignyd5UKfQH33SO/1by/yC +m/Gv7DlmlCQnJueAkUCP +-----END DSA PARAMETERS----- +-----BEGIN DSA PRIVATE KEY----- +MIH5AgEAAkEA1UYC03UzGvdmTEpxCplozHDZBut7iMbwb4oWFw9glA2OGlgfY74N +VbHTa9Xgf3KkKc9oA2S0KK0q5BKIMD2XVQIVAK/apfGsK5pA4iia1j9qAR0Tdaw1 +AkAOYRCij5gBU1NQaiRzLWSLTVaAx9MGy8+piNEPNyYXunignyd5UKfQH33SO/1b +y/yCm/Gv7DlmlCQnJueAkUCPAkEAwk8XEIH0qnp6R0z3QfbfO/gk0SGSbWpc2LHj +hd2XogAGATz3qSk3MZAMIp/qJ5w7uhf55MmXcrBPeg0T7wRDGQIVAKc5BH8b47Ru +/Bqe1HTKeyNDaaMt +-----END DSA PRIVATE KEY----- diff --git a/xmltoolingtest/data/ec-cert.pem b/xmltoolingtest/data/ec-cert.pem new file mode 100644 index 0000000..e600fe7 --- /dev/null +++ b/xmltoolingtest/data/ec-cert.pem @@ -0,0 +1,21 @@ +-----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= +-----END CERTIFICATE----- diff --git a/xmltoolingtest/data/ec-key.pem b/xmltoolingtest/data/ec-key.pem new file mode 100644 index 0000000..bffb12d --- /dev/null +++ b/xmltoolingtest/data/ec-key.pem @@ -0,0 +1,13 @@ +-----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== +-----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