Skip to content

Commit 6d4f968

Browse files
authored
Reorder and annotate algorithms
1 parent b7b1465 commit 6d4f968

File tree

1 file changed

+13
-9
lines changed

1 file changed

+13
-9
lines changed

signxml/algorithms.py

Lines changed: 13 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -88,23 +88,27 @@ class SignatureMethod(FragmentLookupMixin, InvalidInputErrorMixin, Enum):
8888
the XML Signature 1.1 standard for details.
8989
"""
9090

91+
RSA_SHA256 = "http://www.w3.org/2001/04/xmldsig-more#rsa-sha256"
92+
"""
93+
The RSASSA-PKCS1-v1_5 algorithm described in RFC 3447. This is the default and most widely supported signature method.
94+
"""
95+
96+
RSA_SHA224 = "http://www.w3.org/2001/04/xmldsig-more#rsa-sha224"
97+
RSA_SHA384 = "http://www.w3.org/2001/04/xmldsig-more#rsa-sha384"
98+
RSA_SHA512 = "http://www.w3.org/2001/04/xmldsig-more#rsa-sha512"
9199
ECDSA_SHA224 = "http://www.w3.org/2001/04/xmldsig-more#ecdsa-sha224"
92100
ECDSA_SHA256 = "http://www.w3.org/2001/04/xmldsig-more#ecdsa-sha256"
93101
ECDSA_SHA384 = "http://www.w3.org/2001/04/xmldsig-more#ecdsa-sha384"
94102
ECDSA_SHA512 = "http://www.w3.org/2001/04/xmldsig-more#ecdsa-sha512"
95-
HMAC_SHA224 = "http://www.w3.org/2001/04/xmldsig-more#hmac-sha224"
96-
HMAC_SHA256 = "http://www.w3.org/2001/04/xmldsig-more#hmac-sha256"
97-
HMAC_SHA384 = "http://www.w3.org/2001/04/xmldsig-more#hmac-sha384"
98-
HMAC_SHA512 = "http://www.w3.org/2001/04/xmldsig-more#hmac-sha512"
99-
RSA_SHA224 = "http://www.w3.org/2001/04/xmldsig-more#rsa-sha224"
100-
RSA_SHA256 = "http://www.w3.org/2001/04/xmldsig-more#rsa-sha256"
101-
RSA_SHA384 = "http://www.w3.org/2001/04/xmldsig-more#rsa-sha384"
102-
RSA_SHA512 = "http://www.w3.org/2001/04/xmldsig-more#rsa-sha512"
103-
DSA_SHA256 = "http://www.w3.org/2009/xmldsig11#dsa-sha256"
104103
ECDSA_SHA3_224 = "http://www.w3.org/2021/04/xmldsig-more#ecdsa-sha3-224"
105104
ECDSA_SHA3_256 = "http://www.w3.org/2021/04/xmldsig-more#ecdsa-sha3-256"
106105
ECDSA_SHA3_384 = "http://www.w3.org/2021/04/xmldsig-more#ecdsa-sha3-384"
107106
ECDSA_SHA3_512 = "http://www.w3.org/2021/04/xmldsig-more#ecdsa-sha3-512"
107+
DSA_SHA256 = "http://www.w3.org/2009/xmldsig11#dsa-sha256"
108+
HMAC_SHA224 = "http://www.w3.org/2001/04/xmldsig-more#hmac-sha224"
109+
HMAC_SHA256 = "http://www.w3.org/2001/04/xmldsig-more#hmac-sha256"
110+
HMAC_SHA384 = "http://www.w3.org/2001/04/xmldsig-more#hmac-sha384"
111+
HMAC_SHA512 = "http://www.w3.org/2001/04/xmldsig-more#hmac-sha512"
108112
SHA3_224_RSA_MGF1 = "http://www.w3.org/2007/05/xmldsig-more#sha3-224-rsa-MGF1"
109113
SHA3_256_RSA_MGF1 = "http://www.w3.org/2007/05/xmldsig-more#sha3-256-rsa-MGF1"
110114
SHA3_384_RSA_MGF1 = "http://www.w3.org/2007/05/xmldsig-more#sha3-384-rsa-MGF1"

0 commit comments

Comments
 (0)