26 lines
616 B
Python
Raw Normal View History

2019-06-24 12:05:12 -06:00
"""
Exceptions raise by allmydata.crypto.* modules
2020-08-03 11:06:46 -04:00
Ported to Python 3.
2019-06-24 12:05:12 -06:00
"""
2020-08-03 11:06:46 -04:00
from __future__ import absolute_import
from __future__ import division
from __future__ import print_function
from __future__ import unicode_literals
from future.utils import PY2
if PY2:
2020-08-05 11:53:23 -04:00
from builtins import filter, map, zip, ascii, chr, hex, input, next, oct, open, pow, round, super, bytes, dict, list, object, range, str, max, min # noqa: F401
2019-06-24 12:05:12 -06:00
class BadSignature(Exception):
"""
An alleged signature did not match
"""
class BadPrefixError(Exception):
"""
A key did not start with the required prefix
"""