Module Expr Str ImportFrom alias ImportFrom alias ImportFrom alias ImportFrom alias Import alias Import alias Import alias Import alias Import alias Import alias identifier Assign NameStore Call AttributeLoad NameLoad attr Str Assign TupleStore NameStore NameStore Call AttributeLoad NameLoad attr Assign NameStore Str ClassDef bases AttributeLoad NameLoad attr body FunctionDef arguments args NameParam defaults body Pass decorator_list FunctionDef arguments args NameParam defaults body Assign TupleStore NameStore NameStore Call AttributeLoad NameLoad attr Expr Call AttributeLoad NameLoad attr NameLoad Call AttributeLoad AttributeLoad AttributeLoad NameLoad attr attr attr NameLoad NameLoad Expr Call AttributeLoad NameLoad attr NameLoad Call AttributeLoad AttributeLoad AttributeLoad NameLoad attr attr attr NameLoad NameLoad Expr Call AttributeLoad NameLoad attr AttributeLoad NameLoad attr AttributeLoad NameLoad attr Num Expr Call AttributeLoad NameLoad attr NameLoad AttributeLoad NameLoad attr Num Expr Call AttributeLoad NameLoad attr AttributeLoad NameLoad attr AttributeLoad NameLoad attr Str decorator_list FunctionDef arguments args NameParam defaults body Global identifier Global identifier Assign NameStore Call AttributeLoad Str attr Str Assign TupleStore NameStore NameStore Call AttributeLoad NameLoad attr NameLoad NameLoad Expr Call AttributeLoad NameLoad attr NameLoad NameLoad Expr Call AttributeLoad NameLoad attr NameLoad Call AttributeLoad AttributeLoad AttributeLoad NameLoad attr attr attr NameLoad NameLoad Expr Call AttributeLoad NameLoad attr Str NameLoad Expr Call AttributeLoad NameLoad attr AttributeLoad NameLoad attr AttributeLoad NameLoad attr Num NameLoad Expr Call AttributeLoad NameLoad attr NameLoad AttributeLoad NameLoad attr Str NameLoad Expr Call AttributeLoad NameLoad attr AttributeLoad NameLoad attr AttributeLoad NameLoad attr NameLoad Str Expr Call AttributeLoad NameLoad attr AttributeLoad NameLoad attr AttributeLoad NameLoad attr NameLoad Num Expr Call AttributeLoad NameLoad attr AttributeLoad NameLoad attr AttributeLoad NameLoad attr NameLoad NameLoad decorator_list FunctionDef arguments args NameParam defaults body Global identifier Global identifier Assign NameStore Call AttributeLoad Str attr Str Assign TupleStore NameStore NameStore Call AttributeLoad NameLoad attr NameLoad NameLoad Assign NameStore Call AttributeLoad NameLoad attr NameLoad NameLoad NameLoad NameLoad Expr Call AttributeLoad NameLoad attr NameLoad NameLoad Expr Call AttributeLoad NameLoad attr AttributeLoad NameLoad attr AttributeLoad NameLoad attr NameLoad Num NameLoad NameLoad Expr Call AttributeLoad NameLoad attr AttributeLoad NameLoad attr AttributeLoad NameLoad attr NameLoad NameLoad Num NameLoad Expr Call AttributeLoad NameLoad attr AttributeLoad NameLoad attr AttributeLoad NameLoad attr Num NameLoad NameLoad NameLoad Expr Call AttributeLoad NameLoad attr AttributeLoad NameLoad attr AttributeLoad NameLoad attr NameLoad Str NameLoad NameLoad Expr Call AttributeLoad NameLoad attr AttributeLoad NameLoad attr AttributeLoad NameLoad attr NameLoad NameLoad NameLoad Num Expr Call AttributeLoad NameLoad attr NameLoad Call AttributeLoad NameLoad attr NameLoad NameLoad NameLoad Str Assign TupleStore NameStore NameStore Call AttributeLoad NameLoad attr NameLoad Str Expr Call AttributeLoad NameLoad attr NameLoad Call AttributeLoad NameLoad attr NameLoad NameLoad NameLoad NameLoad decorator_list FunctionDef arguments args NameParam defaults body Global identifier Global identifier Assign NameStore Str Expr Call AttributeLoad NameLoad attr NameLoad Call AttributeLoad AttributeLoad AttributeLoad NameLoad attr attr attr NameLoad NameLoad Expr Call AttributeLoad NameLoad attr NameLoad Call AttributeLoad AttributeLoad AttributeLoad NameLoad attr attr attr NameLoad NameLoad Assign NameStore Call AttributeLoad NameLoad attr NameLoad NameLoad Expr Call AttributeLoad NameLoad attr NameLoad Call AttributeLoad AttributeLoad AttributeLoad NameLoad attr attr attr NameLoad NameLoad Expr Call AttributeLoad NameLoad attr AttributeLoad NameLoad attr AttributeLoad NameLoad attr Num NameLoad Expr Call AttributeLoad NameLoad attr AttributeLoad NameLoad attr AttributeLoad NameLoad attr NameLoad ListLoad Str Expr Call AttributeLoad NameLoad attr AttributeLoad NameLoad attr AttributeLoad NameLoad attr Str NameLoad Expr Call AttributeLoad NameLoad attr NameLoad AttributeLoad NameLoad attr Str NameLoad decorator_list FunctionDef arguments args NameParam defaults body Global identifier Assign NameStore Str Assign NameStore Call AttributeLoad NameLoad attr NameLoad NameLoad Expr Call AttributeLoad NameLoad attr NameLoad Call AttributeLoad AttributeLoad AttributeLoad NameLoad attr attr attr NameLoad NameLoad Assign TupleStore NameStore NameStore Call AttributeLoad NameLoad attr NameLoad NameLoad Expr Call AttributeLoad NameLoad attr NameLoad Call AttributeLoad AttributeLoad AttributeLoad NameLoad attr attr attr NameLoad NameLoad Expr Call AttributeLoad NameLoad attr NameLoad Call AttributeLoad AttributeLoad AttributeLoad NameLoad attr attr attr NameLoad NameLoad Expr Call AttributeLoad NameLoad attr NameLoad NameLoad Expr Call AttributeLoad NameLoad attr NameLoad NameLoad Expr Call AttributeLoad NameLoad attr AttributeLoad NameLoad attr AttributeLoad NameLoad attr NameLoad Str Assign TupleStore NameStore NameStore Call AttributeLoad NameLoad attr NameLoad NameLoad Expr Call AttributeLoad NameLoad attr NameLoad Call AttributeLoad AttributeLoad AttributeLoad NameLoad attr attr attr NameLoad NameLoad Expr Call AttributeLoad NameLoad attr NameLoad Call AttributeLoad AttributeLoad AttributeLoad NameLoad attr attr attr NameLoad NameLoad Expr Call AttributeLoad NameLoad attr AttributeLoad NameLoad attr AttributeLoad NameLoad attr Num NameLoad Expr Call AttributeLoad NameLoad attr AttributeLoad NameLoad attr AttributeLoad NameLoad attr NameLoad ListLoad Str Expr Call AttributeLoad NameLoad attr AttributeLoad NameLoad attr AttributeLoad NameLoad attr Str NameLoad decorator_list FunctionDef arguments args NameParam defaults body Global identifier Global identifier Assign NameStore Str Assign NameStore Dict Str Str Str Str Str Dict Str Str NameLoad NameLoad Assign NameStore Call AttributeLoad AttributeLoad NameLoad attr attr NameLoad NameLoad Assign SubscriptStore SubscriptLoad NameLoad Index Str Index Str Str Expr Call AttributeLoad NameLoad attr AttributeLoad NameLoad attr AttributeLoad AttributeLoad NameLoad attr attr NameLoad Str decorator_list FunctionDef arguments args NameParam defaults body Global identifier Global identifier Assign NameStore Str Assign NameStore Dict Str Str Str Str Str Dict Str Str NameLoad NameLoad Assign NameStore Call AttributeLoad Call AttributeLoad AttributeLoad NameLoad attr attr NameLoad NameLoad attr Str Assign NameStore Call AttributeLoad AttributeLoad NameLoad attr attr NameLoad NameLoad Expr Call AttributeLoad NameLoad attr AttributeLoad NameLoad attr AttributeLoad AttributeLoad NameLoad attr attr Str NameLoad Assign NameStore AttributeLoad AttributeLoad NameLoad attr attr Assign TupleStore NameStore NameStore NameStore NameStore NameStore Call AttributeLoad Call AttributeLoad NameLoad attr Str attr NameLoad Assign NameStore Str Assign NameStore BinOpAdd BinOpAdd BinOpAdd BinOpAdd BinOpAdd BinOpAdd BinOpAdd BinOpAdd NameLoad NameLoad NameLoad NameLoad NameLoad NameLoad NameLoad NameLoad NameLoad Expr Call AttributeLoad NameLoad attr AttributeLoad NameLoad attr AttributeLoad AttributeLoad NameLoad attr attr Call AttributeLoad NameLoad attr Str NameLoad Assign NameStore Str Assign NameStore BinOpAdd BinOpAdd BinOpAdd BinOpAdd BinOpAdd BinOpAdd BinOpAdd BinOpAdd NameLoad NameLoad NameLoad NameLoad NameLoad NameLoad NameLoad NameLoad NameLoad Expr Call AttributeLoad NameLoad attr AttributeLoad NameLoad attr AttributeLoad AttributeLoad NameLoad attr attr Call AttributeLoad NameLoad attr Str NameLoad decorator_list FunctionDef arguments args NameParam defaults body Assign TupleStore NameStore NameStore NameStore Call AttributeLoad AttributeLoad NameLoad attr attr Str Assign NameStore Dict Str Str Str NameLoad NameLoad NameLoad Expr Call AttributeLoad NameLoad attr AttributeLoad NameLoad attr AttributeLoad AttributeLoad NameLoad attr attr Num NameLoad decorator_list decorator_list If CompareEq NameLoad Str body Expr Call AttributeLoad NameLoad attr
N/A N/A 
<Program Name>
  test_pycrypto_keys.py

