Isis Lovecruft
39f417f75e
Merge remote-tracking branch 'hdevalence/feature/move-ct-traits' into develop
2017-01-20 21:51:19 +00:00
Isis Lovecruft
6d2ab84d38
Merge remote-tracking branch 'hdevalence/feature/add-mult-cofactor-fn' into develop
2017-01-19 23:37:50 +00:00
Isis Lovecruft
761ef304d4
Merge remote-tracking branch 'hdevalence/feature/rename-compressed-point' into develop
2017-01-19 23:33:58 +00:00
Isis Lovecruft
99344b5f7e
Merge remote-tracking branch 'hdevalence/feature/split-scalar-type' into develop
2017-01-19 23:30:38 +00:00
Henry de Valence
63e7e9f8de
Implement CTAssignable for Scalar
2017-01-06 12:56:53 -05:00
Henry de Valence
74049e039e
Make FieldElement's conditional_assign a trait impl
2017-01-06 12:34:57 -05:00
Henry de Valence
c92ebdd0ac
Remove unused conditional_choose function
2017-01-06 12:29:24 -05:00
Henry de Valence
098ff2ffca
Move CTAssignable trait to util.rs from curve.rs
2017-01-06 12:26:43 -05:00
Henry de Valence
4a5d7052a9
Add convenience wrapper around mult_by_pow_2 to clear cofactor
2017-01-06 10:47:05 -05:00
Henry de Valence
d1599410ee
Rename CompressedPoint -> CompressedEdwardsY
...
This allows other compression formats (e.g., CompressedMontgomeryX).
2016-12-23 17:50:24 -08:00
Henry de Valence
ef2987349f
Add bench for unpacked multiply_add
2016-12-23 13:01:16 -08:00
Henry de Valence
85d4b7e98c
Split the Scalar type into Scalar and UnpackedScalar
...
The Scalar type is stored in memory as an array of bytes. This allows easy
access to the bits of a scalar for Scalar x Point operations, at the cost of
forcing a pack/unpack for Scalar x Scalar. This commit splits the Scalar type
into Scalar (packed) and UnpackedScalar (limbs).
2016-12-23 12:49:00 -08:00
Henry de Valence
e2dfa17879
Add fixme on load3/4 as utilities
2016-12-23 10:03:30 -08:00
Isis Lovecruft
42c2578f4c
Merge branch 'release/0.2.0'
2016-12-14 06:00:23 +00:00
Isis Lovecruft
fdbbce9ed0
Merge branch 'feature/001-specify-rng' into release/0.2.0
2016-12-14 05:54:47 +00:00
Isis Lovecruft
c9b0e45afb
Specify the RNG for Scalar::random.
2016-12-14 05:54:22 +00:00
Isis Lovecruft
a339da82e7
Update the minor version number in the README.
2016-12-14 05:02:55 +00:00
Isis Lovecruft
226f5c7019
Update version to 0.2.0 in Cargo.toml.
2016-12-14 05:02:36 +00:00
Isis Lovecruft
51e3763643
Merge remote-tracking branch 'isislovecruft/master'
2016-12-14 04:38:44 +00:00
Henry de Valence
918d0bca30
Merge pull request #3 from hdevalence/feature/scalar-random-constructor
...
Add a Scalar::random() constructor
2016-12-10 04:45:02 +00:00
Henry de Valence
c6b1b497b0
Add benchmark for Scalar::random()
2016-12-09 17:45:54 -08:00
Henry de Valence
d8476fe6cf
Add a Scalar::random() constructor
...
This adds a dependency on the `rand` crate, used to construct an
OS-backed CSPRNG. The implementation in this commit is somewhat
inefficient as it constructs a new OsRng object every time; it might be
better to construct it once. (Seems like a lot of overhead for a few
getrandom(2) calls...)
2016-12-09 17:38:51 -08:00
Isis Lovecruft
9630b91a03
Merge remote-tracking branch 'hdevalence/master'
2016-12-10 00:13:23 +00:00
Henry de Valence
22f78e227f
Merge remote-tracking branch 'isis/master'
2016-12-09 14:57:58 -08:00
Henry de Valence
71bf0d5e53
Remove port of Montgomery conversion from Adam's code
...
This should be brought back later as part of reworking the compressed
point formats / serialization code. Right now there's just
"CompressedPoint" which is in the ed25519 format. Ideally, users should
be able to serialize points to formats used for X25519, for decaf, etc.
and not have to worry too much about the internal model.
2016-12-09 14:49:27 -08:00
Henry de Valence
b5eee15f50
Add additional TODO items
2016-12-09 14:47:35 -08:00
Isis Lovecruft
6b9e2696bd
Merge branch 'release/0.1.3'
2016-12-09 04:19:58 +00:00
Isis Lovecruft
02bbc4eec9
Bump version to 0.1.3 in Cargo.toml.
2016-12-09 02:34:11 +00:00
Isis Lovecruft
0c9d43e82a
Fix another typo in the package description.
2016-12-09 02:13:04 +00:00
Isis Lovecruft
cd4642c57e
Fix typo in package description.
2016-12-09 01:39:55 +00:00
Isis Lovecruft
bf1da4e9cd
Add a crates.io badge.
2016-12-08 22:26:56 +00:00
Isis Lovecruft
f3b29398bc
Add warning, documentation links, and install instructions to the README.
2016-12-08 22:18:57 +00:00
Isis Lovecruft
a14245e3c8
Fix the documentation badge image link.
2016-12-08 22:16:58 +00:00
Isis Lovecruft
6005159f9f
Fix italic/bold fonts in README.
2016-12-08 22:08:29 +00:00
Isis Lovecruft
fb426c2428
Merge branch 'release/0.1.2'
2016-12-08 22:03:17 +00:00
Isis Lovecruft
1047f753d3
Bump version to 0.1.2 in Cargo.toml.
2016-12-08 22:00:30 +00:00
Isis Lovecruft
f7972041ab
Fix a typo in lib.rs module documention.
2016-12-08 21:59:52 +00:00
Isis Lovecruft
171a55e551
Merge branch 'release/0.1.1'
2016-12-08 21:58:54 +00:00
Isis Lovecruft
bedde25a70
Bump the version to 0.1.1 in Cargo.toml.
2016-12-08 21:56:30 +00:00
Isis Lovecruft
8bf730e84c
Use 'license' rather than 'license-file' directive.
...
If 'license' is used, then crates.io thinks we're using a "non-standard"
license, when, in fact, we are using CC0 (public domain).
2016-12-08 21:54:02 +00:00
Isis Lovecruft
387a56fe2c
Initial commit.
2016-12-08 05:12:00 +00:00