Skip to content

Commit b7b1465

Browse files
committed
Remove references to unsupported content
1 parent dc2d6e8 commit b7b1465

File tree

1 file changed

+11
-9
lines changed

1 file changed

+11
-9
lines changed

signxml/algorithms.py

Lines changed: 11 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -52,9 +52,9 @@ def _missing_(cls, value):
5252

5353
class DigestAlgorithm(FragmentLookupMixin, InvalidInputErrorMixin, Enum):
5454
"""
55-
An enumeration of digest algorithms supported by SignXML. See `RFC 9231
56-
<https://www.rfc-editor.org/rfc/rfc9231.html>`_ and the `Algorithm Identifiers and Implementation Requirements
57-
<http://www.w3.org/TR/xmldsig-core1/#sec-AlgID>`_ section of the XML Signature 1.1 standard for details.
55+
An enumeration of digest algorithms supported by SignXML. See the
56+
`Algorithm Identifiers and Implementation Requirements <http://www.w3.org/TR/xmldsig-core1/#sec-AlgID>`_ section of
57+
the XML Signature 1.1 standard for details.
5858
"""
5959

6060
SHA224 = "http://www.w3.org/2001/04/xmldsig-more#sha224"
@@ -83,9 +83,9 @@ def implementation(self) -> Callable:
8383
# TODO: check if padding errors are fixed by using padding=MGF1
8484
class SignatureMethod(FragmentLookupMixin, InvalidInputErrorMixin, Enum):
8585
"""
86-
An enumeration of signature methods (also referred to as signature algorithms) supported by SignXML. See `RFC 9231
87-
<https://www.rfc-editor.org/rfc/rfc9231.html>`_ and the `Algorithm Identifiers and Implementation Requirements
88-
<http://www.w3.org/TR/xmldsig-core1/#sec-AlgID>`_ section of the XML Signature 1.1 standard for details.
86+
An enumeration of signature methods (also referred to as signature algorithms) supported by SignXML. See the
87+
`Algorithm Identifiers and Implementation Requirements <http://www.w3.org/TR/xmldsig-core1/#sec-AlgID>`_ section of
88+
the XML Signature 1.1 standard for details.
8989
"""
9090

9191
ECDSA_SHA224 = "http://www.w3.org/2001/04/xmldsig-more#ecdsa-sha224"
@@ -144,9 +144,8 @@ class SignatureMethod(FragmentLookupMixin, InvalidInputErrorMixin, Enum):
144144
class CanonicalizationMethod(InvalidInputErrorMixin, Enum):
145145
"""
146146
An enumeration of XML canonicalization methods (also referred to as canonicalization algorithms) supported by
147-
SignXML. See `RFC 9231 <https://www.rfc-editor.org/rfc/rfc9231.html>`_ and the `Algorithm Identifiers and
148-
Implementation Requirements <http://www.w3.org/TR/xmldsig-core1/#sec-AlgID>`_ section of the XML Signature 1.1
149-
standard for details.
147+
SignXML. See the `Algorithm Identifiers and Implementation Requirements
148+
<http://www.w3.org/TR/xmldsig-core1/#sec-AlgID>`_ section of the XML Signature 1.1 standard for details.
150149
"""
151150

152151
CANONICAL_XML_1_0 = "http://www.w3.org/TR/2001/REC-xml-c14n-20010315"
@@ -156,6 +155,9 @@ class CanonicalizationMethod(InvalidInputErrorMixin, Enum):
156155
EXCLUSIVE_XML_CANONICALIZATION_1_0 = "http://www.w3.org/2001/10/xml-exc-c14n#"
157156
EXCLUSIVE_XML_CANONICALIZATION_1_0_WITH_COMMENTS = "http://www.w3.org/2001/10/xml-exc-c14n#WithComments"
158157

158+
# The identifier for Canonical XML 2.0 is "http://www.w3.org/2010/xml-c14n2", but it is not a W3C standard.
159+
# While it is supported by lxml, it's not in general use and not supported by SignXML as a matter of policy
160+
159161

160162
digest_algorithm_implementations = {
161163
DigestAlgorithm.SHA1: hashes.SHA1,

0 commit comments

Comments
 (0)