Commit Graph

82 Commits (0b21f67323f08bf31d4afb02f10db4cea35435e8)

Author SHA1 Message Date
jMyles ff04578dc3 CFrag and tests. 2017-12-04 17:17:13 -08:00
jMyles 1de9a97628 Tests use PFrag. 2017-12-04 16:27:08 -08:00
jMyles 4fab47cac3 Proper dunders with tests for kfrag retrieval and deserialization. Fixes #138. 2017-12-04 15:23:40 -08:00
jMyles e6556f54f1 Test for KFrag class compatibility with BytestringSplitter. 2017-12-04 13:08:40 -08:00
jMyles ad0eb40a4d PublicKey used for metadata instead of int literals throughout tests. Also some PEP8 cleanups and removal of type checks per #105. 2017-11-18 13:19:07 -08:00
jMyles ec8c225f7d Moved BytestringSplitter remainder logic to __call__; implemented throughout. 2017-11-11 18:00:32 -08:00
jMyles 3901f13750 Test showing that trying to split too many bytes raises ValueError. 2017-11-11 13:55:51 -08:00
jMyles 1f28a671fa BytestringSplitter now works with arbitrary types. 2017-11-11 13:50:51 -08:00
jMyles 1ed6e6d30b Test showing BytestringSplitter taking arbitrary bytes. 2017-11-11 13:21:24 -08:00
jMyles 4f803ba2df BytestringSplitter for #114. 2017-11-11 01:10:29 -08:00
jMyles 78aa5d4063 A sanity check for the len31 bug. 2017-11-04 10:52:43 -07:00
tuxxy 183ce12f09
Add test for test_ecies_ephemeral_split_rekey 2017-10-19 01:31:04 -06:00
tuxxy 48f75b798f
Add test test_ecies_gen_ephemeral_key in test_internal 2017-10-19 01:22:00 -06:00
tuxxy 447594e30c
Add empty test_internal.py 2017-10-19 01:04:31 -06:00
tuxxy 4ccdb92ed7
Use SigningKeypair.verify in test_signing 2017-10-17 14:52:42 -06:00
tuxxy 32baef1575
Add test TestSigningPower and fix SigningPower init params 2017-10-17 14:47:51 -06:00
jMyles 5566c6058e Removed alpha and added test for its removal. 2017-10-16 22:25:16 -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
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
jMyles bf0f83b6ea Moving EncryptingKeypair over to powers. 2017-10-10 22:39:25 -07: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 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 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 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