Commit Graph

129 Commits (b03c83eb938d7a9365414f4f3b9f63cab1d4ff00)

Author SHA1 Message Date
tuxxy 4a244a01a3 Use arg packing in hash_to_bn and check if item is bytes before hashing
Use default_params
2018-04-17 14:57:33 -06:00
David Nuñez a03837dc72 More renaming 2018-04-17 13:02:04 +02:00
David Nuñez 3610004773 pre._check_challenge() --> pre._verify_correctness_proof() 2018-04-17 12:43:08 +02:00
David Nuñez e275cb66c6 pre._challenge() --> pre._prove_correctness 2018-04-17 12:29:44 +02:00
David Nuñez 1a8bb867ae Refactored pre.ChallengeResponse into fragments.CorrectnessProof 2018-04-17 12:17:14 +02:00
jMyles caea15cb7a Fixing parameter order and cleaning up some imports. 2018-04-02 19:00:41 -07:00
tuxxy 34807581e6 Inject params on encrypt, decrypt, and open_capsule 2018-04-02 18:16:43 -07:00
David Nuñez 42e75127ac k_frag, c_frag --> kfrag, cfrag 2018-03-28 20:59:28 -07:00
David Nuñez 010daae066 Made pre.challenge and pre.check_challenge private 2018-03-18 01:53:32 +01:00
David Nuñez 5be059770e Made _decapsulate_reencrypted private 2018-03-18 01:49:52 +01:00
David Nuñez 0639854a85 Changed order of arguments in pre.decrypt() 2018-03-18 01:48:05 +01:00
David Nuñez 17467431ca Dropped pre.gen_priv() and pre.priv2pub()
Resolves #90
2018-03-15 11:07:56 +01:00
David Nuñez 5bd0503ca8 Improvements to the tests 2018-03-14 12:00:04 +01:00
David Nuñez 3990b7a499 Fixed notation of scalar multiplication operations 2018-03-14 10:37:41 +01:00
David Nuñez a66cf59c48 SHA512 --> BLAKE2b
Resolves #60
2018-03-13 15:43:25 +01:00
David Nuñez 43d1ab206b Added metadata as optional input to the challenge protocol 2018-03-13 15:33:23 +01:00
David Nuñez dda693450e KFrag ids can only be computed by Bob now 2018-03-13 13:08:30 +01:00
tuxxy 1d96f84fca Uses a constant CHAHCA20_KEY_SIZE instead of unused SecretBox constant 2018-03-07 18:37:33 -07:00
David Nuñez 1678a6cc27 Some changes to variable names 2018-02-27 09:08:27 +01:00
David Nuñez c1a30c3056 Removed KFrag consistency checks (#77) 2018-02-26 15:36:56 +01:00
David Nuñez fba9b0bba1 Original capsule components are now authenticated by the AEAD 2018-02-26 10:29:02 +01:00
David Nuñez 5a5d239ec7 Method _original_to_bytes to get bytes representation of original components of a capsule 2018-02-26 10:26:50 +01:00
David Nuñez e1a3c03184 Missing check in the challenge protocol 2018-02-26 10:05:01 +01:00
jMyles a0edb155e5 Capsule with wrong Type raises TypeError now, not ValueError. 2018-02-22 23:19:47 -08:00
jMyles 2cedc7689e @KPrasch is right - no need for those square brackets. And a test too. 2018-02-22 18:53:34 -08:00
jMyles 0015ca5fcb Back to comparing lists of components for Capsule. 2018-02-22 18:21:30 -08:00
jMyles e0a069bb9a umbral.umbral -=> umbral.pre 2018-02-22 18:21:30 -08:00
Kieran R Prasch 97cceedc30 Creates opeenssl mocked backend pytest fixture. 2018-02-10 04:49:51 -08:00
tuxxy d65829f977
Add empty pre.py file 2017-12-27 07:08:52 -07:00