Module Import alias Import alias Import alias ImportFrom alias ImportFrom alias alias alias alias alias alias alias alias ImportFrom alias alias alias alias alias TryExcept body ImportFrom alias handlers ExceptHandler type NameLoad body Assign NameStore NameLoad ClassDef bases body FunctionDef arguments args NameParam defaults body Assign AttributeStore NameLoad attr NameLoad decorator_list FunctionDef arguments args NameParam NameParam defaults body Expr Str Return Call AttributeLoad NameLoad attr NameLoad BinOpPow Num Num decorator_list FunctionDef arguments args NameParam NameParam NameParam defaults body Assign NameStore BinOpMult NameLoad NameLoad Assign NameStore Call AttributeLoad NameLoad attr NameLoad Assign NameStore ListLoad For NameStore Call NameLoad NameLoad body Assign NameStore BinOpMult NameLoad NameLoad Expr Call AttributeLoad NameLoad attr SubscriptLoad NameLoad Slice NameLoad BinOpAdd NameLoad NameLoad Return NameLoad decorator_list FunctionDef arguments args NameParam NameParam defaults body If CompareIs AttributeLoad NameLoad attr NameLoad body Assign AttributeStore NameLoad attr Call AttributeLoad NameLoad attr NameLoad Return AttributeLoad NameLoad attr orelse If CompareEq NameLoad Call NameLoad AttributeLoad NameLoad attr body Return AttributeLoad NameLoad attr orelse If CompareLt NameLoad Call NameLoad AttributeLoad NameLoad attr body Return SubscriptLoad AttributeLoad NameLoad attr Slice NameLoad orelse AugAssignAdd AttributeStore NameLoad attr Call AttributeLoad NameLoad attr BinOpSub NameLoad Call NameLoad AttributeLoad NameLoad attr Return AttributeLoad NameLoad attr decorator_list FunctionDef arguments args NameParam NameParam defaults body Return Call AttributeLoad NameLoad attr NameLoad decorator_list FunctionDef arguments args NameParam NameParam defaults body Expr Call AttributeLoad AttributeLoad NameLoad attr attr BinOpMod Str TupleLoad NameLoad Expr Call AttributeLoad AttributeLoad NameLoad attr attr decorator_list FunctionDef arguments args NameParam NameParam NameParam defaults body Expr Call AttributeLoad AttributeLoad NameLoad attr attr BinOpMod Str TupleLoad NameLoad NameLoad Expr Call AttributeLoad AttributeLoad NameLoad attr attr decorator_list FunctionDef arguments args NameParam NameParam NameParam NameParam defaults body Expr Call AttributeLoad NameLoad attr BinOpMod Str TupleLoad NameLoad Assign NameStore SubscriptLoad Call AttributeLoad NameLoad attr NameLoad Slice Num Assign NameStore Call AttributeLoad NameLoad attr For NameStore NameLoad body Expr Call AttributeLoad NameLoad attr BinOpMult NameLoad Num Assign NameStore Call AttributeLoad NameLoad attr Assign NameStore BinOpDiv Call NameLoad NameLoad BinOpSub NameLoad NameLoad Expr Call AttributeLoad NameLoad attr NameLoad Str decorator_list FunctionDef arguments args NameParam NameParam NameParam NameParam NameParam defaults body Expr Call AttributeLoad NameLoad attr BinOpMod Str TupleLoad NameLoad Assign NameStore Call AttributeLoad NameLoad attr NameLoad If CompareIs NameLoad NameLoad body Assign NameStore Call AttributeLoad NameLoad attr For NameStore NameLoad body Expr Call AttributeLoad NameLoad attr NameLoad Assign NameStore Call AttributeLoad NameLoad attr orelse Assign NameStore Call AttributeLoad NameLoad attr For NameStore NameLoad body Expr Call AttributeLoad NameLoad attr NameLoad AttributeLoad NameLoad attr Assign NameStore Call AttributeLoad NameLoad attr Assign NameStore BinOpDiv Call NameLoad NameLoad BinOpSub NameLoad NameLoad Expr Call AttributeLoad NameLoad attr BinOpDiv NameLoad Num Str decorator_list FunctionDef arguments args NameParam NameParam NameParam NameParam NameParam defaults body Expr Call AttributeLoad NameLoad attr BinOpMod Str TupleLoad NameLoad Assign NameStore Call AttributeLoad NameLoad attr BinOpAdd NameLoad AttributeLoad NameLoad attr Assign TupleStore NameStore NameStore TupleLoad SubscriptLoad NameLoad Slice NameLoad SubscriptLoad NameLoad Slice NameLoad Assign NameStore Call AttributeLoad NameLoad attr Num Num If CompareIs NameLoad NameLoad body Assign NameStore Call AttributeLoad NameLoad attr NameLoad orelse Assign NameStore Call AttributeLoad NameLoad attr NameLoad NameLoad NameLoad Assign NameStore Call AttributeLoad NameLoad attr For NameStore NameLoad body Expr Call AttributeLoad NameLoad attr NameLoad Assign NameStore Call AttributeLoad NameLoad attr Assign NameStore BinOpDiv BinOpMult Call NameLoad NameLoad Call NameLoad SubscriptLoad NameLoad Index Num BinOpSub NameLoad NameLoad Expr Call AttributeLoad NameLoad attr BinOpDiv NameLoad BinOpPow Num Num Str decorator_list FunctionDef arguments args NameParam NameParam NameParam defaults body Expr Call AttributeLoad NameLoad attr BinOpMod Str TupleLoad NameLoad AttributeLoad NameLoad attr Assign NameStore Call AttributeLoad NameLoad attr AttributeLoad NameLoad attr Num Assign NameStore Call AttributeLoad NameLoad attr For NameStore NameLoad body Expr Call AttributeLoad Call AttributeLoad NameLoad attr NameLoad attr Assign NameStore Call AttributeLoad NameLoad attr Assign NameStore BinOpDiv Call NameLoad NameLoad BinOpSub NameLoad NameLoad Expr Call AttributeLoad NameLoad attr BinOpDiv NameLoad Num Str decorator_list FunctionDef arguments args NameParam NameParam NameParam defaults body Expr Call AttributeLoad NameLoad attr BinOpMod Str TupleLoad NameLoad Assign NameStore Call AttributeLoad NameLoad attr Num Num Assign NameStore Call AttributeLoad NameLoad attr Assign NameStore Call AttributeLoad NameLoad attr For NameStore NameLoad body Expr Call AttributeLoad NameLoad attr NameLoad Expr Call AttributeLoad NameLoad attr Assign NameStore Call AttributeLoad NameLoad attr Assign NameStore BinOpDiv BinOpMult Call NameLoad NameLoad Call NameLoad SubscriptLoad NameLoad Index Num BinOpSub NameLoad NameLoad Expr Call AttributeLoad NameLoad attr BinOpDiv NameLoad BinOpPow Num Num Str decorator_list FunctionDef arguments args NameParam defaults body Assign NameStore ListLoad TupleLoad Str NameLoad BinOpDiv Num Num TupleLoad Str NameLoad BinOpDiv Num Num TupleLoad Str NameLoad BinOpDiv Num Num Assign NameStore ListLoad TupleLoad Str NameLoad Num TupleLoad Str NameLoad Num TupleLoad Str NameLoad Num TupleLoad Str NameLoad Num TupleLoad Str NameLoad Num TupleLoad Str NameLoad Num TupleLoad Str NameLoad Num TupleLoad Str NameLoad Num TupleLoad Str NameLoad Num Assign NameStore ListLoad TupleLoad Str NameLoad Num TupleLoad Str NameLoad Num TupleLoad Str NameLoad Num TupleLoad Str NameLoad Num Assign NameStore ListLoad TupleLoad Str NameLoad TupleLoad Str NameLoad TupleLoad Str NameLoad TupleLoad Str NameLoad TupleLoad Str NameLoad If CompareIsNot NameLoad NameLoad body AugAssignAdd NameStore ListLoad TupleLoad Str NameLoad For TupleStore NameStore NameStore NameStore NameLoad body Expr Call AttributeLoad NameLoad attr NameLoad NameLoad NameLoad For TupleStore NameStore NameStore NameStore NameLoad body Expr Call AttributeLoad NameLoad attr NameLoad NameLoad NameLoad AttributeLoad NameLoad attr Expr Call AttributeLoad NameLoad attr BinOpMod Str TupleLoad NameLoad NameLoad NameLoad AttributeLoad NameLoad attr Expr Call AttributeLoad NameLoad attr BinOpMod Str TupleLoad NameLoad NameLoad NameLoad AttributeLoad NameLoad attr Expr Call AttributeLoad NameLoad attr BinOpMod Str TupleLoad NameLoad NameLoad NameLoad AttributeLoad NameLoad attr Expr Call AttributeLoad NameLoad attr BinOpMod Str TupleLoad NameLoad NameLoad NameLoad AttributeLoad NameLoad attr Expr Call AttributeLoad NameLoad attr BinOpMod Str TupleLoad NameLoad NameLoad NameLoad AttributeLoad NameLoad attr For TupleStore NameStore NameStore NameStore NameLoad body Expr Call AttributeLoad NameLoad attr NameLoad NameLoad NameLoad NameLoad Expr Call AttributeLoad NameLoad attr NameLoad NameLoad NameLoad NameLoad For TupleStore NameStore NameStore NameLoad body Expr Call AttributeLoad NameLoad attr NameLoad NameLoad Expr Call AttributeLoad NameLoad attr NameLoad NameLoad decorator_list decorator_list If CompareEq NameLoad Str body Expr Call AttributeLoad Call NameLoad attr
N/A N/A time N/A os N/A sys Crypto.PublicKey RSA Crypto.Cipher AES ARC2 ARC4 Blowfish CAST DES3 DES XOR Crypto.Hash MD2 MD4 MD5 SHA256 SHA N/A N/A Crypto.Hash RIPEMD N/A N/A N/A ImportError N/A N/A RIPEMD None Benchmark N/A N/A __init__ N/A N/A self N/A N/A N/A N/A self __random_data None N/A random_keys N/A N/A self bytes N/A N/A N/A Return random keys of the specified number of bytes.

        If this function has been called before with the same number of bytes,
        cached keys are used instead of randomly generating new ones.
         N/A N/A N/A self random_blocks bytes N/A 10 5 N/A random_blocks N/A N/A self bytes_per_block blocks N/A N/A N/A bytes N/A bytes_per_block blocks N/A data N/A N/A self random_data bytes N/A retval N/A N/A i N/A xrange blocks N/A N/A p N/A i bytes_per_block N/A N/A N/A retval append N/A data N/A p N/A p bytes_per_block N/A retval N/A random_data N/A N/A self bytes N/A N/A N/A N/A N/A self __random_data None N/A N/A N/A self __random_data N/A N/A self _random_bytes bytes N/A N/A self __random_data N/A N/A N/A bytes N/A len N/A self __random_data N/A N/A N/A self __random_data N/A N/A N/A bytes N/A len N/A self __random_data N/A N/A N/A N/A self __random_data N/A bytes N/A N/A N/A self __random_data N/A N/A self _random_bytes N/A bytes N/A len N/A self __random_data N/A N/A self __random_data N/A _random_bytes N/A N/A self b N/A N/A N/A N/A N/A os urandom b N/A announce_start N/A N/A self test_name N/A N/A N/A N/A N/A N/A sys stdout write N/A %s:  N/A test_name N/A N/A N/A N/A sys stdout flush N/A announce_result N/A N/A self value units N/A N/A N/A N/A N/A N/A sys stdout write N/A %.2f %s
 N/A value units N/A N/A N/A N/A sys stdout flush N/A test_pubkey_setup N/A N/A self pubkey_name module key_bytes N/A N/A N/A N/A N/A self announce_start N/A %s pubkey setup N/A pubkey_name N/A keys N/A N/A N/A self random_keys key_bytes N/A 5 N/A t0 N/A N/A time time N/A k keys N/A N/A N/A N/A module generate N/A key_bytes 8 N/A t N/A N/A time time N/A pubkey_setups_per_second N/A N/A len keys N/A t t0 N/A N/A N/A self announce_result pubkey_setups_per_second Keys/sec N/A test_key_setup N/A N/A self cipher_name module key_bytes mode N/A N/A N/A N/A N/A self announce_start N/A %s key setup N/A cipher_name N/A keys N/A N/A self random_keys key_bytes N/A N/A mode None N/A N/A t0 N/A N/A time time N/A k keys N/A N/A N/A N/A module new k N/A t N/A N/A time time N/A N/A t0 N/A N/A time time N/A k keys N/A N/A N/A N/A module new k N/A module MODE_ECB N/A t N/A N/A time time N/A key_setups_per_second N/A N/A len keys N/A t t0 N/A N/A N/A self announce_result N/A key_setups_per_second 1000 kKeys/sec N/A test_encryption N/A N/A self cipher_name module key_bytes mode N/A N/A N/A N/A N/A self announce_start N/A %s encryption N/A cipher_name N/A rand N/A N/A self random_data N/A key_bytes N/A module block_size N/A N/A key iv N/A N/A rand N/A key_bytes N/A rand N/A key_bytes N/A blocks N/A N/A self random_blocks 16384 1000 N/A N/A mode None N/A N/A cipher N/A N/A module new key N/A N/A cipher N/A N/A module new key mode iv N/A t0 N/A N/A time time N/A b blocks N/A N/A N/A N/A cipher encrypt b N/A t N/A N/A time time N/A encryption_speed N/A N/A N/A len blocks N/A len N/A blocks N/A 0 N/A t t0 N/A N/A N/A self announce_result N/A encryption_speed N/A 10 6 MBps N/A test_hash_small N/A N/A self hash_name module N/A N/A N/A N/A N/A self announce_start N/A %s (%d-byte inputs) N/A hash_name N/A module digest_size N/A blocks N/A N/A self random_blocks N/A module digest_size 10000 N/A t0 N/A N/A time time N/A b blocks N/A N/A N/A N/A N/A N/A module new b digest N/A t N/A N/A time time N/A hashes_per_second N/A N/A len blocks N/A t t0 N/A N/A N/A self announce_result N/A hashes_per_second 1000 kHashes/sec N/A test_hash_large N/A N/A self hash_name module N/A N/A N/A N/A N/A self announce_start N/A %s (single large input) N/A hash_name N/A blocks N/A N/A self random_blocks 16384 10000 N/A t0 N/A N/A time time N/A h N/A N/A module new N/A b blocks N/A N/A N/A N/A h update b N/A N/A N/A h digest N/A t N/A N/A time time N/A hash_speed N/A N/A N/A len blocks N/A len N/A blocks N/A 0 N/A t t0 N/A N/A N/A self announce_result N/A hash_speed N/A 10 6 MBps N/A run N/A N/A self N/A N/A N/A pubkey_specs N/A N/A RSA(1024) RSA N/A 1024 8 N/A RSA(2048) RSA N/A 2048 8 N/A RSA(4096) RSA N/A 4096 8 N/A block_specs N/A N/A DES DES 8 N/A DES3 DES3 24 N/A AES128 AES 16 N/A AES192 AES 24 N/A AES256 AES 32 N/A Blowfish(256) Blowfish 32 N/A CAST(40) CAST 5 N/A CAST(80) CAST 10 N/A CAST(128) CAST 16 N/A stream_specs N/A N/A ARC2(128) ARC2 16 N/A ARC4(128) ARC4 16 N/A XOR(24) XOR 3 N/A XOR(256) XOR 32 N/A hash_specs N/A N/A MD2 MD2 N/A MD4 MD4 N/A MD5 MD5 N/A SHA SHA N/A SHA256 SHA256 N/A N/A RIPEMD None N/A N/A hash_specs N/A N/A RIPEMD RIPEMD N/A N/A pubkey_name module key_bytes pubkey_specs N/A N/A N/A N/A self test_pubkey_setup pubkey_name module key_bytes N/A N/A cipher_name module key_bytes block_specs N/A N/A N/A N/A self test_key_setup cipher_name module key_bytes N/A module MODE_CBC N/A N/A N/A self test_encryption N/A %s-CBC N/A cipher_name module key_bytes N/A module MODE_CBC N/A N/A N/A self test_encryption N/A %s-CFB-8 N/A cipher_name module key_bytes N/A module MODE_CFB N/A N/A N/A self test_encryption N/A %s-OFB N/A cipher_name module key_bytes N/A module MODE_OFB N/A N/A N/A self test_encryption N/A %s-ECB N/A cipher_name module key_bytes N/A module MODE_ECB N/A N/A N/A self test_encryption N/A %s-OPENPGP N/A cipher_name module key_bytes N/A module MODE_OPENPGP N/A N/A cipher_name module key_bytes stream_specs N/A N/A N/A N/A self test_key_setup cipher_name module key_bytes None N/A N/A N/A self test_encryption cipher_name module key_bytes None N/A N/A hash_name module hash_specs N/A N/A N/A N/A self test_hash_small hash_name module N/A N/A N/A self test_hash_large hash_name module N/A N/A N/A N/A __name__ __main__ N/A N/A N/A N/A N/A Benchmark run