Commit Graph

586 Commits (ceae904822a5a19bc55712750c8106426b18c453)

Author SHA1 Message Date
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
tuxxy be78118254
Add _derive_path_key 2017-10-11 15:14:32 -06:00
tuxxy 4527f0f93a
Add placeholder method for encrypt and add _split_path 2017-10-11 14:47:55 -06:00
tuxxy a14f83fba5
Merge branch 'character-crypto' of github.com:jmyles/nucypher-kms into encrypting-power 2017-10-11 14:08:42 -06:00
tuxxy be18ef9017
Add tests for TestKeyStore 2017-10-11 14:02:27 -06:00
tuxxy 8fb36b8b13
Add boolean switch to generate private key in gen_ecies_keypair and gen_ecdsa_keypair 2017-10-11 13:59:27 -06:00
tuxxy ccece81783
Add test_ecdsa_keypair_generation to test_keypairs 2017-10-11 13:54:13 -06:00
tuxxy 263b21a84e
Add TestKeypairs TestCase with test_ecies_keypair_generation 2017-10-11 13:51:58 -06:00
tuxxy 8e29c079d0
Add placeholder methods for get_key, add_key, and del_key 2017-10-11 13:44:51 -06:00
tuxxy 1a328811bf
Implement gen_ecies_keypair and gen_ecdsa_keypair 2017-10-11 13:42:32 -06:00
tuxxy b88b86ab43
Add SigningKeypair to keypairs 2017-10-11 13:38:09 -06:00
tuxxy b10a896f49
Add minimal key generation for EncryptingKeypair 2017-10-11 13:33:56 -06:00
tuxxy ad129831c9
Add empty keypairs.py file 2017-10-11 13:21:48 -06:00
tuxxy 01fa0ce456
Add placeholders for gen_ecies_keypair and gen_ecdsa_keypair 2017-10-11 13:21:04 -06:00
tuxxy 51a20401e7
Create keystore module w/ empty keystore.py 2017-10-11 13:11:07 -06:00
tuxxy 04f167baf2
Move keystore.py to keyring.py (temporary) 2017-10-11 13:09:49 -06:00
jMyles bf0f83b6ea Moving EncryptingKeypair over to powers. 2017-10-10 22:39:25 -07:00
Tux 453ce8d1b3 Merge pull request #74 from tuxxy/crypto-api
[WIP] Implement a low-level, frozen ECIES PRE Cryptographic API w/ serialization
2017-10-10 21:20:25 -06:00
tuxxy 42ee8fc8c9 Remove unneeded hash.py file 2017-10-10 20:32:37 -06:00
tuxxy c699fd3e18 Use keccak_digest instead of signature_hash or content_hash
Really use keccak_hash

keccak_hash -> keccak_digest

Fix another thing
2017-10-10 20:32:35 -06:00
tuxxy 3b3f44038c Fix tests and update imports to reflect nkms.crypto.api 2017-10-10 20:18:24 -06:00
tuxxy 84ba50ddf6 Remove the use of msgpack 2017-10-10 19:05:20 -06:00
tuxxy f8f2281528 Import nkms.crypto.api in test_api 2017-10-10 17:26:29 -06:00
tuxxy 2f5c507bcd Rename test_crypto.py to test_api.py 2017-10-10 17:25:17 -06:00
tuxxy 954d898aa2 Rename crypto.py to api.py 2017-10-10 17:24:43 -06:00