Commit Graph

196 Commits (ad0eb40a4d7d957cde586626e59ac02106a8fbd1)

Author SHA1 Message Date
tuxxy 58f632b7a3 Add priv_bytes2ec method: 2017-10-05 17:23:30 -06:00
tuxxy a5cd0759b1 Add priv2pub method 2017-10-05 17:03:23 -06:00
tuxxy eb74e98c90 Add ECIES de/encapsulate methods and gen_priv methods and format code better 2017-10-05 16:58:14 -06:00
tuxxy 82928a78a3 Add symm_encrypt and symm_decrypt to crypto 2017-10-05 16:36:20 -06:00
tuxxy 56baf587a1 Add empty crypto.py file 2017-10-05 16:00:59 -06:00
jMyles 208db55d4c Removed the awful list comp tuple pack in favor of @michwell's much better way. If anybody ever accuses me of writing that thing, I reserve the right to say I was hacked. 2017-10-04 13:08:41 -07:00
jMyles 004437e8f6 Policy models are now worked out such that the TreasureMap is stored on a 'free tier' k:v DHT. 2017-10-03 21:13:46 -07:00
jMyles 40171da964 Two-tier ID generation. 2017-10-03 17:52:28 -07:00
tuxxy fc7c2dfd98 Use *args instead of an iterable for SigningKeypair.digest 2017-10-03 18:08:40 -06:00
tuxxy 71d8ed4eca Use SigningKeypair.digest in KeyRing.sign 2017-10-03 15:58:59 -06:00
tuxxy 0a5abfcd28 Add digest function to handle iterables in SigningKeypair 2017-10-03 15:49:22 -06:00
Michael Egorov 23720404cb Change comment about ekey[1] = None 2017-09-30 20:19:52 -07:00
Michael Egorov 5763615b6c Split-key re-encryption: tests pass 2017-09-30 20:01:11 -07:00
Michael Egorov 2c102ed384 Split-key (fails) 2017-09-30 19:55:16 -07:00
Michael Egorov 1ec8a788c4 Encrypt(Alice) -> re-encrypt(Ursula) -> decrypt(Bob). With tests 2017-09-30 15:41:03 -07:00
Michael Egorov 7062c6b186 Decrypt re-encrypted data 2017-09-30 15:13:47 -07:00
Michael Egorov 9c8746e370 Rekey 2017-09-30 13:59:37 -07:00
Michael Egorov 572442b8cb Encrypt/decrypt with a serializing keypair 2017-09-29 23:18:20 -07:00
Michael Egorov 78e88010b4 Lazy generation of pubkey 2017-09-29 19:44:26 -07:00
Michael Egorov ddc91bb556 Re-encryption works but convoluted 2017-09-29 17:27:11 -07:00
Michael Egorov f66577b9b8 Test encryption/decryption w/o re-encryption - works 2017-09-29 13:24:14 -07:00
tuxxy 63fdfcae29 Add code for decrypt w/ broken test_encrypt_decrypt 2017-09-28 16:10:50 -07:00
tuxxy 9f3c2547f3 Add decrypt method placeholder 2017-09-28 14:11:26 -07:00
tuxxy 53821e92da Add encrypt method code and update generate_key to accept pubkeys 2017-09-28 13:09:59 -07:00
tuxxy d4a4bd5066 Add encrypt method 2017-09-28 11:12:14 -07:00
tuxxy 983dd3c4d5 Update _derive_path_key and add test_derive_path_key 2017-09-28 11:11:21 -07:00
tuxxy 25ee602f13 Add _split_path method 2017-09-28 10:32:37 -07:00
tuxxy ef738d7cba Fix test_rekey_and_reencryption 2017-09-26 23:35:00 -07:00
tuxxy af0b298cbf Merge branch 'master' of github.com:tuxxy/nucypher-kms into umbral 2017-09-26 21:18:23 -07:00
tuxxy cbfea253b6 Add rekey test that isn't working 2017-09-26 21:04:39 -07:00
tuxxy b6e18ec085 Add symm_encrypt/decrypt methods in KeyRing w/ tests 2017-09-26 13:07:23 -07:00
tuxxy b3f0335679 Allow generate_key to have a pubkey param 2017-09-26 13:06:52 -07:00
jMyles c55c0302e7 Using keccak-256 for hashing. Closes #45. 2017-09-26 12:59:06 -07:00
jMyles 9e314d8b81 Added more Policy and PolicyGroup logic. Now conforms to @tux's crypto APIs. 2017-09-26 12:59:06 -07:00
tuxxy 82864f643d Add Umbral to Client 2017-09-26 10:25:42 -07:00
tuxxy 2670ae7605 Add test for test_split_key_sharing 2017-09-26 10:24:05 -07:00
tuxxy 48fa10d7cb Add test for rekey and re-encryption 2017-09-26 10:14:38 -07:00
tuxxy 56bf4381eb Add tests for key generation and key decryption; serialization is already handled with EncryptedKey 2017-09-26 10:03:37 -07:00
tuxxy b2924b6b41 Handle serialization from bytes->int on KeyRing.decrypt_key 2017-09-26 09:47:18 -07:00
tuxxy db152239f8 Add KEYSIZE constant in EncryptingKeypair 2017-09-26 09:46:49 -07:00
tuxxy 2117aa937b Add umbral methods to KeyRing without handling serialization 2017-09-26 09:40:34 -07:00
tuxxy bec435364c Rename EncryptingKeypair build_secret to combine 2017-09-26 09:38:54 -07:00
tuxxy c12b7462bf Remove old methods to replace with Umbral methods 2017-09-26 09:27:30 -07:00
tuxxy a43c587d0d Fix methods in EncryptingKeypair and fix split key reencryption tests 2017-09-25 16:28:53 -07:00
tuxxy 338c6dd15f Add method build_rekey for EncryptingKeypair 2017-09-25 13:58:27 -07:00
tuxxy 84b5680377 Add split_rekey method to EncryptingKeypair 2017-09-25 13:54:09 -07:00
tuxxy 947a46f933 Add rekey and reencrypt methods to EncryptingKeypair 2017-09-25 13:27:03 -07:00
tuxxy 4f6ac0512f Add decrypt_key method and remove unneeded encrypt/decrypt methods 2017-09-25 13:17:03 -07:00
tuxxy fb3fd0281b Add generate_key method for umbral in EncryptingKeypair 2017-09-25 13:13:45 -07:00
tuxxy b63c6b0146 Remove deprecated methods that are being used elsewhere 2017-09-22 12:55:37 -07:00
tuxxy 41d70bef8d Add rekey method for KeyRing 2017-09-21 15:14:45 -07:00
tuxxy 8ef798675b Add rekey method in EncryptingKeypair 2017-09-21 15:13:01 -07:00
tuxxy 939371b700 Add methods encrypt_bulk, decrypt_bulk, and derive_path_key 2017-09-20 11:23:44 -07:00
tuxxy b848da27ea Add properties for each specific key in the KeyRing 2017-09-20 10:42:59 -07:00
tuxxy 03353876c8 Expose KeyRing method for generating random numbers 2017-09-20 08:51:14 -07:00
Tux 425ea246c3 Merge pull request #43 from tuxxy/keyring
[WIP] Add KeyRing object with sign/verify/encrypt/decrypt functionalities
2017-09-19 11:23:19 -06:00
tuxxy cd017c6e62 Add pubkey param to signing keypair's verify methods 2017-09-19 09:10:09 -07:00
tuxxy e2e63ad38b Add pubkey param to KeyRing 2017-09-19 08:52:13 -07:00
tuxxy 824cd0d883 Encrypt with a provided pubkey 2017-09-19 08:42:57 -07:00
tuxxy dbedb420d9 Move packages around and use namespace nkms.crypto.keypairs and nkms.crypto.keyring 2017-09-19 08:34:14 -07:00
tuxxy 10c3b25322 Fill out encrypt/decrypt methods for KeyRing 2017-09-18 11:36:45 -07:00
tuxxy ff49bfc70b Add EncryptingKeypair key generation and add encrypt/decrypt method placeholders 2017-09-18 11:34:14 -07:00
tuxxy d432d5f51d Add docstring comments 2017-09-18 11:30:24 -07:00
tuxxy b496480b3f Add decrypt method 2017-09-18 11:28:36 -07:00
tuxxy 825884ef0e Add encryption method 2017-09-18 11:28:03 -07:00
tuxxy 4058897d55 Add __init__ method for EncryptingKeypair w/ key generation 2017-09-18 11:26:46 -07:00
tuxxy b5d97a1a57 Add encrypting_keypair file w/ EncryptingKeypair object 2017-09-18 11:20:24 -07:00
Michael Egorov 28a7dda8bf Use default generator point (same as in Bitcoin and Ethereum) 2017-09-18 11:15:46 -07:00
tuxxy 2a2468edaa Actually digest the message 2017-09-18 11:06:15 -07:00
tuxxy 5c7bc5f219 Refactor the v, r, and s msgpack loading into their own methods 2017-09-18 10:54:59 -07:00
tuxxy 0b714fff5e Add sign/verify methods to KeyRing 2017-09-18 10:32:56 -07:00
tuxxy 76485f7b06 Add sign/verify functions 2017-09-18 10:25:36 -07:00
tuxxy bf08aa5b53 Add SigningKeypair object and add key generation capabilities 2017-09-18 09:59:34 -07:00
tuxxy 2a3b61f1ba Add boilerplate for KeyRing __init__ method 2017-09-18 09:33:23 -07:00
tuxxy bcbf7444e9 Create keyring.py with placeholder KeyRing object 2017-09-18 08:32:44 -07:00
tuxxy 423c5bde16 Create keys package 2017-09-18 08:31:20 -07:00
tuxxy af9c93c6b6 Create keyring package 2017-09-18 08:30:47 -07:00
Michael Egorov 47e89a2245 Switch serialization format to Python bytes 2017-09-17 00:21:28 -07:00
tuxxy 48e4ccfe06 Remove KMAC code 2017-09-05 17:00:44 -06:00
tuxxy 54f4eeaa44 Use path as bytes and fix tests /so far/ 2017-09-04 23:30:05 -06:00
Tux f7219fcf1f Remove some extraneous whitespace 2017-09-01 18:54:04 -06:00
jMyles ae306d6bdd pysha3 monkey patch so that hashlib sha3 functions work on Python 3.5 2017-09-01 15:55:39 -07:00
tuxxy 87011f37c5 Append length in bits to new_X 2017-09-01 10:06:18 -06:00
tux 1acf1c3034 Use length in bytes... 2017-09-01 02:12:19 -06:00
tux ce5805a468 Add comment on format for padded_x 2017-09-01 01:37:43 -06:00
tux baca43a569 Add object for KMAC-256 2017-09-01 01:32:16 -06:00
tuxxy a90da9e274 Remove unneeded gen_priv method 2017-08-31 13:31:00 -06:00
tuxxy ca9aea1155 Add key generation method 2017-08-31 12:25:31 -06:00
Michael Egorov e0a6574905 No secret key 2 needed for rekey 2017-08-25 22:12:21 -07:00
Michael Egorov 005fbcf0aa g parameter from Bitcoin block 0 hashMerkleRoot 2017-08-19 20:47:52 -07:00
Michael Egorov 9d25c7dbd1 pubkey bbs98 2017-08-19 20:12:47 -07:00
Michael Egorov e8c06b8349 Public key bbs98 2017-08-19 14:50:34 -07:00
Michael Egorov 8febc2798c PRE reencryption to pubkey 2017-08-19 13:17:54 -07:00
Michael Egorov a7e2f70ddb importmodule bugfix 2017-08-19 12:10:43 -07:00
Michael Egorov 55dbfdd8e0 test_default_crypto - symmetric crypto 2017-08-19 12:05:18 -07:00
Michael Egorov 60c939a021 nacl and bbs98 2017-08-19 11:27:55 -07:00