Skip to content

Commit 86b85cc

Browse files
committed
Explicitly name the default symmetric scheme
Signed-off-by: Ivan Kanakarakis <[email protected]>
1 parent 79cb52a commit 86b85cc

File tree

1 file changed

+6
-1
lines changed

1 file changed

+6
-1
lines changed

src/saml2/cryptography/symmetric.py

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@
1313
import cryptography.hazmat.primitives.ciphers as _ciphers
1414

1515

16-
class Default(object):
16+
class Fernet(object):
1717
"""The default symmetric cryptography method."""
1818

1919
@staticmethod
@@ -51,6 +51,7 @@ def decrypt(self, ciphertext):
5151
return plaintext
5252

5353

54+
5455
class AESCipher(object):
5556
"""[deprecated] Symmetric cryptography method using AES.
5657
@@ -164,3 +165,7 @@ def decrypt(self, msg, alg='aes_128_cbc', padding='PKCS#7', b64dec=True):
164165
idx = bytearray(res)[-1]
165166
res = res[:-idx]
166167
return res
168+
169+
170+
class Default(Fernet):
171+
"""Default class is saml2.cryptography.symmetric.Fernet"""

0 commit comments

Comments
 (0)