moxml 0.1.25 → 0.2.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- checksums.yaml +4 -4
- data/.github/workflows/release.yml +9 -0
- data/.github/workflows/windows.yml +62 -0
- data/Gemfile +3 -1
- data/README.adoc +133 -6
- data/docs/signature/algorithms.md +108 -0
- data/docs/signature/architecture.md +148 -0
- data/docs/signature/c14n.md +110 -0
- data/docs/signature/examples.md +109 -0
- data/docs/signature/flows.md +132 -0
- data/docs/signature/quick-reference.md +115 -0
- data/docs/signature/security.md +143 -0
- data/examples/signature/auto_key_extraction.rb +24 -0
- data/examples/signature/enveloped_rsa.rb +45 -0
- data/examples/signature/hmac.rb +33 -0
- data/lib/compat/opal/moxml_boot.rb +5 -0
- data/lib/moxml/adapter/base.rb +53 -49
- data/lib/moxml/adapter/customized_leptris/declaration.rb +32 -0
- data/lib/moxml/adapter/customized_leptris/doctype.rb +31 -0
- data/lib/moxml/adapter/customized_leptris/entity_reference.rb +12 -0
- data/lib/moxml/adapter/customized_leptris/text_segment.rb +26 -0
- data/lib/moxml/adapter/customized_leptris.rb +16 -0
- data/lib/moxml/adapter/customized_libxml/cdata.rb +3 -12
- data/lib/moxml/adapter/customized_libxml/comment.rb +2 -9
- data/lib/moxml/adapter/customized_libxml/declaration.rb +1 -10
- data/lib/moxml/adapter/customized_libxml/node.rb +8 -0
- data/lib/moxml/adapter/customized_libxml/processing_instruction.rb +2 -10
- data/lib/moxml/adapter/customized_libxml/text.rb +2 -9
- data/lib/moxml/adapter/customized_oga/entity_decoder.rb +37 -0
- data/lib/moxml/adapter/customized_oga/raw_value_override.rb +52 -0
- data/lib/moxml/adapter/customized_oga/xml_generator.rb +4 -34
- data/lib/moxml/adapter/customized_oga.rb +2 -0
- data/lib/moxml/adapter/customized_ox/entity_reference.rb +1 -17
- data/lib/moxml/adapter/customized_rexml/entity_reference.rb +1 -11
- data/lib/moxml/adapter/headed_ox.rb +9 -128
- data/lib/moxml/adapter/leptris.rb +965 -0
- data/lib/moxml/adapter/libxml.rb +131 -99
- data/lib/moxml/adapter/nokogiri.rb +29 -8
- data/lib/moxml/adapter/oga.rb +91 -54
- data/lib/moxml/adapter/ox.rb +93 -137
- data/lib/moxml/adapter/rexml.rb +61 -50
- data/lib/moxml/adapter.rb +2 -1
- data/lib/moxml/attribute.rb +8 -4
- data/lib/moxml/attribute_resolver.rb +189 -0
- data/lib/moxml/c14n/attribute_handler.rb +71 -0
- data/lib/moxml/c14n/character_encoder.rb +29 -0
- data/lib/moxml/c14n/data_model.rb +145 -0
- data/lib/moxml/c14n/exclusive.rb +188 -0
- data/lib/moxml/c14n/inclusive_10.rb +42 -0
- data/lib/moxml/c14n/inclusive_11.rb +21 -0
- data/lib/moxml/c14n/namespace_context.rb +68 -0
- data/lib/moxml/c14n/namespace_handler.rb +71 -0
- data/lib/moxml/c14n/node.rb +42 -0
- data/lib/moxml/c14n/nodes/attribute_node.rb +50 -0
- data/lib/moxml/c14n/nodes/comment_node.rb +29 -0
- data/lib/moxml/c14n/nodes/element_node.rb +62 -0
- data/lib/moxml/c14n/nodes/namespace_node.rb +41 -0
- data/lib/moxml/c14n/nodes/processing_instruction_node.rb +30 -0
- data/lib/moxml/c14n/nodes/root_node.rb +22 -0
- data/lib/moxml/c14n/nodes/text_node.rb +29 -0
- data/lib/moxml/c14n/nodes.rb +17 -0
- data/lib/moxml/c14n/processor.rb +118 -0
- data/lib/moxml/c14n/writer.rb +121 -0
- data/lib/moxml/c14n/xml_base_handler.rb +140 -0
- data/lib/moxml/c14n.rb +96 -0
- data/lib/moxml/config.rb +29 -3
- data/lib/moxml/context.rb +12 -0
- data/lib/moxml/element.rb +29 -12
- data/lib/moxml/entity/reference.rb +28 -0
- data/lib/moxml/entity.rb +125 -0
- data/lib/moxml/node.rb +90 -1
- data/lib/moxml/sax/namespace_splitter.rb +5 -2
- data/lib/moxml/signature/algorithms/base64_transform.rb +40 -0
- data/lib/moxml/signature/algorithms/canonicalization_base.rb +87 -0
- data/lib/moxml/signature/algorithms/digest_base.rb +51 -0
- data/lib/moxml/signature/algorithms/dsa_sha.rb +107 -0
- data/lib/moxml/signature/algorithms/ecdsa_sha.rb +125 -0
- data/lib/moxml/signature/algorithms/enveloped_signature_transform.rb +79 -0
- data/lib/moxml/signature/algorithms/exc_c14n_10.rb +23 -0
- data/lib/moxml/signature/algorithms/hmac_sha.rb +117 -0
- data/lib/moxml/signature/algorithms/inclusive_c14n_10.rb +21 -0
- data/lib/moxml/signature/algorithms/inclusive_c14n_11.rb +23 -0
- data/lib/moxml/signature/algorithms/rsa_pkcs1_sha.rb +56 -0
- data/lib/moxml/signature/algorithms/sha1.rb +13 -0
- data/lib/moxml/signature/algorithms/sha224.rb +13 -0
- data/lib/moxml/signature/algorithms/sha256.rb +13 -0
- data/lib/moxml/signature/algorithms/sha384.rb +13 -0
- data/lib/moxml/signature/algorithms/sha512.rb +13 -0
- data/lib/moxml/signature/algorithms/signature_method_base.rb +58 -0
- data/lib/moxml/signature/algorithms/transform_base.rb +40 -0
- data/lib/moxml/signature/algorithms.rb +113 -0
- data/lib/moxml/signature/errors.rb +99 -0
- data/lib/moxml/signature/key_extractor.rb +172 -0
- data/lib/moxml/signature/model/algorithm_method.rb +18 -0
- data/lib/moxml/signature/model/digest_method.rb +15 -0
- data/lib/moxml/signature/model/key/dsa_key_value.rb +28 -0
- data/lib/moxml/signature/model/key/ec_key_value.rb +22 -0
- data/lib/moxml/signature/model/key/rsa_key_value.rb +19 -0
- data/lib/moxml/signature/model/key/x509_data.rb +32 -0
- data/lib/moxml/signature/model/key/x509_digest.rb +19 -0
- data/lib/moxml/signature/model/key/x509_issuer_serial.rb +19 -0
- data/lib/moxml/signature/model/key_info.rb +21 -0
- data/lib/moxml/signature/model/key_value.rb +20 -0
- data/lib/moxml/signature/model/object_element.rb +18 -0
- data/lib/moxml/signature/model/reference.rb +22 -0
- data/lib/moxml/signature/model/signature.rb +21 -0
- data/lib/moxml/signature/model/signature_value.rb +16 -0
- data/lib/moxml/signature/model/signed_info.rb +20 -0
- data/lib/moxml/signature/model/transform.rb +16 -0
- data/lib/moxml/signature/model/transforms.rb +36 -0
- data/lib/moxml/signature/model.rb +35 -0
- data/lib/moxml/signature/parser.rb +270 -0
- data/lib/moxml/signature/reference_resolver.rb +79 -0
- data/lib/moxml/signature/reference_result.rb +22 -0
- data/lib/moxml/signature/serializer.rb +163 -0
- data/lib/moxml/signature/signer.rb +73 -0
- data/lib/moxml/signature/single_verification_result.rb +31 -0
- data/lib/moxml/signature/transform_pipeline.rb +106 -0
- data/lib/moxml/signature/verification_result.rb +27 -0
- data/lib/moxml/signature/verifier.rb +129 -0
- data/lib/moxml/signature.rb +94 -0
- data/lib/moxml/version.rb +1 -1
- data/lib/moxml/xml_emitter.rb +71 -0
- data/lib/moxml/xpath/compiler.rb +60 -7
- data/lib/moxml/xpath/parser.rb +22 -15
- data/lib/moxml.rb +5 -0
- data/reference-docs/w3c-xmldsig-bestpractices.md +216 -0
- data/reference-docs/w3c-xmldsig-core.md +400 -0
- data/spec/examples/readme_examples_spec.rb +0 -4
- data/spec/examples/xpath_examples_spec.rb +0 -11
- data/spec/fixtures/xmldsig/keys/rsa_private.pem +28 -0
- data/spec/fixtures/xmldsig/keys/rsa_public.pem +9 -0
- data/spec/fixtures/xmldsig/keys/rsa_ref.pem +15 -0
- data/spec/fixtures/xmldsig/keys/rsa_ref.pub +6 -0
- data/spec/fixtures/xmldsig/sign2-doc.xml +6 -0
- data/spec/fixtures/xmldsig/sign2-result.xml +25 -0
- data/spec/fixtures/xmldsig/sign3-result.xml +39 -0
- data/spec/integration/all_adapters_spec.rb +17 -0
- data/spec/integration/sax_parity_spec.rb +58 -0
- data/spec/integration/shared_examples/edge_cases.rb +0 -10
- data/spec/integration/shared_examples/integration_workflows.rb +0 -10
- data/spec/integration/shared_examples/node_wrappers/attribute_behavior.rb +98 -0
- data/spec/integration/shared_examples/node_wrappers/namespace_behavior.rb +26 -0
- data/spec/integration/shared_examples/node_wrappers/node_behavior.rb +0 -8
- data/spec/moxml/adapter/leptris_spec.rb +75 -0
- data/spec/moxml/adapter/ox_spec.rb +20 -6
- data/spec/moxml/adapter/platform_spec.rb +15 -2
- data/spec/moxml/adapter/shared_examples/adapter_contract.rb +180 -0
- data/spec/moxml/attribute_resolver_spec.rb +108 -0
- data/spec/moxml/c14n/api_spec.rb +117 -0
- data/spec/moxml/c14n/c14n_spec.rb +88 -0
- data/spec/moxml/c14n/comments_pis_spec.rb +65 -0
- data/spec/moxml/c14n/inclusive10_spec.rb +60 -0
- data/spec/moxml/c14n/namespace_edge_cases_spec.rb +88 -0
- data/spec/moxml/c14n/xml_attributes_spec.rb +54 -0
- data/spec/moxml/doctype_spec.rb +1 -1
- data/spec/moxml/entity_spec.rb +76 -0
- data/spec/moxml/node_spec.rb +104 -0
- data/spec/moxml/sax_entity_parity_spec.rb +358 -0
- data/spec/moxml/signature/algorithms/base64_transform_spec.rb +26 -0
- data/spec/moxml/signature/algorithms/digest_base_spec.rb +72 -0
- data/spec/moxml/signature/algorithms/dsa_sha_spec.rb +46 -0
- data/spec/moxml/signature/algorithms/ecdsa_sha_spec.rb +72 -0
- data/spec/moxml/signature/algorithms/enveloped_signature_transform_spec.rb +40 -0
- data/spec/moxml/signature/algorithms/hmac_sha_spec.rb +71 -0
- data/spec/moxml/signature/algorithms/rsa_pkcs1_sha_spec.rb +55 -0
- data/spec/moxml/signature/algorithms_spec.rb +76 -0
- data/spec/moxml/signature/cross_verify_spec.rb +64 -0
- data/spec/moxml/signature/edge_cases_spec.rb +284 -0
- data/spec/moxml/signature/fixtures_spec.rb +80 -0
- data/spec/moxml/signature/key_extractor_spec.rb +96 -0
- data/spec/moxml/signature/model_spec.rb +54 -0
- data/spec/moxml/signature/round_trip_spec.rb +113 -0
- data/spec/moxml/xml_emitter_spec.rb +64 -0
- data/spec/moxml/xpath/axes_spec.rb +72 -0
- data/spec/moxml/xpath/parser_spec.rb +6 -0
- data/spec/moxml/xpath_capabilities_spec.rb +5 -3
- data/spec/performance/benchmark_spec.rb +13 -6
- data/spec/performance/thread_safety_spec.rb +0 -4
- data/spec/spec_helper.rb +5 -1
- metadata +130 -2
metadata
CHANGED
|
@@ -1,14 +1,14 @@
|
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
|
2
2
|
name: moxml
|
|
3
3
|
version: !ruby/object:Gem::Version
|
|
4
|
-
version: 0.
|
|
4
|
+
version: 0.2.0
|
|
5
5
|
platform: ruby
|
|
6
6
|
authors:
|
|
7
7
|
- Ribose Inc.
|
|
8
8
|
autorequire:
|
|
9
9
|
bindir: exe
|
|
10
10
|
cert_chain: []
|
|
11
|
-
date: 2026-
|
|
11
|
+
date: 2026-08-25 00:00:00.000000000 Z
|
|
12
12
|
dependencies: []
|
|
13
13
|
description: |
|
|
14
14
|
Moxml is a unified XML manipulation library that provides a common API
|
|
@@ -27,6 +27,7 @@ files:
|
|
|
27
27
|
- ".github/workflows/rake.yml"
|
|
28
28
|
- ".github/workflows/release.yml"
|
|
29
29
|
- ".github/workflows/round-trip.yml"
|
|
30
|
+
- ".github/workflows/windows.yml"
|
|
30
31
|
- ".gitignore"
|
|
31
32
|
- ".gitmodules"
|
|
32
33
|
- ".rspec"
|
|
@@ -82,6 +83,13 @@ files:
|
|
|
82
83
|
- docs/_tutorials/namespace-handling.adoc
|
|
83
84
|
- docs/_tutorials/xpath-queries.adoc
|
|
84
85
|
- docs/index.adoc
|
|
86
|
+
- docs/signature/algorithms.md
|
|
87
|
+
- docs/signature/architecture.md
|
|
88
|
+
- docs/signature/c14n.md
|
|
89
|
+
- docs/signature/examples.md
|
|
90
|
+
- docs/signature/flows.md
|
|
91
|
+
- docs/signature/quick-reference.md
|
|
92
|
+
- docs/signature/security.md
|
|
85
93
|
- examples/README.md
|
|
86
94
|
- examples/api_client/README.md
|
|
87
95
|
- examples/api_client/api_client.rb
|
|
@@ -96,6 +104,9 @@ files:
|
|
|
96
104
|
- examples/sax_parsing/example.xml
|
|
97
105
|
- examples/sax_parsing/large_file.rb
|
|
98
106
|
- examples/sax_parsing/simple_parser.rb
|
|
107
|
+
- examples/signature/auto_key_extraction.rb
|
|
108
|
+
- examples/signature/enveloped_rsa.rb
|
|
109
|
+
- examples/signature/hmac.rb
|
|
99
110
|
- examples/web_scraper/README.md
|
|
100
111
|
- examples/web_scraper/example_page.html
|
|
101
112
|
- examples/web_scraper/web_scraper.rb
|
|
@@ -109,6 +120,11 @@ files:
|
|
|
109
120
|
- lib/moxml.rb
|
|
110
121
|
- lib/moxml/adapter.rb
|
|
111
122
|
- lib/moxml/adapter/base.rb
|
|
123
|
+
- lib/moxml/adapter/customized_leptris.rb
|
|
124
|
+
- lib/moxml/adapter/customized_leptris/declaration.rb
|
|
125
|
+
- lib/moxml/adapter/customized_leptris/doctype.rb
|
|
126
|
+
- lib/moxml/adapter/customized_leptris/entity_reference.rb
|
|
127
|
+
- lib/moxml/adapter/customized_leptris/text_segment.rb
|
|
112
128
|
- lib/moxml/adapter/customized_libxml.rb
|
|
113
129
|
- lib/moxml/adapter/customized_libxml/cdata.rb
|
|
114
130
|
- lib/moxml/adapter/customized_libxml/comment.rb
|
|
@@ -119,6 +135,8 @@ files:
|
|
|
119
135
|
- lib/moxml/adapter/customized_libxml/processing_instruction.rb
|
|
120
136
|
- lib/moxml/adapter/customized_libxml/text.rb
|
|
121
137
|
- lib/moxml/adapter/customized_oga.rb
|
|
138
|
+
- lib/moxml/adapter/customized_oga/entity_decoder.rb
|
|
139
|
+
- lib/moxml/adapter/customized_oga/raw_value_override.rb
|
|
122
140
|
- lib/moxml/adapter/customized_oga/xml_declaration.rb
|
|
123
141
|
- lib/moxml/adapter/customized_oga/xml_generator.rb
|
|
124
142
|
- lib/moxml/adapter/customized_ox.rb
|
|
@@ -130,6 +148,7 @@ files:
|
|
|
130
148
|
- lib/moxml/adapter/customized_rexml/entity_reference.rb
|
|
131
149
|
- lib/moxml/adapter/customized_rexml/formatter.rb
|
|
132
150
|
- lib/moxml/adapter/headed_ox.rb
|
|
151
|
+
- lib/moxml/adapter/leptris.rb
|
|
133
152
|
- lib/moxml/adapter/libxml.rb
|
|
134
153
|
- lib/moxml/adapter/libxml/entity_ref_registry.rb
|
|
135
154
|
- lib/moxml/adapter/libxml/entity_restorer.rb
|
|
@@ -138,7 +157,29 @@ files:
|
|
|
138
157
|
- lib/moxml/adapter/ox.rb
|
|
139
158
|
- lib/moxml/adapter/rexml.rb
|
|
140
159
|
- lib/moxml/attribute.rb
|
|
160
|
+
- lib/moxml/attribute_resolver.rb
|
|
141
161
|
- lib/moxml/builder.rb
|
|
162
|
+
- lib/moxml/c14n.rb
|
|
163
|
+
- lib/moxml/c14n/attribute_handler.rb
|
|
164
|
+
- lib/moxml/c14n/character_encoder.rb
|
|
165
|
+
- lib/moxml/c14n/data_model.rb
|
|
166
|
+
- lib/moxml/c14n/exclusive.rb
|
|
167
|
+
- lib/moxml/c14n/inclusive_10.rb
|
|
168
|
+
- lib/moxml/c14n/inclusive_11.rb
|
|
169
|
+
- lib/moxml/c14n/namespace_context.rb
|
|
170
|
+
- lib/moxml/c14n/namespace_handler.rb
|
|
171
|
+
- lib/moxml/c14n/node.rb
|
|
172
|
+
- lib/moxml/c14n/nodes.rb
|
|
173
|
+
- lib/moxml/c14n/nodes/attribute_node.rb
|
|
174
|
+
- lib/moxml/c14n/nodes/comment_node.rb
|
|
175
|
+
- lib/moxml/c14n/nodes/element_node.rb
|
|
176
|
+
- lib/moxml/c14n/nodes/namespace_node.rb
|
|
177
|
+
- lib/moxml/c14n/nodes/processing_instruction_node.rb
|
|
178
|
+
- lib/moxml/c14n/nodes/root_node.rb
|
|
179
|
+
- lib/moxml/c14n/nodes/text_node.rb
|
|
180
|
+
- lib/moxml/c14n/processor.rb
|
|
181
|
+
- lib/moxml/c14n/writer.rb
|
|
182
|
+
- lib/moxml/c14n/xml_base_handler.rb
|
|
142
183
|
- lib/moxml/cdata.rb
|
|
143
184
|
- lib/moxml/comment.rb
|
|
144
185
|
- lib/moxml/config.rb
|
|
@@ -148,6 +189,8 @@ files:
|
|
|
148
189
|
- lib/moxml/document.rb
|
|
149
190
|
- lib/moxml/document_builder.rb
|
|
150
191
|
- lib/moxml/element.rb
|
|
192
|
+
- lib/moxml/entity.rb
|
|
193
|
+
- lib/moxml/entity/reference.rb
|
|
151
194
|
- lib/moxml/entity_reference.rb
|
|
152
195
|
- lib/moxml/entity_registry.rb
|
|
153
196
|
- lib/moxml/entity_registry_opal_data.rb
|
|
@@ -164,8 +207,58 @@ files:
|
|
|
164
207
|
- lib/moxml/sax/element_handler.rb
|
|
165
208
|
- lib/moxml/sax/handler.rb
|
|
166
209
|
- lib/moxml/sax/namespace_splitter.rb
|
|
210
|
+
- lib/moxml/signature.rb
|
|
211
|
+
- lib/moxml/signature/algorithms.rb
|
|
212
|
+
- lib/moxml/signature/algorithms/base64_transform.rb
|
|
213
|
+
- lib/moxml/signature/algorithms/canonicalization_base.rb
|
|
214
|
+
- lib/moxml/signature/algorithms/digest_base.rb
|
|
215
|
+
- lib/moxml/signature/algorithms/dsa_sha.rb
|
|
216
|
+
- lib/moxml/signature/algorithms/ecdsa_sha.rb
|
|
217
|
+
- lib/moxml/signature/algorithms/enveloped_signature_transform.rb
|
|
218
|
+
- lib/moxml/signature/algorithms/exc_c14n_10.rb
|
|
219
|
+
- lib/moxml/signature/algorithms/hmac_sha.rb
|
|
220
|
+
- lib/moxml/signature/algorithms/inclusive_c14n_10.rb
|
|
221
|
+
- lib/moxml/signature/algorithms/inclusive_c14n_11.rb
|
|
222
|
+
- lib/moxml/signature/algorithms/rsa_pkcs1_sha.rb
|
|
223
|
+
- lib/moxml/signature/algorithms/sha1.rb
|
|
224
|
+
- lib/moxml/signature/algorithms/sha224.rb
|
|
225
|
+
- lib/moxml/signature/algorithms/sha256.rb
|
|
226
|
+
- lib/moxml/signature/algorithms/sha384.rb
|
|
227
|
+
- lib/moxml/signature/algorithms/sha512.rb
|
|
228
|
+
- lib/moxml/signature/algorithms/signature_method_base.rb
|
|
229
|
+
- lib/moxml/signature/algorithms/transform_base.rb
|
|
230
|
+
- lib/moxml/signature/errors.rb
|
|
231
|
+
- lib/moxml/signature/key_extractor.rb
|
|
232
|
+
- lib/moxml/signature/model.rb
|
|
233
|
+
- lib/moxml/signature/model/algorithm_method.rb
|
|
234
|
+
- lib/moxml/signature/model/digest_method.rb
|
|
235
|
+
- lib/moxml/signature/model/key/dsa_key_value.rb
|
|
236
|
+
- lib/moxml/signature/model/key/ec_key_value.rb
|
|
237
|
+
- lib/moxml/signature/model/key/rsa_key_value.rb
|
|
238
|
+
- lib/moxml/signature/model/key/x509_data.rb
|
|
239
|
+
- lib/moxml/signature/model/key/x509_digest.rb
|
|
240
|
+
- lib/moxml/signature/model/key/x509_issuer_serial.rb
|
|
241
|
+
- lib/moxml/signature/model/key_info.rb
|
|
242
|
+
- lib/moxml/signature/model/key_value.rb
|
|
243
|
+
- lib/moxml/signature/model/object_element.rb
|
|
244
|
+
- lib/moxml/signature/model/reference.rb
|
|
245
|
+
- lib/moxml/signature/model/signature.rb
|
|
246
|
+
- lib/moxml/signature/model/signature_value.rb
|
|
247
|
+
- lib/moxml/signature/model/signed_info.rb
|
|
248
|
+
- lib/moxml/signature/model/transform.rb
|
|
249
|
+
- lib/moxml/signature/model/transforms.rb
|
|
250
|
+
- lib/moxml/signature/parser.rb
|
|
251
|
+
- lib/moxml/signature/reference_resolver.rb
|
|
252
|
+
- lib/moxml/signature/reference_result.rb
|
|
253
|
+
- lib/moxml/signature/serializer.rb
|
|
254
|
+
- lib/moxml/signature/signer.rb
|
|
255
|
+
- lib/moxml/signature/single_verification_result.rb
|
|
256
|
+
- lib/moxml/signature/transform_pipeline.rb
|
|
257
|
+
- lib/moxml/signature/verification_result.rb
|
|
258
|
+
- lib/moxml/signature/verifier.rb
|
|
167
259
|
- lib/moxml/text.rb
|
|
168
260
|
- lib/moxml/version.rb
|
|
261
|
+
- lib/moxml/xml_emitter.rb
|
|
169
262
|
- lib/moxml/xml_utils.rb
|
|
170
263
|
- lib/moxml/xml_utils/encoder.rb
|
|
171
264
|
- lib/moxml/xpath.rb
|
|
@@ -182,6 +275,8 @@ files:
|
|
|
182
275
|
- lib/moxml/xpath/ruby/node.rb
|
|
183
276
|
- moxml.gemspec
|
|
184
277
|
- old-specs/moxml/adapter/customized_libxml/.gitkeep
|
|
278
|
+
- reference-docs/w3c-xmldsig-bestpractices.md
|
|
279
|
+
- reference-docs/w3c-xmldsig-core.md
|
|
185
280
|
- scripts/format_xml.rb
|
|
186
281
|
- scripts/pretty_format_xml.rb
|
|
187
282
|
- sig/moxml.rbs
|
|
@@ -279,9 +374,17 @@ files:
|
|
|
279
374
|
- spec/fixtures/w3c/namespaces/1.0/LICENSE.md
|
|
280
375
|
- spec/fixtures/w3c/namespaces/1.0/README.adoc
|
|
281
376
|
- spec/fixtures/w3c/namespaces/1.0/rmt-ns10.xml
|
|
377
|
+
- spec/fixtures/xmldsig/keys/rsa_private.pem
|
|
378
|
+
- spec/fixtures/xmldsig/keys/rsa_public.pem
|
|
379
|
+
- spec/fixtures/xmldsig/keys/rsa_ref.pem
|
|
380
|
+
- spec/fixtures/xmldsig/keys/rsa_ref.pub
|
|
381
|
+
- spec/fixtures/xmldsig/sign2-doc.xml
|
|
382
|
+
- spec/fixtures/xmldsig/sign2-result.xml
|
|
383
|
+
- spec/fixtures/xmldsig/sign3-result.xml
|
|
282
384
|
- spec/integration/README.md
|
|
283
385
|
- spec/integration/all_adapters_spec.rb
|
|
284
386
|
- spec/integration/headed_ox_integration_spec.rb
|
|
387
|
+
- spec/integration/sax_parity_spec.rb
|
|
285
388
|
- spec/integration/shared_examples/edge_cases.rb
|
|
286
389
|
- spec/integration/shared_examples/entity_reference_whitespace.rb
|
|
287
390
|
- spec/integration/shared_examples/high_level/.gitkeep
|
|
@@ -312,6 +415,7 @@ files:
|
|
|
312
415
|
- spec/moxml/adapter/base_spec.rb
|
|
313
416
|
- spec/moxml/adapter/entity_restoration_spec.rb
|
|
314
417
|
- spec/moxml/adapter/headed_ox_spec.rb
|
|
418
|
+
- spec/moxml/adapter/leptris_spec.rb
|
|
315
419
|
- spec/moxml/adapter/libxml_internals_spec.rb
|
|
316
420
|
- spec/moxml/adapter/libxml_spec.rb
|
|
317
421
|
- spec/moxml/adapter/nokogiri_spec.rb
|
|
@@ -324,8 +428,15 @@ files:
|
|
|
324
428
|
- spec/moxml/adapter_spec.rb
|
|
325
429
|
- spec/moxml/allocation_benchmark_spec.rb
|
|
326
430
|
- spec/moxml/allocation_guard_spec.rb
|
|
431
|
+
- spec/moxml/attribute_resolver_spec.rb
|
|
327
432
|
- spec/moxml/attribute_spec.rb
|
|
328
433
|
- spec/moxml/builder_spec.rb
|
|
434
|
+
- spec/moxml/c14n/api_spec.rb
|
|
435
|
+
- spec/moxml/c14n/c14n_spec.rb
|
|
436
|
+
- spec/moxml/c14n/comments_pis_spec.rb
|
|
437
|
+
- spec/moxml/c14n/inclusive10_spec.rb
|
|
438
|
+
- spec/moxml/c14n/namespace_edge_cases_spec.rb
|
|
439
|
+
- spec/moxml/c14n/xml_attributes_spec.rb
|
|
329
440
|
- spec/moxml/cdata_spec.rb
|
|
330
441
|
- spec/moxml/comment_spec.rb
|
|
331
442
|
- spec/moxml/config_spec.rb
|
|
@@ -339,6 +450,7 @@ files:
|
|
|
339
450
|
- spec/moxml/entity_preservation_spec.rb
|
|
340
451
|
- spec/moxml/entity_reference_spec.rb
|
|
341
452
|
- spec/moxml/entity_registry_spec.rb
|
|
453
|
+
- spec/moxml/entity_spec.rb
|
|
342
454
|
- spec/moxml/error_spec.rb
|
|
343
455
|
- spec/moxml/lazy_parse_spec.rb
|
|
344
456
|
- spec/moxml/moxml_spec.rb
|
|
@@ -360,9 +472,25 @@ files:
|
|
|
360
472
|
- spec/moxml/opal_smoke_spec.rb
|
|
361
473
|
- spec/moxml/processing_instruction_spec.rb
|
|
362
474
|
- spec/moxml/sax/namespace_splitter_spec.rb
|
|
475
|
+
- spec/moxml/sax_entity_parity_spec.rb
|
|
363
476
|
- spec/moxml/sax_spec.rb
|
|
477
|
+
- spec/moxml/signature/algorithms/base64_transform_spec.rb
|
|
478
|
+
- spec/moxml/signature/algorithms/digest_base_spec.rb
|
|
479
|
+
- spec/moxml/signature/algorithms/dsa_sha_spec.rb
|
|
480
|
+
- spec/moxml/signature/algorithms/ecdsa_sha_spec.rb
|
|
481
|
+
- spec/moxml/signature/algorithms/enveloped_signature_transform_spec.rb
|
|
482
|
+
- spec/moxml/signature/algorithms/hmac_sha_spec.rb
|
|
483
|
+
- spec/moxml/signature/algorithms/rsa_pkcs1_sha_spec.rb
|
|
484
|
+
- spec/moxml/signature/algorithms_spec.rb
|
|
485
|
+
- spec/moxml/signature/cross_verify_spec.rb
|
|
486
|
+
- spec/moxml/signature/edge_cases_spec.rb
|
|
487
|
+
- spec/moxml/signature/fixtures_spec.rb
|
|
488
|
+
- spec/moxml/signature/key_extractor_spec.rb
|
|
489
|
+
- spec/moxml/signature/model_spec.rb
|
|
490
|
+
- spec/moxml/signature/round_trip_spec.rb
|
|
364
491
|
- spec/moxml/text_spec.rb
|
|
365
492
|
- spec/moxml/version_spec.rb
|
|
493
|
+
- spec/moxml/xml_emitter_spec.rb
|
|
366
494
|
- spec/moxml/xml_utils/.gitkeep
|
|
367
495
|
- spec/moxml/xml_utils/encoder_spec.rb
|
|
368
496
|
- spec/moxml/xml_utils_spec.rb
|