Commit Graph

768 Commits (cc80a065e0fb491b59f9fadb53b7c0b4e938265c)

Author SHA1 Message Date
jMyles 17ff9a37cf Changed 'set_kfrag' to 'set_policy'. 2017-11-20 19:19:37 -08:00
jMyles 05a9cb99ba Was catching the wrong ImportError. 2017-11-20 19:19:18 -08:00
jMyles 76aae80f70 Correcting Pipfile.lock mistake. 2017-11-20 15:53:55 -08:00
jMyles ac34d2667d Serializing keyfrag data before concat'ing it. See #126. 2017-11-19 11:59:35 -08:00
jMyles 522c016f53 Moving REST App from test_utilities to Ursula. 2017-11-19 11:58:33 -08:00
jMyles 38933d59a0 REST Logic for Policy. Still a problem, though - RekeyFrag can't be added to KeyStore - see #126. 2017-11-18 19:21:36 -08:00
jMyles 63a10aef67 Changing 'animate' to 'enact'. 2017-11-18 19:21:32 -08:00
jMyles 31687af4f3 Convenience method for creating Characters from pubkey_sig_bytes. 2017-11-18 19:17:52 -08:00
jMyles c0920b709d Splitting on the other end of the wire works! 2017-11-18 14:33:54 -08:00
jMyles a39146cac9 Using PublicKey in deserialization. 2017-11-18 14:33:33 -08:00
jMyles 1baf8123ee Length check for PublicKey while checking Signature. 2017-11-18 14:31:27 -08:00
jMyles 5fdac5d345 Ursula checks Alice's signature on the payload; still some logic to work out. 2017-11-18 13:33:32 -08:00
jMyles 269063f1b1 Moving test Client logic over to test_utilities 2017-11-18 13:33:31 -08:00
jMyles 7c3b62fb58 Beginning of creation of Policy from bytes payload. 2017-11-18 13:33:31 -08:00
jMyles 753905f04f Ursula receives a Policy.payload via REST. 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 9782649a5b Policy payload encryption for Ursula. 2017-11-18 13:33:31 -08:00
jMyles c426714622 Policy now gets Bob injected. 2017-11-18 13:33:31 -08:00
jMyles 711d99b109 IntegrityError block for adding a kFrag that already exists. 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 c61ea7f76e Implementing keystore in view. 2017-11-18 13:33:31 -08:00
jMyles ec07b241c8 Ursula now makes a KeyStore using in-memory sqlite if none is provided. 2017-11-18 13:33:31 -08:00
jMyles 0fa2750e6f Ursula now takes a KeyStore. 2017-11-18 13:29:55 -08:00
jMyles 9a836e467e Beginnings of a test for Ursula to receive a kFrag. 2017-11-18 13:29:55 -08:00
jMyles 531e3c15c2 Ursula endpoint for receiving a new 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 2b8f0c9ddc Basic structure of kFrag routes. 2017-11-18 13:29:55 -08:00
jMyles 6f23832462 REST Directory. 2017-11-18 13:29:55 -08:00
jMyles c4f0bb47ca Adding apistar to reqs. 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
jMyles 5a36280788 Ridculous try block no longer needed. 2017-11-18 13:16:41 -08:00
jMyles bcb8849533 Use PublicKey for splitter. 2017-11-18 13:16:26 -08:00
jMyles 291775e6b7 Signature.verify() uses PublicKey.without_metabytes() 2017-11-18 13:14:29 -08:00
jMyles fc08f6f4dd No more need for PUBKEY_SIG_LENGTH - this is on PublicKey now. 2017-11-18 13:13:59 -08:00
jMyles c4421d9e9d Added metabytes to public key generation; fixed some PEP8 issues in API. 2017-11-18 13:13:14 -08:00
jMyles 098da6dc21 PublicKey class. 2017-11-18 13:11:27 -08:00
jMyles e8cfed52e6 Raises ValueError if keypair_byte doesn't match. Fixes #123. 2017-11-18 11:18:12 -08:00
Tux 7d97a6c503
Merge pull request #117 from tuxxy/frag-keystore
Add KeyFrag to KeyStore
2017-11-15 10:18:19 -07:00
tuxxy 8906d89450
Use BytestringSplitter for kFrag in KeyStore 2017-11-14 16:26:06 -07:00
tuxxy c18a2a6cbd
Add RekeyFrag id length and key length to constants 2017-11-14 15:45:43 -07:00
tuxxy 9fb0aad603
Add test for test_keyfrag_sqlite 2017-11-11 18:35:39 -08:00
tuxxy 891cf32a2a
Merge branch 'master' of github.com:nucypher/nucypher-kms into frag-keystore 2017-11-11 18:22:07 -08:00
tuxxy 7b46a20aac
Add sig param to get_kfrag 2017-11-11 18:21:05 -08:00
Justin Holmes 1aa50deeec
Merge pull request #116 from jMyles/bytesplitting
Bytesplitting
2017-11-11 18:16:46 -08:00
jMyles ec8c225f7d Moved BytestringSplitter remainder logic to __call__; implemented throughout. 2017-11-11 18:00:32 -08:00
jMyles f643e0cd2b Using HRAC and dht_value_splitter for characters. 2017-11-11 17:46:27 -08:00
jMyles 72ffa361a4 BytestringSplitter is now allowed to give back the remainder. 2017-11-11 17:46:00 -08:00
jMyles d23f10bfe7 Using HRAC and dht_value_splitter in tests. 2017-11-11 17:45:33 -08:00
jMyles f19a581602 Raise error if Signature is wrong length. 2017-11-11 17:43:55 -08:00
jMyles 49015c4682 dht_value_splitter for reuse. 2017-11-11 17:43:33 -08:00