Commit Graph

956 Commits (bench-kdf)

Author SHA1 Message Date
Tux ae9f4cea0b
Merge pull request #48 from jMyles/master
Frags to their own module; facility for default curve.
2018-02-07 20:13:19 -07:00
jMyles 3b81c94926 Moved frags to their own module. 2018-02-07 16:20:11 -08:00
jMyles e036a6edf9 Facility for setting default curve. 2018-02-07 16:20:11 -08:00
tuxxy e0a5853ae4 Fix typo _recontruct -> _reconstruct 2018-02-07 03:13:57 -07:00
tuxxy 86cdb5ccca Add __bytes__ to UmbralPublicKey 2018-02-07 03:13:25 -07:00
jMyles 5ed861639c The private key passed to decrypt() might be Bob's *or* Alice's. 2018-02-06 02:20:48 -08:00
Justin Holmes eeeb7806dc
Merge pull request #47 from jMyles/master
Changing "_reconstruct" to "_reconstruct_shamirs_secret" and all instances of "reconstructed" to "activated".
2018-02-03 18:57:50 -05:00
jMyles cba6f007f2 The method to make an activated Capsule is now Capsule._reconstruct_shamirs_secret(). 2018-02-02 16:56:13 -08:00
jMyles aabec3f4ce We don't actually "reconstruct" a Capsule. We activate it. 2018-02-01 16:16:12 -08:00
Tux 18af522fd0
Merge pull request #46 from jMyles/master
Using character names for encapsulate and related Capsule logic.
2018-02-01 11:29:50 -07:00
jMyles e3b853cb4d Using character names for encapsulate and related Capsule logic. 2018-02-01 10:21:39 -08:00
Tux 61368df462
Merge pull request #45 from jMyles/master
Removing "PRE" dependency injection into PRE instance.
2018-02-01 10:37:13 -07:00
jMyles b9c24203cf Removing "PRE" dependency injection into PRE instance. 2018-02-01 09:06:11 -08:00
Tux 781f9930aa
Merge pull request #43 from tuxxy/params-fix
Have Umbral keys not require UmbralParameters to be passed
2018-02-01 03:47:58 -07:00
tuxxy a98d18d084 Set UmbralParameters as an attribute on Umbral keys w/ test updates 2018-02-01 03:21:07 -07:00
tuxxy 512bf91297 Remove manual specification of umbral params in PRE._open_capsule 2018-02-01 01:52:11 -07:00
tuxxy 73666b2154 Have tests not pass in params by default except for one 2018-02-01 01:47:59 -07:00
tuxxy 0d5a68611f Use default UmbralParameters if none were specified for umbral keys 2018-02-01 01:47:41 -07:00
tuxxy bc0f169a43 Move UmbralParameters class to params.py 2018-02-01 01:47:06 -07:00
Tux 78f259db97
Merge pull request #41 from cygnusv/master
Deterministic generation of parameters h and u
2018-01-31 11:35:08 -07:00
David Nuñez 8761d7828a Using a common domain_seed 2018-01-31 16:46:35 +01:00
David Nuñez c79b537e01 Changed "constant" to "label" in unsafe_hash_to_point 2018-01-31 16:46:35 +01:00
David Nuñez ba2a93e9bf Remove the try-except-pass pattern using more specific exceptions 2018-01-31 16:46:35 +01:00
David Nuñez 84036b99f6 Extended previous test with another exception subtype 2018-01-31 16:46:35 +01:00
David Nuñez 1c300992eb Test for catching more specific exception wrt to invalid EC points 2018-01-31 16:46:35 +01:00
Tux 8764004e92
Merge branch 'master' into master 2018-01-31 01:40:21 -07:00
David Nuñez 78bc6fffad Renamed hash_to_fn to unsafe_hash_to_bn
Just in case someone tries to use it with secret data
2018-01-31 09:30:12 +01:00
David Nuñez 2f5f473c10 Fixing conflicts 2018-01-31 09:24:37 +01:00
David Nuñez e81718140f Fixing conflicts 2018-01-31 09:22:55 +01:00
Tux 6bd90f424b
Merge pull request #38 from jMyles/unifiedCapsule2
Unifying Capsule and ReconstructedCapsule into a single Capsule class.
2018-01-31 01:06:15 -07:00
jMyles 422ae94294 Moving opening and decrypting logic over to PRE. 2018-01-30 23:21:02 -08:00
jMyles cd64f1d89b No more "is_reconstructed" needed. 2018-01-30 23:19:49 -08:00
jMyles 218f33a690 Reintroducing... PRE.decrypt! 2018-01-30 23:19:22 -08:00
jMyles 7b29302f10 Better names for some things. 2018-01-30 23:18:43 -08:00
jMyles 54acbf3fcf New, longer representation of a reconstructed (activated?) Capsule. 2018-01-30 22:39:54 -08:00
David Nuñez cd22679c44 Corrected error message 2018-01-30 13:08:30 +01:00
David Nuñez f9cf9ddbf3 Deterministic generation of parameters h and g
h and u are now deterministically generated as hashes of g plus a
per-param label, using the Utils.hash_to_point method
2018-01-30 13:03:41 +01:00
David Nuñez 18e596abda Cleaned old prints 2018-01-30 12:51:06 +01:00
David Nuñez 201a40132f Test to check compliance of SECP256k1 generator wrt to SEC standard 2018-01-30 12:23:58 +01:00
David Nuñez b7bd6e8d85 Added hash_to_point function 2018-01-30 12:21:33 +01:00
jMyles 40d3bdca06 A test for the unequal cases. 2018-01-29 07:51:26 -08:00
jMyles d95bedaef2 Methods for establishing equality. 2018-01-29 07:51:26 -08:00
jMyles 0df84c4104 Test for compatibility from reconstructed bytes. 2018-01-29 07:51:26 -08:00
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