+
    ™h©jÑ+  ã                   ó4  a € R t'0 t ^ RIHtHtHtHt ^ RIHt ^ RI	H
t
Ht ^ RIHt ]P                  ! 4       t] ^ k ]P                   ! 4       t] ^k ]P$                  ! 4       t] ^k ]P(                  ! 4       t] ^k ]P,                  ! 4       t] ^k ]P0                  ! 4       t] ^k ]P4                  ! 4       t] ^k ]P8                  ! 4       t] ^k ]P<                  ! 4       t] ^k R R lt  ! R R4      t!R	 R
 lt"R]3R R llt#R R lt$RR R llt%R R lt&R# )é    )ÚOptionalÚTupleÚUnionÚcast)Ú
exceptions)ÚffiÚlib)Úensurec                ó$   € V ^8„  d   QhR\         /# )é   Úreturn)Úbytes)Úformats   "Ú\/var/www/html/bestweb/venv/lib/python3.14/site-packages/nacl/bindings/crypto_secretstream.pyÚ__annotate__r   4   s   € ÷ !ñ !´eñ !ó    c                 óž   € \         P                  ! R\        4      p \        P                  ! V 4       \         P
                  ! V 4      R,          # )zX
Generate a key for use with
:func:`.crypto_secretstream_xchacha20poly1305_init_push`.

úunsigned char[]ºNNN)r   ÚnewÚ.crypto_secretstream_xchacha20poly1305_KEYBYTESr	   Ú,crypto_secretstream_xchacha20poly1305_keygenÚbuffer)Úkeybufs    r   r   r   4   s<   € ô �WŠWØÜ6ó€Fô ×4Ò4°VÔ<Ü�:Š:�fÓ˜aÕ Ð r   c                   ó>   a € ] tR t^Bt o Rt. ROtV 3R lR ltRtV tR# )Ú+crypto_secretstream_xchacha20poly1305_statezF
An object wrapping the crypto_secretstream_xchacha20poly1305 state.

c                ó   <€ V ^8„  d   QhRR/# )r   r   N© )r   Ú__classdict__s   "€r   r   Ú8crypto_secretstream_xchacha20poly1305_state.__annotate__J   s   ø€ ÷ 	1ñ 	1˜$ñ 	1r   c                óš   € \         \        \        \        3,          p\        P
                  ! R\        4      V n        RV n        RV n	        R# )z Initialize a clean state object.r   N)
r   r   Ú	bytearrayÚ
memoryviewr   r   Ú0crypto_secretstream_xchacha20poly1305_STATEBYTESÚstatebufÚrawbufÚtagbuf)ÚselfÚ
ByteStrings   & r   Ú__init__Ú4crypto_secretstream_xchacha20poly1305_state.__init__J   s9   € äœ5¤)¬ZÐ7Õ8ˆ
Ü$'§G¢GØÜ<ó%
ˆŒð
 -1ˆŒØ,0ˆŽr   )r&   r%   r'   N)r%   r&   r'   )	Ú__name__Ú
__module__Ú__qualname__Ú__firstlineno__Ú__doc__Ú	__slots__r*   Ú__static_attributes__Ú__classdictcell__)r   s   @r   r   r   B   s   ø‡ € ñò
 1€I÷	1ö 	1r   r   c                ó<   € V ^8„  d   QhR\         R\        R\        /# )r   ÚstateÚkeyr   ©r   r   )r   s   "r   r   r   V   s$   € ÷ )$ñ )$Ü6ð)$Ü=Bð)$ä
ñ)$r   c                óò  € \        \        V \        4      R\        P                  R7       \        \        V\
        4      R\        P                  R7       \        \        V4      \        8H  R\        P                  R7       \        P                  ! R\        4      p\        P                  ! V P                  W!4      p\        V^ 8H  R\        P                  R7       \        P                   ! V4      R,          # )a8  
Initialize a crypto_secretstream_xchacha20poly1305 encryption buffer.

:param state: a secretstream state object
:type state: crypto_secretstream_xchacha20poly1305_state
:param key: must be
            :data:`.crypto_secretstream_xchacha20poly1305_KEYBYTES` long
:type key: bytes
:return: header
:rtype: bytes

úBState must be a crypto_secretstream_xchacha20poly1305_state object©ÚraisingúKey must be a bytes sequenceúInvalid key lengthzunsigned char []úUnexpected failurer   )r
   Ú
