Commit Graph

131 Commits (453ce8d1b3869cd72b660d6176b29339e343f42d)

Author SHA1 Message Date
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 2a8195cd83 Add test for ecdsa_priv2pub 2017-10-10 17:23:56 -06:00
tuxxy be45b18258 Add tests for ecdsa_sign and ecdsa_verify 2017-10-10 17:20:48 -06:00
tuxxy 2b16609e85 Add ecdsa_pub2bytes and ecdsa_bytes2pub
Fix comment
2017-10-10 17:09:10 -06:00
tuxxy f697602390 Add ecdsa_gen_priv function and test 2017-10-10 16:30:19 -06:00
tuxxy b385d3f5bd Add tests for ecdsa_gen/load_sig 2017-10-10 16:18:17 -06:00
tuxxy 8269e5c396 Add test for keccak_digest 2017-10-10 16:14:49 -06:00
tuxxy 2263678c76 Add tests for the secure_random functions 2017-10-10 16:09:01 -06:00
jMyles 9e651af46b Import statements changed while we reorganize. 2017-10-10 13:02:45 -07:00
jMyles 123fa5e5ae Merge commit 'bcca3f8c365e486e4e930e3fdceaf308f1b13dd5' into character-crypto 2017-10-10 12:55:27 -07:00
tuxxy bcca3f8c36 Remove Crypto class, use singleton pattern 2017-10-10 11:16:23 -06:00
tuxxy bd3636faad Add test for ecies_combine 2017-10-10 11:04:11 -06:00
tuxxy 8a16ba51b2 Add test for ecies_reencrypt 2017-10-10 10:51:13 -06:00
jMyles 08a3910ce9 Yanked and out of - they're now only accessible in . 2017-10-09 15:58:38 -07:00
jMyles 7eae9c21b1 KeyRing -=> KeyStore and some other reorganization. 2017-10-09 14:03:16 -07:00
jMyles 40cdfab02a Some clarifying details in character tests. 2017-10-06 19:48:31 -07:00
jMyles 418618d565 A fairly serious version of the high-level signing and verification system. 2017-10-06 19:32:49 -07:00
jMyles 76f8edae7b CryptoPower sign() and verify() now work properly. 2017-10-06 17:42:18 -07:00
jMyles 1b54f9dfb3 Refraining from hashing the message before signing fixes it. 2017-10-06 17:42:18 -07:00
jMyles 989f0193d7 Introducting CryptoPower and PowerUp. Signing powers have been pulled out of KeyRing and now use the PowerUp system. 2017-10-06 17:42:18 -07:00
tuxxy c36b0b07ee Add test_ecies_split_rekey and placeholders test_ecies_combine and test_ecies_reencrypt 2017-10-05 19:46:10 -06:00
tuxxy ad74c6aad1 Add test_ecies_rekey 2017-10-05 19:38:44 -06:00
tuxxy 5bb6f037e2 Add test_ecies_encapsulate and ecies_test_decapsulate 2017-10-05 19:33:04 -06:00
tuxxy 8d2312e742 add test_ecies_priv2pub 2017-10-05 19:20:14 -06:00
tuxxy 58a3e23f5f Add test_ecies_gen_priv 2017-10-05 19:16:30 -06:00
tuxxy 56d05edea7 Add tests for symm_encrypt and symm_decrypt 2017-10-05 19:14:21 -06:00
tuxxy 5faa1a2fbc Add tests for priv_bytes2ec and pub_bytes2ec 2017-10-05 19:08:13 -06:00
tuxxy 59d3b37440 Add empty file for test_crypto.py 2017-10-05 18:52:14 -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 73ec0079a4 Fixes #68 by attaching server during test. 2017-10-03 17:57:18 -07:00
jMyles 40171da964 Two-tier ID generation. 2017-10-03 17:52:28 -07:00
jMyles c9983482d3 A little more logic for Alice's initial activity to craft an Offer and find Ursula. 2017-10-03 17:52:28 -07:00
jMyles a76248361b First semblance of two-part negotiation Alice -=> Ursula. 2017-10-03 17:51:49 -07:00
tuxxy fc7c2dfd98 Use *args instead of an iterable for SigningKeypair.digest 2017-10-03 18:08:40 -06:00
tuxxy 759894f00b Skip broken test 2017-10-03 16:09:37 -06:00
tuxxy aff17556f4 Add test for testing digestable iterables 2017-10-03 15:49:37 -06: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 572442b8cb Encrypt/decrypt with a serializing keypair 2017-09-29 23:18:20 -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 983dd3c4d5 Update _derive_path_key and add test_derive_path_key 2017-09-28 11:11:21 -07:00
tuxxy 37fc9d0dab Add test_split_path 2017-09-28 10:39:44 -07:00
jMyles 346f0a3d01 First draft of Character classes, along with a test of the moment that Alice finds Ursula. 2017-09-27 23:50:23 -07:00