+
    ¢THi.]  ã                  ó<  a € 0 t $ R t^ RIHt ^ RIt^ RIt^ RIt^ RIt^ RIH	t	 ^ RI
Ht ^ RIHt ^ RIHtHtHtHt ^ RIHt ^ RIHt . R0OtR1tR2t. R3OtRR4RR5RR6R
R6RR7RR8RR5RR9RR:RR;RR<RR=RR4RR>RR;/tR t/ tR]R&   R tR t R?R lt!R  R! lt"R@R" lt# ! R# R	]4      t$Rs%0 RAmt&RBR$ R% llt']! ]PP                  PS                  R&4      4      '       d   ]'! 4        ]*! R' ]+! R(4       4       4      t,]*! R) ]+! R(4       4       4      t-RCR* R+ llt.RDR, lt/RDR- R. llt0R/.t1R# )Ezlpasslib.crypto.digest -- crytographic helpers used by the password hashes in passlib

.. versionadded:: 1.7
)ÚannotationsN)Úwarn)Úexc)Úlogger)ÚSequenceMixinÚas_boolÚto_bytesÚto_native_str)Úunicode_or_bytes)Úmemoized_propertyÚHashInfoÚmd5Úsha1Úsha224Úsha256Úsha384Úsha512Úblake2bÚblake2sÚmd4Úsha3_224Úsha3_256Úsha3_384Úsha3_512Úshake128Úshake256c                 ó¸   € / p \        \        P                  R0,          4       F2  p\        V4      pVP                  VP
                  3WP                  &   K4  	  V # )z‰
internal helper used to generate ``_fallback_info`` dict.
currently only run manually to update the above list;
not invoked at runtime.
r   )ÚsortedÚhashlibÚalgorithms_availableÚlookup_hashÚdigest_sizeÚ
block_sizeÚname)ÚoutÚalgÚinfos      Ú7/usr/lib/python3/dist-packages/passlib/crypto/digest.pyÚ_gen_fallback_infor(   Z   sP   € ð €CÜ”g×2Ñ2°e°WÕ<Ö=ˆÜ˜3ÓˆØ×*Ñ*¨D¯O©OÐ<ˆ�I‰I‹ñ >ð €Jó    zdict[str, str]Ú_hash_info_cachec                óì  € T p\        V \        4      '       g   \        V RR4      p \        P                  ! RRV P                  4       P                  4       4      p V P                  R4      '       d   V R,          p V P                  R4      p R pV! V 4      pV'       d   V# \        P                  ! R	V 4      pV'       dˆ   VP                  R
RR4      w  rVpV'       d	   WV,          pTpV'       d*   VRV,           ,          pV'       d
   VR,          pW‡,          pV! V4      pV'       d   V# \        P                  ! RVVV4       W…3# T pV P                  RR4      p\        P                  ! RVVV4       W…3# )a!  
internal helper used by :func:`lookup_hash` --
normalize arbitrary hash name to hashlib format.
if name not recognized, returns dummy record and issues a warning.

:arg name:
    unnormalized name

:returns:
    tuple with 2+ elements: ``(hashlib_name, iana_name|None, ... 0+ aliases)``.
zutf-8z	hash namez[_ /]Ú-zscram-:é   NNz-plusc                ó4   € \          F  pW9   g   K  Vu # 	  R # ©N)Ú_known_hash_names)r#   Úrows   & r'   Úcheck_tableÚ&_get_hash_aliases.<locals>.check_table„   s   € ß$ˆCØŽ{Ø’
ñ %ñ r)   z8(?i)^(?P<name>[a-z]+)-?(?P<rev>\d)?-?(?P<size>\d{3,4})?$r#   ÚrevÚsizeÚ_z0normalizing unrecognized hash name %r => %r / %rz;normalizing unrecognized hash name and format %r => %r / %r)Ú
isinstanceÚstrr	   ÚreÚsubÚstripÚlowerÚ
startswithÚremovesuffixÚmatchÚgroupr   r&   ÚreplaceÚwarning)	r#   Úorigr2   ÚresultÚmÚ	iana_namer4   r5   Úhashlib_names	   &        r'   Ú_get_hash_aliasesrH   k   sc  € ð €DÜ�dœC× Ò Ü˜T 7¨KÓ8ˆÜ�6Š6�'˜3 §
¡
£× 2Ñ 2Ó 4Ó5€DØ‡�Ø÷ò ð �B�xˆØ× Ñ  Ó)ˆòñ ˜Ó€FßØˆô 	�ŠÐLÈdÓS€Aßð  !Ÿw™w v¨u°fÓ=Ñˆ	˜ßØÕˆIØ ˆßØ˜˜t�Õ#ˆIßØ Õ#�ØÕ ˆLÙ˜YÓ'ˆßØˆMô 	�ŠØ>ØØØô		
ð$ Ð"Ð"ð ˆ	Ø—|‘| C¨Ó-ˆÜ�ŠØIØØØô		
ð Ð"Ð"r)   c                óH  a a€ S P                  R4      '       g   S R
9  d    \        \        S 4      # \        P                  o S! S R4       RV V3R llpS Vn        RVn        RS : R2Vn        V#   \         d     LLi ; i  \         d     Mi ; iS R8X  d	   ^ RI	H
p T# R	# )zù
internal helper used by :func:`lookup_hash` --
lookup hash constructor by name

