Commit Graph

196 Commits (ad0eb40a4d7d957cde586626e59ac02106a8fbd1)

Author SHA1 Message Date
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
jMyles 991a2279d5 Uses de/serialization from umbral. 2017-11-03 18:37:27 -07:00
tuxxy e6240486a9
Fill in ecies_ephemeral_split_rekey 2017-10-19 01:25:53 -06:00
tuxxy fd54c6bf38
Fill out _ecies_gen_ephemeral_key 2017-10-19 01:04:02 -06:00
tuxxy ec3f95e62f
Add placeholder function _ecies_gen_ephemeral_key to _internal.py 2017-10-19 00:59:50 -06:00
tuxxy a81b6e0f23
Add empty _internal.py
This is a place for interal cryptographic functions and possibly
functions that may make it into the core cryptographic api.
2017-10-19 00:51:18 -06:00
tuxxy c9b35967b4
Add placeholder for ecies_ephemeral_split_rekey 2017-10-19 00:48:13 -06:00
jMyles 334c7807ad Let's see how the graph changes if we only cover nkms. 2017-10-17 18:44:37 -07:00
tuxxy 09b442d5a3
Use SigningPower instead of SigningKeypair in test_crypto_characters_and_their_powers
Use SigningPower instead of SigningKeypair correctly

Use correct SigningPower
2017-10-17 16:01:59 -06:00
tuxxy 32baef1575
Add test TestSigningPower and fix SigningPower init params 2017-10-17 14:47:51 -06:00
tuxxy b28d66374c
Add sign method in SigningKeypair call it in SigningPower 2017-10-17 14:25:56 -06:00
tuxxy 506fd8c2d0
Add _gen_pubkey method to keystore.keypairs objects and make SigningKeypair inherit from Keypair 2017-10-17 14:12:47 -06:00
tuxxy 254f1d44c0
Use keypairs import for SigningKeypair and fix some PEP8 things 2017-10-17 13:55:00 -06:00
tuxxy 1b0ea98980
Rename SigningKeypair to SigningPower 2017-10-17 13:20:55 -06:00
jMyles 5566c6058e Removed alpha and added test for its removal. 2017-10-16 22:25:16 -07:00
jMyles 4a2d6a05b3 Code cleanup and some stale code removal. Made EncryptingPower compliant with confers_public_key logic. 2017-10-16 21:45:43 -07:00
jMyles 9d0fe9e181 Compat. with public keys defaulting to bytes instead of tuple. 2017-10-16 20:21:45 -07:00
jMyles 64b907f461 Shim to use SigningKeypair.gen_priv while @tuxxy works out SigningPower. 2017-10-16 20:14:58 -07:00
jMyles 758aeaa2d7 Compatibility with new encrypt/decrypt functions. 2017-10-16 20:13:38 -07:00
jMyles aaebf25da5 removing generate_random_keypair entirely. 2017-10-16 18:19:45 -07:00
jMyles 504d840e28 Moving new crypto utility functions to _alpha while we consider them. 2017-10-16 18:19:27 -07:00
jMyles adf71c80c8 Seal now implements dunders instead of custom methods. 2017-10-16 18:17:53 -07:00
jMyles 71669bfc49 Made working defaults for EncryptingKeypair 2017-10-16 18:17:29 -07:00
jMyles 506f0f81cd Character encryption tests.
Note that CryptoPower.decrypt and Character.encrypt_for have fake logic until EncryptingPower is implemented.
2017-10-16 18:16:01 -07:00
tuxxy 84d183ba7c
Add tests and fix encrypt/decrypt issues 2017-10-16 14:10:56 -06:00
tuxxy 27234dce73
Fix import errors 2017-10-16 13:39:46 -06:00
tuxxy 28b865dff2
Undo the last thing 2017-10-16 13:21:19 -06:00
tuxxy 75b7e30e7a
Push priv/pub to be the first param in encrypt/decrypt functions 2017-10-16 13:17:40 -06:00
tuxxy 299e89105e
Accept tuple in param 2017-10-16 13:12:35 -06:00
tuxxy f83486636b
Decapsulate enc_key 2017-10-16 13:08:32 -06:00
tuxxy 2d52062581
Add PKE decrypt method [WIP]
Remove old encrypt method
2017-10-16 12:26:45 -06:00