Commit Graph

434 Commits (fca002632eb06aeb9428f3b476e4356ad0bd9d87)

Author SHA1 Message Date
tuxxy d2f22c1438 Add test for ChallengeResponse serialization/deserialization 2018-01-15 17:11:44 -07:00
tuxxy fa0e3eba09 Add serialization/deserialization methods for ChallengeResponse 2018-01-15 17:11:29 -07:00
tuxxy e48ef28104 Add test for ReconstructedCapsule serialization/deserialization 2018-01-15 16:34:22 -07:00
tuxxy f418c728f3 Add serialization/deserialization methods for ReconstructedCapsule 2018-01-15 15:57:14 -07:00
tuxxy f133664d91 Add test for Capsule serialization/deserialization 2018-01-15 15:50:39 -07:00
tuxxy 632538707c Add serialization/deserialization methods for Capsule
Fix names
2018-01-15 15:48:54 -07:00
tuxxy 444800a919 Add test for CapsuleFrag serialization/deserialization 2018-01-15 15:40:24 -07:00
tuxxy 3b21a91ce0 Add serialization/deserialization methods to CapsuleFrag 2018-01-15 15:32:18 -07:00
tuxxy 9036cdc9aa Add test for KFrag serialization/deserialization 2018-01-15 15:20:18 -07:00
tuxxy df43bc3dd7 Add serialization methods to KFrag
Fix point_key deserialization to use BigNum
2018-01-15 15:06:25 -07:00
David Nuñez 1294cd4d32 Removed old comments 2018-01-10 16:15:41 +01:00
David Nuñez 381fe19b82 UmbralParameters are fixed before initialization of PRE 2018-01-10 16:14:00 +01:00
David Nuñez 9aedb37acc Added random h and u 2018-01-10 16:09:08 +01:00
David Nuñez 620bec85f8 Changed check_original to Capsule method (verify).
Renamed KFrag.check_signature to verify.
2018-01-10 15:57:53 +01:00
David Nuñez 146e139409 Changed check_kFrag_signature to a KFrag method (check_signature) 2018-01-10 15:52:43 +01:00
David Nuñez 63385d5fd4 Moved KDF to utils 2018-01-10 15:48:33 +01:00
David Nuñez ba3395728d Moved hash_to_bn to utils, and changed check_kfrag_consistency as a
KFrag method
2018-01-10 15:42:34 +01:00
David Nuñez 6d70c80541 Added cFrag list and capsule reconstruction to Capsule. Had to comment
most tests for a while because of the syntax changes
2018-01-09 11:02:53 +01:00
David Nuñez a324dec7c0 changed test_encapsulation to test_decapsulation_by_alice 2018-01-03 21:00:04 +01:00
David Núñez 07e626438d
Merge pull request #9 from jMyles/master
Some more naming things, some more questions.
2018-01-03 20:54:28 +01:00
jMyles dcd9b37d29 Changing argument order (keys first, capsule(s) second). Added type hint for ReconstructedCapsule. 2018-01-03 13:36:17 -05:00
jMyles 9b8bd2c235 Merge commit for naming changes contemporaneously made by @cygnusv. 2018-01-03 13:01:35 -05:00
jMyles e651b66f9f Type hints for decapsulate. 2018-01-03 12:47:15 -05:00
jMyles cfce67f4cd Let's still use PEP8 names for frag variables (ie, kfrags, not kFrags) 2018-01-03 12:46:52 -05:00
jMyles 90e284b4d8 ctxt_combined -=> capsule 2018-01-03 12:27:27 -05:00
jMyles fcadb3b2ab Some thoughts from my linter. :-) 2018-01-03 12:27:08 -05:00
jMyles 5c8259f026 A reconstructed capsule - a "recapsule" for short? 2018-01-03 12:26:16 -05:00
jMyles 0bf2ad8946 Calling it a "capsule" in encapsulation test. 2018-01-03 12:25:50 -05:00
David Nuñez 4b9f395f84 some renaming of internal variables, still a lot pending. 2018-01-03 01:33:39 +01:00
David Nuñez 6bbfa48d78 Adjust tests variables to current naming scheme (#7) 2018-01-03 00:54:41 +01:00
David Nuñez d40429b642 Renamed variables inside Capsule to improve readability 2018-01-02 11:25:34 +01:00
David Nuñez bae7388e7e Added test case for when Ursula sends random garbage as the result of
re-encryption
2018-01-02 11:01:24 +01:00
David Nuñez 828fcdb295 Added test case for kFrag consistency 2018-01-02 10:53:05 +01:00
David Nuñez 11bb2bc23b Added test case where Ursula tries to cheat by reusing a previous
reencryption
2018-01-02 10:43:50 +01:00
David Nuñez b67f85d05e Added check_kFrag_consistency method 2018-01-02 10:43:23 +01:00
David Nuñez 3969ee3948 some name changes as per #7 2017-12-30 01:18:23 +01:00
David Nuñez ce4abae06d RekeyFrag —> KFrag (issue #4) 2017-12-30 00:06:21 +01:00
tuxxy bead25c54c
Rename repo and README 2017-12-29 13:47:10 -07:00
tuxxy 741c76154c
Merge branch 'master' of github.com:nucypher/nucypher-kms-umbral 2017-12-28 18:36:46 -07:00
tuxxy 2b0fe1a9ea
Standardize compressed point serialized form with 0x02 and 0x03 2017-12-28 18:36:36 -07:00
David Nuñez 73a6169806 Test invalid points in the curve 2017-12-29 01:39:28 +01:00
David Nuñez 3673e35021 Added re-encrypt, combine, decapsulate_reencrypted, challenge, and
check_challenge
2017-12-29 01:13:16 +01:00
David Nuñez 49d501883e Testing from/to bytes in Point 2017-12-29 01:12:14 +01:00
tuxxy f7f9585da6
Use keysize from curve object where possible and perform length checking 2017-12-28 15:27:37 -07:00
tuxxy 9311c90b71
Raise ValueError if could not determine compressed or uncompressed point 2017-12-28 13:12:31 -07:00
tuxxy fe67072172
Implement class method from_bytes on Point which allows for compressed and uncompressed points 2017-12-28 13:03:44 -07:00
tuxxy fb097ec88d
Add from_bytes method on BigNum
Clean up some methods in BigNum
2017-12-28 12:38:16 -07:00
tuxxy eac72d5945
Add to_bytes method for BigNum 2017-12-28 12:30:21 -07:00
tuxxy 8cc120e8c1
Implement Point compression in to_bytes method 2017-12-28 12:20:01 -07:00
tuxxy 125721ddc8
Add some PEP8 fixes 2017-12-28 11:53:09 -07:00