diff options
Diffstat (limited to 'rsa')
-rw-r--r-- | rsa/_compat.py | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/rsa/_compat.py b/rsa/_compat.py index 7533c36..3c4eb81 100644 --- a/rsa/_compat.py +++ b/rsa/_compat.py @@ -76,6 +76,11 @@ except NameError: bytes_type = str +# To avoid calling b() multiple times in tight loops. +ZERO_BYTE = b('\x00') +EMPTY_BYTE = b('') + + def is_bytes(obj): """ Determines whether the given value is a byte string. |