Commit Graph

126 Commits (56768baee461da09b101e0a46401a114249ff958)

Author SHA1 Message Date
tuxxy 2b7742f9d2 Add tests 2018-03-07 18:30:40 -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
jMyles 1dabacba37 Fixing some imports. 2018-02-23 01:00:16 -08:00
jMyles 4420e27f21 Capsule creation with the wrong type now raises TypeError - updating a test to reflect that. 2018-02-23 00:59:55 -08:00
jMyles 86074d71da Test showing that a Point can't be made if it's not on its curve. 2018-02-22 23:31:18 -08:00
jMyles fab9270c71 Test showing that a Point can't be made if it's not on its curve. 2018-02-22 23:30:40 -08:00
Kieran Prasch 2fe575ce6d Reorganizes tests into a descriptive namespace. 2018-02-22 22:24:09 -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 e0a069bb9a umbral.umbral -=> umbral.pre 2018-02-22 18:21:30 -08:00
Kieran R Prasch 47e6275cf5 Ensures simple api is testable on multiple curves, with a test session default set. 2018-02-13 13:44:21 -08:00
Kieran R Prasch 2678470a30 Sets the default curve for tests once. (except for multicurve tests.) 2018-02-13 13:30:52 -08:00
jMyles 501f0c4ba6 Changing all implemented instances of get_pub_key() to get_pubkey() 2018-02-13 12:50:44 -08:00
jMyles d6527e47fd get_pubkey, not get_pub_key. Also, raising NotImplemented on UmbralPublicKey. 2018-02-13 12:46:28 -08:00
Kieran R Prasch 76f2a985dd Upgrades GenericUmbralError to an exception class; raise capsule.NotValid if capsule verification fails. 2018-02-12 14:48:34 -08:00
Kieran R Prasch 3ed2394acf Thins TestKeyPair named tuple; excludes name attr for clarity/reusability.. 2018-02-12 13:04:24 -08:00
Kieran R Prasch ec511552f2 resotres k_frag consistency checks in some tests. 2018-02-12 10:49:36 -08:00
Kieran R Prasch 204043f55f changes multi-curve xfail reason. 2018-02-12 10:22:02 -08:00
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
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
jMyles 5501a75392 Tests for default curve when no default curve is set. 2018-02-08 21:41:10 -08:00
Kieran R Prasch 1cb9aba0a9 Adds a pair of tests for Point.__mul__. 2018-02-08 18:57:59 -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 4154fe1253 Add test for pubkey encryption (encryption for bob) 2018-02-08 15:46:42 -07:00
jMyles 13790d5388 Test that shows errors being raised if dumb things are attempted with config. 2018-02-08 11:29:56 -08:00
tuxxy 74b131d2ad Remove PRE class and make it a module and fix tests 2018-02-08 02:30:56 -07:00
jMyles 9adda4500d Various from_bytes now tested with default params. 2018-02-07 20:39:28 -08:00
jMyles d25aeb86c8 Tests no longer pass curve into gen_rand(). 2018-02-07 20:38:39 -08:00
jMyles 59170d4082 PRE (which is soon to be a module anyway) uses default params for testing. 2018-02-07 20:09:47 -08:00
jMyles 272185d478 Inject curve in test_gen_key. 2018-02-07 20:07:55 -08:00