/var/opt/nydus/ops/oscrypto
NameSizeModeActions
_linux_bsd/-0755rm
_mac/-0755rm
_openssl/-0755rm
_win/-0755rm
__pycache__/-0755rm
asymmetric.py131420644editdlrm
errors.py19120644editdlrm
kdf.py73460644editdlrm
keys.py5420644editdlrm
symmetric.py18400644editdlrm
tls.py5020644editdlrm
trust_list.py133130644editdlrm
util.py13310644editdlrm
version.py1520644editdlrm
_asn1.py19590644editdlrm
_asymmetric.py309120644editdlrm
_cipher_suites.py180690644editdlrm
_ecdsa.py228180644editdlrm
_errors.py10210644editdlrm
_ffi.py121020644editdlrm
_int.py6660644editdlrm
_pkcs1.py203170644editdlrm
_pkcs5.py34130644editdlrm
_pkcs12.py48760644editdlrm
_rand.py10400644editdlrm
_tls.py178450644editdlrm
_types.py8720644editdlrm
__init__.py97540644editdlrm
Edit: /var/opt/nydus/ops/oscrypto/_int.py (666B)
# coding: utf-8 """ Function to fill ensure integers converted to a byte string are a specific width. Exports the following items: - fill_width() """ from __future__ import unicode_literals, division, absolute_import, print_function __all__ = [ 'fill_width', ] def fill_width(bytes_, width): """ Ensure a byte string representing a positive integer is a specific width (in bytes) :param bytes_: The integer byte string :param width: The desired width as an integer :return: A byte string of the width specified """ while len(bytes_) < width: bytes_ = b'\x00' + bytes_ return bytes_