<Author> 
  Vladimir Diaz <vladimir.v.diaz@gmail.com>

<Started>
  October 10, 2013. 

<Copyright>
  See LICENSE for licensing information.

<Purpose>
  Test cases for test_pycrypto_keys.py.
 __future__ print_function __future__ absolute_import __future__ division __future__ unicode_literals N/A unittest N/A logging N/A tuf N/A tuf.log N/A tuf.formats N/A tuf.pycrypto_keys pycrypto N/A logger N/A N/A logging getLogger tuf.test_pycrypto_keys N/A N/A public_rsa private_rsa N/A N/A pycrypto generate_rsa_public_and_private N/A FORMAT_ERROR_MSG tuf.FormatError raised.  Check object's format. TestPycrypto_keys N/A N/A unittest TestCase N/A setUp N/A N/A self N/A N/A N/A N/A test_generate_rsa_public_and_private N/A N/A self N/A N/A N/A N/A pub priv N/A N/A pycrypto generate_rsa_public_and_private N/A N/A N/A self assertEqual None N/A N/A N/A N/A tuf formats PEMRSA_SCHEMA check_match pub FORMAT_ERROR_MSG N/A N/A N/A self assertEqual None N/A N/A N/A N/A tuf formats PEMRSA_SCHEMA check_match priv FORMAT_ERROR_MSG N/A N/A N/A self assertRaises N/A tuf FormatError N/A pycrypto generate_rsa_public_and_private 1024 N/A N/A N/A self assertRaises ValueError N/A pycrypto generate_rsa_public_and_private 2049 N/A N/A N/A self assertRaises N/A tuf FormatError N/A pycrypto generate_rsa_public_and_private 2048 N/A test_create_rsa_signature N/A N/A self N/A N/A N/A private_rsa N/A public_rsa N/A data N/A N/A The quick brown fox jumps over the lazy dog encode utf-8 N/A N/A signature method N/A N/A pycrypto create_rsa_signature private_rsa data N/A N/A N/A self assertNotEqual None signature N/A N/A N/A self assertEqual None N/A N/A N/A N/A tuf formats NAME_SCHEMA check_match method FORMAT_ERROR_MSG N/A N/A N/A self assertEqual RSASSA-PSS method N/A N/A N/A self assertRaises N/A tuf FormatError N/A pycrypto create_rsa_signature 123 data N/A N/A N/A self assertRaises TypeError N/A pycrypto create_rsa_signature data N/A N/A N/A self assertRaises N/A tuf FormatError N/A pycrypto create_rsa_signature private_rsa N/A N/A N/A self assertRaises N/A tuf FormatError N/A pycrypto create_rsa_signature private_rsa 123 N/A N/A N/A self assertRaises N/A tuf CryptoError N/A pycrypto create_rsa_signature public_rsa data N/A test_verify_rsa_signature N/A N/A self N/A N/A N/A public_rsa N/A private_rsa N/A data N/A N/A The quick brown fox jumps over the lazy dog encode utf-8 N/A N/A signature method N/A N/A pycrypto create_rsa_signature private_rsa data N/A valid_signature N/A N/A pycrypto verify_rsa_signature signature method public_rsa data N/A N/A N/A self assertEqual True valid_signature N/A N/A N/A self assertRaises N/A tuf FormatError N/A pycrypto verify_rsa_signature signature 123 public_rsa data N/A N/A N/A self assertRaises N/A tuf FormatError N/A pycrypto verify_rsa_signature signature method 123 data N/A N/A N/A self assertRaises N/A tuf FormatError N/A pycrypto verify_rsa_signature 123 method public_rsa data N/A N/A N/A self assertRaises N/A tuf UnknownMethodError N/A pycrypto verify_rsa_signature signature invalid_method public_rsa data N/A N/A N/A self assertRaises N/A tuf FormatError N/A pycrypto verify_rsa_signature signature method public_rsa 123 N/A N/A N/A self assertEqual False N/A N/A pycrypto verify_rsa_signature signature method public_rsa mismatched data N/A N/A mismatched_signature method N/A N/A pycrypto create_rsa_signature private_rsa mismatched data N/A N/A N/A self assertEqual False N/A N/A pycrypto verify_rsa_signature mismatched_signature method public_rsa data N/A test_create_rsa_encrypted_pem N/A N/A self N/A N/A N/A public_rsa N/A private_rsa N/A passphrase pw N/A N/A N/A self assertEqual None N/A N/A N/A N/A tuf formats PEMRSA_SCHEMA check_match public_rsa FORMAT_ERROR_MSG N/A N/A N/A self assertEqual None N/A N/A N/A N/A tuf formats PASSWORD_SCHEMA check_match passphrase FORMAT_ERROR_MSG N/A pem_rsakey N/A N/A pycrypto create_rsa_encrypted_pem private_rsa passphrase N/A N/A N/A self assertEqual None N/A N/A N/A N/A tuf formats PEMRSA_SCHEMA check_match pem_rsakey FORMAT_ERROR_MSG N/A N/A N/A self assertRaises N/A tuf FormatError N/A pycrypto create_rsa_encrypted_pem 1 passphrase N/A N/A N/A self assertRaises N/A tuf FormatError N/A pycrypto create_rsa_encrypted_pem private_rsa N/A pw N/A N/A N/A self assertRaises N/A tuf CryptoError N/A pycrypto create_rsa_encrypted_pem abc passphrase N/A N/A N/A self assertRaises TypeError N/A pycrypto create_rsa_encrypted_pem passphrase N/A test_create_rsa_public_and_private_from_encrypted_pem N/A N/A self N/A N/A N/A private_rsa N/A passphrase pw N/A pem_rsakey N/A N/A pycrypto create_rsa_encrypted_pem private_rsa passphrase N/A N/A N/A self assertEqual None N/A N/A N/A N/A tuf formats PASSWORD_SCHEMA check_match passphrase FORMAT_ERROR_MSG N/A N/A public_decrypted private_decrypted N/A N/A pycrypto create_rsa_public_and_private_from_encrypted_pem pem_rsakey passphrase N/A N/A N/A self assertEqual None N/A N/A N/A N/A tuf formats PEMRSA_SCHEMA check_match public_decrypted FORMAT_ERROR_MSG N/A N/A N/A self assertEqual None N/A N/A N/A N/A tuf formats PEMRSA_SCHEMA check_match private_decrypted FORMAT_ERROR_MSG N/A N/A N/A self assertEqual public_rsa public_decrypted N/A N/A N/A self assertEqual private_rsa private_decrypted N/A N/A N/A self assertRaises N/A tuf CryptoError N/A pycrypto create_rsa_public_and_private_from_encrypted_pem pem_rsakey bad_pw N/A N/A pub priv N/A N/A pycrypto create_rsa_public_and_private_from_encrypted_pem private_rsa passphrase N/A N/A N/A self assertEqual None N/A N/A N/A N/A tuf formats PEMRSA_SCHEMA check_match pub FORMAT_ERROR_MSG N/A N/A N/A self assertEqual None N/A N/A N/A N/A tuf formats PEMRSA_SCHEMA check_match priv FORMAT_ERROR_MSG N/A N/A N/A self assertRaises N/A tuf FormatError N/A pycrypto create_rsa_public_and_private_from_encrypted_pem 123 passphrase N/A N/A N/A self assertRaises N/A tuf FormatError N/A pycrypto create_rsa_public_and_private_from_encrypted_pem pem_rsakey N/A pw N/A N/A N/A self assertRaises N/A tuf CryptoError N/A pycrypto create_rsa_public_and_private_from_encrypted_pem invalid_pem passphrase N/A test_encrypt_key N/A N/A self N/A N/A N/A public_rsa N/A private_rsa N/A passphrase pw N/A rsa_key N/A keytype keyid keyval rsa d62247f817883f593cf6c66a5a55292488d457bcf638ae03207dbbba9dbe457d N/A public private public_rsa private_rsa N/A encrypted_rsa_key N/A N/A N/A tuf pycrypto_keys encrypt_key rsa_key passphrase N/A N/A N/A rsa_key N/A keyval N/A private N/A N/A N/A self assertRaises N/A tuf FormatError N/A N/A tuf pycrypto_keys encrypt_key rsa_key passphrase N/A test_decrypt_key N/A N/A self N/A N/A N/A public_rsa N/A private_rsa N/A passphrase pw N/A rsa_key N/A keytype keyid keyval rsa d62247f817883f593cf6c66a5a55292488d457bcf638ae03207dbbba9dbe457d N/A public private public_rsa private_rsa N/A encrypted_rsa_key N/A N/A N/A N/A N/A tuf pycrypto_keys encrypt_key rsa_key passphrase encode utf-8 N/A decrypted_rsa_key N/A N/A N/A tuf pycrypto_keys decrypt_key encrypted_rsa_key passphrase N/A N/A N/A self assertRaises N/A tuf CryptoError N/A N/A tuf pycrypto_keys decrypt_key bad passphrase N/A encryption_delimiter N/A N/A tuf pycrypto_keys _ENCRYPTION_DELIMITER N/A N/A salt iterations hmac iv ciphertext N/A N/A N/A N/A encrypted_rsa_key decode utf-8 split encryption_delimiter N/A bad_hmac 12345abcd N/A invalid_encrypted_rsa_key N/A N/A N/A N/A N/A N/A N/A N/A salt encryption_delimiter iterations encryption_delimiter bad_hmac encryption_delimiter iv encryption_delimiter ciphertext N/A N/A N/A self assertRaises N/A tuf CryptoError N/A N/A tuf pycrypto_keys decrypt_key N/A N/A invalid_encrypted_rsa_key encode utf-8 passphrase N/A bad_ciphertext 12345abcde N/A invalid_encrypted_rsa_key N/A N/A N/A N/A N/A N/A N/A N/A salt encryption_delimiter iterations encryption_delimiter hmac encryption_delimiter iv encryption_delimiter bad_ciphertext N/A N/A N/A self assertRaises N/A tuf CryptoError N/A N/A tuf pycrypto_keys decrypt_key N/A N/A invalid_encrypted_rsa_key encode utf-8 passphrase N/A test__decrypt_key N/A N/A self N/A N/A N/A N/A salt iterations derived_key N/A N/A N/A tuf pycrypto_keys _generate_derived_key pw N/A derived_key_information N/A salt derived_key iterations salt derived_key iterations N/A N/A N/A self assertRaises N/A tuf CryptoError N/A N/A tuf pycrypto_keys _encrypt 8 derived_key_information N/A N/A N/A N/A __name__ __main__ N/A N/A N/A N/A unittest main