python (3.11.7)

(root)/
lib/
python3.11/
test/
__pycache__/
test_crypt.cpython-311.opt-2.pyc

e$ddlZddlZddlmZmZ	eddrejdejdZdZnC#e	$r;Z
ejdkrejee
dZee
ZYdZ
[
ndZ
[
wwxYwej
ejdkdejed	Gd
dejZej
edGd
dejZedkrejdSdS)N)check_sanitizerwarnings_helperT)addressmemoryz.The crypt module SEGFAULTs on ASAN/MSAN buildscryptwin32zThis should only run on windowszimport succeededceZdZdZdS)TestWhyCryptDidNotImportc<|dtdS)Nz
not supported)assertInIMPORT_ERRORselfs C/BuggyBox/python/3.11.7/bootstrap/lib/python3.11/test/test_crypt.pytest_import_failure_messagez4TestWhyCryptDidNotImport.test_import_failure_messages

o|44444N)__name__
__module____qualname__rrrr
r
s#55555rr
zcrypt module is requiredceZdZdZdZdZdZeje	oe	j
e	jvp
e	je	jvddZ
eje	o
e	je	jvddZd	Zd
S)
CryptTestCasec<td}td|}|||tdd}|3td|}|||dSdS)N
mypasswordab)rassertEqual)rcrcr2s   r
test_cryptzCryptTestCase.test_crypts
[[
&
&kk,++b!!!
[[t
,
,
>++lB//CS"%%%%%>rc	|ttjdtjD]}t|}|t||jz
hd|jr8||j|dt||jz
dS)N@>r)	rlenr
_saltcharsmethodsmksaltr
salt_charsident)rmethodsalts   r	test_saltzCryptTestCase.test_salt&sU-..333m	P	PF<<''DMM#d))f&779K9K9KLLL|
P

flD1M#d))F<M2M1M,NOOO		P	PrctjD]}td|}|t||jtd|}|||tdt|}|t||jdS)Nassword)rr)rr'
total_sizer*)rr-rrs    rtest_saltedcryptzCryptTestCase.test_saltedcrypt.sm	9	9FY//BSWWf&7888++i,,CS"%%%YV(<(<==BSWWf&78888
	9	9rc^|ttjdktjdr-|tjtjgdS|tjdtj	dS)Nr"openbsd)

assertTruer'rr)sysplatform
startswithrMETHOD_BLOWFISHMETHOD_CRYPTrs rtest_methodszCryptTestCase.test_methods7sEM**a/000<""9--	DU]U-B,CDDDDDU]2.0BCCCCCrzrequires support of SHA-2ctjtjfD]}dD]}t||}|d|z||t
||jz
dt
t|ztd|}|	|td|}|||dS)N)i'iroundsz$rounds=%d$r)
r
METHOD_SHA256
METHOD_SHA512r*rrr'r+strr7)rr-rAr.rrs      rtest_sha2_roundszCryptTestCase.test_sha2_rounds>s*E,?@		*		*F/
*
*||F6|::

mf4d;;;  TV->!>!#c#f++&6&6!6888[[t44###kk,33  b))))
*		*		*rzrequires support of BlowfishctddD]}ttjd|z}|d|z||t|tjjz
ddhtd|}||td|}|||dS)	Nr$rBr"r@z$%02d$r%r&r)	rangerr*r;rr'r+r7r)r
log_roundsr.rrs     rtest_blowfish_roundsz"CryptTestCase.test_blowfish_roundsQs 2,,	&	&J<< 5a:o<NNDMM(Z/666MM#d))e&;&FFAOOO\400BOOB++lB//CS"%%%%	&	&rctjtjtjfD]}|t
5t|ddddn#1swxYwY|t
5t|ddddn#1swxYwYdddddzfD]P}|t5t||dddn#1swxYwYQ|t5ttjddddn#1swxYwYtjtj	fD]Q}|
td	5t|d
dddn#1swxYwYRdS)N4096r@g@rr"r6ir?supporti)rrCrDr;assertRaises	TypeErrorr*
ValueErrorr<
METHOD_MD5assertRaisesRegex)rr-rAs   rtest_invalid_roundsz!CryptTestCase.test_invalid_rounds^s*E,?,.	8	8F""9--
4
4VF333
4
4
4
4
4
4
4
4
4
4
4
4
4
4
4""9--
4
4VF333
4
4
4
4
4
4
4
4
4
4
4
4
4
4
4aQV,
8
8&&z2288LLL777888888888888888
8

z
*
*	=	=LL.tL<<<	=	=	=	=	=	=	=	=	=	=	=	=	=	=	=)5+;<	2	2F''
I>>
2
2VD111
2
2
2
2
2
2
2
2
2
2
2
2
2
2
2	2	2sZA))A-	0A-	B77B;	>B;	'DDD7'E**E.1E.*GG	G	N)rrrrr/r3r=unittest
skipUnlessrrCr)rDrFr;rJrSrrrrrs&&&PPP999DDDX
	
5=0XE4G5=4X#
*
*
*X
8%'5=8:X&&&22222rr__main__)r8rTtest.supportrrSkipTestimport_deprecatedrr
ImportErrorexr9rErUskipIfTestCaser
rrmainrrr<module>r_s



99999999	tD111Rh PQQQ-O-g66ELL
|whB(((E3r77LLLLLL	S\W,.OPP*++55555x055,+QP5U677Q2Q2Q2Q2Q2H%Q2Q287Q2hzHMOOOOOs/AB1A==B