Commit Graph

692 Commits (d645d75b2bf63cc9088590860dd21f3d9254b16d)

Author SHA1 Message Date
David Núñez d645d75b2b Fix previous bug in Point.from_affine and Point.from_bytes 2018-07-16 16:13:35 +02:00
David Núñez b3c9ff6e24 Add failing test for valid points with xcoord > order of curve 2018-07-16 16:13:35 +02:00
David Núñez 73252d7de6 Add test for invalid point_at_infinity 2018-07-16 16:13:30 +02:00
Tux 1ec8621b85
Merge pull request #194 from nucypher/nucypher-depend
Some commits from 169 that slipped under the radar.
2018-07-12 17:44:13 -06:00
jMyles c46785ca17 Constant time comparison for KFrag. 2018-07-12 02:35:16 -07:00
jMyles 1aaaf7866c Using _id for KFrag __hash__ instead of full bytes. Also test for the same. Also lots of cleanup. 2018-07-12 02:34:01 -07:00
jMyles aeab6e93af expected_bytes_length can now take is_compressed. test for casting UmbralPublicKey.to_bytes() with is_compressed. 2018-07-12 02:27:05 -07:00
jMyles 9f7a0e10f8 Adds is_compressed to UmbralPublicKey.to_bytes() 2018-07-12 02:22:31 -07:00
Tux 23bc511f46
Merge pull request #189 from KPrasch/monkeytype
PEP 484 Type Hints for pyUmbral
2018-07-09 14:52:10 -06:00
Kieran Prasch 53ce33e462 Relocate stand-alone fixtures 2018-07-09 12:26:36 -06:00
Kieran Prasch 19b1991de6 Hand-picked type data to follow-up monkeytype 2018-07-09 12:26:32 -06:00
Kieran Prasch cbfe8573e6 Tone-down mypy checks 2018-07-09 12:13:41 -06:00
Kieran Prasch befb0c30d7 skip openssl type checks; update mypy ini config. 2018-07-09 12:13:40 -06:00
Kieran Prasch 2fe18c7144 Initial bulk application of type hints to pyUmbral 2018-07-09 12:11:43 -06:00
Tux 062d4d9a28
Merge pull request #178 from tuxxy/curve-object
Refactor pyUmbral to use Curve object
2018-07-09 11:16:49 -06:00
tuxxy a9236f0b93 Update python notebook example 2018-07-09 11:12:04 -06:00
tuxxy b7de678b5a Update sphinx docs 2018-07-07 16:31:39 -06:00
tuxxy 4a20ef0692 Add __repr__ for Curve object 2018-07-07 13:56:07 -06:00
tuxxy a717a87384 Use singleton model for curves; allow users to import instances 2018-07-07 13:56:07 -06:00
tuxxy e2d1352abf Refactor openssl, point, etc to use a single curve object -- fixes memory leak 2018-07-07 13:56:07 -06:00
tuxxy 4d1ae51478 Make simple_api tests pass 2018-07-07 13:56:07 -06:00
tuxxy ac0e65b5e3 Make test_capsule_correctness work 2018-07-07 13:56:07 -06:00
tuxxy 5a4984fd4e Fix test_config 2018-07-07 13:56:07 -06:00
tuxxy 41cb180fe1 Make the tests run in a failing state, but runnable 2018-07-07 13:56:06 -06:00
tuxxy e65669e6c1 Add generator to Curve 2018-07-07 13:56:06 -06:00
tuxxy e5924f79be Add simple __eq__ method for comparing two Curve objects 2018-07-07 13:56:06 -06:00
tuxxy f80f128927 Create supported_curves property and check values in test 2018-07-07 13:56:06 -06:00
tuxxy 321b4a5bf4 Add test for curve whitelist 2018-07-07 13:56:06 -06:00
tuxxy e8c5c1b449 Raise ValueError if Curve is instantiated with unsupported nid 2018-07-07 13:56:06 -06:00
tuxxy 10bd7a9614 Add whitelist Curve objects 2018-07-07 13:56:06 -06:00
tuxxy 2a73f7804f Add basic Curve object structure and CURVE_WHITELIST dict 2018-07-07 13:56:06 -06:00
Tux e9e7032924
Merge pull request #188 from KPrasch/py37
Python 3.7 Support[Linux]
2018-07-07 13:44:43 -06:00
Tux 11c8504480
Merge pull request #187 from KPrasch/metrics
Reencryption Performance Benchmarking
2018-07-07 13:44:31 -06:00
Kieran Prasch b448176a6c Fix PEP 508 markers 2018-07-06 13:46:10 -07:00
Kieran Prasch e3012258ae Do not restore cache for bundle tests 2018-07-06 13:28:25 -07:00
Kieran Prasch fe356c9649 Switch to pipenv sync 2018-07-06 13:28:22 -07:00
Kieran Prasch 96d7ea54c7 Add python 3.7 support. 2018-07-06 13:27:06 -07:00
Kieran Prasch ae435118c8 Run fewer benchmarks to save memory on small resource classes; Fix error in firehose 2018-07-06 11:53:51 -07:00
Kieran Prasch a56fbe1d30 Insert new workflow jobs; Fix yml line-breaks; amend gitignore. 2018-07-05 19:58:02 -07:00
Kieran Prasch 4be4f2529b Remove tests scripts module 2018-07-05 19:03:22 -07:00
Kieran Prasch 4f897b326e Add benchmarking requirements and deps. 2018-07-05 19:01:59 -07:00
Kieran Prasch 3f2c8b0447 Add reencryption benchmarking module, rename scripts to metrics 2018-07-05 18:54:42 -07:00
Kieran Prasch 060d9fd1f3 Fix cicrcleCI cache key for doctest build. 2018-07-03 12:01:05 -07:00
David Núñez 96f63ebdd6
Merge pull request #173 from KPrasch/docs
Update and test existing documentation snippets
2018-07-03 19:53:32 +02:00
Kieran Prasch 16dd9f16aa Remove duplicated doc snippets, Create test execution groups. 2018-07-03 10:49:49 -07:00
Kieran Prasch 6e02037dcc Add missing capsule doctest 2018-07-03 10:49:49 -07:00
Kieran Prasch 43cc291830 M -> threshold; respond to rfc. 2018-07-03 10:49:49 -07:00
Kieran Prasch bd1959c984 Store doctest test results. 2018-07-03 10:49:49 -07:00
Kieran Prasch 5c44d17875 Add doctests to build workflow 2018-07-03 10:49:47 -07:00
Kieran Prasch 89ec7a6f37 Update and test existing documentation with sphinx doctest 2018-07-03 10:48:08 -07:00