:arg name:
    name (normalized to hashlib format, e.g. ``"sha256"``)

:returns:
    hash constructor, e.g. ``hashlib.sha256()``;
    or None if hash can't be located.
r6   r)   c                ó   <€ S! SV 4      # r/   © )Úmsgr#   Únew_ssl_hashs   &€€r'   ÚconstÚ_get_hash_const.<locals>.constÓ   s   ø€ Ù  cÓ*Ð*r)   r   zwrapper for hashlib.new(z3),
generated by passlib.crypto.digest.lookup_hash()r   )r   N)ÚnewÚ
algorithms©r)   )r=   Úgetattrr   ÚAttributeErrorrP   Ú__name__Ú
__module__Ú__doc__Ú
ValueErrorÚpasslib.crypto._md4r   )r#   rN   r   rM   s   f  @r'   Ú_get_hash_constrZ   ¶   s¿   ù€ ð �?‰?˜3×Ò DÐ0EÔ$Eð	Üœ7 DÓ)Ð)ô
 —;‘;€Lðá�T˜3Ô÷	+ð 	+ð ˆŒØ$ˆÔà& t¡hð /?ð ?ð 	Œð ˆøô- ô 	Ùð	ûô ô Ùðúð" ˆu„}Ý+àˆ
ñ
 s#   ¢A1 Á	B Á1A?Á>A?ÂBÂBFc                ó  a	€ \         p W0,          #   \        \        3 d     Mi ; iT'       d   RpRp\        T \        4      '       dl   \        T 4      pT^ ,          o	S	'       g   Q hS	T 8w  d   \        S	TR7      pYcT &   T# \        S	4      pT'       d    \        '       d   S	\        9  d	   R
T	3R llpM\        T \        4      '       d   T # \        T 4      '       d?   T p\        T! 4       P                  4      pT^ ,          o	\        S	4      pTf   M!Y‡J d   MRpM\        P                  ! T RR4      h\        YuTR7      pTe   YcT&   T'       d;   T F4  o	S	'       g   K  TP                  S	4      RT39   g   Q S	: R	24       hYcS	&   K6  	  T# )a  
Returns a :class:`HashInfo` record containing information about a given hash function.
Can be used to look up a hash constructor by name, normalize hash name representation, etc.

:arg digest:
    This can be any of:

    * A string containing a :mod:`!hashlib` digest name (e.g. ``"sha256"``),
    * A string containing an IANA-assigned hash name,
    * A digest constructor function (e.g. ``hashlib.sha256``).

    Case is ignored, underscores are converted to hyphens,
    and various other cleanups are made.

:param required:
    By default (True), this function will throw an :exc:`~passlib.exc.UnknownHashError` if no hash constructor
    can be found, or if the hash is not actually available.

    If this flag is False, it will instead return a dummy :class:`!HashInfo` record
    which will defer throwing the error until it's constructor function is called.
    This is mainly used by :func:`norm_hash_name`.

