Commit Graph

  • 3177696f30 Some more code and naming touchups. jMyles 2018-05-28 10:54:50 -0700
  • d53848ed1f Free the EC_POINT OpenSSL struct when returning the generator of a group tuxxy 2018-05-28 11:05:31 -0600
  • 0600f37246
    Merge pull request #146 from tuxxy/pubkey Tux 2018-05-28 11:22:24 -0600
  • 91a9ce9dd7
    Merge pull request #151 from cygnusv/master David Núñez 2018-05-27 00:19:44 +0200
  • e7da430bdf Setting codecov in Travis David Núñez 2018-05-27 00:03:08 +0200
  • 6038dff98d Using expected_bytes_length for various crypto entities. jMyles 2018-05-26 12:12:33 -0700
  • f8db9db1c3 A couple of touchups, including cfrag.NoProofProvided exception. jMyles 2018-05-26 10:26:36 -0700
  • 36336969f8 Some fixes in response to comments. jMyles 2018-05-25 16:34:36 -0700
  • e89c7b6c68 Using alices_keys fixture instead of boilerplate. jMyles 2018-05-25 16:21:21 -0700
  • 7f8532f6a1 Adding bytestringSplitter to dependencies (using github for now until we release on pypi). jMyles 2018-05-25 15:52:08 -0700
  • a7d203aa44 Tests that were using old fixture now work with new one. jMyles 2018-05-25 15:43:19 -0700
  • 30eb274137 New alices_keys fixture has both delegating and signing keys. jMyles 2018-05-25 15:42:51 -0700
  • 8394cf6e44 Message for validating KFrag is now bytes of constituents instead of a BigNum. Fixes #148. jMyles 2018-05-25 14:41:13 -0700
  • 7b0f8c021d Improved tests for point deserialization David Núñez 2018-05-25 13:25:34 +0200
  • 8e9f2f4139 Checks correct size of input in Point.from_bytes David Núñez 2018-05-25 13:19:26 +0200
  • 97b32fefc5 Use field order size instead of curve key size in Point serialization David Núñez 2018-05-25 11:51:52 +0200
  • cfd5b6b668 Adds utils.get_field_order_size_in_bytes and openssl.get_ec_group_degree David Núñez 2018-05-25 11:49:36 +0200
  • 90240be847 Right - can't use the secrets module yet, as we're still supporting Python 3.5 jMyles 2018-05-21 15:54:42 -0700
  • 59af1ab476 Injecting all the right objects in order to ECDSA the KFrags in tests. Major cleanup required. jMyles 2018-05-21 15:35:06 -0700
  • e4792b40ba Using ECDSA for kfrag signature and verification. jMyles 2018-05-21 13:48:25 -0700
  • 19ecb0f134 Fixed a bug in a test that caused correct CFrags to be tested. jMyles 2018-05-21 10:02:57 -0700
  • ca8791f469 Signer and Signature classes. jMyles 2018-05-19 00:49:31 -0700
  • 0632a53d0e Signing and verifying using ECDSA instead of Schnorr signature. jMyles 2018-05-19 00:48:53 -0700
  • 59c0b6bc2d Passing the proper key (delegating or signing) in the proper place. jMyles 2018-05-19 00:48:17 -0700
  • 5f80feb6ba Tests now need to separate Alice's delegating key from her signing key. jMyles 2018-05-19 00:47:56 -0700
  • 4c610e32f9 Use Capsule.get_size in capsule serializer tests tuxxy 2018-05-23 05:06:39 -0600
  • e68bf5e15f
    Fix old Readme code David Núñez 2018-05-23 12:52:40 +0200
  • 53858cd600 Use BytestringSplitter in Capusle deserialization tuxxy 2018-05-23 04:49:29 -0600
  • 12bcfe610e Have Capsule.get_size return an non-activated capsule size by default tuxxy 2018-05-23 04:49:04 -0600
  • 4efbe3ddc7 Add get_size method on Capsule tuxxy 2018-05-23 04:15:56 -0600
  • c9e92586cc Fix serialization bugs and make BytestringSplitter code pretty tuxxy 2018-05-23 04:07:07 -0600
  • 4c4d0cb4f0 Add bytestring_splitter to fragments tuxxy 2018-05-21 08:28:13 -0600
  • f5324d2bf3 Make get_pubkey return the cached pubkey tuxxy 2018-05-21 04:50:15 -0600
  • a33356d6f1
    Merge 427ce57f88 into 8dbaf21c1f Tux 2018-05-21 10:08:55 +0000
  • 427ce57f88 Check for ValueError in test_point_not_on_curve tuxxy 2018-05-21 04:08:47 -0600
  • 4ccf0dbbec Merge remote-tracking branch 'origin/kdf-params-fix' into kdf-params-fix tuxxy 2018-05-21 03:54:09 -0600
  • 57f96c0c9b Simplify return conditional on _is_point_on_curve tuxxy 2018-05-21 03:52:04 -0600
  • 1def8d001c
    Merge 17707fe6c4 into 8dbaf21c1f Justin Holmes 2018-05-18 01:03:36 +0000
  • 17707fe6c4 Using getrandom(...) instead of os.urandom(...) in places where it makes sense. jMyles 2018-05-17 17:58:06 -0700
  • 853427cdfe
    Merge pull request #2 from michwill/kdf-params-fix Tux 2018-05-17 13:06:16 -0600
  • 0dfe7dec3a
    Pass params when UmbralPrivateKey.public_key() creates an UmbralPublicKey Michael Egorov 2018-05-17 11:16:55 -0700
  • ca6a8e610a Clean up unsafe_hash_to_point by moving openssl error check to tuxxy 2018-05-17 04:57:56 -0600
  • a6a21f2859 Check that the public key is on the curve tuxxy 2018-05-14 15:37:17 -0600
  • 47da72eee0 Add _is_point_on_curve check in Point tuxxy 2018-05-14 15:28:14 -0600
  • 4d1ddc8f9a Add _is_point_on_curve function tuxxy 2018-05-14 15:18:57 -0600
  • 8dbaf21c1f
    Merge pull request #140 from cygnusv/master David Núñez 2018-05-14 23:02:37 +0200
  • 0c226bec98 Change _bn_is_on_curve to _bn_is_within_order tuxxy 2018-05-14 14:55:35 -0600
  • 290e4499ce Add salt and info to utils.kdf params tuxxy 2018-05-14 14:48:10 -0600
  • d768cf4a38 Change signatures input from lists to tuples David Núñez 2018-05-09 01:57:52 +0200
  • 0dbb86e6f1 Enter KFrag._point_xcoord: an ephemeral pk used during reconstruction instead of Alice's pk David Núñez 2018-05-08 23:34:11 +0200
  • c6ba6e5ae9 Fixed old example of metadata David Núñez 2018-05-08 15:05:26 +0200
  • c25229efd1 Getting byte size from get_size() by CurveBN and Point David Núñez 2018-05-08 15:03:51 +0200
  • 0dd3d4b991 Change KFrag.bn_id to a random byte sequence (Solves #123) David Núñez 2018-05-08 01:51:17 +0200
  • b19978cbae
    Merge pull request #139 from jMyles/codeOrganization David Núñez 2018-05-07 10:08:26 +0200
  • df4bfa3f1b Proof and verification logic are now wraped to keep all "whitepaper" representations in pre and _pre. jMyles 2018-05-06 14:33:23 -0700
  • 0b1064f6f8 Moving cfrag proof and verification logic to _pre jMyles 2018-05-06 14:33:04 -0700
  • 31a55eed93 Moving kfrag verification logic to _pre. jMyles 2018-05-06 14:32:42 -0700
  • 9cd3c9c2a3 point_bob, point_alice -=> pubkey_b_point, pubkey_a_point jMyles 2018-05-05 22:18:36 -0700
  • 48aab73ef1 Making `signature_input` a little more straightforward. jMyles 2018-05-05 19:03:53 -0700
  • 6d41a45a62 Removing pre._verify_correctness. jMyles 2018-05-05 17:03:15 -0700
  • ee2f9fd0e1 Reworking `_prove_correctness` to match the flow of `_verify_correctness` jMyles 2018-05-05 17:02:43 -0700
  • af9d8b251d Updating caller logic to use new `CapsuleFrag._verify_correctness` jMyles 2018-05-05 17:02:05 -0700
  • ef9635d3bb Rewriting `_verify_correctness` as a method on `CapsuleFrag`. jMyles 2018-05-05 17:01:14 -0700
  • e81d44498a
    Merge pull request #138 from cygnusv/constant_time_hash_to_bn David Núñez 2018-05-05 11:23:11 +0200
  • c5fbcc3a1c Moving exception inside if block; testing it. jMyles 2018-05-04 17:59:10 -0700
  • 38d632c166 Deterministic version of CurveBN.hash() David Nuñez 2018-05-05 00:58:04 +0200
  • a56113c44f
    Merge pull request #137 from tuxxy/master Tux 2018-05-04 12:15:32 -0400
  • 0a1dbf18b0 Add cryptography.io wheel for Darwin and Python3.5 tuxxy 2018-05-04 10:08:36 -0600
  • 0572a5ee24
    Merge d49eb24038 into 5e0394cbc1 Tux 2018-05-04 02:46:09 +0000
  • d49eb24038
    Merge branch 'master' into openssl-privacy Tux 2018-05-03 20:46:07 -0600
  • 74bf3f4227 Randomizes KFrag selection in tests David Nuñez 2018-05-03 17:47:19 +0200
  • 5efe7d9a38 New ephemeral pk in KFrags to use during reconstruction instead of Alice's pk David Nuñez 2018-05-03 17:37:24 +0200
  • 5e0394cbc1
    Merge pull request #131 from cygnusv/constant_time_hash_to_bn Justin Holmes 2018-05-02 14:45:37 -0700
  • ceae3f8d4e Remove the need to pass in group when instantiating a Point tuxxy 2018-05-02 05:35:21 -0600
  • 9b20c0f08a Remove the need to pass in group or order in the CurveBN __init__ tuxxy 2018-05-02 05:26:46 -0600
  • 10d611e533 Fix calls to _openssl module tuxxy 2018-05-02 05:11:06 -0600
  • 05d2f14c65 Make openssl module private tuxxy 2018-05-02 05:00:01 -0600
  • aaf1c955dc Merge remote-tracking branch 'cygnusv/constant_time_hash_to_bn' into openssl-privacy tuxxy 2018-05-02 04:53:02 -0600
  • 5376d3b936 Fixed old example of metadata David Nuñez 2018-05-02 03:22:03 +0200
  • d4d8a03f78 Getting byte size from get_size() in CurveBN and Point David Nuñez 2018-05-02 03:20:15 +0200
  • 449829eeaa Change KFrag.bn_id to a random bitstring (solves #123) David Nuñez 2018-05-02 02:55:37 +0200
  • caa06f8f23
    Merge pull request #130 from tuxxy/consttime-ops Tux 2018-05-01 18:47:20 -0600
  • 3a5daa3e76 Unnest context manager tuxxy 2018-05-01 18:18:37 -0600
  • a6c4b669a2 Merge branch 'consttime-ops' of github.com:tuxxy/pyUmbral into consttime-ops tuxxy 2018-05-01 18:15:01 -0600
  • d3919ecdf6 Move try/finally outside of with; is_consttime -> set_consttime_flag; Make docstrings more clear tuxxy 2018-05-01 18:14:25 -0600
  • 44c15e5bfb
    Merge branch 'master' into consttime-ops Tux 2018-05-01 18:04:55 -0600
  • b16ea6f303 Make _tmp_bn_mont_ctx only return a BN_MONT_CTX tuxxy 2018-04-27 12:26:56 -0600
  • b926f7ccc8 Add docstrings for constant time operations tuxxy 2018-04-27 12:00:39 -0600
  • e7fe202a92 Add consttime flag when creating new BNs tuxxy 2018-04-27 11:41:40 -0600
  • 72c51560e1 Removing cryptography.io from setup.py; using python markers in Pipfile to use wheels. jMyles 2018-05-01 14:29:55 -0700
  • 2d0e77931e Adding pre-compiled wheel to repo and to Pipfile. Also adding dependencies from cryptography.io so that they get locked. jMyles 2018-04-30 15:18:51 -0700
  • 96d6b553a1 Make openssl _bn_is_on_curve vars more clear; check if randomly generated bn is on curve; update CurveBN docstring tuxxy 2018-04-25 14:03:01 -0600
  • 024944627e Improve docstrings a bit tuxxy 2018-04-24 17:02:23 -0600
  • b2182c5f2c Include y-byte in Point.get_size tuxxy 2018-04-24 16:54:11 -0600
  • 5b41cd65bf Use better method for determining keysize in bytes (thanks @cygnusv) tuxxy 2018-04-24 16:52:09 -0600
  • b39a8a57f0 Remove __hash__ on CurveBN and make Capsule._attached_cfrags a list tuxxy 2018-04-24 16:20:48 -0600
  • 32c5f542e6 Add get_size classmethods for CurveBN, Point, fragments, and CorrectnessProof. tuxxy 2018-04-23 12:54:06 -0600
  • fd1ab49655 Cache pubkey on UmbralPrivateKey for #121 tuxxy 2018-04-23 12:40:16 -0600
  • dc2bfbb48a Rename BigNum -> CurveBN tuxxy 2018-04-23 12:03:18 -0600
  • 0b8c6ca936 Implement OpenSSL module in BigNum, Point, and key classes tuxxy 2018-04-23 10:23:16 -0600