OXIESEC PANEL
- Current Dir:
/
/
snap
/
core
/
17210
/
usr
/
lib
/
python3
/
dist-packages
/
cryptography
/
hazmat
/
backends
/
openssl
Server IP: 10.0.0.4
Upload:
Create Dir:
Name
Size
Modified
Perms
📁
..
-
10/02/2024 07:52:55 PM
rwxr-xr-x
📄
__init__.py
336 bytes
03/02/2016 02:10:12 AM
rw-r--r--
📁
__pycache__
-
10/02/2024 07:52:55 PM
rwxr-xr-x
📄
backend.py
84.98 KB
03/02/2016 02:10:17 AM
rw-r--r--
📄
ciphers.py
8.55 KB
03/02/2016 02:10:12 AM
rw-r--r--
📄
cmac.py
2.73 KB
03/02/2016 02:10:12 AM
rw-r--r--
📄
dsa.py
8.16 KB
03/02/2016 02:10:12 AM
rw-r--r--
📄
ec.py
10.05 KB
03/02/2016 02:10:12 AM
rw-r--r--
📄
hashes.py
2.53 KB
03/02/2016 02:10:12 AM
rw-r--r--
📄
hmac.py
3 KB
03/02/2016 02:10:12 AM
rw-r--r--
📄
rsa.py
23.43 KB
03/13/2024 03:40:19 PM
rw-r--r--
📄
utils.py
737 bytes
03/02/2016 02:10:12 AM
rw-r--r--
📄
x509.py
38.77 KB
03/02/2016 02:10:17 AM
rw-r--r--
Editing: utils.py
Close
# This file is dual licensed under the terms of the Apache License, Version # 2.0, and the BSD License. See the LICENSE file in the root of this repository # for complete details. from __future__ import absolute_import, division, print_function import six def _truncate_digest(digest, order_bits): digest_len = len(digest) if 8 * digest_len > order_bits: digest_len = (order_bits + 7) // 8 digest = digest[:digest_len] if 8 * digest_len > order_bits: rshift = 8 - (order_bits & 0x7) assert 0 < rshift < 8 mask = 0xFF >> rshift << rshift # Set the bottom rshift bits to 0 digest = digest[:-1] + six.int2byte(six.indexbytes(digest, -1) & mask) return digest