Commit Graph

843 Commits (542e6b6a5ce697d9237e25d33564e7cd86859089)

Author SHA1 Message Date
tuxxy 542e6b6a5c Fix syntax 2018-02-10 22:08:27 -07: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
Tux 6922739fd9
Merge pull request #8 from jMyles/rm-crypto
Rm crypto
2018-02-10 20:58:26 -07:00
jMyles 83998706a0 Splitter uses PUBLIC_KEY_LENGTH for UmbralPublicKey. 2018-02-10 19:53:57 -08: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
Tux b930929b54
Merge pull request #7 from jMyles/rm-crypto
MOAR RM CRYPTO!
2018-02-09 21:51:56 -07:00
jMyles d9d619b149 Keypair generation tests are gonna have'ta change. 2018-02-09 20:44:52 -08:00
jMyles 459d6c9e08 Simplying conftest. 2018-02-09 20:44:27 -08: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
Tux fc29e1faf7
Merge pull request #6 from jMyles/rm-crypto
Rm crypto
2018-02-09 14:08:27 -07:00
jMyles 7896e2d11d No more DB! 2018-02-09 13:05:44 -08:00
jMyles 67dd86534c You can init a Power with nothing now. 2018-02-09 13:05:23 -08:00
jMyles 0fc1e7cebb Not uding nkms.db anymore. 2018-02-09 13:05:00 -08: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
tuxxy 9eb303506d Use PyUmbral keys in Signature 2018-02-09 03:44:15 -07:00