Commit Graph

21 Commits (32c5f542e67b74d12c71198218f7036c89db382b)

Author SHA1 Message Date
tuxxy 32c5f542e6 Add get_size classmethods for CurveBN, Point, fragments, and
CorrectnessProof.

Fix syntax error
2018-05-01 17:58:17 -06:00
David Nuñez a66cf59c48 SHA512 --> BLAKE2b
Resolves #60
2018-03-13 15:43:25 +01:00
tuxxy 2b45e73342 Move hash_to_bn and unsafe_hash_to_point to bignum and point modules respectively 2018-02-08 15:46:42 -07:00
tuxxy 8efafb79f8 Create util function to accurately get curve keysize 2018-02-08 15:46:42 -07:00
tuxxy a43f6ab153 Use SHA512, CURVE_KEY_SIZE_BYTES, and CURVE_MINVAL_SHA512 in crypto material hashing functions 2018-02-08 15:46:41 -07:00
tuxxy ef766d8bba Begin moving things over to module with default_params/default_curve 2018-02-07 22:26:38 -07:00
David Nuñez 8761d7828a Using a common domain_seed 2018-01-31 16:46:35 +01:00
David Nuñez c79b537e01 Changed "constant" to "label" in unsafe_hash_to_point 2018-01-31 16:46:35 +01:00
David Nuñez ba2a93e9bf Remove the try-except-pass pattern using more specific exceptions 2018-01-31 16:46:35 +01:00
David Nuñez 78bc6fffad Renamed hash_to_fn to unsafe_hash_to_bn
Just in case someone tries to use it with secret data
2018-01-31 09:30:12 +01:00
David Nuñez cd22679c44 Corrected error message 2018-01-30 13:08:30 +01:00
David Nuñez b7bd6e8d85 Added hash_to_point function 2018-01-30 12:21:33 +01:00
tuxxy 0104492e16 Use compressed point in KDF 2018-01-22 11:58:10 -07:00
tuxxy 3af88da1f5 Allow KDF function to accept arbitrary data, not just points 2018-01-19 07:00:52 -07:00
David Nuñez 1294cd4d32 Removed old comments 2018-01-10 16:15:41 +01:00
David Nuñez 63385d5fd4 Moved KDF to utils 2018-01-10 15:48:33 +01:00
David Nuñez ba3395728d Moved hash_to_bn to utils, and changed check_kfrag_consistency as a
KFrag method
2018-01-10 15:42:34 +01:00
David Nuñez 6d70c80541 Added cFrag list and capsule reconstruction to Capsule. Had to comment
most tests for a while because of the syntax changes
2018-01-09 11:02:53 +01:00
David Nuñez 368dbe4c52 Fixed hash_to_bn 2017-12-28 15:02:53 +01:00
tuxxy f22622bece
Add lambda_coeff and poly_eval math utility functions to utils
Fix syntax to be more uniform
2017-12-27 07:29:59 -07:00
tuxxy 9c33357e38
Add empty utils.py file 2017-12-27 07:14:42 -07:00