Commit Graph

202 Commits (e6c455e8bb0eff460d262d3a4b235e84c7aad4da)

Author SHA1 Message Date
jMyles e6c455e8bb A little more sketching. What will the values of _key_mapping be? 2017-10-06 17:42:18 -07:00
jMyles 05dad4b177 Beginning of new KeyRing model per my conversation with @tuxxy. 2017-10-06 17:42:18 -07:00
tuxxy ad74c6aad1 Add test_ecies_rekey 2017-10-05 19:38:44 -06:00
tuxxy 5bb6f037e2 Add test_ecies_encapsulate and ecies_test_decapsulate 2017-10-05 19:33:04 -06:00
tuxxy 484e4908a3 Use proper elliptic_curve element class 2017-10-05 19:02:07 -06:00
tuxxy 765640ca54 Add ecies_combine method 2017-10-05 18:40:06 -06:00
tuxxy 35176d950d Add ecies_split_rekey method 2017-10-05 18:35:05 -06:00
tuxxy cfa8ffaf84 Add ecies_reencrypt method 2017-10-05 18:27:39 -06:00
tuxxy 45c8ee8d2b Add ecies_rekey method w/ serialization 2017-10-05 18:03:53 -06:00
tuxxy 1c5b55b52f Handle serialization bytes <--> elliptic_curve.Element
Fix formatting
2017-10-05 17:42:02 -06:00
tuxxy a245dba04c Add pub_bytes2ec 2017-10-05 17:32:40 -06:00
tuxxy 58f632b7a3 Add priv_bytes2ec method: 2017-10-05 17:23:30 -06:00
tuxxy a5cd0759b1 Add priv2pub method 2017-10-05 17:03:23 -06:00
tuxxy eb74e98c90 Add ECIES de/encapsulate methods and gen_priv methods and format code better 2017-10-05 16:58:14 -06:00
tuxxy 82928a78a3 Add symm_encrypt and symm_decrypt to crypto 2017-10-05 16:36:20 -06:00
tuxxy 56baf587a1 Add empty crypto.py file 2017-10-05 16:00:59 -06:00
jMyles 208db55d4c Removed the awful list comp tuple pack in favor of @michwell's much better way. If anybody ever accuses me of writing that thing, I reserve the right to say I was hacked. 2017-10-04 13:08:41 -07:00
jMyles 004437e8f6 Policy models are now worked out such that the TreasureMap is stored on a 'free tier' k:v DHT. 2017-10-03 21:13:46 -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 71d8ed4eca Use SigningKeypair.digest in KeyRing.sign 2017-10-03 15:58:59 -06:00
tuxxy 0a5abfcd28 Add digest function to handle iterables in SigningKeypair 2017-10-03 15:49:22 -06:00
Michael Egorov 23720404cb Change comment about ekey[1] = None 2017-09-30 20:19:52 -07: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 7062c6b186 Decrypt re-encrypted data 2017-09-30 15:13:47 -07:00
Michael Egorov 9c8746e370 Rekey 2017-09-30 13:59:37 -07:00
Michael Egorov 572442b8cb Encrypt/decrypt with a serializing keypair 2017-09-29 23:18:20 -07:00
Michael Egorov 78e88010b4 Lazy generation of pubkey 2017-09-29 19:44:26 -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 9f3c2547f3 Add decrypt method placeholder 2017-09-28 14:11:26 -07:00
tuxxy 53821e92da Add encrypt method code and update generate_key to accept pubkeys 2017-09-28 13:09:59 -07:00
tuxxy d4a4bd5066 Add encrypt method 2017-09-28 11:12:14 -07:00
tuxxy 983dd3c4d5 Update _derive_path_key and add test_derive_path_key 2017-09-28 11:11:21 -07:00
tuxxy 25ee602f13 Add _split_path method 2017-09-28 10:32:37 -07:00
tuxxy 6ec873f008 Create a KeyRing object on __init__ 2017-09-28 10:03:54 -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
jMyles c0d401c9ca Makes Policy.id a property to prepare for id building by Bob and Ursula. 2017-09-27 09:58:19 -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
tuxxy b3f0335679 Allow generate_key to have a pubkey param 2017-09-26 13:06:52 -07:00
jMyles ec01307dc9 PolicyManager for making PolicyGroups. 2017-09-26 12:59:06 -07:00
jMyles c55c0302e7 Using keccak-256 for hashing. Closes #45. 2017-09-26 12:59:06 -07:00