úÎ"ñü9      !"#$%&'()*+,-./012345678None 9a AEAD unit test :a XTS unit test ;a CTR unit test <a CBC unit test =a CBC unit test >a ECB unit test ?<Generate an arbitrary valid key for a specific block cipher @;Generate an arbitrary valid IV for a specific block cipher ADGenerate an arbitrary valid IV for AEAD for a specific block cipher B_Generate a plaintext multiple of 16 bytes. TODO replace by one function that use the blockSize  cipher instance C+Test a generic block cipher for properties  related to block cipher modes. $DE9F:G;H<I=J>K?@ABLCMNOPQRSTUVWXYZ[\DE9F:G;H<I=J>K?@ABLCMNDE9F:G;H<I=J>K?@ABLCMNOPQRSTUVWXYZ[\None'KAT for Stream cipher ;all the KATs. use defaultKATs to prevent compilation error . from future expansion of this data structure  AEAD KAT AEAD mode to use Key IV for initialization Authentificated Header  Plaintext  Ciphertext  aead tag len  expected tag XTS KAT  1st XTS key  2nd XTS key XTS IV  plaintext  Ciphertext CTR KAT Key !/IV (usually represented as a 128 bits integer) " Plaintext # Ciphertext $CFB KAT &Key 'IV ( Plaintext ) Ciphertext *CBC KAT ,Key -IV . Plaintext / Ciphertext 0ECB KAT 2Key 3 Plaintext 4 Ciphertext 5the empty KATs 6the empty KATs for stream ]tests related to KATs ;  !"#$%&'()*+,-./0123456]^_`;  !"#$%&'()*+,-./0123456]^_`  !"#$%&'()*+,-./0123456]^_` ExcellentStable#Vincent Hanquez <vincent@snarc.org>None7;Return tests for a specific blockcipher and a list of KATs 8<Return tests for a specific streamcipher and a list of KATs 789  !"#$%&'()*+,-./01234567897856 01234*+,-./$%&'() !"# 78a      !"##$%&'(()*+,--./0123456789:;<=>?@@56789:ABCDEFGHIJKLMNOPQRSTUVcrypto-cipher-tests-0.0.8Crypto.Cipher.TestsCrypto.Cipher.Tests.PropertiesCrypto.Cipher.Tests.KATs KAT_Stream streamKeystreamPlaintextstreamCiphertextKATskat_ECBkat_CBCkat_CFBkat_CTRkat_XTSkat_AEADKAT_AEADaeadModeaeadKeyaeadIV aeadHeader aeadPlaintextaeadCiphertext aeadTaglenaeadTagKAT_XTSxtsKey1xtsKey2xtsIV xtsPlaintext xtsCiphertextKAT_CTRctrKeyctrIV ctrPlaintext ctrCiphertextKAT_CFBcfbKeycfbIV cfbPlaintext cfbCiphertextKAT_CBCcbcKeycbcIV cbcPlaintext cbcCiphertextKAT_ECBecbKey ecbPlaintext ecbCiphertext defaultKATsdefaultStreamKATstestBlockCiphertestStreamCipherAEADUnitXTSUnitCTRUnitCFBUnitCBCUnitECBUnit generateKey generateIvgenerateIvAEADgeneratePlaintextMultiple16 testModes StreamUnitgeneratePlaintext testStreamassertEq$fArbitraryStreamUnit$fArbitraryAEADUnit$fArbitraryXTSUnit$fArbitraryCTRUnit$fArbitraryCFBUnit$fArbitraryCBCUnit$fArbitraryECBUnit$fShowStreamUnit$fShowAEADUnit $fShowXTSUnit $fShowCTRUnit $fShowCFBUnit $fShowCBCUnit $fShowECBUnittestKATstestStreamKATs cipherMakeKey maybeGroup