Commit Graph

335 Commits (be45b18258534af40bc8c80dda99fd5fb77c8bea)

Author SHA1 Message Date
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
tuxxy 539f537067 Add ecdsa_sign 2017-10-10 15:58:32 -06:00
tuxxy dcfdf1b2d2 Rename vrs_msgpack_dump/load to ecdsa_gen/load_sig 2017-10-10 15:49:56 -06:00
tuxxy b55722f770 Move pub/priv_bytes2ec to logical place 2017-10-10 15:49:56 -06:00
tuxxy fb0d6fc676 Rename to keccak_digest 2017-10-10 15:27:45 -06:00
tuxxy ce8b222197 Merge jmyle's PR fixing stuff 2017-10-10 15:03:06 -06:00
Tux a1a0abdd75 Merge pull request #75 from jMyles/crypto-api
Smoothing Crypto API differences between PRs.
2017-10-10 14:17:28 -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 baef6b87a8 Use SystemRandom and add secure_random_range 2017-10-10 13:52:11 -06:00
Justin Holmes 3bf196dd6f Merge pull request #73 from jMyles/character-crypto
[WIP] CryptoPower, CryptoPowerUps, and implementation of the new Crypto API.
2017-10-10 12:42:50 -07:00
tuxxy 12f00611b9 Add secure_random
Add comment on Error state
2017-10-10 13:24:38 -06: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 b28a937b05 Passing both crypto_power and crypto_powerup is now not allowed. 2017-10-06 20:49:59 -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
jMyles ffb4eaa72e Moving interface functions to Character class; let's see how this looks. 2017-10-06 17:42:18 -07:00
jMyles e6c455e8bb A little more sketching. What will the values of _key_mapping be? 2017-10-06 17:42:18 -07:00
jMyles 05dad4b177 Beginning of new KeyRing model per my conversation with @tuxxy. 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 484e4908a3 Use proper elliptic_curve element class 2017-10-05 19:02:07 -06:00
tuxxy 59d3b37440 Add empty file for test_crypto.py 2017-10-05 18:52:14 -06:00
tuxxy 765640ca54 Add ecies_combine method 2017-10-05 18:40:06 -06:00
tuxxy 35176d950d Add ecies_split_rekey method 2017-10-05 18:35:05 -06:00
tuxxy cfa8ffaf84 Add ecies_reencrypt method 2017-10-05 18:27:39 -06:00
tuxxy 45c8ee8d2b Add ecies_rekey method w/ serialization 2017-10-05 18:03:53 -06:00
tuxxy 1c5b55b52f Handle serialization bytes <--> elliptic_curve.Element
Fix formatting
2017-10-05 17:42:02 -06:00
tuxxy a245dba04c Add pub_bytes2ec 2017-10-05 17:32:40 -06:00
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