isinstancer   ÚexcÚ	TypeErrorr   Úlenr   Ú
ValueErrorr   r   Ú1crypto_secretstream_xchacha20poly1305_HEADERBYTESr	   Ú/crypto_secretstream_xchacha20poly1305_init_pushr%   ÚRuntimeErrorr   )r5   r6   Ú	headerbufÚrcs   &&  r   rE   rE   V   s¾   € ô Ü�5ÔEÓFØLÜ—‘õô
 Ü�3œÓØ&Ü—‘õô
 ÜˆC‹ÔBÑBØÜ—‘õô —’ØÜ9ó€Iô
 
×	<Ò	<Ø�‰˜	ó
€Bô ˆ2�‰7Ð(´#×2BÑ2BÕCä�:Š:�iÓ  Õ#Ð#r   Nc          
      ój   € V ^8„  d   QhR\         R\        R\        \        ,          R\        R\        /# )r   r5   ÚmÚadÚtagr   )r   r   r   Úint)r   s   "r   r   r   ‚   sE   € ÷ @-ñ @-Ü6ð@-äð@-ô 	”�ð@-ô 
ð	@-ô
 ñ@-r   c           
     ó„  € \        \        V \        4      R\        P                  R7       \        \        V\
        4      R\        P                  R7       \        \        V4      \        8*  R\        P                  R7       \        VRJ ;'       g    \        V\
        4      R\        P                  R7       \        V4      \        ,           pV P                  e   \        V P                  4      V8  d   \        P                  ! RV4      V n
        Vf   \        P                  p^ pM\        V4      p\        P                  ! V P                   V P                  \        P                  V\        V4      VVV4      p\        V^ 8H  R\        P"                  R7       \        P$                  ! V P                  V4      R	,          # )
aˆ  
Add an encrypted message to the secret stream.

:param state: a secretstream state object
:type state: crypto_secretstream_xchacha20poly1305_state
:param m: the message to encrypt, the maximum length of an individual
          message is
          :data:`.crypto_secretstream_xchacha20poly1305_MESSAGEBYTES_MAX`.
:type m: bytes
:param ad: additional data to include in the authentication tag
:type ad: bytes or None
:param tag: the message tag, usually
            :data:`.crypto_secretstream_xchacha20poly1305_TAG_MESSAGE` or
            :data:`.crypto_secretstream_xchacha20poly1305_TAG_FINAL`.
:type tag: int
:return: ciphertext
:rtype: bytes

r9   r:   zMessage is not byteszMessage is too longNú%Additional data must be bytes or Noner   r>   r   )r
   r?   r   r@   rA   r   rB   Ú6crypto_secretstream_xchacha20poly1305_MESSAGEBYTES_MAXrC   Ú,crypto_secretstream_xchacha20poly1305_ABYTESr&   r   r   ÚNULLr	   Ú*crypto_secretstream_xchacha20poly1305_pushr%   rF   r   )r5   rJ   rK   rL   ÚclenÚadlenrH   s   &&&&   r   rS   rS   ‚   sI  € ô2 Ü�5ÔEÓFØLÜ—‘õô
 Œ:�aœÓÐ!7ÄÇÁÕOÜ
ÜˆA‹ÔHÑHØÜ—‘õô
 Ø
