Commit Graph

610 Commits (fba93f9b07af2946a7bc3ce91c358dde895e5c47)

Author SHA1 Message Date
jMyles fba93f9b07 ...and that's the story of how pyumbral and MessageKits destroyed two perfectly awful functions. 2018-02-11 00:59:14 -08:00
jMyles d2a5218cc2 More touchups to powers. 2018-02-11 00:58:06 -08:00
jMyles b63e749819 Characters can encrypt for others without needing an encrypting power. 2018-02-11 00:56:33 -08:00
jMyles 69137b07d5 Some organization. 2018-02-11 00:55:22 -08:00
jMyles b92b5158e1 Serialize MessageKit. 2018-02-11 00:54:36 -08:00
jMyles 50043f68a9 Using splitters in kits! 2018-02-11 00:54:24 -08:00
jMyles 6e5a6cfbaa Putting some prefab splitters in splitters.py. 2018-02-11 00:54:15 -08:00
jMyles 0c32deab98 Splitting a MessageKit to get Policy. 2018-02-11 00:52:25 -08:00
jMyles f807113d7d verify_from now takes a MessageKit. 2018-02-11 00:52:10 -08:00
jMyles 5358916ea5 encrypt_for now takes plaintext, returns a MessageKit. 2018-02-11 00:51:21 -08:00
jMyles a3a05d9de0 powers_and_keys can now take UmbralPublicKeys. 2018-02-11 00:50:22 -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 d91426e0e8 Formatting and style changes. 2018-02-10 19:39:03 -08:00
jMyles fee2b29836 Red lines through PFrag. 2018-02-10 19:28:34 -08:00
jMyles 438ecf2e29 New splitters for new hashes. 2018-02-10 19:26:54 -08:00
jMyles 044c636a77 New hash digest length for dht bytestring splitter. 2018-02-10 19:24:27 -08:00
jMyles 84e6f7d410 Signatures returned from keypairs. 2018-02-10 19:12:45 -08:00
jMyles 625ec75b0f Better error if message_types aren't compliant with BytestringSplitter. 2018-02-10 19:09:29 -08:00
jMyles 440e3e13b6 Signature r+s concatenation serialization. 2018-02-10 19:09:29 -08:00
jMyles 24bbac9ae1 Unlike PublicKey, UmbralPublicKey can't be init'd with bytes. 2018-02-10 19:09:29 -08:00
jMyles 9ce9a8a49b Bytes de/serialization for Signature has changed a bit now that we're using cryptography.io.
For a question about this method of serialization r and s, see: https://stackoverflow.com/questions/48726642/whats-the-proper-way-to-get-a-fixed-length-bytes-representation-of-an-ecdsa-sig/48727351#48727351
2018-02-10 19:09:29 -08:00
jMyles ddd0d69ac8 We make a Signature our of r and s now - it'll be 64 bytes with secp256k1. 2018-02-10 19:09:29 -08:00
jMyles 29aeb86bc5 We don't hash messages in advance anymore; cryptography.io does it. 2018-02-10 19:09:29 -08:00
jMyles c7e13cb861 KeyPair gets init'd with bytes. 2018-02-10 19:09:29 -08:00
jMyles 8a6ac628bb Use the sig_keypair's sign method. 2018-02-10 19:09:29 -08:00
jMyles ad3af0fe8f Gotta actually grab the public key. 2018-02-10 19:09:29 -08:00
jMyles 8ecb791823 Moved mutable out of params list. 2018-02-10 19:09:29 -08:00
jMyles 817277623f Two hash digest lengths are better than one! 2018-02-10 19:09:29 -08:00
jMyles adf2eee2e8 API no longer returns Signature. 2018-02-10 19:09:29 -08:00
jMyles 1eef746f7c Alice implements new kfrag generation method. 2018-02-10 19:09:29 -08:00
jMyles 44d9820f7b Alice now generates KFrags with umbral. Woo! 2018-02-10 19:09:28 -08:00
tuxxy 893ae8d24c Implement Keystore with new models 2018-02-10 17:01:11 -07:00
tuxxy b894ca6d18 Implement get_fingerprint on Keypair 2018-02-10 15:43:00 -07:00
tuxxy 03ffe8c9cd Merge branch 'rm-crypto' of github.com:tuxxy/nucypher-kms into rm-crypto 2018-02-10 15:24:55 -07:00
tuxxy 439a80444b Add keystore models 2018-02-10 15:24:42 -07:00
jMyles 65940dd0fe Preparing to use UmbralPublicKey. 2018-02-09 20:44:16 -08:00
jMyles acc31b7757 Using UmbralPrivate key for splitting in protocols. 2018-02-09 20:38:10 -08:00
jMyles 9627dbca0e Using MessageKit for decrypting. 2018-02-09 20:37:55 -08:00
jMyles 3a1fcc349d Adding public key (assuming secp256k1) to constants 2018-02-09 20:36:15 -08:00
tuxxy 5b73db801e PEP8 changes to characters 2018-02-09 21:15:50 -07:00
tuxxy 7f7c1207ef Set HASH_DIGEST_LENGTH to 64 2018-02-09 19:52:43 -07:00
tuxxy a761466d38 Implement Umbral in Keypairs 2018-02-09 19:44:20 -07:00
tuxxy 39b70336d3 Add what I got so far -- Keypair 2018-02-09 14:25:52 -07:00
jMyles 5741702891 Fixed NameError for Signature.__bytes__. 2018-02-09 13:03:52 -08:00
jMyles 48bfbacd5d KeypairBasedPower.__init__ - @tuxxy is perhaps going to move this down to KeyPair. 2018-02-09 13:03:10 -08:00
tuxxy b694877f70 Implement ecdsa_sign in API and call it in signature 2018-02-09 13:29:04 -07:00
tuxxy ba2200487f Add what I got - KeypairBasedPower 2018-02-09 12:27:12 -07:00
tuxxy 1cafba8e34 Use 'ECDSA Signature' on __repr___ 2018-02-09 11:04:44 -07:00
tuxxy 61eb1a11f4 Merge branch 'rm-crypto' of github.com:tuxxy/nucypher-kms into rm-crypto 2018-02-09 03:44:30 -07:00