Viewing File: /usr/lib64/python2.7/site-packages/cryptography/hazmat/primitives/kdf/concatkdf.pyo
ó
Àb‹Xc @` 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 d d l m Z m Z m Z d d l m Z d „ Z d
„ Z d „ Z e j e ƒ d e f d
„ ƒ Yƒ 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 HMACBackend( t HashBackend( t
constant_timet hashest hmac( t KeyDerivationFunctionc C` s t j d | ƒ S( Ns >I( t structt pack( t n( ( sR /usr/lib64/python2.7/site-packages/cryptography/hazmat/primitives/kdf/concatkdf.pyt
_int_to_u32be s c C` s_ | j d } | | k r1 t d j | ƒ ƒ ‚ n | d k pI t | t ƒ s[ t d ƒ ‚ n d S( Ni i i s) Can not derive keys larger than {0} bits.s otherinfo must be bytes.I Iÿÿÿÿ ( t digest_sizet
ValueErrort formatt Nonet
isinstancet bytest TypeError( t algorithmt lengtht otherinfot
max_length( ( sR /usr/lib64/python2.7/site-packages/cryptography/hazmat/primitives/kdf/concatkdf.pyt _common_args_checks s
c C` s¾ t | t ƒ s t d ƒ ‚ n d g } d } d } xw | | k r¬ | ƒ } | j t | ƒ ƒ | j | ƒ | j | ƒ | j | j ƒ ƒ | t | d ƒ 7} | d 7} q6 Wd j | ƒ | S( Ns key_material must be bytes.t i i iÿÿÿÿ( R R R t updateR t appendt finalizet lent join( t key_materialR t auxfnR t outputt outlent countert h( ( sR /usr/lib64/python2.7/site-packages/cryptography/hazmat/primitives/kdf/concatkdf.pyt _concatkdf_derive"