ff} dZddlZddlTddlmZGddejZifdZedkrd Z ej d dSdS) z%Self-tests for Crypto.IO._PBES moduleN)*)PBES2c8eZdZdZdZdZdZdZdZdZ dS) TestPBES2cVtd|_td|_dS)Nz Test data Passphrase)bref passphrase)selfs ~/builddir/build/BUILD/imunify360-venv-2.3.5/opt/imunify360/venv/lib64/python3.11/site-packages/Crypto/SelfTest/IO/test_PBES.pysetUpzTestPBES2.setUp,s [>>L//ctj|j|jd}tj||j}||j|dS)Nz"PBKDF2WithHMAC-SHA1AndDES-EDE3-CBCrencryptr r decrypt assertEqualr ctpts r test1zTestPBES2.test10sQ ]48T_?AA ]2t / / 2&&&&&rctj|j|jd}tj||j}||j|dS)Nz PBKDF2WithHMAC-SHA1AndAES128-CBCrrs r test2zTestPBES2.test26O ]48T_=?? ]2t / / 2&&&&&rctj|j|jd}tj||j}||j|dS)Nz PBKDF2WithHMAC-SHA1AndAES192-CBCrrs r test3zTestPBES2.test3<rrctj|j|jd}tj||j}||j|dS)NzscryptAndAES128-CBCrrs r test4zTestPBES2.test4BO ]48T_022 ]2t / / 2&&&&&rctj|j|jd}tj||j}||j|dS)NzscryptAndAES192-CBCrrs r test5zTestPBES2.test5Hr rctj|j|jd}tj||j}||j|dS)NzscryptAndAES256-CBCrrs r test6zTestPBES2.test6Nr rN) __name__ __module__ __qualname__rrrrrr"r$rr rr*s}***''' ''' ''' ''' ''' '''''rrc<ddlm}g}||tz }|S)Nr)list_test_cases)Crypto.SelfTest.st_commonr*r)configr* listTestss r get_testsr.Us3999999I +++I r__main__cBtjtS)N)unittest TestSuiter.r(rr r3\sH&y{{33rsuite) defaultTest) __doc__r1Crypto.Util.py3compatCrypto.IO._PBESrTestCaserr.r%r4mainr(rr r;sD,+####!!!!!!('('('('('!('('('V  z 3 3EHMg&&&&&&r