Commit Graph

242 Commits (57b4450d59f2dacccc5f4b994b5a417e7eda827a)

Author SHA1 Message Date
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