Commit Graph

9377 Commits (8e5dc8f0f67a6dd2313e85a428f445b03ea0a35e)

Author SHA1 Message Date
Michael Egorov 28a7dda8bf Use default generator point (same as in Bitcoin and Ethereum) 2017-09-18 11:15:46 -07:00
tuxxy 19ee10bd73 Add test_keyring with sign and verify tests 2017-09-18 11:06:37 -07:00
tuxxy 2a2468edaa Actually digest the message 2017-09-18 11:06:15 -07:00
tuxxy 79b6f178a8 Add test_verification for test_signing_keypair 2017-09-18 10:55:44 -07:00
tuxxy 5c7bc5f219 Refactor the v, r, and s msgpack loading into their own methods 2017-09-18 10:54:59 -07:00
tuxxy f4cf9090b7 Add test for signing with SigningKeypair 2017-09-18 10:39:36 -07:00
tuxxy 0b714fff5e Add sign/verify methods to KeyRing 2017-09-18 10:32:56 -07:00
tuxxy 76485f7b06 Add sign/verify functions 2017-09-18 10:25:36 -07:00
tuxxy bf08aa5b53 Add SigningKeypair object and add key generation capabilities 2017-09-18 09:59:34 -07:00
tuxxy 2a3b61f1ba Add boilerplate for KeyRing __init__ method 2017-09-18 09:33:23 -07:00
tuxxy bcbf7444e9 Create keyring.py with placeholder KeyRing object 2017-09-18 08:32:44 -07:00
tuxxy 423c5bde16 Create keys package 2017-09-18 08:31:20 -07:00
tuxxy af9c93c6b6 Create keyring package 2017-09-18 08:30:47 -07:00
tuxxy 28628c4c94 Add step1_update_header test placeholder 2017-09-18 08:29:21 -07:00
Michael Egorov 407763919a merge 2017-09-17 00:27:27 -07:00
Michael Egorov e5857f534e Use releases for PRE library rather than the head 2017-09-17 00:25:56 -07:00
Michael Egorov 47e89a2245 Switch serialization format to Python bytes 2017-09-17 00:21:28 -07:00
Michael Egorov 049ced4e32 Make tox installing with --develop 2017-09-16 23:49:58 -07:00
Michael Egorov c17d9773a8 Bugfix for Kademlia dependency: our branch lives only in our repo 2017-09-16 23:40:59 -07:00
tuxxy 62287c66ae Add test_encrypted_file with setup/teardown methods 2017-09-15 13:00:46 -07:00
tuxxy 94ddc2e8f6 Make tests.storage.test_header a monolithic test 2017-09-15 12:43:33 -07:00
tuxxy ddd7e03b46 Fix test_header_zread 2017-09-14 19:17:45 -07:00
tuxxy 2ac32f6fa6 Add broken test_header_read test 2017-09-14 15:47:48 -07:00
tuxxy 9fde617c0d Add working test_header_update test 2017-09-14 15:47:48 -07:00
tuxxy d91fefca13 Add working test_header_defaults test 2017-09-14 15:47:48 -07:00
tuxxy 0004532871 Add NONCE_RANDOM_PREFIX_SIZE to constants
Add test for NONCE_RANDOM_PREFIX_SIZE constant
2017-09-14 15:47:48 -07:00
tuxxy d9f1bcb82b Add test_constants with one test 2017-09-14 15:47:48 -07:00
tuxxy 8a740871fc Fix header import 2017-09-14 15:47:48 -07:00
tuxxy e217e0a7a0 Create test_header file within 'storage' directory in tests 2017-09-14 15:47:48 -07:00
tuxxy 9961e5a9dc Refactor read/write functions to perform with the new changes 2017-09-14 15:47:48 -07:00
tuxxy b325b38180 Update the header and close the file object 2017-09-14 15:47:48 -07:00
tuxxy 343ced9631 Add NONCE_COUNTER_BYTE_SIZE to constants 2017-09-14 15:47:42 -07:00
tuxxy fce2ff69c7 Add constants.py file 2017-09-14 13:43:38 -07:00
tuxxy 9ba61f220c Create the header file if it doesn't exist and write the updated header whenever updated 2017-09-14 13:42:31 -07:00
tuxxy 5d87c531fc Initialize a header object for the given header_path 2017-09-14 13:05:16 -07:00
tuxxy 526a7e33bc Check if header exists, if not build a header 2017-09-14 13:03:12 -07:00
tuxxy 1babb31cff Make default keys in the header to an empty list 2017-09-14 12:55:08 -07:00
tuxxy d8a8cea3a0 Add comments to the header.py file 2017-09-14 12:43:33 -07:00
tuxxy 2e5ddc2480 Add header property
Remove setter

The setter method is not needed because it turns out that caching
doesn't happen and `Header.update_header` can be called anyway.
2017-09-14 12:37:06 -07:00
tuxxy df2908817e Add update_header method 2017-09-14 12:30:48 -07:00
tuxxy 3ac60f35cd Remove old header methods in EncryptedFile 2017-09-14 12:17:28 -07:00
tuxxy c962de106c Add package import for Header 2017-09-14 12:16:06 -07:00
tuxxy 73e037288d Add _write_header method 2017-09-14 12:12:22 -07:00
tuxxy 4ee4a20a74 Add _build_header method and build the header in __init__ 2017-09-14 12:12:12 -07:00
tuxxy e107efda7f Add _read_header method 2017-09-14 11:44:13 -07:00
tuxxy 92401d739b Add Header object in header.py 2017-09-14 11:21:04 -07:00
tuxxy 051089c98c Create empty header.py file 2017-09-14 11:08:51 -07:00
Michael Egorov 629e1f1c75 Merge pull request #37 from tuxxy/master
Add EncryptedFile object for local encryption/decryption functions
2017-09-14 10:57:39 -07:00
tuxxy 0bd05e1336 Add open_new and write functions
Add comment and fix PEP8
2017-09-14 10:28:09 -07:00
tuxxy 6d9fdd1655 Add EncryptedFile.close method to write header info to the file_obj 2017-09-13 15:39:07 -07:00