Commit Graph

549 Commits (12bcfe610eaee2b408477574aadd3a0a8d9331c1)

Author SHA1 Message Date
David Nuñez d0eecfb9c5 Improved version of CurveBN.hash_to_bn(), now called CurveBN.hash() 2018-05-02 01:25:42 +02:00
David Nuñez a73ad4a37b Raise ValueError in CurveBN constructor if the bignum is not in the curve 2018-05-02 01:25:42 +02:00
David Nuñez 84dcb4eaaf Removed unused import 2018-04-30 03:47:43 +02:00
David Nuñez 0b2e69749c Use Blake2b instead of SHA256 in unsafe_hash_to_point 2018-04-30 03:45:23 +02:00
David Nuñez 4036cdc8b0 Use cls instead of class name in class methods 2018-04-30 03:41:34 +02:00
David Nuñez e57cb01c23 Removed Point.get_order_from_curve 2018-04-30 03:33:56 +02:00
David Nuñez 197f08908b Remove params.CURVE_MINVAL_HASH constant 2018-04-30 03:30:42 +02:00
David Nuñez 08a9a41aad Constant-time version `CurveBN.hash_to_bn` 2018-04-30 02:56:26 +02:00
David Nuñez ce3caf9dfb Remove unused import hmac 2018-04-30 00:19:35 +02:00
Tux 60c7ef6c1c
Merge pull request #127 from tuxxy/cleanup
Cleanup pyUmbral codebase and resolve various issues
2018-04-27 10:57:55 -06:00
tuxxy 8261399a76 Make openssl _bn_is_on_curve vars more clear; check if randomly generated bn is on curve; update CurveBN docstring 2018-04-25 14:03:01 -06:00
David Nuñez aee01091fd Updated example 2018-04-25 12:02:35 +02:00
tuxxy 7eec2a0c75 Improve docstrings a bit 2018-04-24 17:02:23 -06:00
tuxxy 2b8fe610ca Include y-byte in Point.get_size 2018-04-24 16:54:11 -06:00
tuxxy 92ec0f2a8c Use better method for determining keysize in bytes (thanks @cygnusv) 2018-04-24 16:52:09 -06:00
tuxxy 6c2dd86522 Remove __hash__ on CurveBN and make Capsule._attached_cfrags a list
Remove unused Capsule._contents
2018-04-24 16:39:20 -06:00
tuxxy 150714fb00 Add get_size classmethods for CurveBN, Point, fragments, and
CorrectnessProof.

Fix syntax error
2018-04-24 16:28:01 -06:00
tuxxy 2dfb69e6b5 Cache pubkey on UmbralPrivateKey for #121 2018-04-24 12:41:42 -06:00
tuxxy 923ad2944f Rename BigNum -> CurveBN
Change all references from BigNum to CurveBN
2018-04-24 12:41:40 -06:00
tuxxy 6a1cb6832c Implement OpenSSL module in BigNum, Point, and key classes 2018-04-24 12:27:09 -06:00
tuxxy 920b705640 Create openssl module and add OpenSSL helper utilities
Use BN_cmp instead of BN_is_zero since it's not exposed

Add EC_POINT operations to openssl module
2018-04-24 12:24:20 -06:00
Justin Holmes c5a9fc6dd9
Merge pull request #129 from jMyles/master
Big renaming
2018-04-24 11:06:53 -07:00
David Nuñez 63f63b4235 Big renaming 2018-04-24 10:42:10 -07:00
David Núñez 01d8e6f112
Merge pull request #115 from cygnusv/cfrags-with-correctness-proof
Re-encryption with correctness proofs
2018-04-24 10:36:15 +02:00
David Nuñez c7d6644447 A simpler example for re-encryption metadata 2018-04-24 10:35:21 +02:00
David Nuñez 97f77cfcdc Fixed import 2018-04-24 10:23:40 +02:00
David Nuñez 316bb6b5de Test for decryption fail when there is no proof but it was expected 2018-04-24 10:23:30 +02:00
David Nuñez 02ea0aaf3b Added `check_proof` parameter to pre.decrypt 2018-04-24 10:21:43 +02:00
David Nuñez 4304a7da40 Improve readability of valid_kfrag_signature check 2018-04-24 01:18:26 +02:00
David Nuñez 12c6b5edd9 Make use of short-circuit logic 2018-04-24 00:55:48 +02:00
David Nuñez 7d9bc19fc4 Fix call to hash_to_bn 2018-04-23 23:13:11 +02:00
David Nuñez f1a847d219 Merge remote-tracking branch 'nucypher/master' into cfrags-with-correctness-proof
# Conflicts:
#	umbral/pre.py
2018-04-23 22:58:52 +02:00
Tux 47dd669302
Merge pull request #118 from tuxxy/arg-packing
Implement arg packing in hash_to_bn
2018-04-23 13:18:49 -06:00
David Nuñez 036b28571a Tests for multiple possibilities of serialization of cfrags with/without proofs and with/without metadata 2018-04-23 00:09:58 +02:00
David Nuñez 267e6ea383 Fix problem with serialization of proofs when optional 2018-04-23 00:09:22 +02:00
David Nuñez cb326488c9 Correctness proofs are now optional, although default setting is True 2018-04-22 23:43:39 +02:00
David Nuñez f646fdc241 More informative names in _verify_correctness() 2018-04-22 23:34:13 +02:00
David Nuñez b714f47d10 Some renaming 2018-04-19 13:14:33 +02:00
David Nuñez bdab54bb8d Refine correctness tests 2018-04-19 13:04:03 +02:00
David Nuñez b725a5e9ac pre._verify_correctness_proof() --> pre._verify_correctness() 2018-04-19 13:00:19 +02:00
David Nuñez 159b2dd720 Merge remote-tracking branch 'nucypher/master' into cfrags-with-correctness-proof 2018-04-19 00:23:48 +02:00
David Nuñez 3f03ce769d Fixed failing test 2018-04-19 00:23:35 +02:00
David Nuñez ab748c67b5 Check that an UmbralCorrectnessError is raised, and that it includes the incorrect cfrags 2018-04-18 23:39:46 +02:00
David Nuñez b39b1cadf9 I said no more Challenges! 2018-04-18 23:02:10 +02:00
David Nuñez c13da88c62 No more Challenge for you 2018-04-18 23:00:21 +02:00
David Nuñez fca002632e Enter UmbralCorrectnessError 2018-04-18 22:59:27 +02:00
David Nuñez 88961b35d3 Reformat 2018-04-18 22:40:05 +02:00
Tux 8e25cd2666
Merge pull request #111 from cygnusv/derive-keys-from-labels
Derive UmbralPrivateKeys from labels
2018-04-18 12:46:56 -06:00
David Nuñez 0e064c4046 Now re-encryption correctness is always verified during decryption 2018-04-18 15:14:10 +02:00
David Nuñez d87af0b129 Remove metadata as parameter of verification in tests 2018-04-18 12:00:26 +02:00