| Server IP : 104.21.21.239 / Your IP : 216.73.216.55 Web Server : Apache/2.4.68 (Amazon Linux) OpenSSL/3.5.7 System : Linux ip-172-31-69-123.ec2.internal 6.1.177-224.371.amzn2023.x86_64 #1 SMP PREEMPT_DYNAMIC Mon Jul 27 20:28:29 UTC 2026 x86_64 User : ec2-user ( 1000) PHP Version : 8.4.24 Disable Function : NONE MySQL : OFF | cURL : ON | WGET : ON | Perl : ON | Python : OFF | Sudo : ON | Pkexec : ON Directory : /lib/python3.9/site-packages/awscli/botocore/__pycache__/ |
Upload File : |
a
wA�ilE � @ s� d Z ddlZddlZddlZddlmZ ddlmZmZ ddl m
Z ddlm
Z
ddlmZmZ ddlmZ dd lmZ dd
lmZ ddlmZmZ e�e�ZdZG d
d� d�ZG dd� de�ZG dd� de�Z G dd� de�Z!G dd� de�Z"G dd� de�Z#G dd� de�Z$G dd� d�Z%G dd� de�Z&dd � Z'd6d!d"�Z(d#d$� Z)d%d&� Z*d'd(� Z+d)d*� Z,d+d,� Z-d7d-d.�Z.d/d0� Z/d1d2� Z0d3d4� Z1e"e!e e#e$d5�Z2e3e2�4� �Z5g d5�Z6dS )8aB The interfaces in this module are not intended for public use.
This module defines interfaces for applying checksums to HTTP requests within
the context of botocore. This involves both resolving the checksum to be used
based on client configuration and environment, as well as application of the
checksum to the request.
� N)�crc32)�sha1�sha256)� checksums)�urlparse)�AwsChunkedWrapperError�FlexibleChecksumError)�StructureShape)�
StreamingBody)�register_feature_id)�determine_content_length�has_checksum_header� CRC64NVMEc @ s8 e Zd ZdZdd� Zdd� Zdd� Zdd � Zd
d� ZdS )
�BaseChecksum� c C s d S �N� ��self�chunkr r �@/usr/lib/python3.9/site-packages/awscli/botocore/httpchecksum.py�update, s zBaseChecksum.updatec C s d S r r �r r r r �digest/ s zBaseChecksum.digestc C s | � � }t�|��d�S )N�ascii)r �base64Z b64encode�decode)r �bsr r r � b64digest2 s zBaseChecksum.b64digestc s: � � � }t� �fdd�d�D ]}��|� q� �|� d S )Nc s � � �j�S r )�read�_CHUNK_SIZEr ��fileobjr r r �<lambda>8 � z.BaseChecksum._handle_fileobj.<locals>.<lambda>r$ )�tell�iterr �seek)r r"