Commit Graph

274 Commits (9590bc4a604e11b03c6505ba24b8d32510f57e5f)

Author SHA1 Message Date
Kieran R Prasch 9590bc4a60 restores commented out umbral tests to latest umbral api. 2018-02-11 03:02:52 -08:00
Kieran R Prasch 2cef73c58c Adds comment for expected test failure. 2018-02-11 02:11:06 -08:00
Kieran R Prasch 608d97e081 Merge remote-tracking branch 'upstream/master' into umbral_tests 2018-02-11 01:59:01 -08:00
Kieran R Prasch 1b5e46f9e5 Restores test_cheating_ursula_sends_garbage with the latest interface. 2018-02-11 01:55:20 -08:00
Justin Holmes b85bf19e44
Merge pull request #62 from KPrasch/umbral_tests
Reintroduces test sending Ursula a fake k_frag
2018-02-10 22:53:27 -05:00
tuxxy 0d4ad0d3e6 save_key -> to_bytes, load_key -> from_bytes 2018-02-10 20:21:16 -07:00
tuxxy eb194bcf1a Use as_b64 instead of as_bytes 2018-02-10 20:13:31 -07:00
Kieran R Prasch 7abeb8133e Reintroduces test for sending fake k_frag to ursula 2018-02-10 19:12:22 -08:00
Kieran R Prasch 6e03bafb13 Parametrizes point serializer tests. 2018-02-10 16:27:45 -08:00
Kieran R Prasch fecc2d9ffa Additional coverage for ec Point serializer edge cases and exceptions. 2018-02-10 15:28:46 -08:00
Kieran R Prasch 0f59cf5729 Additional point and bignum assertions for type checking. Marks xfail for multicurve simple api. 2018-02-10 14:19:47 -08:00
Kieran R Prasch c97a4b165f removes old test module. 2018-02-10 04:49:51 -08:00
Kieran R Prasch 84751c3332 Mocked openssl backend test pass through and constant time operations. 2018-02-10 04:49:51 -08:00
Kieran R Prasch 003e0f16b1 Test coverage for comparing disperate types (bn, int); Patches actual openssl equality into mock backend. 2018-02-10 04:49:51 -08:00
Kieran R Prasch 780bd4af31 tests simple api on multiple curves. 2018-02-10 04:49:51 -08:00
Kieran R Prasch 66f7b39287 Additional mock openssl commentary. 2018-02-10 04:49:51 -08:00
Kieran R Prasch cf4a7dd729 Patched openssl bn_mod_inverse invokes actual function. 2018-02-10 04:49:51 -08:00
Kieran R Prasch 3591bf756e Moving point tests into module. 2018-02-10 04:49:51 -08:00
Kieran R Prasch 004247ce5d Adds test coverage for bignum arithmetic with mock openssl backend 2018-02-10 04:49:51 -08:00
Kieran R Prasch 7387e51a9e Splits point test into submodules, replaces test globals with module fixtures. 2018-02-10 04:49:51 -08:00
Kieran R Prasch 26875da4a2 Refactors mocked openssl fixture for reusability; additional tests for ec point arithmetic. 2018-02-10 04:49:51 -08:00
Kieran R Prasch 97cceedc30 Creates opeenssl mocked backend pytest fixture. 2018-02-10 04:49:51 -08:00
tuxxy 62f21bec48 Add codecov to Pipfile
Codecov attempt #2
2018-02-10 03:28:48 -07:00
tuxxy f37618cd67 Add codecov 2018-02-10 03:17:40 -07:00
tuxxy 2ad0f21001 Add build status badge 2018-02-10 03:12:05 -07:00
tuxxy 6710f66313 Add travis config file
Add travis config file

Travis attempt #2

Travis attempt #3

Travis attempt #4

Travis attempt #5
2018-02-10 03:07:21 -07:00
tuxxy aa3c11811e Add as_bytes to UmbralPublicKey.load_key 2018-02-09 22:01:15 -07:00
jMyles c67849897c SECP256K! is now default if set_default_config() is run without argument. Also, the curve is returned. 2018-02-09 20:57:17 -08:00
tuxxy b2e2ffcb31 Clarify default_curve error 2018-02-09 21:30:25 -07:00
tuxxy 0cb397bd30 Allow bytes in UmbralPublicKey.load_key 2018-02-09 21:28:50 -07:00
Tux f2a230415f
Merge pull request #57 from jMyles/config
Changes to default curve when none is set.
2018-02-09 01:54:51 -07:00
Tux 2b210a0420
Merge pull request #55 from KPrasch/point_tests
Point.__mul__ unit and regression test; Pipenv dependency management.
2018-02-09 01:51:38 -07:00
Tux 0f8a76aa5b
Merge pull request #53 from tuxxy/curve-agnosticism
Implement curve agnostic behaviors in operations
2018-02-09 01:50:58 -07:00
jMyles 5501a75392 Tests for default curve when no default curve is set. 2018-02-08 21:41:10 -08:00
jMyles 0d5ab8a597 Without a default curve, getting the default curve or params now emits a warning (instead of raising an exception) and sets the curve to SECP256K1. 2018-02-08 21:40:02 -08:00
Kieran R Prasch 6cc6298c80 Removes msgpack-python dep; moves pytest mock to dev deps. 2018-02-08 19:39:48 -08:00
Kieran R Prasch 1cb9aba0a9 Adds a pair of tests for Point.__mul__. 2018-02-08 18:57:59 -08:00
Kieran R Prasch 13abb37f43 pipenv support for dependency management, adds pytest mock. 2018-02-08 18:55:07 -08:00
tuxxy efacd03e3e Add to_cryptography_pub_key method to Point and add tests
Fix naming of to_cryptography_pub_key
2018-02-08 17:06:47 -07:00
tuxxy e7d2a53277 Add to_cryptography_priv_key method and test for BigNum 2018-02-08 16:47:24 -07:00
tuxxy f6327da4d9 Take params as second argument in unsafe_hash_to_point 2018-02-08 16:31:54 -07:00
tuxxy c6bbb37b32 domain_seed -> parameters_seed 2018-02-08 16:28:47 -07:00
tuxxy 4154fe1253 Add test for pubkey encryption (encryption for bob) 2018-02-08 15:46:42 -07:00
tuxxy f0af54f416 Move PRE module functions to the top of the file 2018-02-08 15:46:42 -07:00
tuxxy 2b45e73342 Move hash_to_bn and unsafe_hash_to_point to bignum and point modules respectively 2018-02-08 15:46:42 -07:00
tuxxy 8efafb79f8 Create util function to accurately get curve keysize 2018-02-08 15:46:42 -07:00
tuxxy db4842370e Use BytesIO to deserialize fragments based on curve keysize 2018-02-08 15:46:41 -07:00
tuxxy a43f6ab153 Use SHA512, CURVE_KEY_SIZE_BYTES, and CURVE_MINVAL_SHA512 in crypto material hashing functions 2018-02-08 15:46:41 -07:00
tuxxy 6932a88ca1 Add CURVE_KEY_SIZE_BYTES to params 2018-02-08 15:46:41 -07:00
tuxxy bd2af003a1 Add CURVE_MINVAL_SHA512 to params 2018-02-08 15:46:41 -07:00