ACIL FM
Dark
Refresh
Current DIR:
/opt/imunify360/venv/lib/python3.11/site-packages/Crypto/Util
/
opt
imunify360
venv
lib
python3.11
site-packages
Crypto
Util
Upload
Zip Selected
Delete Selected
Pilih semua
Nama
Ukuran
Permission
Aksi
__pycache__
-
chmod
Open
Rename
Delete
asn1.py
35.32 MB
chmod
View
DL
Edit
Rename
Delete
asn1.pyi
3.72 MB
chmod
View
DL
Edit
Rename
Delete
Counter.py
3.04 MB
chmod
View
DL
Edit
Rename
Delete
Counter.pyi
290 B
chmod
View
DL
Edit
Rename
Delete
number.py
94.11 MB
chmod
View
DL
Edit
Rename
Delete
number.pyi
975 B
chmod
View
DL
Edit
Rename
Delete
Padding.py
4.21 MB
chmod
View
DL
Edit
Rename
Delete
Padding.pyi
238 B
chmod
View
DL
Edit
Rename
Delete
py3compat.py
5.4 MB
chmod
View
DL
Edit
Rename
Delete
py3compat.pyi
837 B
chmod
View
DL
Edit
Rename
Delete
RFC1751.py
20.7 MB
chmod
View
DL
Edit
Rename
Delete
RFC1751.pyi
159 B
chmod
View
DL
Edit
Rename
Delete
strxor.py
5.31 MB
chmod
View
DL
Edit
Rename
Delete
strxor.pyi
243 B
chmod
View
DL
Edit
Rename
Delete
_cpuid_c.abi3.so
15.33 MB
chmod
View
DL
Edit
Rename
Delete
_cpu_features.py
1.94 MB
chmod
View
DL
Edit
Rename
Delete
_cpu_features.pyi
59 B
chmod
View
DL
Edit
Rename
Delete
_file_system.py
2.12 MB
chmod
View
DL
Edit
Rename
Delete
_file_system.pyi
100 B
chmod
View
DL
Edit
Rename
Delete
_raw_api.py
9.99 MB
chmod
View
DL
Edit
Rename
Delete
_raw_api.pyi
906 B
chmod
View
DL
Edit
Rename
Delete
_strxor.abi3.so
15.32 MB
chmod
View
DL
Edit
Rename
Delete
__init__.py
1.88 MB
chmod
View
DL
Edit
Rename
Delete
Edit file: /opt/imunify360/venv/lib/python3.11/site-packages/Crypto/Util/Counter.py
# -*- coding: ascii -*- # # Util/Counter.py : Fast counter for use with CTR-mode ciphers # # Written in 2008 by Dwayne C. Litzenberger <dlitz@dlitz.net> # # =================================================================== # The contents of this file are dedicated to the public domain. To # the extent that dedication to the public domain is not available, # everyone is granted a worldwide, perpetual, royalty-free, # non-exclusive license to exercise all rights associated with the # contents of this file for any purpose whatsoever. # No rights are reserved. # # THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, # EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF # MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND # NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS # BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN # ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN # CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE # SOFTWARE. # =================================================================== def new(nbits, prefix=b"", suffix=b"", initial_value=1, little_endian=False, allow_wraparound=False): """Create a stateful counter block function suitable for CTR encryption modes. Each call to the function returns the next counter block. Each counter block is made up by three parts: +------+--------------+-------+ |prefix| counter value|postfix| +------+--------------+-------+ The counter value is incremented by 1 at each call. Args: nbits (integer): Length of the desired counter value, in bits. It must be a multiple of 8. prefix (byte string): The constant prefix of the counter block. By default, no prefix is used. suffix (byte string): The constant postfix of the counter block. By default, no suffix is used. initial_value (integer): The initial value of the counter. Default value is 1. Its length in bits must not exceed the argument ``nbits``. little_endian (boolean): If ``True``, the counter number will be encoded in little endian format. If ``False`` (default), in big endian format. allow_wraparound (boolean): This parameter is ignored. Returns: An object that can be passed with the :data:`counter` parameter to a CTR mode cipher. It must hold that *len(prefix) + nbits//8 + len(suffix)* matches the block size of the underlying block cipher. """ if (nbits % 8) != 0: raise ValueError("'nbits' must be a multiple of 8") iv_bl = initial_value.bit_length() if iv_bl > nbits: raise ValueError("Initial value takes %d bits but it is longer than " "the counter (%d bits)" % (iv_bl, nbits)) # Ignore wraparound return {"counter_len": nbits // 8, "prefix": prefix, "suffix": suffix, "initial_value": initial_value, "little_endian": little_endian }
Simpan
Batal
Isi Zip:
Unzip
Create
Buat Folder
Buat File
Terminal / Execute
Run
Chmod Bulk
All File
All Folder
All File dan Folder
Apply