Commit Graph

560 Commits (c0920b709dcf7a2673c5bcb3150b73478401eeb7)

Author SHA1 Message Date
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
Tux 90e9441f7b
Merge pull request #94 from tuxxy/sqlite
Implement SQLite for KeyStore
2017-11-02 18:39:21 -07:00
tuxxy 0ae3e92432
Add SQLAlchemy to Pipfile 2017-11-02 18:21:08 -07:00
tuxxy 398bba06f7
Merge branch 'sqlite' of github.com:tuxxy/nucypher-kms into sqlite 2017-11-02 18:19:32 -07:00
tuxxy f9de664c6d
Set secure_delete pragma 2017-11-02 18:19:26 -07:00
Tux ac0547f020
Merge branch 'master' into sqlite 2017-11-02 17:54:03 -07:00
Tux 80bfc250f8
Merge branch 'master' into sqlite 2017-11-02 17:53:27 -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
tuxxy e2fd18dfc9
Add __init__ and get_fingerprint methods to models.Key 2017-11-02 17:00:42 -07:00
tuxxy a855e05e6a
Add Key model to keystore.db.models 2017-11-02 16:45:16 -07:00
tuxxy acc6467b4d
Add empty models.py 2017-11-02 16:11:53 -07:00
tuxxy b8be897934
Add declarative base to db.__init__ 2017-11-02 16:10:58 -07:00
Justin Holmes 0d004bd74b
Merge pull request #91 from jMyles/master
Removing test datastore from VCS.
2017-10-27 14:45:51 -07:00
jMyles 6a678ba5de Removing test datastore from VCS. 2017-10-27 14:03:51 -07:00
tuxxy bec04ef34a
Add __init__ for db module in keystore 2017-10-26 14:38:48 -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
Justin Holmes c9b95cd5a9 Merge pull request #87 from tuxxy/KeyNotFound-error
Implement KeyNotFound Exception
2017-10-23 13:57:13 -07:00
tuxxy 583d9a3962 Use better error message 2017-10-23 13:44:30 -07:00
tuxxy d7dc6f06bc Check for KeyNotFound error in tests 2017-10-23 13:38:06 -07:00
tuxxy 058c1206a6 Raise KeyNotFound when no key is located in lmdb 2017-10-23 13:38:06 -07:00
tuxxy 08ebcf3c4b Add KeyNotFound exception class 2017-10-23 13:38:06 -07:00
Justin Holmes 23fe9dffdb Merge pull request #84 from tuxxy/keystore
Implement lmdb in KeyStore
2017-10-23 11:32:54 -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 6cca4d2b27
Convert the keypair_byte and the key_type_byte to actual bytes 2017-10-20 16:20:36 -06:00
tuxxy 37cf1af935
Return None if no key exists 2017-10-20 16:05:09 -06:00
tuxxy 0ae8d4ffa6
Fill out del_key 2017-10-20 15:46:56 -06:00
tuxxy 9070679f2e
Fill out get_key and add_key 2017-10-20 15:44:47 -06:00
tuxxy 0855bd5972
Add serialization methods for the keystore keypairs 2017-10-20 15:32:51 -06:00
tuxxy 84b9375179
Fill out __init__ and __del__ for KeyStore 2017-10-20 15:28:32 -06:00
tuxxy 2a1110e2c9
Add constants for keypair type bytes 2017-10-20 15:28:03 -06:00
tuxxy 183ce12f09
Add test for test_ecies_ephemeral_split_rekey 2017-10-19 01:31:04 -06:00
tuxxy e6240486a9
Fill in ecies_ephemeral_split_rekey 2017-10-19 01:25:53 -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
tuxxy fd54c6bf38
Fill out _ecies_gen_ephemeral_key 2017-10-19 01:04:02 -06:00
tuxxy ec3f95e62f
Add placeholder function _ecies_gen_ephemeral_key to _internal.py 2017-10-19 00:59:50 -06:00
tuxxy a81b6e0f23
Add empty _internal.py
This is a place for interal cryptographic functions and possibly
functions that may make it into the core cryptographic api.
2017-10-19 00:51:18 -06:00
tuxxy c9b35967b4
Add placeholder for ecies_ephemeral_split_rekey 2017-10-19 00:48:13 -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
Justin Holmes a0b3c5d8ce Merge pull request #81 from jMyles/ops
Signed up for codecov; adding repo comaptibility.
2017-10-17 19:27:34 -07:00
jMyles b67f5b5d0d It appears that pytest has its own way of specifying source to measure. 2017-10-17 19:12:06 -07:00
jMyles 334c7807ad Let's see how the graph changes if we only cover nkms. 2017-10-17 18:44:37 -07:00
jMyles b90da13470 Adding .coverage to .gitignore. 2017-10-17 18:01:44 -07:00