+
    ^eòjF!  ã                   ó–   € ^ RI t ^ RIt^ RIt^ RIt^ RIt^ RIt^ RIHt ^ RIHt  ^ RI	t	Rt
R tR t/ / / 3R ltR#   ] d    Rt
 Li ; i)	é    N)Ú	unhexlify)ÚFileNotFoundErrorTFc                óÒ  € ^ p. p ! R R\         4      pRp^ pRp	 V^,          pVP                  4       p
V
'       g   Ve   VP                  V4        V# V
P                  4       p
V
P	                  R4      '       g	   V
'       g   Rp	Km  V
P	                  R4      '       d+   Ve   VP                  V4       RpVP                  V
4       K®  V	'       d2   V^,          pRp	Ve   VP                  V4       V! RW(3,          V4      p\
        P                  ! R	V
4      pV'       g   V;P                  V
.,          un        EK#  VP                  ^4      P                  4       pVP                  ^4      P                  4       pVP                  VR4      pVfD   \        V4      ^,          ^ 8w  d
   R
V,           p\        W|\        P                  ! V4      4       EKº  \        W|V! V4      4       EKÏ  )zÇLoad and parse a test vector file

Return a list of objects, one per group of adjacent
KV lines or for a single line in the form "[.*]".

For a group of lines, the object has one attribute per line.
c                   ó&   a € ] tR t^<t o R tRtV tR# )Ú_load_tests.<locals>.TestVectorc                ó,   € Wn         W n        . V n        R # )N)ÚdescÚcountÚothers)ÚselfÚdescriptionr
   s   &&&Ú�/opt/data/installs/351f81cc06284494/environments/aa258815729c481f8402f54f4c368f83/venv/lib/python3.14/site-packages/Crypto/SelfTest/loader.pyÚ__init__Ú(_load_tests.<locals>.TestVector.__init__=   s   € Ø#ŒIØŒJØˆDŽKó    )r
   r	   r   N)Ú__name__Ú
__module__Ú__qualname__Ú__firstlineno__r   Ú__static_attributes__Ú__classdictcell__)Ú__classdict__s   @r   Ú
TestVectorr   <   s   ø‡ € ÷	ð 	r   r   NTÚ#Ú[Fz%s (#%d)z([A-Za-z0-9]+) = ?(.*)Ú0)ÚobjectÚreadlineÚappendÚstripÚ
startswithÚreÚmatchr   ÚgroupÚlowerÚgetÚlenÚsetattrÚbinasciir   )Ú	dir_compsÚfile_inr   ÚconversionsÚline_numberÚresultsr   Útest_vectorr
   Ú	new_groupÚlineÚresÚtokenÚdataÚ
