Commit Graph

560 Commits (c0920b709dcf7a2673c5bcb3150b73478401eeb7)

Author SHA1 Message Date
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
jMyles ee3170de32 Imlement HRAC in protocols. 2017-11-11 17:43:06 -08:00
jMyles 3dda083b71 New constants for use with BytestringSplitter. 2017-11-11 17:39:47 -08:00
jMyles 53a0450bf5 Added dunders to Seal for concat'ing. 2017-11-11 15:49:15 -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 7e43f3caad More thorough implementation of Signature throughout. 2017-11-10 23:36:21 -08:00