ˆdˆ
×+Ð+”j ¤UÓ+Ø/Ü—‘õô ˆq‹6Ô@Õ@€DØ‡|�|Òœs 5§<¡<Ó0°4Ô7Ü—w’wÐ0°$Ó7ˆŒà	‚zÜ�X‰XˆØ‰ä�B“ˆä	×	7Ò	7Ø�‰Ø�‰Ü�‰Ø	ÜˆA‹Ø
ØØó	
€Bô ˆ2�‰7Ð(´#×2BÑ2BÕCä�:Š:�e—l‘l DÓ)¨!Õ,Ð,r   c                ó@   € V ^8„  d   QhR\         R\        R\        RR/# )r   r5   Úheaderr6   r   Nr7   )r   s   "r   r   r   Å   s6   € ÷ 2Dñ 2DÜ6ð2Däð2Dô 
ð2Dð 
ñ	2Dr   c                ó„  € \        \        V \        4      R\        P                  R7       \        \        V\
        4      R\        P                  R7       \        \        V4      \        8H  R\        P                  R7       \        \        V\
        4      R\        P                  R7       \        \        V4      \        8H  R\        P                  R7       V P                  f   \        P                  ! R4      V n
        \        P                  ! V P                  W4      p\        V^ 8H  R	\        P                   R7       R# )
a‘  
Initialize a crypto_secretstream_xchacha20poly1305 decryption buffer.

:param state: a secretstream state object
:type state: crypto_secretstream_xchacha20poly1305_state
:param header: must be
            :data:`.crypto_secretstream_xchacha20poly1305_HEADERBYTES` long
:type header: bytes
:param key: must be
            :data:`.crypto_secretstream_xchacha20poly1305_KEYBYTES` long
:type key: bytes

r9   r:   zHeader must be a bytes sequencezInvalid header lengthr<   r=   Nzunsigned char *r>   )r
   r?   r   r@   rA   r   rB   rD   rC   r   r'   r   r   r	   Ú/crypto_secretstream_xchacha20poly1305_init_pullr%   rF   )r5   rW   r6   rH   s   &&& r   rY   rY   Å   sî   € ô$ Ü�5ÔEÓFØLÜ—‘õô
 Ü�6œ5Ó!Ø)Ü—‘õô
 ÜˆF‹ÔHÑHØÜ—‘õô
 Ü�3œÓØ&Ü—‘õô
 ÜˆC‹ÔBÑBØÜ—‘õð ‡|�|ÒÜ—w’wÐ0Ó1ˆŒä	×	<Ò	<Ø�‰˜ó
€Bô ˆ2�‰7Ð(´#×2BÑ2B×Cr   c          
      ó€   € V ^8„  d   QhR\         R\        R\        \        ,          R\        \        \        3,          /# )r   r5   ÚcrK   r   )r   r   r   r   rM   )r   s   "r   r   r   ú   sC   € ÷ Uñ UÜ6ðUäðUô 	”�ðUô Œ5”#ˆ:Õñ	Ur   c           
     óª  € \        \        V \        4      R\        P                  R7       \        V P
                  RJR\        P                  R7       \        \        V\        4      R\        P                  R7       \        \        V4      \        8¬  R\        P                  R7       \        \        V4      \        \        ,           8*  R\        P                  R7       \        VRJ ;'       g    \        V\        4      R\        P                  R7       \        V4      \        ,
          pV P                  e   \        V P                  4      V8  d   \        P                  ! R	V4      V n        Vf   \        P                  p^ pM\        V4      p\        P                   ! V P"                  V P                  \        P                  V P
                  V\        V4      VV4      p\        V^ 8H  R
\        P$                  R7       \        P&                  ! V P                  V4      R,          \)        \+        \        V P
                  4      ^ ,          4      3# )a  
Read a decrypted message from the secret stream.

:param state: a secretstream state object
:type state: crypto_secretstream_xchacha20poly1305_state
:param c: the ciphertext to decrypt, the maximum length of an individual
          ciphertext is
          :data:`.crypto_secretstream_xchacha20poly1305_MESSAGEBYTES_MAX` +
          :data:`.crypto_secretstream_xchacha20poly1305_ABYTES`.
:type c: bytes
:param ad: additional data to include in the authentication tag
:type ad: bytes or None
:return: (message, tag)
:rtype: (bytes, int)

r9   r:   NzOState must be initialized using crypto_secretstream_xchacha20poly1305_init_pullzCiphertext is not byteszCiphertext is too shortzCiphertext is too longrO   r   r>   r   )r
   r?   r   r@   rA   r'   rC   r   rB   rQ   rP   r&   r   r   rR   r	   Ú*crypto_secretstream_xchacha20poly1305_pullr%   rF   r   rM   r   )r5   r[   rK   ÚmlenrU   rH   s   &&&   r   r]   r]   ú   sÅ  € ô* Ü�5ÔEÓFØLÜ—‘õô
 Ø�‰˜DÐ ð>ô —‘õô Ü�1”eÓØ!Ü—‘õô
 ÜˆA‹Ô>Ñ>Ø!Ü—‘õô
 ÜˆA‹äBÜ:õ;ñ	
ð
 	!Ü—‘õô Ø
