Commit Graph

211 Commits (e1fedf15e1bfc4fbb362b87f43f2b3ebbef8aa0f)

Author SHA1 Message Date
jMyles 3fb70db054 Better test for equality for original capsule. 2018-01-29 07:51:26 -08:00
jMyles 5d9696a29b Typo pointed out by @cygnusv. 2018-01-29 07:36:42 -08:00
jMyles f375e99b32 Capsule.get_contents() is now Capsule.decrypt() and Capsule._get_contents(). 2018-01-28 21:07:48 -08:00
jMyles b6624bc688 Hanging contents() that was no longer used. 2018-01-28 21:07:30 -08:00
jMyles 007ef5d626 Test now uses decrypt() instead of get_contents(). 2018-01-28 21:07:14 -08:00
jMyles f3be38b634 Removing Capsule.open() 2018-01-28 18:08:01 -08:00
jMyles b4744d8731 pre.decrypt_reencryted moved to capsule.get_contents 2018-01-28 18:02:44 -08:00
jMyles 5e66579d4d Made decapsulate_reencrypted public. 2018-01-28 17:50:49 -08:00
jMyles 3311bb6b8e Removed random from test imports. Also some linting. 2018-01-28 10:28:31 -08:00
jMyles 68c9c27bbb Custom exception & raising it in proper place. Closes #39. 2018-01-27 18:27:50 -08:00
jMyles 211a920cbe Test for invalid capsule raising an exception. 2018-01-27 18:27:37 -08:00
jMyles 0240b0c1b2 Removing logic branch for the case where we don't have original capsule data. Closes #37. 2018-01-27 18:11:39 -08:00
jMyles d943ba297a Moving _reconstructed_bytes into to_bytes. 2018-01-26 21:53:24 -08:00
jMyles 0eef0c289c Touching up TODOs. 2018-01-26 21:48:00 -08:00
jMyles c0782a2696 Single from_bytes method. See https://github.com/nucypher/pyUmbral/pull/24#discussion_r162469880 2018-01-26 21:37:01 -08:00
jMyles feb967da72 Prviate reconstruct method. 2018-01-26 21:27:29 -08:00
jMyles 84b4f07d7a A quick sketch of logic for handling cases where we have a Capsule but no original components. See #37. 2018-01-26 21:27:29 -08:00
jMyles a0530ec7b3 Private component names. 2018-01-26 21:27:29 -08:00
jMyles cc7649ff2c Removing methods for Point addition. 2018-01-26 21:27:29 -08:00
jMyles f792fdf54e PRE is no longer injected. 2018-01-26 21:27:29 -08:00
jMyles 6a18e5f420 Method to get components for comparison. 2018-01-26 21:27:29 -08:00
jMyles 33e655a403 We don't know for sure that we'll have the original data to check - maybe kick this out to a separate method? 2018-01-26 21:27:28 -08:00
jMyles 2e2362e856 Using method to get points. 2018-01-26 21:27:28 -08:00
jMyles 22007a26cc More fine-tuning of names. 2018-01-26 21:27:28 -08:00
jMyles 9dee6dcccc Making byte attributes private. 2018-01-26 21:27:28 -08:00
jMyles cb32627dec Methods from instantiating from bytes of either original or reconstructed; introducing concept of "contents." 2018-01-26 21:27:28 -08:00
jMyles 0d2a697916 New Capsule.__init__ allows instantiation from either component set. 2018-01-26 21:27:28 -08:00
jMyles 50f416d85e Some PEP8 cleanup. 2018-01-26 21:27:28 -08:00
jMyles da71b5c377 We're not using default_backend at the moment. 2018-01-26 21:27:28 -08:00
jMyles c3346ca53f Point.from_bytes is now a classmethod. 2018-01-26 21:27:28 -08:00
jMyles a11ea36e61 We can get a Capsule from either original or reconstructed bytes. 2018-01-26 21:27:28 -08:00
jMyles 6c0f260446 Comparing newly reconstructed Capsule (which is just a Capsule) to original. 2018-01-26 21:27:28 -08:00
jMyles 418f7be540 Test for single capsule, not ReconstructedCapsule. 2018-01-26 21:27:28 -08:00
tuxxy b22508e2d9 Fix UmbralParameters on PRE.__init__ 2018-01-26 01:31:25 -07:00
Tux ceec8ad8ed
Merge pull request #33 from tuxxy/aead-dem
Implement cryptography.io's AEAD for ChaCha20-Poly1305 in the UmbralDEM
2018-01-26 00:21:31 -07:00
tuxxy 050b0b3bdd Use constants in tests and add comment 2018-01-25 17:06:17 -07:00
tuxxy 6379605eb5 Merge branch 'master' of github.com:nucypher/pyUmbral 2018-01-24 18:19:29 -07:00
tuxxy 5043a49488 Fix UmbralParameters on PRE.__init__ 2018-01-24 18:18:22 -07:00
Tux fd0879def1
Merge pull request #34 from tuxxy/static-h-u
Set UmbralParameters `h` and `u` statically to the curve generator point
2018-01-24 18:03:57 -07:00
tuxxy 831a2b6d67 Set params h and u to generator point and use default UmbralParameters on __init__ 2018-01-24 15:16:34 -07:00
tuxxy 405a93cd35 Add tests for DEM and some fixes 2018-01-24 14:52:49 -07:00
tuxxy c4c0d93b05 Switch to cryptography.io ChaCha20-Poly1305 AEAD 2018-01-24 14:34:14 -07:00
Tux d91b0bf310
Merge pull request #32 from nucypher/kms-depend
Merge #29 into master
2018-01-23 20:02:22 -07:00
Tux 21c0a32bd3
Merge pull request #29 from tuxxy/kms-depend
Implement Simple API to PRE and add UmbralDEM class
2018-01-23 20:01:12 -07:00
tuxxy f7687d0f81 Name unused variables
Add more unused variables
2018-01-23 20:00:15 -07:00
tuxxy b1f04f7d54 Calculate recipient public key from recipient's private key in decrypt_reencrypted 2018-01-23 13:50:14 -07:00
tuxxy 4974686d30 Use priv/pub_key_alice in test 2018-01-23 13:46:12 -07:00
tuxxy 3eafb28897 Add tests and fix a few things 2018-01-23 04:28:51 -07:00
tuxxy 250cf3c0ee Add simple API 2018-01-23 03:13:08 -07:00
tuxxy 74f989e887 Use basic DEM principles
Had a call with David, we discussed how we're implemting the needed API
changes. We're going to use Umbral for Michael's API request. This DEM
will be kept simple and simply use NaCl Salsa20-Poly1305 SecretBox.

Add KEYSIZE attr on UmbralDEM
2018-01-23 02:46:01 -07:00