Skip to content

Commit 798d337

Browse files
committed
add new exceptions
1 parent d546018 commit 798d337

File tree

1 file changed

+8
-0
lines changed

1 file changed

+8
-0
lines changed

paseto/exceptions.py

+8
Original file line numberDiff line numberDiff line change
@@ -11,3 +11,11 @@ class InvalidFooter(PasetoException):
1111

1212
class InvalidHeader(PasetoException):
1313
"""Message contains incorrect header."""
14+
15+
16+
class InvalidMac(PasetoException):
17+
"""Invalid MAC for given ciphertext in decrypt."""
18+
19+
20+
class InvalidKey(PasetoException):
21+
"""Invalid key for this version of the protocol and method."""

0 commit comments

Comments
 (0)