conversions   &&&&           r   Ú_load_testsr6   0   s¤  € ð €KØ€Gô”Vô ð €KØ€EØ€Ià
Ø�qÕˆØ×ÑÓ!ˆßØÒ&Ø—‘˜{Ô+ØðL €NðK �z‰z‹|ˆð �?‰?˜3×Ò§tØˆIÙà�?‰?˜3×ÒØÒ&Ø—‘˜{Ô+ØˆKØ�N‰N˜4Ô ÙçØ�Q�JˆEØˆIØÒ&Ø—‘˜{Ô+Ù$ Z°;Ð2FÕ%FÈÓNˆKä�hŠhÐ/°Ó6ˆßØ×Ò 4 &Õ(×Ðà—I‘I˜a“L×&Ñ&Ó(ˆEØ—9‘9˜Q“<×%Ñ%Ó'ˆDà$Ÿ™¨°Ó5ˆJØÒ!Ü�t“9˜q•= AÔ%Ø �:�DÜ˜¬H×,>Ò,>¸tÓ,D×Eä˜©J°tÓ,<×=r   c                óp  € Rp \         '       g>   \        \        P                  \        P
                  ! \        P                  4      V4      hV: RV: R2p\        P                  P                  \        P                  4      p\        P                  P                  \        P                  P                  ! V.V O5!  V4      p\        V4      ;_uu_ 4       p\        WW#4      pRRR4       V#   + '       g   i     T# ; i  \         d)    \        P                  ! RT,           \        ^R7        T# i ; i)a>  Load and parse a test vector file, formatted using the NIST style.

Args:
    dir_comps (list of strings):
      The path components under the ``pycryptodome_test_vectors`` package.
      For instance ``("Cipher", "AES")``.
    file_name (string):
      The name of the file with the test vectors.
    description (string):
      A description applicable to the test vectors in the file.
    conversions (dictionary):
      The dictionary contains functions.
      Values in the file that have an entry in this dictionary
      will be converted usign the matching function.
      Otherwise, values will be considered as hexadecimal and
      converted to binary.

Returns:
    A list of test vector objects.

The file is formatted in the following way:

- Lines starting with "#" are comments and will be ignored.
- Each test vector is a sequence of 1 or more adjacent lines, where
  each lines is an assignement.
- Test vectors are separated by an empty line, a comment, or
  a line starting with "[".

A test vector object has the following attributes:

- desc (string): description
- counter (int): the order of the test vector in the file (from 1)
- others (list): zero or more lines of the test vector that were not assignments
- left-hand side of each assignment (lowercase): the value of the
  assignement, either converted or bytes.
Nz test (Ú)ú%Warning: skipping extended tests for ©Ú
stacklevel)Útest_vectors_availabler   ÚerrnoÚENOENTÚosÚstrerrorÚpathÚdirnameÚpycryptodome_test_vectorsÚ__file__ÚjoinÚopenr6   ÚwarningsÚwarnÚUserWarning)r*   Ú	file_namer   r,   r.   Úinit_dirÚfull_file_namer+   s   &&&&    r   Úload_test_vectorsrM   u   sì   € ðL €Gð$ß%Ó%Ü#¤E§L¡LÜ$&§K¢K´·±Ó$=Ø$-ó/ð /ó )4³YÐ?ˆä—7‘7—?‘?Ô#<×#EÑ#EÓFˆÜŸ™Ÿ™¤b§g¡g§l¢l°8Ð&H¸iÓ&HÈ)ÓTˆÜ�.×!Ô! WÜ! )°kÓOˆG÷ "ð €N÷ "Ö!ð €Nûô ô $Ü�ŠÐ=ÀÕKÜ!Ø!"ö	$ð €Nð$ús5   „D �CD ÃC.Ã$D Ã.C?	Ã9D Ã?D Ä/D5Ä4D5c                 ój  € . p \         '       g>   \        \        P                  \        P
                  ! \        P                  4      V4      h\        P                  P                  \        P                  4      p\        P                  P                  \        P                  P                  ! V.V O5!  V4      p\        V4      ;_uu_ 4       p	\        P                  ! V	4      p
R R R 4        ! R R\"        4      p0 RmpT\%        TP'                  4       4      ,          p/ pTP)                  4        F  w  rïT! X
4      YÞ&   K  	  X
R,           EF[  p/ pTP)                  4        F  w  rïT! T4      TT&   K  	  TR,           EF#  pT! 4       pTP)                  4        F  w  rï\+        TYï4       K  	  TP)                  4        F  w  rï\+        TYï4       K  	  TR,          Tn        TR,          Tn        T F*  pTT9   g   K   \+        TT\1        TT,          4      4       K,  	  TTn        TP)                  4        F  w  rï\+        TYï! T4      4       K  	  TR,          R8g  Tn        TR,          R8H  Tn        TP?                  R4      Tn         TTn        TPC                  T4       EK&  	  EK^  	  T#   + '       g   i     ELÔ; i  \         d*    \        P                  ! RT,           \         ^R7       Tu # i ; i  \2        P4                   d$    \7        R	T: R
TP,                  : RT: R24      hi ; i)Nr9   r:   c                   ó   € ] tR t^ÇtRtR# )Ú0load_test_vectors_wycheproof.<locals>.TestVector© N)r   r   r   r   r   rQ   r   r   r   rP   Ç   s   † Ûr   r   Ú
testGroupsÚtestsÚtcIdÚcommentzError decoding attribute 'z' (tcId=z, file r8   ÚresultÚinvalidÚ
acceptableÚflags>   ÚctÚivÚaadÚikmÚkeyÚmsgÚokmÚsigÚtagÚinfoÚsaltÚlabelÚpublicÚshared)"r<   r   r=   r>   r?   r@   rA   rB   rC   rD   rE   rF   ÚjsonÚloadrG   rH   rI   r   ÚsetÚkeysÚitemsr(   ÚidrU   r   r)   ÚErrorÚ
ValueErrorÚfilenameÚvalidÚwarningr&   rY   r   )r*   rJ   r   Úroot_tagÚ	group_tagÚunit_tagrV   rK   rL   r+   Útv_treer   Úunit_attr_hexÚcommon_rootÚkÚvr$   Úcommon_groupÚtestÚtvÚattrs   &&&&&&               r   Úload_test_vectors_wycheproofr   ²   s¥  € ð €Fðß%Ó%Ü#¤E§L¡LÜ$&§K¢K´·±Ó$=Ø$-ó/ð /ô —7‘7—?‘?Ô#<×#EÑ#EÓFˆÜŸ™Ÿ™¤b§g¡g§l¢l°8Ð&H¸iÓ&HÈ)ÓTˆÜ�.×!Ô! WÜ—i’i Ó(ˆG÷ "ô”Vô ò€Mð ”S˜Ÿ™›Ó)Õ)€Mà€KØ—‘Ö ‰ˆÙ˜7›ˆ‹ñ !ð ˜×&Ñ&ˆàˆØ—O‘OÖ%‰DˆAÙ ›hˆL˜‹Oñ &ð ˜'—N‘NˆDÙ“ˆBà#×)Ñ)Ö+‘�Ü˜˜AÖ!ñ ,à$×*Ñ*Ö,‘�Ü˜˜AÖ!ñ -ð ˜•LˆBŒEØ˜i�ˆBŒJÛ%�Ø˜4–<ðxÜ  D¬)°D¸µJÓ*?Ö@ñ &ð $ˆBŒKà Ÿ™Ö(‘�Ü˜˜A˜q ›wÖ'ñ )ð ˜H•~¨Ñ2ˆBŒHØ˜h�¨<Ñ7ˆBŒJØ—x‘x Ó(ˆBŒHà#ˆBŒKà�M‰M˜"×ô7 #ñ 'ðF €M÷w "×!Ð!ûô ô Ü�ŠÐ=ÀÕKÜ!Ø!"õ	$ð Šð	ûôR $Ÿ>™>ô xÝ(Ó_cÐeg×ejÔejÓluÐ)vÓwÐwðxúsA   „K �B=K ÃJ/Ã$K È K:Ê/K 	Ê:K Ë K Ë1K7Ë6K7Ë:8L2	)r?   r"   rh   r=   r)   rG   r   ÚCrypto.Util.py3compatr   rC   r<   ÚImportErrorr6   rM   r   rQ   r   r   Ú<module>r‚      sa   ðó> 
Û 	Û Û Û Û Ý Ý 3ð#Û$Ø!Ðò
BòJ:ð| +-¸ÀRöGøðM ô #Ø"Òð#ús   ¦< ¼	AÁA