David Núñez
6b868e49ae
Tests for test vectors for CurveBN and Point
2018-07-20 13:26:35 +02:00
Kieran Prasch
12fc13c9a3
Reflow curve interface
2018-07-19 15:41:25 -07:00
Tux
ef2ff044d8
Merge pull request #192 from cygnusv/curvebn-ops
...
Minor improvements to CurveBN
2018-07-17 11:02:25 -06:00
David Núñez
fc66ab46f2
Additional clarifications in Point tests
2018-07-17 01:25:54 +02:00
David Núñez
014c46cad8
Rename Point.__inverse__ as __neg__ according to the additive notation
2018-07-16 16:18:16 +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
David Núñez
6183b65886
Testing correctness of CurveBN operations
2018-07-13 02:26:04 +02: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
Kieran Prasch
53ce33e462
Relocate stand-alone fixtures
2018-07-09 12:26:36 -06:00
tuxxy
a717a87384
Use singleton model for curves; allow users to import instances
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
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
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
3f2c8b0447
Add reencryption benchmarking module, rename scripts to metrics
2018-07-05 18:54:42 -07:00
David Núñez
1fd112e94e
Add test for point.__sub__
2018-06-25 13:55:55 -07:00
David Núñez
c5cd5fc8f0
Test for reconstruction with inconsistent cfrags
2018-06-25 13:55:55 -07:00
David Núñez
0d206cb279
Add check for 0<M<=N in pre.split_rekey. Tests for that.
2018-06-25 13:55:55 -07:00
David Núñez
23d20b3cfb
Fixed missing coverage in tests
2018-06-25 13:55:55 -07:00
Kieran Prasch
09ab90e436
Fix reversed M and N in memory profile test
2018-06-25 13:08:15 -07:00
Tux
db145e6fb2
Merge pull request #166 from KPrasch/ci-dev
...
Reencryption memory profiler config
2018-06-21 23:46:35 -07:00
Kieran Prasch
240b254448
Reencryption memory profile job.
2018-06-21 15:24:43 -07:00
David Núñez
60d2492ed9
Tests simple api with intermediate serialization
...
* Added a multicurve variant of the test, but it fails, so it's set to skip
2018-06-06 11:26:39 +02:00
David Núñez
5618b25292
Simplified public API for umbral.pre
...
* Functions in `pre` now only take Umbral keys as arguments, rather than primitive types (Point, CurveBN)
* Remove unnecessary arguments from public facing and internal methods when they can be extracted from a Capsule, UmbralPublicKey or UmbralPrivateKey
* Adds a getter in Capsule for correctness keys
* Adapts the test suite to new simplified API
2018-06-05 02:52:16 +02:00
David Núñez
d5b434c013
Adapts tests to new way to use params
2018-06-05 02:11:32 +02:00
David Núñez
09bed34305
Remove keypairs fixtures from test_simple_api
2018-06-05 02:11:32 +02:00
jMyles
e04a44c239
Capsule length now reflects number of attached CFrags.
2018-06-01 23:50:20 -07:00
David Núñez
6a4c1237e5
Renaming keypairs (encrypting --> receiving)
...
* Fixes some weird test patterns, where split_rekey is used from Alice to Alice
2018-05-31 12:46:43 +02:00
jMyles
a9e431a152
params now injected into Capsule one - in __init__
2018-05-30 18:28:54 -07:00
jMyles
e6dafb956e
Modifications in responses to various discussions and comments throughout the day.
2018-05-30 15:51:33 -07:00
jMyles
9e05cf436c
set_keys instead of set_three_keys; using it in test_simple_api.
2018-05-30 13:12:48 -07:00
jMyles
d8f5d53884
Remoing get-or-create flow in favor of simple setting.
2018-05-30 12:44:07 -07:00
jMyles
71db482fc5
More complete tests for cfrag attachment.
2018-05-29 23:33:14 -07:00
jMyles
fd736166a6
All the old tests now pass.
2018-05-29 22:51:01 -07:00
jMyles
776abe5d2c
Modified tests to adhere keys to Capsule. SEGFAULT! See #156
2018-05-29 22:28:14 -07:00
jMyles
bd427e883c
Don't need to attach a cfrag in the "proof only" test.
2018-05-29 22:02:28 -07:00
jMyles
427e33caff
Test showing that we can't attach a cfrag without proof.
2018-05-29 22:02:08 -07:00
David Núñez
e4311fc676
Merge pull request #149 from cygnusv/point_size
...
Improved Point deserialization
2018-05-29 22:27:57 +02:00
jMyles
6038dff98d
Using expected_bytes_length for various crypto entities.
2018-05-26 12:12:33 -07:00
jMyles
f8db9db1c3
A couple of touchups, including cfrag.NoProofProvided exception.
2018-05-26 10:26:36 -07:00
jMyles
e89c7b6c68
Using alices_keys fixture instead of boilerplate.
2018-05-25 16:52:17 -07:00
jMyles
a7d203aa44
Tests that were using old fixture now work with new one.
2018-05-25 15:43:19 -07:00
jMyles
30eb274137
New alices_keys fixture has both delegating and signing keys.
2018-05-25 15:42:51 -07:00
David Núñez
7b0f8c021d
Improved tests for point deserialization
...
This also fixes the test, which was marked as xfail
2018-05-25 13:25:34 +02:00
jMyles
59af1ab476
Injecting all the right objects in order to ECDSA the KFrags in tests. Major cleanup required.
2018-05-24 19:02:19 -07:00
jMyles
e4792b40ba
Using ECDSA for kfrag signature and verification.
2018-05-24 18:32:54 -07:00
jMyles
19ecb0f134
Fixed a bug in a test that caused correct CFrags to be tested.
2018-05-24 18:07:13 -07:00
jMyles
59c0b6bc2d
Passing the proper key (delegating or signing) in the proper place.
2018-05-24 17:28:30 -07:00
jMyles
5f80feb6ba
Tests now need to separate Alice's delegating key from her signing key.
2018-05-24 17:28:30 -07:00
tuxxy
4c610e32f9
Use Capsule.get_size in capsule serializer tests
2018-05-23 05:06:39 -06:00
David Núñez
0dbb86e6f1
Enter KFrag._point_xcoord: an ephemeral pk used during reconstruction instead of Alice's pk
2018-05-09 00:19:23 +02:00
David Núñez
c6ba6e5ae9
Fixed old example of metadata
2018-05-09 00:19:09 +02:00
David Núñez
0dd3d4b991
Change KFrag.bn_id to a random byte sequence (Solves #123 )
2018-05-09 00:18:45 +02:00
jMyles
31a55eed93
Moving kfrag verification logic to _pre.
2018-05-06 14:32:42 -07:00
jMyles
af9d8b251d
Updating caller logic to use new `CapsuleFrag._verify_correctness`
2018-05-05 19:03:21 -07:00
jMyles
c5fbcc3a1c
Moving exception inside if block; testing it.
2018-05-05 11:15:40 +02:00
David Nuñez
84dcb4eaaf
Removed unused import
2018-04-30 03:47:43 +02:00
David Nuñez
e57cb01c23
Removed Point.get_order_from_curve
2018-04-30 03:33:56 +02:00
tuxxy
923ad2944f
Rename BigNum -> CurveBN
...
Change all references from BigNum to CurveBN
2018-04-24 12:41:40 -06:00
David Nuñez
63f63b4235
Big renaming
2018-04-24 10:42:10 -07: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
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
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
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
d87af0b129
Remove metadata as parameter of verification in tests
2018-04-18 12:00:26 +02:00
David Nuñez
2885a1f4dc
Adapted tests to metadata inside CorrectnessProofs
...
TODO: Figure out final size for CorrectnessProofs
2018-04-18 11:41:47 +02:00
David Nuñez
fc6f7a1ac3
Adapting tests to new setting with CorrectnessProof
2018-04-18 00:11:05 +02:00
David Nuñez
071d4b163a
TODO: Figure out final size for CFrags with proofs
2018-04-18 00:10:33 +02: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
45b4529ca1
Adapted tests to CorrectnessProof
2018-04-17 12:17:27 +02:00
David Nuñez
ae95441b35
derive_private_key_from_label --> derive_privkey_by_label
2018-04-16 23:08:04 +02:00
David Nuñez
4818c00bfb
Merge remote-tracking branch 'nucypher/master' into derive-keys-from-labels
...
# Conflicts:
# tests/test_keys/test_umbral_keys.py
# umbral/keys.py
2018-04-16 23:00:29 +02:00
David Nuñez
7c00469be4
Tests for serialization of UmbralKeyingMaterial
2018-04-16 12:52:05 +02:00
David Nuñez
3f93331a3a
Adapt tests to UmbralKeyingMaterial
2018-04-16 12:44:20 +02:00
jMyles
0bd004d454
Test for using UmbralPublicKey as a dict key.
2018-04-14 08:59:04 -07:00
jMyles
3257b3853c
Test for UmbralPublicKey equality. Fixes #106 .
2018-04-14 08:57:52 -07:00
tuxxy
7206415055
Add test for encoder/decoder params in to/from_bytes functions
2018-04-10 17:09:38 -06:00
David Nuñez
8bdd40b099
Add tests for derived keys generation
2018-04-09 12:13:15 +02:00
David Nuñez
2e4d15dedd
Merge remote-tracking branch 'nucypher/master' into tests-improvements
2018-04-04 12:26:12 +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
5a17f4c857
More representative challenge metadata example in tests
2018-03-31 09:57:43 -07:00
David Nuñez
010daae066
Made pre.challenge and pre.check_challenge private
2018-03-18 01:53:32 +01:00