Commit Graph

248 Commits (91d46aae6ad341c39aff9c51cce46bfab3e64687)

Author SHA1 Message Date
jMyles 73ec0079a4 Fixes #68 by attaching server during test. 2017-10-03 17:57:18 -07:00
jMyles 40171da964 Two-tier ID generation. 2017-10-03 17:52:28 -07:00
jMyles c9983482d3 A little more logic for Alice's initial activity to craft an Offer and find Ursula. 2017-10-03 17:52:28 -07:00
jMyles a76248361b First semblance of two-part negotiation Alice -=> Ursula. 2017-10-03 17:51:49 -07:00
tuxxy fc7c2dfd98 Use *args instead of an iterable for SigningKeypair.digest 2017-10-03 18:08:40 -06:00
tuxxy 759894f00b Skip broken test 2017-10-03 16:09:37 -06:00
tuxxy aff17556f4 Add test for testing digestable iterables 2017-10-03 15:49:37 -06:00
Michael Egorov 5763615b6c Split-key re-encryption: tests pass 2017-09-30 20:01:11 -07:00
Michael Egorov 2c102ed384 Split-key (fails) 2017-09-30 19:55:16 -07:00
Michael Egorov 1ec8a788c4 Encrypt(Alice) -> re-encrypt(Ursula) -> decrypt(Bob). With tests 2017-09-30 15:41:03 -07:00
Michael Egorov 572442b8cb Encrypt/decrypt with a serializing keypair 2017-09-29 23:18:20 -07:00
Michael Egorov ddc91bb556 Re-encryption works but convoluted 2017-09-29 17:27:11 -07:00
Michael Egorov f66577b9b8 Test encryption/decryption w/o re-encryption - works 2017-09-29 13:24:14 -07:00
tuxxy 63fdfcae29 Add code for decrypt w/ broken test_encrypt_decrypt 2017-09-28 16:10:50 -07:00
tuxxy 983dd3c4d5 Update _derive_path_key and add test_derive_path_key 2017-09-28 11:11:21 -07:00
tuxxy 37fc9d0dab Add test_split_path 2017-09-28 10:39:44 -07:00
jMyles 346f0a3d01 First draft of Character classes, along with a test of the moment that Alice finds Ursula. 2017-09-27 23:50:23 -07:00
tuxxy ef738d7cba Fix test_rekey_and_reencryption 2017-09-26 23:35:00 -07:00
tuxxy af0b298cbf Merge branch 'master' of github.com:tuxxy/nucypher-kms into umbral 2017-09-26 21:18:23 -07:00
tuxxy cbfea253b6 Add rekey test that isn't working 2017-09-26 21:04:39 -07:00
tuxxy b6e18ec085 Add symm_encrypt/decrypt methods in KeyRing w/ tests 2017-09-26 13:07:23 -07:00
jMyles ec01307dc9 PolicyManager for making PolicyGroups. 2017-09-26 12:59:06 -07:00
jMyles 9e314d8b81 Added more Policy and PolicyGroup logic. Now conforms to @tux's crypto APIs. 2017-09-26 12:59:06 -07:00
jMyles f6b9111b63 First swing at Policy and PolicyGroup. 2017-09-26 12:59:06 -07:00
jMyles 14ba51425e Another rough sketch of a test for KeyChain. 2017-09-26 12:59:06 -07:00
jMyles 8cf8daf872 Skeleton first test for Alice -=> Ursula. 2017-09-26 12:59:06 -07:00
jMyles 825616bf23 Re-introducing conftest and thus nkms.db. 2017-09-26 11:27:03 -07:00
tuxxy 2670ae7605 Add test for test_split_key_sharing 2017-09-26 10:24:05 -07:00
tuxxy 48fa10d7cb Add test for rekey and re-encryption 2017-09-26 10:14:38 -07:00
tuxxy 56bf4381eb Add tests for key generation and key decryption; serialization is already handled with EncryptedKey 2017-09-26 10:03:37 -07:00
tuxxy 1f53300abf Remove old encryption/decryption tests for KeyRing 2017-09-26 09:48:01 -07:00
tuxxy ecf3d82dc0 Use combine instead of build_secret in keypairs tests 2017-09-26 09:40:00 -07:00
tuxxy a43c587d0d Fix methods in EncryptingKeypair and fix split key reencryption tests 2017-09-25 16:28:53 -07:00
jMyles e89e1f2462 Skipping two more tests, as #53 appears to be happening again, at least some of the time. 2017-09-25 15:21:36 -07:00
jMyles 43c3095166 Tests now pass locally; travis config polished a bit. py_ecc added as requirement. 2017-09-25 15:06:08 -07:00
jMyles 5e80e4db00 Not using nkms.db anymore. 2017-09-25 14:41:47 -07:00
tuxxy 0e9315cd22 Add split_key reencryption test for EncryptingKeypair 2017-09-25 14:13:11 -07:00
tuxxy e1d649af53 Convert test_keypairs.TestEncryptingKeypair methods to use Umbral 2017-09-25 13:46:36 -07:00
tuxxy b848da27ea Add properties for each specific key in the KeyRing 2017-09-20 10:42:59 -07:00
tuxxy 1cde0b88e2 Enforce bytestring keys for msgpack
Use bytestring keys in test_header
2017-09-20 09:47:45 -07:00
tuxxy 1c4be8d541 Add testing steps for TestEncryptedFile 2017-09-20 09:37:49 -07:00
tuxxy d3e01cc98c Add monolithic test code 2017-09-20 09:16:20 -07:00
tuxxy 003f28c944 Merge branch 'master' of github.com:nucypher/nucypher-kms into header-object 2017-09-20 09:00:56 -07:00
tuxxy 03353876c8 Expose KeyRing method for generating random numbers 2017-09-20 08:51:14 -07:00
tuxxy 76c4047803 Merge branch 'master' of github.com:nucypher/nucypher-kms into header-object 2017-09-20 08:32:23 -07:00
tuxxy 7dd5fb18d8 Use a different keypair/keyring to verify signatures 2017-09-19 09:13:26 -07:00
tuxxy 603486b5d1 Update KeyRing tests to use the pubkey param on encryption
Fix keypair components
2017-09-19 09:02:26 -07:00
tuxxy d82dfabec0 Move keypair tests into test_keypairs and add tests for EncryptingKeypair 2017-09-19 08:49:31 -07:00
tuxxy 78483ff3e7 Add test_encryption and test_decryption 2017-09-19 08:27:05 -07:00
tuxxy 19ee10bd73 Add test_keyring with sign and verify tests 2017-09-18 11:06:37 -07:00
tuxxy 79b6f178a8 Add test_verification for test_signing_keypair 2017-09-18 10:55:44 -07:00
tuxxy f4cf9090b7 Add test for signing with SigningKeypair 2017-09-18 10:39:36 -07:00
tuxxy 28628c4c94 Add step1_update_header test placeholder 2017-09-18 08:29:21 -07:00
Michael Egorov 47e89a2245 Switch serialization format to Python bytes 2017-09-17 00:21:28 -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 e217e0a7a0 Create test_header file within 'storage' directory in tests 2017-09-14 15:47:48 -07:00
jMyles 83d6724f61 Nodes now share a Capability framework for determining how to interact. This includes the ability for a Node to announce itself as seed-only. Fixed #22. 2017-09-13 13:34:40 -07:00
jMyles a032a4ab05 Logic for a node to alert another node that it is seed-only. 2017-09-13 13:34:40 -07:00
jMyles ab6cbaead6 Seed-only Server now (at least seems) to actually refuse to store data. Fixes #23. 2017-09-13 13:34:40 -07:00
tuxxy 5b4db3ac94 Return length of msgpack encoded header instead of raw header 2017-09-11 13:14:47 -07:00
tuxxy 3c2fbac129 Add length checking to header tests 2017-09-11 13:07:29 -07:00
tuxxy 0feb161d7b Add check for num_keys in test_build_header_prealpha 2017-09-11 12:50:36 -07:00
tuxxy de59deb7b1 Add tests for _build_header and _read_header 2017-09-11 12:29:42 -07:00
tuxxy e9ce021283 Merge branch 'master' of github.com:nucypher/nucypher-kms 2017-09-05 18:54:29 -06:00
Michael Egorov 7f03612611 Msgpack to pack any objects in db 2017-09-05 16:53:18 -07:00
Michael Egorov ddd7a6d849 Need to be able to store dicts 2017-09-05 16:41:54 -07:00
Michael Egorov dcfec2d7ab Make the default db for all tests, remove after each test 2017-09-05 16:39:13 -07:00
Michael Egorov a6be3fb1d9 For all tests - use debug db, not the 'production db' 2017-09-05 16:08:30 -07:00
Michael Egorov abfbdc7c16 Del and contains for DB 2017-09-05 16:02:25 -07:00
tuxxy 1e1dfa319b Remove KMAC import from test_client 2017-09-05 17:01:47 -06:00
tuxxy 48e4ccfe06 Remove KMAC code 2017-09-05 17:00:44 -06:00
Michael Egorov 1219734484 Using lmdb as a dict-like storage 2017-09-05 15:43:16 -07:00
tuxxy 54f4eeaa44 Use path as bytes and fix tests /so far/ 2017-09-04 23:30:05 -06:00
tuxxy e702e3d5e0 Add test for splitting path with 'no path' 2017-09-04 13:08:45 -06:00
tuxxy 2d6c4327bb Add test for client._split_path method 2017-09-04 12:59:14 -06:00
Michael Egorov d33e678eca Merge branch 'client-wip' 2017-09-01 22:49:44 -07:00
tuxxy 493b3e2c08 Add tests for KMAC 2017-09-01 23:20:14 -06:00
jMyles c97e1290da Updated to reflect solution that we arrived at for PR 32 on kademlia. Also includes a test. 2017-09-01 17:15:50 -07:00
tuxxy 209fa8f1e7 Fix bugs and whatnot 2017-09-01 15:42:00 -06:00
tuxxy a0ee894d30 Add tests for decrypt_key 2017-09-01 14:09:31 -06:00
tuxxy dde40b211b Add is_pub param to _derive_path_key and update tests 2017-09-01 13:54:10 -06:00
tuxxy ff68cb64b5 Add tests for encrypt_bulk and decrypt_bulk 2017-09-01 13:40:24 -06:00
tuxxy 935327a7a6 Add tests for derive_key_path and encrypt_key 2017-09-01 13:28:24 -06:00
Michael Egorov e0a6574905 No secret key 2 needed for rekey 2017-08-25 22:12:21 -07:00
jMyles 23053ba979 In test_pre, made names more verbose, added comments, added newlines for emphasis. 2017-08-24 18:45:19 -07:00
Michael Egorov 2a515501f4 Remove print 2017-08-19 20:50:26 -07:00
Michael Egorov 9d25c7dbd1 pubkey bbs98 2017-08-19 20:12:47 -07:00
Michael Egorov e8c06b8349 Public key bbs98 2017-08-19 14:50:34 -07:00
Michael Egorov 8febc2798c PRE reencryption to pubkey 2017-08-19 13:17:54 -07:00
Michael Egorov 55dbfdd8e0 test_default_crypto - symmetric crypto 2017-08-19 12:05:18 -07:00
Michael Egorov f7a3eaa5ca Dummy test file 2017-08-18 10:28:29 -07:00