|
Server : Apache System : Linux cvar2.toservers.com 3.10.0-962.3.2.lve1.5.73.el7.x86_64 #1 SMP Wed Aug 24 21:31:23 UTC 2022 x86_64 User : njnconst ( 1116) PHP Version : 8.4.18 Disable Function : NONE Directory : /usr/lib64/python2.7/site-packages/cryptography/hazmat/primitives/kdf/ |
Upload File : |
�
x�\c @` s� d d l m Z m Z m Z d d l Z d d l m Z d d l m Z m Z m
Z
m Z d d l m
Z
d d l m Z m Z d d l m Z d � Z e j e � d e f d
� � Y� Z d S( i ( t absolute_importt divisiont print_functionN( t utils( t AlreadyFinalizedt
InvalidKeyt UnsupportedAlgorithmt _Reasons( t HashBackend( t
constant_timet hashes( t KeyDerivationFunctionc C` s t j d | � S( Ns >I( t structt pack( t n( ( sR /tmp/pip-install-A1qMVe/cryptography/cryptography/hazmat/primitives/kdf/x963kdf.pyt
_int_to_u32be s t X963KDFc B` s# e Z d � Z d � Z d � Z RS( c C` s� | j d } | | k r1 t d j | � � � n | d k rP t j d | � n | | _ | | _ | | _ t | t
� s� t d t j
� � n | | _ t | _ d S( Ni i i s( Can not derive keys larger than {} bits.t
sharedinfos. Backend object does not implement HashBackend.I I���� ( t digest_sizet
ValueErrort formatt NoneR t _check_bytest
_algorithmt _lengtht _sharedinfot
isinstanceR R R t BACKEND_MISSING_INTERFACEt _backendt Falset _used( t selft algorithmt lengthR t backendt max_len( ( sR /tmp/pip-install-A1qMVe/cryptography/cryptography/hazmat/primitives/kdf/x963kdf.pyt __init__ s
c C` s� | j r t � n t | _ t j d | � d g } d } d } x� | j | k r� t j | j | j � } | j
| � | j
t | � � | j d k r� | j
| j � n | j | j � � | t | d � 7} | d 7} qC Wd j | � | j S( Nt key_materialt i i i����( R R t TrueR t _check_byteslikeR R
t HashR R t updateR R R t appendt finalizet lent join( R R% t outputt outlent countert h( ( sR /tmp/pip-install-A1qMVe/cryptography/cryptography/hazmat/primitives/kdf/x963kdf.pyt derive- s"