Commit Graph

226 Commits (ba2200487f5c9d450707b985927712560f1851eb)

Author SHA1 Message Date
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
jMyles c11e9c77f8 New ECDSA sign function. 2018-02-09 02:34:25 -08:00
tuxxy a55149fa06 Add cryptographic bytestring length constants from PyUmbral 2018-02-07 01:19:51 -07:00
tuxxy e84b772af5 Remove PRE declaration 2018-02-07 00:14:30 -07:00
tuxxy da70c11b06 Delete old code that will be replaced with pyUmbral 2018-02-06 22:07:08 -07:00
jMyles e263558218 Allow BytestringSplitter to use from_bytes if that method is provided. 2018-02-05 23:30:07 -08:00
jMyles 543465b99d Implementing from_public_keys in various places. 2018-02-05 11:26:50 -08:00
jMyles 1fb92890bb Making KFrag hashable; preparing to use it as a key in `_active_ursulas`. 2017-12-14 11:39:17 -08:00
jMyles 2d4a57f463 RepeatingBytestringSplitter - to get any number of CFrags from the HTTP response. 2017-12-05 12:53:39 -08:00
jMyles 295e4c6e9b Overhaul of CFrag class; adding more robust protections. 2017-12-05 12:53:18 -08:00
jMyles 32658b08ee Reconstituting an EncryptedKey from deserialized key data. 2017-12-05 12:52:43 -08:00
jMyles 73f1a62141 Reconsituting CFrag from the full reencrypted_data payload. 2017-12-05 12:52:10 -08:00
jMyles ff04578dc3 CFrag and tests. 2017-12-04 17:17:13 -08:00
jMyles 2100acb680 Implemented PFrag in API. Closes #137. 2017-12-04 16:27:32 -08:00
jMyles ceb39d4ab7 PFrag class. 2017-12-04 16:26:52 -08:00
jMyles 4fab47cac3 Proper dunders with tests for kfrag retrieval and deserialization. Fixes #138. 2017-12-04 15:23:40 -08:00
jMyles 60d5846774 Don't need the part lengths anymore. 2017-12-04 14:38:43 -08:00
jMyles 2fc80d3414 Providing KFrag compatibility. 2017-12-04 13:58:11 -08:00
jMyles 07ddefa909 Making API return KFrag instances. 2017-12-04 13:57:55 -08:00
jMyles 7ebe8eb56c First sketch of KFrag class. 2017-12-04 13:08:21 -08:00
jMyles 75dc1b011a Sketching things out here. 2017-12-02 17:33:49 -08:00
jMyles f7539f7575 Python 3.5 doesn't like inline type-hints for variables. This can be a class anyway. 2017-11-22 09:23:40 -08:00
jMyles 5f4b5f5cca Type for Keypair class. 2017-11-21 22:10:47 -08:00
jMyles e34ddef071 New names for return values. 2017-11-21 22:10:27 -08:00
jMyles fce308fc62 Fixed some tuple type hints with the proper number of expected members. 2017-11-21 22:09:58 -08:00
jMyles 6886b6bb0a Adding type hints for methods that return None. 2017-11-21 22:08:02 -08:00
jMyles 1baf8123ee Length check for PublicKey while checking Signature. 2017-11-18 14:31:27 -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 ec8c225f7d Moved BytestringSplitter remainder logic to __call__; implemented throughout. 2017-11-11 18:00:32 -08:00
jMyles 72ffa361a4 BytestringSplitter is now allowed to give back the remainder. 2017-11-11 17:46:00 -08:00
jMyles f19a581602 Raise error if Signature is wrong length. 2017-11-11 17:43:55 -08:00
jMyles 3dda083b71 New constants for use with BytestringSplitter. 2017-11-11 17:39:47 -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 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
jMyles e0f9995e4c Casting Signature to bytes for msgpack. Better to concat it in the future - see #114. 2017-11-10 16:29:28 -08:00
tuxxy 215b28e113 Return Signature object from SigningPower.sign 2017-11-10 16:18:18 -08:00
jMyles b66eccb251 Working stop-propagation for both Ursula interfaces and TreasureMaps. 2017-11-10 02:04:01 -08:00
tuxxy 427333d6b9
Implement the Signature class 2017-11-09 14:06:43 -08:00
tuxxy c403813411
Add Signature placeholder class 2017-11-09 13:23:23 -08:00
jMyles f704f93cbe KeyPairBasedPower to reuse logic for powers based on keypairs. 2017-11-07 12:51:30 -08:00
jMyles ae7683478b Moved verify to utils; implemented it in Character.verify_from. Awesome cleanup. Fixes #99. 2017-11-05 20:30:34 -08:00
jMyles 2d321f230d Verify method described in #99. 2017-11-05 19:30:03 -08:00