Commit Graph

560 Commits (c0920b709dcf7a2673c5bcb3150b73478401eeb7)

Author SHA1 Message Date
jMyles a3640c9dae Signed up for codecov; adding repo comaptibility. 2017-10-17 17:59:12 -07:00
Justin Holmes a8b4f975f2 Merge pull request #80 from tuxxy/signing-power
Implement SigningPower
2017-10-17 16:46:02 -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 9bc43c88e4
Use SigningPower instead of SigningKeypair in characters 2017-10-17 15:01:25 -06:00
tuxxy 67b1225cef
Add tests test_ecdsa_keypair_signing and test_ecdsa_keypair_verification 2017-10-17 14:59:25 -06:00
tuxxy 4ccdb92ed7
Use SigningKeypair.verify in test_signing 2017-10-17 14:52:42 -06:00
tuxxy 2a3e6fcdc3
Add verify method to SigningKeypair 2017-10-17 14:51:00 -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 d89fd7cf31
Add test test_keypair_object to test keypair intialization 2017-10-17 14:13:12 -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
Justin Holmes 7693b108ee Merge pull request #78 from jMyles/character-crypto
Character-level encryption, decryption, signing, and verification.  Alice, Bob, and Ursula classes working.
2017-10-17 10:52:24 -07: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 5cebbf16e4 Unskipping test - it passes now! 2017-10-16 20:21:58 -07:00
jMyles 9d0fe9e181 Compat. with public keys defaulting to bytes instead of tuple. 2017-10-16 20:21:45 -07:00
jMyles ceecd2bd4b KeyPairs now use API for PRE object. 2017-10-16 20:20:33 -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 9714b2d0cb Fixing equality function (still needs tests) 2017-10-16 18:19:16 -07:00
jMyles adf71c80c8 Seal now implements dunders instead of custom methods. 2017-10-16 18:17:53 -07:00
jMyles e276e86d52 Getting pretty close. Need a clean way to encrypt and decrypt. 2017-10-16 18:17:53 -07:00
jMyles 71669bfc49 Made working defaults for EncryptingKeypair 2017-10-16 18:17:29 -07:00
jMyles db364a20de Fixed up docstring and type hints on verify_from 2017-10-16 18:16:01 -07:00
jMyles 5390c8fce5 Fixed PolicyGroup to accept Bob, cleaned up tests and removed stale mock material. 2017-10-16 18:16:01 -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
jMyles 8cf64dfcc6 PolicyGroup now uses Bob instead of a public key. One test fails until we get EncryptingPower working. 2017-10-16 18:12:14 -07:00
jMyles a202507978 logic to check that passing signature<=-=>message backwards raises TypeError (commented out for now). 2017-10-16 18:06:16 -07:00
Tux 1f21c84d8a Merge pull request #79 from tuxxy/encrypting-power
Add EncryptingPower
2017-10-16 16:38:06 -06:00
tuxxy 84d183ba7c
Add tests and fix encrypt/decrypt issues 2017-10-16 14:10:56 -06:00
tuxxy ed47bdf79b
Add test_encrypting_power.py 2017-10-16 13:49:53 -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
tuxxy 426eedf706
Add some PKE and key encryption methods and comment out old encrypt method 2017-10-16 12:05:38 -06:00
tuxxy c8b7459e66
Add gen_path_keys function: 2017-10-13 15:18:52 -06:00
tuxxy 529c5aac85
Add PKE encryption method 2017-10-13 14:58:34 -06:00
tuxxy 98c0a45658
Fix up encrypt returns 2017-10-13 11:50:26 -06:00
tuxxy 9c8bc7eb6e
Add _decrypt_key 2017-10-12 14:58:03 -06:00
tuxxy 5a30ab0626
Add placeholder for decrypt method 2017-10-11 20:24:03 -06:00
tuxxy ed5a1a30a8
Fill out the encrypt method 2017-10-11 20:08:47 -06:00
tuxxy 228974001b
Add the encryption code so far 2017-10-11 16:51:27 -06:00
tuxxy dcbc6341fc
Implement _encrypt_key 2017-10-11 15:32:40 -06:00