:param return_unknown:

    .. deprecated:: 1.7.3

        deprecated, and will be removed in passlib 2.0.
        this acts like inverse of **required**.

:returns HashInfo:
    :class:`HashInfo` instance containing information about specified digest.

    Multiple calls resolving to the same hash should always
    return the same :class:`!HashInfo` instance.
FT©Úrequiredc                ó"   <€ \        S: R 24      h)z2 disabled for fips by passlib set_mock_fips_mode())rX   )Úsourcer#   s   &€r'   rN   Úlookup_hash.<locals>.const5  s   ø€ Ü Ø‘hÐPÐQóð r)   Nzdigest name or constructorÚdigest)rN   Únamesr]   z already in cacherR   )r*   ÚKeyErrorÚ	TypeErrorr7   r
   rH   r    rZ   Úmock_fips_modeÚ_fips_algorithmsr   Úcallabler#   r   ÚExpectedTypeErrorÚget)
ra   Úreturn_unknownr]   ÚcacheÚcache_by_nameÚ	name_listr&   rN   Úother_constr#   s
   &&&      @r'   r    r    ê   sŽ  ø€ ôR €EðØ�}ÐøÜ”iÐ ô áðú÷
 Øˆð €MÜ�&Ô*×+Ò+ä% fÓ-ˆ	Ø˜�|ˆßˆˆtð �6Œ>Ü˜t¨hÔ7ˆDØ �&‰MØˆKô   Ó%ˆ÷ —^“^¨Ô4DÔ(D÷øô
 
�FœH×	%Ò	%àˆä	�&×	Ò	ð ˆÜ%¡e£g§l¡lÓ3ˆ	Ø˜�|ˆÜ% dÓ+ˆØÒð àÓ!ð ð "‰Mô ×#Ò# FÐ,HÈ(ÓSÐSô ˜%¸8ÔD€Dð ÒØˆe‰ßÛˆDß‰tØ—y‘y “¨4°¨,Ô6ÐT¸4¹(ÐBSÐ8TÓTÐ6Ø"�d“ñ ð €Ks   ‰ ‘%¤%c               ó   € V ^8„  d   QhRR/# )é   ÚreturnÚNonerK   )Úformats   "r'   Ú__annotate__rt   f  s   € ÷ ñ  ñ r)   c                 ó.   € \         P                  4        R # r/   )r*   ÚclearrK   r)   r'   Úclear_lookup_hash_cacherw   f  s   € Ü×ÑÖr)   c                ó   € \        V RR7      pVP                  '       d,   \        RVP                  ,           \        P
                  4       VR8X  d   VP                  # VR8X  d   VP                  # \        RV: 24      h)aü  Normalize hash function name (convenience wrapper for :func:`lookup_hash`).

:arg name:
    Original hash function name.

    This name can be a Python :mod:`~hashlib` digest name,
    a SCRAM mechanism name, IANA assigned hash name, etc.
    Case is ignored, and underscores are converted to hyphens.

:param format:
    Naming convention to normalize to.
    Possible values are:

    * ``"hashlib"`` (the default) - normalizes name to be compatible
      with Python's :mod:`!hashlib`.

    * ``"iana"`` - normalizes name to IANA-assigned hash function name.
      For hashes which IANA hasn't assigned a name for, this issues a warning,
      and then uses a heuristic to return a "best guess" name.

:returns:
    Hash name, returned as native :class:`!str`.
Fr\   znorm_hash_name(): r   Úianazunknown format: )	r    Úunknownr   Ú
error_textr   ÚPasslibRuntimeWarningr#   rF   rX   )r#   rs   r&   s   && r'   Únorm_hash_namer}   j  sj   € ô0 �t eÔ,€DØ‡|‡|€|ÜÐ! D§O¡OÕ3´S×5NÑ5NÔOØ�ÔØ�y‰yÐØ�ÔØ�~‰~ÐÜ
Ð'¨¡zÐ2Ó
3Ð3r)   c                  ó`   € ] tR tRtRtRtRtR
tRtRt	Rt
RtRtRR ltR tR t]R 4       tR	tR# )r   iŒ  a·  
Record containing information about a given hash algorithm, as returned :func:`lookup_hash`.

This class exposes the following attributes:

.. autoattribute:: const
.. autoattribute:: digest_size
.. autoattribute:: block_size
.. autoattribute:: name
.. autoattribute:: iana_name
.. autoattribute:: aliases
.. autoattribute:: supported

This object can also be treated a 3-element sequence
containing ``(const, digest_size, block_size)``.
NFc                ó2  a aa€ V^ ,          ;oS n         V^,          S n        VR,          S n        R VVV 3R llpVf*   V\        9   d   RS: 2pMRS: 2pRS n        V! V4       R#  V! 4       pTS n
        TP                  S n        TP                  S n        \        TP                  4       4      TP                  8w  d   \        S P                   : R24      hTP                   S P                   8w  d=   \!        RS P                   : RT: RTP                   : 2\"        P$                  4       R# R#   \
         dY   pR\        T4      P                  4       9   d   S: R	2pM R
S: R\        T4      P                   RT R2pT! T4        Rp?R# Rp?ii ; i)zÐ
initialize new instance.
:arg const:
    hash constructor
:arg names:
    list of 2+ names. should be list of ``(name, iana_name, ... 0+ aliases)``.
    names must be lower-case. only iana name may be None.
:rp   NNc               ó    € V ^8„  d   QhRRRR/# )rp   rL   r8   rq   rr   rK   )rs   s   "r'   rt   Ú'HashInfo.__init__.<locals>.__annotate__Ë  s   € ÷ 	Iñ 	I ð 	I¨ñ 	Ir)   c                ó  <a € RV V3R llpS'       d   V! 4        S Sn         VSn        \        P                  ! \        4      ;_uu_ 4        \
        S,          w  Sn        Sn        RRR4       R#   + '       g   i     R# ; i)zK
helper that installs stub constructor which throws specified error <msg>.
c                ó2   <€ \         P                  ! SS4      hr/   )r   ÚUnknownHashError)r_   rL   r#   s   &€€r'   rN   Ú8HashInfo.__init__.<locals>.use_stub_const.<locals>.constÐ  s   ø€ Ü×*Ò*¨3°Ó5Ð5r)   NrR   )r{   rN   Ú
contextlibÚsuppressrc   Ú_fallback_infor!   r"   )rL   rN   r#   r]   Úselfs   f €€€r'   Úuse_stub_constÚ)HashInfo.__init__.<locals>.use_stub_constË  s[   ù€ ÷
6ð 6÷ ñ ”à!ˆDŒOØˆDŒJÜ×$Ò$¤X×.Õ.Ü4BÀ4Õ4HÑ1�Ô  $¤/÷ /×.×.Ò.ús   ÁA0Á0B	Nzunsupported hash: zunknown hash: Tzdisabled for fipsz hash disabled for fipszinternal error in z constructor
(z: Ú)z  constructor failed sanity checkzinconsistent digest name: z resolved to z, which reports name as )r#   rF   Úaliasesr0   rz   rX   r8   r<   ÚtyperU   rN   r!   r"   Úlenra   ÚRuntimeErrorr   r   r|   )	r‰   rN   rb   r]   rŠ   rL   ÚhashÚerrr#   s	   f&&f    @r'   Ú__init__ÚHashInfo.__init__¸  s„  ú€ ð ! �8Ð#ˆˆtŒyØ˜q�ˆŒØ˜R•yˆŒ÷	Iò 	Ið& Š=ØÔ)Ô)Ø*¨4©(Ð3‘à& t¡hÐ/�Ø#�”Ù˜3Ôáð	Ù“7ˆDð ˆŒ
Ø×+Ñ+ˆÔØŸ/™/ˆŒô ˆt�{‰{‹}Ó ×!1Ñ!1Ô1Ü $§)¡)¡Ð.NÐOÓPÐPð �9‰9˜Ÿ	™	Ô!ÜØ,¨T¯Y©Y©M¸ÀuÁiÐOgÐhl×hqÑhqÑgtÐuÜ×)Ñ)öñ "øô- ô 
	ð
 #¤c¨#£h§n¡nÓ&6Ô6Ø™Ð 7Ð8‘à*¨4©(°/Ä$ÀsÃ)×BTÑBTÐAUÐUWÐX[ÐW\Ð\]Ð^�Ù˜3ÔÝûð
	ús   Á)D3 Ä3FÄ>AFÆFc                	ó\   € R V P                   : RV P                  : RV P                  : R2# )z<lookup_hash(z): digest_size=z block_size=rŒ   )r#   r!   r"   ©r‰   s   &r'   Ú__repr__ÚHashInfo.__repr__  s1   € Ø˜tŸy™y™m¨?¸4×;KÑ;KÑ:NÈlÐ[_×[jÑ[jÑZmÐmnÐoÐor)   c                	óH   € V P                   V P                  V P                  3# r/   )rN   r!   r"   r–   s   &r'   Ú	_as_tupleÚHashInfo._as_tuple
  s   € Ø�z‰z˜4×+Ñ+¨T¯_©_Ð<Ð<r)   c                ó   € V P                   RJ # )za
whether hash is available for use
(if False, constructor will throw UnknownHashError if called)
N)r{   r–   s   &r'   Ú	supportedÚHashInfo.supported  s   € ð �‰ $Ð&Ð&r)   )r�   r"   rN   r!   r{   rF   r#   rz   rK   ©T)rU   rV   Ú__qualname__Ú__firstlineno__rW   r#   rF   r�   rN   r!   r"   r{   rz   r“   r—   rš   r   r�   Ú__static_attributes__rK   r)   r'   r   r   Œ  se   † ñð$ €Dð €Ið €Gð €Eð €Kð €Jð €Jð €GôMò^pò=ð ñ'ó ô'r)   c               ó    € V ^8„  d   QhRRRR/# )rp   ÚenableÚboolrq   rr   rK   )rs   s   "r'   rt   rt   .  s   € ÷ ñ  ð °ñ r)   c                ó   € V s \        4        R# )zO
UT helper which monkeypatches lookup_hash() internals to replicate FIPS mode.
N)re   rw   )r¤   s   &r'   Ú_set_mock_fips_moder§   .  s   € ð
 €NÜÖr)   ÚPASSLIB_MOCK_FIPS_MODEc              #  ó2   "  € T F  q^\,          x € K  	  R# 5i)é\   NrK   ©Ú.0Úxs   & r'   Ú	<genexpr>r®   <  ó   é € Ð1¡j �t—8’8£jùó   ‚é   c              #  ó2   "  € T F  q^6,          x € K  	  R# 5i)é6   NrK   r«   s   & r'   r®   r®   =  r¯   r°   c               ó$   € V ^8„  d   QhRRRRRR/# )rp   ra   r8   Úkeyzstr | bytesÚ	multipartr¥   rK   )rs   s   "r'   rt   rt   @  s&   € ÷ Lñ L˜ð L ;ð L¸4ñ Lr)   c                óä  a	a
€ \        V 4      pVw  rEpV^8¼  g   Q R4       h\        V\        4      '       g   \        VRR7      p\	        V4      pWv8”  d   V! V4      P                  4       pTpWv8  d   VRWg,
          ,          ,          pV! VP                  \        4      4      P                  o	V! VP                  \        4      4      P                  o
V'       d	   V	V
3R lpMV	V
3R lpW8n
        V# )aV  
This function returns an efficient HMAC function, hardcoded with a specific digest & key.
It can be used via ``hmac = compile_hmac(digest, key)``.

:arg digest:
    digest name or constructor.

:arg key:
    secret key as :class:`!bytes` or :class:`!str` (str will be encoded using utf-8).

:param multipart:
    request a multipart constructor instead (see return description).

:returns:
    By default, the returned function has the signature ``hmac(msg) -> digest output``.

    However, if ``multipart=True``, the returned function has the signature
    ``hmac() -> update, finalize``, where ``update(msg)`` may be called multiple times,
    and ``finalize() -> digest_output`` may be repeatedly called at any point to
    calculate the HMAC digest so far.

    The returned object will also have a ``digest_info`` attribute, containing
    a :class:`lookup_hash` instance for the specified digest.

This function exists, and has the weird signature it does, in order to squeeze as
provide as much efficiency as possible, by omitting much of the setup cost
and features of the stdlib :mod:`hmac` module.
zblock size too smallrµ   ©Úparamó    c                 ó>   <a€ S! 4       oVV3R lp SP                   V 3# )z)generated by compile_hmac(multipart=True)c                 óp   <€ S! 4       p V P                  SP                  4       4       V P                  4       # r/   ©Úupdatera   )ÚouterÚ_outer_copyÚinners    €€r'   ÚfinalizeÚ,compile_hmac.<locals>.hmac.<locals>.finalizez  s(   ø€ Ù#›�Ø—‘˜UŸ\™\›^Ô,Ø—|‘|“~Ð%r)   )r¾   )rÂ   rÁ   Ú_inner_copyrÀ   s    @€€r'   ÚhmacÚcompile_hmac.<locals>.hmacv  s    ù€ á“MˆEö&ð
 —<‘< Ð)Ð)r)   c                ó    <€ S! 4       pVP                  V 4       S! 4       pVP                  VP                  4       4       VP                  4       # )zgenerated by compile_hmac()r½   )rL   rÁ   r¿   rÄ   rÀ   s   &  €€r'   rÅ   rÆ   ‚  s;   ø€ á“MˆEØ�L‰L˜ÔÙ“MˆEØ�L‰L˜Ÿ™›Ô(Ø—<‘<“>Ð!r)   )r    r7   Úbytesr   r�   ra   Ú	translateÚ	_TRANS_36ÚcopyÚ	_TRANS_5CÚdigest_info)ra   rµ   r¶   rÍ   rN   r!   r"   ÚklenrÅ   rÄ   rÀ   s   &&&      @@r'   Úcompile_hmacrÏ   @  sÕ   ù€ ô@ ˜fÓ%€KØ%0Ñ"€E˜
Ø˜ÔÐ3Ð3Ó3Ðô �cœ5×!Ò!Ü�s %Ô(ˆÜˆs‹8€DØÔÙ�C‹j×ÑÓ!ˆØˆØÔØˆw˜*Õ+Õ,Õ,ˆñ ˜Ÿ™¤iÓ0Ó1×6Ñ6€KÙ˜Ÿ™¤iÓ0Ó1×6Ñ6€Kç÷		*ö	"ð #ÔØ€Kr)   c                óü  € \        V 4      w  rVp\        VRR7      p\        VRR7      p\        V\        4      '       g   \        P
                  ! VRR4      hV^8  d   \        R4      hVf   TpMY\        V\        4      '       g   \        P
                  ! VRR	4      hV^ 8  d   \        R
4      hWF8”  d   \        RV: RV: 24      hW,           p\        V4       F  p	V! V4      P                  4       pK  	  VRV # )a×  pkcs#5 password-based key derivation v1.5

:arg digest:
    digest name or constructor.

:arg secret:
    secret to use when generating the key.
    may be :class:`!bytes` or :class:`str` (encoded using UTF-8).

:arg salt:
    salt string to use when generating key.
    may be :class:`!bytes` or :class:`str` (encoded using UTF-8).

:param rounds:
    number of rounds to use to generate key.

:arg keylen:
    number of bytes to generate (if omitted / ``None``, uses digest's native size)

:returns:
    raw :class:`bytes` of generated key

.. note::

    This algorithm has been deprecated, new code should use PBKDF2.
    Among other limitations, ``keylen`` cannot be larger
    than the digest size of the specified hash.
Úsecretr¸   ÚsaltÚintÚroundszrounds must be at least 1Nzint or NoneÚkeylenzkeylen must be at least 0z keylength too large for digest: z > )	r    r   r7   rÓ   r   rh   rX   Úrangera   )
ra   rÑ   rÒ   rÔ   rÕ   rN   r!   r"   Úblockr6   s
   &&&&&     r'   Úpbkdf1rØ   �  sý   € ô< &1°Ó%8Ñ"€E˜
ô �f HÔ-€FÜ�D Ô'€Dô �fœc×"Ò"Ü×#Ò# F¨E°8Ó<Ð<Ø�„zÜÐ4Ó5Ð5ð ‚~Ø‰Ü˜¤×$Ò$Ü×#Ò# F¨M¸8ÓDÐDØ	�!ŒÜÐ4Ó5Ð5Ø	Ô	ÜØ.¨v©j¸¸K¹?ÐKó
ð 	
ð
 �M€EÜ�6Ž]ˆÙ�e“×#Ñ#Ó%Šñ à��&ˆ>Ðr)   c               ó(   € V ^8„  d   QhRRRRRRRR/# )rp   ra   rÈ   rÑ   rÒ   rÔ   rÓ   rK   )rs   s   "r'   rt   rt   Ì  s.   € ÷ 'Oñ 'O˜ð 'O uð 'O°Eð 'OÀ3ñ 'Or)   c                ó�   € \        VRR7      p\        VRR7      p\        V 4      p\        P                  ! VP                  WW44      # )a\  pkcs#5 password-based key derivation v2.0 using HMAC + arbitrary digest.

:arg digest:
    digest name or constructor.

:arg secret:
    passphrase to use to generate key.
    may be :class:`!bytes` or :class:`str` (encoded using UTF-8).

:arg salt:
    salt string to use when generating key.
    may be :class:`!bytes` or :class:`str` (encoded using UTF-8).

:param rounds:
    number of rounds to use to generate key.

:arg keylen:
    number of bytes to generate.
    if omitted / ``None``, will use digest's native output size.

:returns:
    raw bytes of generated key

.. versionchanged:: 1.7

    This function will use the first available of the following backends:

    * :func:`hashlib.pbkdf2_hmac` (only available in py2 >= 2.7.8, and py3 >= 3.4)

    See :data:`passlib.crypto.digest.PBKDF2_BACKENDS` to determine
    which backend(s) are in use.
rÑ   r¸   rÒ   )r   r    r   Úpbkdf2_hmacr#   )ra   rÑ   rÒ   rÔ   rÕ   rÍ   s   &&&&& r'   rÛ   rÛ   Ì  sD   € ôB �f HÔ-€FÜ�D Ô'€Dô ˜fÓ%€Kä×Ò˜{×/Ñ/°¸vÓNÐNr)   zhashlib-ssl)r    rw   r   r}   rÏ   rØ   rÛ   l   ÿÿ l   ÿÿÿÿ ))Úmd2rÜ   )r   r   )r   zsha-1)r   zsha-224zsha2-224)r   zsha-256zsha2-256)r   zsha-384zsha2-384)r   zsha-512zsha2-512)r   zblake-2b)r   zblake-2s)r   r   )Ú	ripemd160z
ripemd-160Úripemd)é@   é€   )é    rß   )é   rß   )é   rß   )é   rß   )é0   rà   )rä   é�   )rá   éˆ   )rå   éh   )rß   éH   )râ   é¨   )FT)r   >   r   r   r   r   r   r   r   r   r   Ú	shake_128Ú	shake_256rŸ   )Fr/   )2Ú__conditional_annotations__rW   Ú
__future__r   r†   r   Úosr9   Úwarningsr   Úpasslibr   Úpasslib._loggingr   Úpasslib.utilsr   r   r   r	   Úpasslib.utils.compatr
   Úpasslib.utils.decorr   Ú__all__Ú
MAX_UINT32Ú
MAX_UINT64r0   rˆ   r(   r*   Ú__annotations__rH   rZ   r    rw   r}   r   re   rf   r§   Úenvironri   rÈ   rÖ   rÌ   rÊ   rÏ   rØ   rÛ   ÚPBKDF2_BACKENDS)rí   s   @r'   Ú<module>rü      sa  øðôõ
 #ã Û Û 	Û 	Ý å Ý #ß IÓ IÝ 1Ý 1ò€ð €
ð €
òÐ ð> ˆyØˆxØ	ˆ8Ø	ˆ8Ø
ˆHØˆhØˆhØˆiØ�	Ø�	Ø�	Ø�ØˆiØ�	Ø�	ð!€ò(
ð $&Ð �.Ó %òH#òV1ôhyõxô4ôDG'ˆ}ô G'ðV €òÐ ÷&ñ ˆ2�:‰:�>‰>Ð2Ó3×4Ò4ÙÔñ Ñ1¡e¨C¤jÓ1Ó1€	ÙÑ1¡e¨C¤jÓ1Ó1€	÷Lô^:÷z'OðV ð‚r)   