ˆdˆ
×+Ð+”j ¤UÓ+Ø/Ü—‘õô ˆq‹6Ô@Õ@€DØ‡|�|Òœs 5§<¡<Ó0°4Ô7Ü—w’wÐ0°$Ó7ˆŒà	‚zÜ�X‰XˆØ‰ä�B“ˆä	×	7Ò	7Ø�‰Ø�‰Ü�‰Ø�‰Ø	ÜˆA‹Ø
Øó	
€Bô ˆ2�‰7Ð(´#×2BÑ2BÕCô 	�
Š
�5—<‘< Ó& qÕ)ÜŒD”˜Ÿ™Ó% aÕ(Ó)ðð r   c                ó(   € V ^8„  d   QhR\         RR/# )r   r5   r   N)r   )r   s   "r   r   r   R  s    € ÷ Dñ DÜ6ðDà	ñDr   c                óš   € \        \        V \        4      R\        P                  R7       \
        P                  ! V P                  4       R# )a¤  
Explicitly change the encryption key in the stream.

Normally the stream is re-keyed as needed or an explicit ``tag`` of
:data:`.crypto_secretstream_xchacha20poly1305_TAG_REKEY` is added to a
message to ensure forward secrecy, but this method can be used instead
if the re-keying is controlled without adding the tag.

:param state: a secretstream state object
:type state: crypto_secretstream_xchacha20poly1305_state

r9   r:   N)r
   r?   r   r@   rA   r	   Ú+crypto_secretstream_xchacha20poly1305_rekeyr%   )r5   s   &r   ra   ra   R  s5   € ô Ü�5ÔEÓFØLÜ—‘õô
 ×3Ò3°E·N±NÖCr   c                ó€  € V ^8„  d   Qh/ ^ \         9   d
   \        ;R&   ^\         9   d
   \        ;R&   ^\         9   d
   \        ;R&   ^\         9   d
   \        ;R&   ^\         9   d
   \        ;R&   ^\         9   d
   \        ;R&   ^\         9   d
   \        ;R&   ^\         9   d
   \        ;R&   ^\         9   d
   \        ;R	&   # )
r   rQ   rD   r   rP   r$   Ú1crypto_secretstream_xchacha20poly1305_TAG_MESSAGEÚ.crypto_secretstream_xchacha20poly1305_TAG_PUSHÚ/crypto_secretstream_xchacha20poly1305_TAG_REKEYÚ/crypto_secretstream_xchacha20poly1305_TAG_FINAL)Ú__conditional_annotations__rM   )r   s   "r   r   r      sÐ   € × /Ñ /÷ò ¬cñ ñ 0÷ò ´3ñ ñ 0÷ò ´ñ ñ 0÷ ò ¼ñ ñ! 0÷&ò ´#ñ ñ' 0÷0ò ´3ñ ñ1 0÷6ò ´ñ ñ7 0÷<ò ´ñ ñ= 0÷Bò ´ñ òC 0r   )N)(rg   Útypingr   r   r   r   Únaclr   r@   Únacl._sodiumr   r	   Únacl.exceptionsr
   Ú,crypto_secretstream_xchacha20poly1305_abytesrQ   Ú1crypto_secretstream_xchacha20poly1305_headerbytesrD   Ú.crypto_secretstream_xchacha20poly1305_keybytesr   Ú6crypto_secretstream_xchacha20poly1305_messagebytes_maxrP   Ú0crypto_secretstream_xchacha20poly1305_statebytesr$   Ú1crypto_secretstream_xchacha20poly1305_tag_messagerc   Ú.crypto_secretstream_xchacha20poly1305_tag_pushrd   Ú/crypto_secretstream_xchacha20poly1305_tag_rekeyre   Ú/crypto_secretstream_xchacha20poly1305_tag_finalrf   r   r   rE   rS   rY   r]   ra   r   )rg   s   @r   Ú<module>ru      s*  øð÷ 0× /Ð /å "ß !Ý "ð ×4Ò4Ó6ð -ó ð ×9Ò9Ó;ð 2ó ð ×6Ò6Ó8ð /ó ð ×>Ò>Ó@ð 7ó ð ×8Ò8Ó:ð 1ó ð ×9Ò9Ó;ð 2ó ð ×6Ò6Ó8ð /ó ð ×7Ò7Ó9ð 0ó ð ×7Ò7Ó9ð 0ó õ
!÷1ñ 1õ()$ð^ Ø@÷	@-õF2D÷jU÷pDr   