jMyles
5dcf405c54
Sharpening NetworkyStuff.
2018-02-28 17:37:27 -08:00
jMyles
edf8840d5a
Faking Ursulas for tests.
2018-02-28 17:37:27 -08:00
jMyles
d35687907d
Just use the keccak_digest function directly - this was never a good change really.
2018-02-28 17:37:27 -08:00
jMyles
6aa0cb46d2
TreasureMaps are now attainble via the REST interface.
2018-02-28 17:33:58 -08:00
jMyles
edad1d7148
dict interface for from_public_keys.
2018-02-28 17:33:53 -08:00
jMyles
139e767a2b
All Characters need to know about Ursulas (and other information nodes if we ever run them).
2018-02-28 17:33:15 -08:00
jMyles
6fa7bd5823
Ursula's datastore now runs in a separate thread in all cases.
2018-02-28 17:32:19 -08:00
jMyles
e1b4f242ab
Tearing out all lookup_actor logic. Also, as @tuxxy pointed out a while ago, there's really no reason to have Character.hash(); we can just use keccak_digest.
2018-02-24 01:53:20 -08:00
jMyles
857a91855a
We don't do lookup_actor anymore.
2018-02-24 01:45:50 -08:00
jMyles
6d38ff2509
privkey is not _privkey.
2018-02-24 00:50:28 -08:00
jMyles
872cef81a2
Smoothing out Powers; redlines through plenty of obselete functionality surrounding path keys in EncryptingPower.
2018-02-23 23:36:40 -08:00
jMyles
f89d13c4a0
Seal -=> SignatureStamp
2018-02-23 22:39:10 -08:00
jMyles
760e0a8129
Reflectin refractor of umbral.umbral to umbral.pre.
2018-02-23 22:02:32 -08:00
jMyles
1cdc0cad80
Some DHT cleanup.
2018-02-19 15:21:06 -08:00
jMyles
bb279fa954
Fixture needs to include (or at least, works better if it includes) Alice's public encryption key.
2018-02-19 15:20:40 -08:00
jMyles
1301f43cda
Final narrative test for Bob's Adventure.
2018-02-19 15:20:26 -08:00
jMyles
4716d888ae
Narrative test showing Bob getting his second CFrag.
2018-02-19 15:19:43 -08:00
jMyles
7a0c21a0a5
We save WorkOrders in WorkOrderHistory now.
2018-02-19 15:16:50 -08:00
jMyles
dbac4ba586
Illegal keys are bytes, not str.
2018-02-18 17:34:38 -08:00
jMyles
307bae3e3a
Giving Bob a better facility for tracking his CFrags.
2018-02-18 13:04:33 -08:00
jMyles
2b87cf3b8e
It's on. Here we go.
2018-02-17 23:36:33 -08:00
jMyles
fd4accf3f5
Header lengths and types implemented in network.
2018-02-15 12:31:16 -08:00
jMyles
023d9705f0
Shortening headers to two bytes, and deprecating lstrip as a way to eat headers. See #111 . Fixes #164 .
2018-02-14 23:45:23 -08:00
jMyles
3b9ae94b5b
Fixed those last two pesky tests - now that we're splitting with MessageKit, we don't need to split again.
2018-02-14 00:19:26 -08:00
jMyles
6e4175d597
Far more thorough narrative for Character encryption APIs.
2018-02-14 00:19:09 -08:00
jMyles
e9d9d0cc36
Free roving red lines.
2018-02-14 00:18:55 -08:00
jMyles
31dfbaa3e9
Moving over to MessageKit.to_bytes.
2018-02-14 00:18:31 -08:00
Kieran R Prasch
2d92ed7dc7
New API renaming, and more style.
2018-02-13 17:50:46 -08:00
Kieran R Prasch
7560fb8d10
adds pytest cache to gitignore
2018-02-13 17:48:55 -08:00
Kieran R Prasch
022087f67a
Fixes Db bulk delete assertion; Renames several key test method calls
2018-02-13 17:37:40 -08:00
tuxxy
6428337ab5
Add broken sqlalchemy delete
2018-02-13 17:37:40 -08:00
tuxxy
31a091bcce
Some fixes in keystor and related tests
2018-02-13 17:37:40 -08:00
jMyles
19fd2c4343
This test is no longer needed with KFrag class.
2018-02-13 17:34:16 -08:00
jMyles
6ac0bee751
Extraneous comment.
2018-02-13 17:34:07 -08:00
jMyles
2f46a956e7
We can encrypt without a power now.
2018-02-13 17:32:15 -08:00
jMyles
f35f7fa056
Using alicebob sidechannel for Bob to get capsule.
2018-02-13 17:31:53 -08:00
jMyles
6eeb8ee546
Fixed kfrag test by rebuilding kfrag.
2018-02-13 17:31:35 -08:00
jMyles
e0c50d473c
Signatures are now made from 64 bytes, not 65.
2018-02-13 15:45:46 -08:00
jMyles
8f7edfe012
Old API tests, washed in crimson.
2018-02-13 15:45:34 -08:00
jMyles
12882a0587
Fixed verification of signature from a stranger.
2018-02-13 15:45:02 -08:00
tuxxy
7daab1f096
Add test_keypairs
2018-02-13 14:00:15 -07:00
tuxxy
3d66e71441
Add tests for signing
2018-02-13 13:34:31 -07:00
tuxxy
00b812993c
Add pytest fixture for sqlalchemy
2018-02-13 13:30:58 -07:00
jMyles
84951c0a81
Grabbing contract from keystore in test.
2018-02-13 13:29:41 -07:00
jMyles
00f991d428
Bob now receives a Capsule via the side channel and handles it instead of a pfrag.
2018-02-13 13:29:41 -07:00
jMyles
ca945e5ba0
New fixture to simulate ciphertext and capsule being givesn to Bob by Alice.
2018-02-13 13:29:41 -07:00
tuxxy
d0bfd4ae0d
WIP on rm-crypto: 2b73b14
Merge pull request #11 from jMyles/rm-crypto
2018-02-13 13:28:39 -07:00
jMyles
a4765aacfc
Grabbing contract from keystore in test.
2018-02-13 12:26:08 -08:00
jMyles
7c37e3c58f
Bob now receives a Capsule via the side channel and handles it instead of a pfrag.
2018-02-13 12:25:53 -08:00
jMyles
7de5a7ec26
New fixture to simulate ciphertext and capsule being givesn to Bob by Alice.
2018-02-13 12:25:46 -08:00
jMyles
5b9f4a2a7a
More MessageKit flow for tmap. Also, unwrapped an extraneous if.
2018-02-13 11:13:07 -08:00
jMyles
5415184d0b
More questioning of actor lookup.
2018-02-13 11:11:26 -08:00
jMyles
4d677f4d03
Passing hrac as hex.
2018-02-13 11:11:03 -08:00
jMyles
d82474a969
Showing that KFrag retrieved with Policy is among those granted.
2018-02-12 13:33:34 -08:00
jMyles
6a326239f6
Policies come back from the datastore!
2018-02-12 13:12:41 -08:00
jMyles
7551d79fd6
Constructing message_kit with Signature - we'll do this a better way soon.
2018-02-12 12:58:10 -08:00
jMyles
834311b23e
Splitters in tests.
2018-02-11 01:06:39 -08:00
jMyles
0c47c00d69
@tuxxy merged my Pull Request, then pushed his history to thunderdome. This commit merges those histories.
2018-02-10 20:39:30 -08:00
tuxxy
2fc5596d5b
Add tests for sqlite keystore
2018-02-10 21:26:56 -07:00
jMyles
83998706a0
Splitter uses PUBLIC_KEY_LENGTH for UmbralPublicKey.
2018-02-10 19:53:57 -08:00
jMyles
d9d619b149
Keypair generation tests are gonna have'ta change.
2018-02-09 20:44:52 -08:00
jMyles
459d6c9e08
Simplying conftest.
2018-02-09 20:44:27 -08:00
jMyles
65940dd0fe
Preparing to use UmbralPublicKey.
2018-02-09 20:44:16 -08:00
jMyles
7896e2d11d
No more DB!
2018-02-09 13:05:44 -08:00
jMyles
67dd86534c
You can init a Power with nothing now.
2018-02-09 13:05:23 -08:00
jMyles
0fc1e7cebb
Not uding nkms.db anymore.
2018-02-09 13:05:00 -08:00
jMyles
12dc83f5b6
Creating KFrag for test in canonical way.
2018-02-07 16:30:03 -08:00
jMyles
650b38d2c1
Setting default curve for tests.
2018-02-07 16:29:53 -08:00
jMyles
50aca7d66f
Reflecting new location for fragments.
2018-02-07 16:22:28 -08:00
jMyles
f420a02ad7
Removing tests that test things that no longer exist.
2018-02-07 10:52:38 -08:00
jMyles
6d2c9e3d7b
Reflecting deprecated crypto modules.
2018-02-07 02:16:45 -08:00
jMyles
0d964ca080
Removing various imports of the ole' fragments module.
2018-02-07 02:16:44 -08:00
jMyles
c6d050aca7
Making explicit which address and port are for Ursula's DHT interface.
2018-02-06 17:16:21 -08:00
jMyles
cc80a065e0
Character.from_public_keys now takes a list of tuples.
2018-02-06 17:15:53 -08:00
jMyles
12f7990a09
Alice script properly sends a Contract and then, subsequently, sends a KFrag.
2018-02-06 03:08:23 -08:00
jMyles
1ff8d51515
Better doctstring for Policy. And something something agreement.
2018-02-05 23:40:21 -08:00
jMyles
2a27661765
Test showing that Alice can get an Ursula's public keys via REST and create an Ursula object from them.
2018-02-05 23:30:07 -08:00
jMyles
3db71115f6
Characters can now be created from either a signing or encryption key. Fixes #156 .
2018-02-05 11:25:17 -08:00
jMyles
a393d42e8e
Removing the rest of PolicyManager; changed PolicyOfferResponse to ContractResponse.
2017-12-15 21:50:51 -08:00
jMyles
032abed046
Cleaning up the rest of the tests to use the new models.
2017-12-14 21:21:51 -08:00
jMyles
20bac0393f
Tests shifting from Policy to Contract.
2017-12-14 21:21:27 -08:00
jMyles
e486d5a2b1
Cleaned up fixtures and reduced their scope to "module."
2017-12-14 21:21:09 -08:00
jMyles
9cf06c58e5
New names for things!
2017-12-14 21:20:49 -08:00
jMyles
7dec865094
Updating some fixture names to remove PolicyGroup.
2017-12-14 20:36:52 -08:00
jMyles
d372010e0c
Cleaned up assertions to comport with new models.
2017-12-14 20:36:35 -08:00
jMyles
791312c9d4
Method for finding Ursulas needs a rewrite (and, of course, later, to have the blockchain component plugged in).
2017-12-14 16:53:54 -08:00
jMyles
1c677efb6a
Moving the rest of the enact logic to Policy.
2017-12-14 12:15:36 -08:00
jMyles
f68bd91510
Policy ID is immaterial now. Closes #38 wontfix.
2017-12-14 11:40:46 -08:00
jMyles
ac10e6a3da
Merge commit for various Policy and testing Work after PRs are merged.
2017-12-13 10:41:55 -08:00
jMyles
21c18ea5f8
Tests reflect publish_treasure_map living on PolicyGroup.
2017-12-13 10:33:34 -08:00
jMyles
e891653fde
With PolicyGroup logic simplified for Bob, we can reduce the scope of several fixtures.
2017-12-13 10:33:01 -08:00
jMyles
3a1bab4b1d
Fixed up tests to use hrac instead of PolicyGroup.
2017-12-11 17:03:47 -08:00
jMyles
a5579f1af7
grant test
2017-12-09 17:21:43 -08:00
jMyles
fd38b2421e
Alice gets a PolicyManager at __init__.
2017-12-09 17:19:30 -08:00
jMyles
c2a111c2b5
Tests showing that Bob doesn't repeat WorkOrders for CFrags he already has.
2017-12-07 20:41:48 -08:00
jMyles
699ec37f03
TreasureMap setting fixture implemented in a few tests.
2017-12-07 20:41:26 -08:00
jMyles
fc66f43b3b
Pushing TreasureMap setting down into a fixture.
2017-12-07 20:41:04 -08:00
jMyles
fb5731fff4
Bob has a lot of logic surrounding his play with Frags - moving such tests to their own module.
2017-12-07 00:36:43 -08:00
jMyles
647e0e4fd7
Bob can now lookup past work orders by PFrag since #137 is closed.
2017-12-07 00:36:35 -08:00
jMyles
4de6ff736a
More mock network logic for testing.
2017-12-05 12:54:59 -08:00
jMyles
674197d30b
Test for complete discovery and reencryption via REST.
2017-12-05 12:54:44 -08:00
jMyles
97a97c6b5c
Bob Issues WorkOrders with pFrags, gets back cFrags.
2017-12-04 17:18:47 -08:00
jMyles
a5e85576a7
Using PolicyGroup's encrypted_key instead of fake pfrags.
2017-12-04 17:17:28 -08:00
jMyles
d90a2649e9
Can't represent pfrag as bytes; this is a blocker for now. See #137 .
2017-12-04 17:17:28 -08:00
jMyles
c4cbff3359
Tests that show Bob that Bob is able to issue a WorkOrder via REST.
2017-12-04 17:17:28 -08:00
jMyles
df9f24e612
Mock network stuff to call reencrypt.
2017-12-04 17:17:28 -08:00
jMyles
429743f1f4
Test that Bob can properly create a work order and send it over to Ursula.
2017-12-04 17:17:28 -08:00
jMyles
7a525b801e
Move Alice REST test to proper module.
2017-12-04 17:17:28 -08:00
jMyles
b1f9b72886
Session-wide fixture injection means we don't need to grab alice and bob from the PolicyGroup.
2017-12-04 17:17:28 -08:00
jMyles
ff04578dc3
CFrag and tests.
2017-12-04 17:17:13 -08:00
jMyles
1de9a97628
Tests use PFrag.
2017-12-04 16:27:08 -08:00
jMyles
4fab47cac3
Proper dunders with tests for kfrag retrieval and deserialization. Fixes #138 .
2017-12-04 15:23:40 -08:00
jMyles
e6556f54f1
Test for KFrag class compatibility with BytestringSplitter.
2017-12-04 13:08:40 -08:00
jMyles
167ee66aa0
Changing fixture 'fake_ursulas' to just 'ursulas'.
2017-11-21 22:06:52 -08:00
jMyles
ceae904822
Tests with Bob getting the signature from Alice properly.
2017-11-21 22:03:31 -08:00
jMyles
0084b14a3d
OK, fixtures are implemented in the tests that need them.
2017-11-21 20:22:16 -08:00
jMyles
c44a46e416
Proper test fixtures. Phew! It was a brain-twister getting this right.
2017-11-21 20:19:31 -08:00
jMyles
ae49b28249
Moving PolicyGroup creation to test fixture format.
2017-11-21 16:27:21 -08:00
jMyles
4ff94f385b
Ursula can't just willy-nilly spin up an in-memory db anymore.
2017-11-21 12:04:33 -08:00
jMyles
8bd1e616d1
Showing that policy was transmitted via REST made it to Ursula's KeyStore.
2017-11-20 19:50:51 -08:00
jMyles
014d63805a
Don't need this file for the moment; covered in other tests.
2017-11-20 19:24:25 -08:00
jMyles
ac33d5eb4e
Making sure that uri is unique for each execution.
2017-11-20 19:24:03 -08:00
jMyles
c0639349c7
Changed method to 'enact_policy'. Move HRAC to URL instead of HTTPS payload.
2017-11-20 19:23:25 -08:00
jMyles
8be498629b
Fixed length of test bytes for keystore.
2017-11-20 19:20:18 -08:00
jMyles
522c016f53
Moving REST App from test_utilities to Ursula.
2017-11-19 11:58:33 -08:00
jMyles
63a10aef67
Changing 'animate' to 'enact'.
2017-11-18 19:21:32 -08:00
jMyles
269063f1b1
Moving test Client logic over to test_utilities
2017-11-18 13:33:31 -08:00
jMyles
763bece3da
Tests for Bob's invovlement in Policy.
2017-11-18 13:33:31 -08:00
jMyles
370757f8ee
Testing set_kfrag - both tests fail for the moment.
2017-11-18 13:33:31 -08:00
jMyles
9a836e467e
Beginnings of a test for Ursula to receive a kFrag.
2017-11-18 13:29:55 -08:00
jMyles
3409846983
Blanking this file; now that we do prop-stop we don't need this.
2017-11-18 13:29:55 -08:00
jMyles
ad0eb40a4d
PublicKey used for metadata instead of int literals throughout tests. Also some PEP8 cleanups and removal of type checks per #105 .
2017-11-18 13:19:07 -08:00
tuxxy
9fb0aad603
Add test for test_keyfrag_sqlite
2017-11-11 18:35:39 -08:00
jMyles
ec8c225f7d
Moved BytestringSplitter remainder logic to __call__; implemented throughout.
2017-11-11 18:00:32 -08:00
jMyles
d23f10bfe7
Using HRAC and dht_value_splitter in tests.
2017-11-11 17:45:33 -08:00
jMyles
3901f13750
Test showing that trying to split too many bytes raises ValueError.
2017-11-11 13:55:51 -08:00
jMyles
1f28a671fa
BytestringSplitter now works with arbitrary types.
2017-11-11 13:50:51 -08:00
jMyles
1ed6e6d30b
Test showing BytestringSplitter taking arbitrary bytes.
2017-11-11 13:21:24 -08:00
jMyles
4f803ba2df
BytestringSplitter for #114 .
2017-11-11 01:10:29 -08:00
jMyles
e0f9995e4c
Casting Signature to bytes for msgpack. Better to concat it in the future - see #114 .
2017-11-10 16:29:28 -08:00
jMyles
49f99fc640
Added Bob's public key to secret part of TreasureMap DHT key. Also lots of sanding / code simplification.
2017-11-10 10:47:07 -08:00
jMyles
b66eccb251
Working stop-propagation for both Ursula interfaces and TreasureMaps.
2017-11-10 02:04:01 -08:00
jMyles
f88c182bd9
Test showing stop-propagation for illegal TreasureMap ID - see #109 .
2017-11-09 16:23:38 -08:00
jMyles
b312449895
Tests rewritten in narrative order with docstrings.
2017-11-09 16:23:38 -08:00
jMyles
6a5d0da4bf
Test organization: moved utility functions to their own module.
2017-11-09 16:23:38 -08:00
jMyles
19aab328d0
Bob can now follow treasure map and get Ursula instances.
2017-11-07 14:25:03 -08:00
jMyles
ce4dc0c936
Merge remote-tracking branch 'tux/reconstruct_key' into policy
2017-11-07 14:18:06 -08:00
tuxxy
1b7725023d
Add test for serializing and deserialzing key
2017-11-07 14:13:45 -08:00
jMyles
f704f93cbe
KeyPairBasedPower to reuse logic for powers based on keypairs.
2017-11-07 12:51:30 -08:00
jMyles
10f3fc8e6c
TreasureMap now contains real Ursula information. Fixes #59 . Fixes #64 .
2017-11-06 20:42:21 -08:00
jMyles
4c8d925b8a
TreasureMap legitimacy test.
2017-11-06 18:11:03 -08:00
jMyles
2581c579e3
Fixes #98 .
2017-11-06 13:44:59 -08:00
jMyles
93a70179a8
Test for #98
2017-11-06 13:35:54 -08:00
jMyles
c85acc3675
A test to show that Ursula now refuses to propagate illegal keys.
2017-11-05 19:30:03 -08:00
jMyles
745e5a43b4
Beginning of verifying Ursula's interface.
2017-11-05 19:30:03 -08:00
jMyles
4dc146b2d6
Rudimentary server and client w/ cert generation and TLS.
2017-11-05 19:30:03 -08:00
Justin Holmes
796e7e622f
Merge pull request #96 from jMyles/master
...
A sanity check for the len31 bug.
2017-11-04 17:03:44 -07:00
Justin Holmes
981bf29e4c
Merge pull request #89 from jMyles/tls
...
Ursula now stores interface on DHT.
2017-11-04 17:03:28 -07:00
jMyles
78aa5d4063
A sanity check for the len31 bug.
2017-11-04 10:52:43 -07:00
jMyles
d2b0e364e1
Ursula now reports IP via K:V store. Hacky workaround for #95 .
2017-11-03 18:37:27 -07:00
jMyles
eb2382e763
Pursuant to #93 , changes to K:V for Alie to lookup Ursula. This commit demonstrates one of the problems described in #95 .
2017-11-03 18:37:27 -07:00
jMyles
41b6642b6d
Msgpacking encrypted message.
2017-11-03 18:37:27 -07:00
jMyles
5b570b046e
Very close to complete Ursula -=> Bob flow for treasure map, but strange error when trying to run coroutine.
2017-11-03 18:37:27 -07:00
jMyles
83058d0211
Fairly reasonable shape for Bob-=>Ursula discovery/upgrade.
2017-11-03 18:37:27 -07:00
jMyles
a20d8b06de
Temporary serialization logic.
2017-11-03 18:37:27 -07:00
jMyles
17adc4c566
More test re-organization. Shows failure of ec.serialize.
2017-11-03 18:37:27 -07:00
jMyles
a07e082e6a
Working toward policy payload for use over network.
2017-11-03 18:37:21 -07:00
tuxxy
009d32ce66
Implement SQLite and remove lmdb
2017-11-02 17:50:09 -07:00
tuxxy
a5ad9d3300
Add tests for sqlite
2017-11-02 17:10:06 -07:00
jMyles
6a678ba5de
Removing test datastore from VCS.
2017-10-27 14:03:51 -07:00
Justin Holmes
6cb8d4fa39
Merge pull request #83 from tuxxy/rekey-api
...
Rekey api
2017-10-23 14:28:22 -07:00
tux
0ae9d007c8
Implement generate_rekey_frags method on Alice
...
This doesn't include a test for this function. This is basically a tiny
wrapper around the crypto api for generating the key frags.
I'll leave it to JMyles to implement this how he wants.
Fix syntax error
Skip erroring test
2017-10-23 14:20:15 -07:00
tuxxy
d7dc6f06bc
Check for KeyNotFound error in tests
2017-10-23 13:38:06 -07:00
tuxxy
010331108a
Skip the client test for now
2017-10-23 11:20:43 -07:00
tuxxy
d01e6e1bae
Add tests tesT_lmdb_keystore
2017-10-20 16:20:53 -06:00
tuxxy
183ce12f09
Add test for test_ecies_ephemeral_split_rekey
2017-10-19 01:31:04 -06:00
tuxxy
48f75b798f
Add test test_ecies_gen_ephemeral_key in test_internal
2017-10-19 01:22:00 -06:00
tuxxy
447594e30c
Add empty test_internal.py
2017-10-19 01:04:31 -06:00
jMyles
24b1f4fa92
Bringing policy logic back in line with protocol with new crypto tooling.
2017-10-18 15:48:20 -07:00
jMyles
b5033e32f6
Lots of housekeeping on various Alice <=-=> Ursula activity in policy.
2017-10-18 15:48:11 -07:00
jMyles
8f3e379ae4
Policy now raises Ursula.NotFound if we havne't found an Ursula yet.
2017-10-18 15:48:11 -07:00
tuxxy
09b442d5a3
Use SigningPower instead of SigningKeypair in test_crypto_characters_and_their_powers
...
Use SigningPower instead of SigningKeypair correctly
Use correct SigningPower
2017-10-17 16:01:59 -06:00
tuxxy
67b1225cef
Add tests test_ecdsa_keypair_signing and test_ecdsa_keypair_verification
2017-10-17 14:59:25 -06:00
tuxxy
4ccdb92ed7
Use SigningKeypair.verify in test_signing
2017-10-17 14:52:42 -06:00
tuxxy
32baef1575
Add test TestSigningPower and fix SigningPower init params
2017-10-17 14:47:51 -06:00
tuxxy
d89fd7cf31
Add test test_keypair_object to test keypair intialization
2017-10-17 14:13:12 -06:00
jMyles
5566c6058e
Removed alpha and added test for its removal.
2017-10-16 22:25:16 -07:00
jMyles
5cebbf16e4
Unskipping test - it passes now!
2017-10-16 20:21:58 -07:00
jMyles
adf71c80c8
Seal now implements dunders instead of custom methods.
2017-10-16 18:17:53 -07:00
jMyles
e276e86d52
Getting pretty close. Need a clean way to encrypt and decrypt.
2017-10-16 18:17:53 -07:00
jMyles
71669bfc49
Made working defaults for EncryptingKeypair
2017-10-16 18:17:29 -07:00
jMyles
5390c8fce5
Fixed PolicyGroup to accept Bob, cleaned up tests and removed stale mock material.
2017-10-16 18:16:01 -07:00
jMyles
506f0f81cd
Character encryption tests.
...
Note that CryptoPower.decrypt and Character.encrypt_for have fake logic until EncryptingPower is implemented.
2017-10-16 18:16:01 -07:00
jMyles
8cf64dfcc6
PolicyGroup now uses Bob instead of a public key. One test fails until we get EncryptingPower working.
2017-10-16 18:12:14 -07:00
jMyles
a202507978
logic to check that passing signature<=-=>message backwards raises TypeError (commented out for now).
2017-10-16 18:06:16 -07:00
tuxxy
84d183ba7c
Add tests and fix encrypt/decrypt issues
2017-10-16 14:10:56 -06:00
tuxxy
ed47bdf79b
Add test_encrypting_power.py
2017-10-16 13:49:53 -06:00
tuxxy
27234dce73
Fix import errors
2017-10-16 13:39:46 -06:00
tuxxy
a14f83fba5
Merge branch 'character-crypto' of github.com:jmyles/nucypher-kms into encrypting-power
2017-10-11 14:08:42 -06:00
tuxxy
be18ef9017
Add tests for TestKeyStore
2017-10-11 14:02:27 -06:00
tuxxy
ccece81783
Add test_ecdsa_keypair_generation to test_keypairs
2017-10-11 13:54:13 -06:00
tuxxy
263b21a84e
Add TestKeypairs TestCase with test_ecies_keypair_generation
2017-10-11 13:51:58 -06:00
jMyles
bf0f83b6ea
Moving EncryptingKeypair over to powers.
2017-10-10 22:39:25 -07:00
tuxxy
3b3f44038c
Fix tests and update imports to reflect nkms.crypto.api
2017-10-10 20:18:24 -06:00
tuxxy
84ba50ddf6
Remove the use of msgpack
2017-10-10 19:05:20 -06:00
tuxxy
f8f2281528
Import nkms.crypto.api in test_api
2017-10-10 17:26:29 -06:00
tuxxy
2f5c507bcd
Rename test_crypto.py to test_api.py
2017-10-10 17:25:17 -06:00
tuxxy
2a8195cd83
Add test for ecdsa_priv2pub
2017-10-10 17:23:56 -06:00
tuxxy
be45b18258
Add tests for ecdsa_sign and ecdsa_verify
2017-10-10 17:20:48 -06:00
tuxxy
2b16609e85
Add ecdsa_pub2bytes and ecdsa_bytes2pub
...
Fix comment
2017-10-10 17:09:10 -06:00
tuxxy
f697602390
Add ecdsa_gen_priv function and test
2017-10-10 16:30:19 -06:00
tuxxy
b385d3f5bd
Add tests for ecdsa_gen/load_sig
2017-10-10 16:18:17 -06:00
tuxxy
8269e5c396
Add test for keccak_digest
2017-10-10 16:14:49 -06:00
tuxxy
2263678c76
Add tests for the secure_random functions
2017-10-10 16:09:01 -06:00
jMyles
9e651af46b
Import statements changed while we reorganize.
2017-10-10 13:02:45 -07:00
jMyles
123fa5e5ae
Merge commit 'bcca3f8c365e486e4e930e3fdceaf308f1b13dd5' into character-crypto
2017-10-10 12:55:27 -07:00
tuxxy
bcca3f8c36
Remove Crypto class, use singleton pattern
2017-10-10 11:16:23 -06:00
tuxxy
bd3636faad
Add test for ecies_combine
2017-10-10 11:04:11 -06:00
tuxxy
8a16ba51b2
Add test for ecies_reencrypt
2017-10-10 10:51:13 -06:00
jMyles
08a3910ce9
Yanked and out of - they're now only accessible in .
2017-10-09 15:58:38 -07:00
jMyles
7eae9c21b1
KeyRing -=> KeyStore and some other reorganization.
2017-10-09 14:03:16 -07:00
jMyles
40cdfab02a
Some clarifying details in character tests.
2017-10-06 19:48:31 -07:00
jMyles
418618d565
A fairly serious version of the high-level signing and verification system.
2017-10-06 19:32:49 -07:00
jMyles
76f8edae7b
CryptoPower sign() and verify() now work properly.
2017-10-06 17:42:18 -07:00
jMyles
1b54f9dfb3
Refraining from hashing the message before signing fixes it.
2017-10-06 17:42:18 -07:00
jMyles
989f0193d7
Introducting CryptoPower and PowerUp. Signing powers have been pulled out of KeyRing and now use the PowerUp system.
2017-10-06 17:42:18 -07:00
tuxxy
c36b0b07ee
Add test_ecies_split_rekey and placeholders test_ecies_combine and test_ecies_reencrypt
2017-10-05 19:46:10 -06:00
tuxxy
ad74c6aad1
Add test_ecies_rekey
2017-10-05 19:38:44 -06:00
tuxxy
5bb6f037e2
Add test_ecies_encapsulate and ecies_test_decapsulate
2017-10-05 19:33:04 -06:00
tuxxy
8d2312e742
add test_ecies_priv2pub
2017-10-05 19:20:14 -06:00
tuxxy
58a3e23f5f
Add test_ecies_gen_priv
2017-10-05 19:16:30 -06:00
tuxxy
56d05edea7
Add tests for symm_encrypt and symm_decrypt
2017-10-05 19:14:21 -06:00
tuxxy
5faa1a2fbc
Add tests for priv_bytes2ec and pub_bytes2ec
2017-10-05 19:08:13 -06:00
tuxxy
59d3b37440
Add empty file for test_crypto.py
2017-10-05 18:52:14 -06:00
jMyles
208db55d4c
Removed the awful list comp tuple pack in favor of @michwell's much better way. If anybody ever accuses me of writing that thing, I reserve the right to say I was hacked.
2017-10-04 13:08:41 -07:00
jMyles
004437e8f6
Policy models are now worked out such that the TreasureMap is stored on a 'free tier' k:v DHT.
2017-10-03 21:13:46 -07:00
jMyles
73ec0079a4
Fixes #68 by attaching server during test.
2017-10-03 17:57:18 -07:00
jMyles
40171da964
Two-tier ID generation.
2017-10-03 17:52:28 -07:00
jMyles
c9983482d3
A little more logic for Alice's initial activity to craft an Offer and find Ursula.
2017-10-03 17:52:28 -07:00
jMyles
a76248361b
First semblance of two-part negotiation Alice -=> Ursula.
2017-10-03 17:51:49 -07:00
tuxxy
fc7c2dfd98
Use *args instead of an iterable for SigningKeypair.digest
2017-10-03 18:08:40 -06:00
tuxxy
759894f00b
Skip broken test
2017-10-03 16:09:37 -06:00
tuxxy
aff17556f4
Add test for testing digestable iterables
2017-10-03 15:49:37 -06:00
Michael Egorov
5763615b6c
Split-key re-encryption: tests pass
2017-09-30 20:01:11 -07:00
Michael Egorov
2c102ed384
Split-key (fails)
2017-09-30 19:55:16 -07:00
Michael Egorov
1ec8a788c4
Encrypt(Alice) -> re-encrypt(Ursula) -> decrypt(Bob). With tests
2017-09-30 15:41:03 -07:00
Michael Egorov
572442b8cb
Encrypt/decrypt with a serializing keypair
2017-09-29 23:18:20 -07:00
Michael Egorov
ddc91bb556
Re-encryption works but convoluted
2017-09-29 17:27:11 -07:00
Michael Egorov
f66577b9b8
Test encryption/decryption w/o re-encryption - works
2017-09-29 13:24:14 -07:00
tuxxy
63fdfcae29
Add code for decrypt w/ broken test_encrypt_decrypt
2017-09-28 16:10:50 -07:00
tuxxy
983dd3c4d5
Update _derive_path_key and add test_derive_path_key
2017-09-28 11:11:21 -07:00
tuxxy
37fc9d0dab
Add test_split_path
2017-09-28 10:39:44 -07:00
jMyles
346f0a3d01
First draft of Character classes, along with a test of the moment that Alice finds Ursula.
2017-09-27 23:50:23 -07:00
tuxxy
ef738d7cba
Fix test_rekey_and_reencryption
2017-09-26 23:35:00 -07:00
tuxxy
af0b298cbf
Merge branch 'master' of github.com:tuxxy/nucypher-kms into umbral
2017-09-26 21:18:23 -07:00
tuxxy
cbfea253b6
Add rekey test that isn't working
2017-09-26 21:04:39 -07:00
tuxxy
b6e18ec085
Add symm_encrypt/decrypt methods in KeyRing w/ tests
2017-09-26 13:07:23 -07:00
jMyles
ec01307dc9
PolicyManager for making PolicyGroups.
2017-09-26 12:59:06 -07:00
jMyles
9e314d8b81
Added more Policy and PolicyGroup logic. Now conforms to @tux's crypto APIs.
2017-09-26 12:59:06 -07:00
jMyles
f6b9111b63
First swing at Policy and PolicyGroup.
2017-09-26 12:59:06 -07:00
jMyles
14ba51425e
Another rough sketch of a test for KeyChain.
2017-09-26 12:59:06 -07:00
jMyles
8cf8daf872
Skeleton first test for Alice -=> Ursula.
2017-09-26 12:59:06 -07:00
jMyles
825616bf23
Re-introducing conftest and thus nkms.db.
2017-09-26 11:27:03 -07:00
tuxxy
2670ae7605
Add test for test_split_key_sharing
2017-09-26 10:24:05 -07:00
tuxxy
48fa10d7cb
Add test for rekey and re-encryption
2017-09-26 10:14:38 -07:00
tuxxy
56bf4381eb
Add tests for key generation and key decryption; serialization is already handled with EncryptedKey
2017-09-26 10:03:37 -07:00
tuxxy
1f53300abf
Remove old encryption/decryption tests for KeyRing
2017-09-26 09:48:01 -07:00
tuxxy
ecf3d82dc0
Use combine instead of build_secret in keypairs tests
2017-09-26 09:40:00 -07:00
tuxxy
a43c587d0d
Fix methods in EncryptingKeypair and fix split key reencryption tests
2017-09-25 16:28:53 -07:00
jMyles
e89e1f2462
Skipping two more tests, as #53 appears to be happening again, at least some of the time.
2017-09-25 15:21:36 -07:00
jMyles
43c3095166
Tests now pass locally; travis config polished a bit. py_ecc added as requirement.
2017-09-25 15:06:08 -07:00
jMyles
5e80e4db00
Not using nkms.db anymore.
2017-09-25 14:41:47 -07:00
tuxxy
0e9315cd22
Add split_key reencryption test for EncryptingKeypair
2017-09-25 14:13:11 -07:00
tuxxy
e1d649af53
Convert test_keypairs.TestEncryptingKeypair methods to use Umbral
2017-09-25 13:46:36 -07:00
tuxxy
b848da27ea
Add properties for each specific key in the KeyRing
2017-09-20 10:42:59 -07:00
tuxxy
1cde0b88e2
Enforce bytestring keys for msgpack
...
Use bytestring keys in test_header
2017-09-20 09:47:45 -07:00
tuxxy
1c4be8d541
Add testing steps for TestEncryptedFile
2017-09-20 09:37:49 -07:00
tuxxy
d3e01cc98c
Add monolithic test code
2017-09-20 09:16:20 -07:00
tuxxy
003f28c944
Merge branch 'master' of github.com:nucypher/nucypher-kms into header-object
2017-09-20 09:00:56 -07:00
tuxxy
03353876c8
Expose KeyRing method for generating random numbers
2017-09-20 08:51:14 -07:00
tuxxy
76c4047803
Merge branch 'master' of github.com:nucypher/nucypher-kms into header-object
2017-09-20 08:32:23 -07:00
tuxxy
7dd5fb18d8
Use a different keypair/keyring to verify signatures
2017-09-19 09:13:26 -07:00
tuxxy
603486b5d1
Update KeyRing tests to use the pubkey param on encryption
...
Fix keypair components
2017-09-19 09:02:26 -07:00
tuxxy
d82dfabec0
Move keypair tests into test_keypairs and add tests for EncryptingKeypair
2017-09-19 08:49:31 -07:00
tuxxy
78483ff3e7
Add test_encryption and test_decryption
2017-09-19 08:27:05 -07:00
tuxxy
19ee10bd73
Add test_keyring with sign and verify tests
2017-09-18 11:06:37 -07:00
tuxxy
79b6f178a8
Add test_verification for test_signing_keypair
2017-09-18 10:55:44 -07:00
tuxxy
f4cf9090b7
Add test for signing with SigningKeypair
2017-09-18 10:39:36 -07:00
tuxxy
28628c4c94
Add step1_update_header test placeholder
2017-09-18 08:29:21 -07:00
Michael Egorov
47e89a2245
Switch serialization format to Python bytes
2017-09-17 00:21:28 -07:00
tuxxy
62287c66ae
Add test_encrypted_file with setup/teardown methods
2017-09-15 13:00:46 -07:00
tuxxy
94ddc2e8f6
Make tests.storage.test_header a monolithic test
2017-09-15 12:43:33 -07:00
tuxxy
ddd7e03b46
Fix test_header_zread
2017-09-14 19:17:45 -07:00
tuxxy
2ac32f6fa6
Add broken test_header_read test
2017-09-14 15:47:48 -07:00
tuxxy
9fde617c0d
Add working test_header_update test
2017-09-14 15:47:48 -07:00
tuxxy
d91fefca13
Add working test_header_defaults test
2017-09-14 15:47:48 -07:00
tuxxy
0004532871
Add NONCE_RANDOM_PREFIX_SIZE to constants
...
Add test for NONCE_RANDOM_PREFIX_SIZE constant
2017-09-14 15:47:48 -07:00
tuxxy
d9f1bcb82b
Add test_constants with one test
2017-09-14 15:47:48 -07:00
tuxxy
e217e0a7a0
Create test_header file within 'storage' directory in tests
2017-09-14 15:47:48 -07:00
jMyles
83d6724f61
Nodes now share a Capability framework for determining how to interact. This includes the ability for a Node to announce itself as seed-only. Fixed #22 .
2017-09-13 13:34:40 -07:00
jMyles
a032a4ab05
Logic for a node to alert another node that it is seed-only.
2017-09-13 13:34:40 -07:00
jMyles
ab6cbaead6
Seed-only Server now (at least seems) to actually refuse to store data. Fixes #23 .
2017-09-13 13:34:40 -07:00
tuxxy
5b4db3ac94
Return length of msgpack encoded header instead of raw header
2017-09-11 13:14:47 -07:00
tuxxy
3c2fbac129
Add length checking to header tests
2017-09-11 13:07:29 -07:00
tuxxy
0feb161d7b
Add check for num_keys in test_build_header_prealpha
2017-09-11 12:50:36 -07:00
tuxxy
de59deb7b1
Add tests for _build_header and _read_header
2017-09-11 12:29:42 -07:00
tuxxy
e9ce021283
Merge branch 'master' of github.com:nucypher/nucypher-kms
2017-09-05 18:54:29 -06:00
Michael Egorov
7f03612611
Msgpack to pack any objects in db
2017-09-05 16:53:18 -07:00
Michael Egorov
ddd7a6d849
Need to be able to store dicts
2017-09-05 16:41:54 -07:00
Michael Egorov
dcfec2d7ab
Make the default db for all tests, remove after each test
2017-09-05 16:39:13 -07:00
Michael Egorov
a6be3fb1d9
For all tests - use debug db, not the 'production db'
2017-09-05 16:08:30 -07:00
Michael Egorov
abfbdc7c16
Del and contains for DB
2017-09-05 16:02:25 -07:00
tuxxy
1e1dfa319b
Remove KMAC import from test_client
2017-09-05 17:01:47 -06:00
tuxxy
48e4ccfe06
Remove KMAC code
2017-09-05 17:00:44 -06:00
Michael Egorov
1219734484
Using lmdb as a dict-like storage
2017-09-05 15:43:16 -07:00
tuxxy
54f4eeaa44
Use path as bytes and fix tests /so far/
2017-09-04 23:30:05 -06:00
tuxxy
e702e3d5e0
Add test for splitting path with 'no path'
2017-09-04 13:08:45 -06:00
tuxxy
2d6c4327bb
Add test for client._split_path method
2017-09-04 12:59:14 -06:00
Michael Egorov
d33e678eca
Merge branch 'client-wip'
2017-09-01 22:49:44 -07:00
tuxxy
493b3e2c08
Add tests for KMAC
2017-09-01 23:20:14 -06:00
jMyles
c97e1290da
Updated to reflect solution that we arrived at for PR 32 on kademlia. Also includes a test.
2017-09-01 17:15:50 -07:00
tuxxy
209fa8f1e7
Fix bugs and whatnot
2017-09-01 15:42:00 -06:00
tuxxy
a0ee894d30
Add tests for decrypt_key
2017-09-01 14:09:31 -06:00
tuxxy
dde40b211b
Add is_pub param to _derive_path_key and update tests
2017-09-01 13:54:10 -06:00
tuxxy
ff68cb64b5
Add tests for encrypt_bulk and decrypt_bulk
2017-09-01 13:40:24 -06:00
tuxxy
935327a7a6
Add tests for derive_key_path and encrypt_key
2017-09-01 13:28:24 -06:00
Michael Egorov
e0a6574905
No secret key 2 needed for rekey
2017-08-25 22:12:21 -07:00
jMyles
23053ba979
In test_pre, made names more verbose, added comments, added newlines for emphasis.
2017-08-24 18:45:19 -07:00
Michael Egorov
2a515501f4
Remove print
2017-08-19 20:50:26 -07:00
Michael Egorov
9d25c7dbd1
pubkey bbs98
2017-08-19 20:12:47 -07:00
Michael Egorov
e8c06b8349
Public key bbs98
2017-08-19 14:50:34 -07:00
Michael Egorov
8febc2798c
PRE reencryption to pubkey
2017-08-19 13:17:54 -07:00
Michael Egorov
55dbfdd8e0
test_default_crypto - symmetric crypto
2017-08-19 12:05:18 -07:00
Michael Egorov
f7a3eaa5ca
Dummy test file
2017-08-18 10:28:29 -07:00