Isis Lovecruft
a065bee381
Enable Rust 2018.
2019-10-07 23:01:10 +00:00
Isis Lovecruft
7dd99afb67
Remove most of the rand_os crate, which is only used for testing.
2019-10-04 02:46:02 +00:00
Isis Lovecruft
46811866cc
Bump ed25519-dalek version to 1.0.0-pre.2.
2019-10-04 02:16:06 +00:00
Isis Lovecruft
dc4b77b551
Fix bad import and feature specification in benchmarks.
2019-10-03 23:15:50 +00:00
Isis Lovecruft
d31df0aaa8
Remove sha2 dep; limit rand depends; fixes after PR#68 merge.
...
* ADD new "batch" feature for feature-gating ed25519 batch verification; off by
default. The "batch" feature is the only thing which depends on all of the
`rand` crate, since it requires the functionality of `rand::thread_rng()`.
Without batch verification, the rest of ed25519-dalek only depends on
`rand_os` and `rand_core`.
2019-04-02 01:46:23 +00:00
Isis Lovecruft
1bec256418
Merge remote-tracking branch 'newpavlov/rand_core' into develop
2019-03-12 22:22:19 +00:00
Nicolas Stalder
1dfe00b79d
Fix rand dependency, deal with unusedness warnings
2019-01-27 03:06:18 +01:00
Isis Lovecruft
ae8764fbef
Update copyright year to 2019 and destroy capitalism.
2019-01-18 04:59:12 +00:00
Isis Lovecruft
131fc2b07f
Bump ed25519-dalek version to 1.0.0-pre.1.
2019-01-18 04:59:12 +00:00
Isis Lovecruft
6d1d3ff5ea
Remove outdated comment about Fuchsia dependencies from Cargo.toml.
2019-01-18 04:59:12 +00:00
Артём Павлов [Artyom Pavlov]
762eb0c470
use rand_core
2019-01-05 15:58:59 +03:00
Isis Lovecruft
d81d43e3ae
Hardcode use of sha2::Sha512 in most cases.
...
This implements https://github.com/dalek-cryptography/ed25519-dalek/issues/64
You can still choose the "prehash" algorithm, as long as it has 64 bytes of
output. Otherwise, everything is hardcoded to use sha2::Sha512. To use a
different implementation you'll need a [patch.crates-io] section in cargo
config.
2018-12-30 00:40:01 +00:00
Isis Lovecruft
d052e63da8
Enabling std feature can now enable rand/std.
...
Previously it pulled in a bunch of fuschia dependencies regardless of
target system.
2018-12-22 12:22:02 +00:00
Isis Lovecruft
80ae5d0683
Cleanup RNG usage after merging #57 .
2018-12-22 12:20:59 +00:00
Isis Lovecruft
b9f078af16
Remove default-features=false from rand dependency.
...
cf. https://github.com/rust-random/rand/issues/645
2018-12-22 12:14:45 +00:00
Isis Lovecruft
0708974aaa
Bump curve25519-dalek dependency to version 1.0. 🎉
2018-12-22 12:10:03 +00:00
Colt Frederickson
1132665ac2
Update to 1.0.0-pre1 curve25519
2018-11-19 10:13:59 -07:00
Colt Frederickson
42b5d6ada9
Rand 0.6 version bump
2018-11-14 17:08:32 -07:00
Isis Lovecruft
99c64cc403
Bump ed25519-dalek version to 1.0.0-pre.0.
2018-11-06 01:56:13 +00:00
Isis Lovecruft
b97fa08900
Update curve25519-dalek dependency to 1.0.0-pre.0.
2018-11-06 01:40:21 +00:00
Isis Lovecruft
93b73783aa
Bump ed25519-dalek version to 0.8.1.
2018-09-26 18:46:58 +00:00
Isis Lovecruft
7f82308799
Bump curve25519-dalek dependency to 0.20.
2018-09-26 18:46:17 +00:00
Isis Lovecruft
591aff7025
Bump ed25519-dalek version to 0.8.0.
2018-07-27 21:35:36 +00:00
Isis Lovecruft
e35323412d
Merge remote-tracking branch 'hdevalence/feature/27-batch' into develop
2018-07-27 17:24:37 +00:00
Henry de Valence
4c838decd8
Use 128-bit scalars
2018-07-26 21:09:52 -07:00
Henry de Valence
f60987dee5
Try optional_multiscalar_mul
2018-07-26 20:58:11 -07:00
Isis Lovecruft
050d2a01e5
Bump curve25519-dalek dependency to 0.19.
2018-07-27 03:38:34 +00:00
Isis Lovecruft
6513d4980a
Implement Drop for secret key material using clear_on_drop.
2018-07-20 23:08:08 +00:00
Isis Lovecruft
ce46a12d92
Implement batch verification.
...
The API for this isn't the greatest and I apologise for that. Suggestions for
improvement welcome. One thing which @hdevalence and I considered was to
change the function signature to:
pub fn verify_batch<D, C, M, S, K>(messages: M,
signatures: S,
public_keys: K,
csprng: &mut C) -> Result<(), SignatureError>
where D: Digest<OutputSize = U64> + Default,
C: Rng + CryptoRng,
M: IntoIterator<Item = &[u8]>,
S: IntoIterator,
S::Item: Borrow<Signature>,
K: IntoIterator,
K::Item: Borrow<Signature>,
The other improvement which could be made is to implement 128-bit scalars for
the randomnesses.
* CLOSES #27
2018-07-17 19:03:46 +00:00
Isis Lovecruft
6c8ae573d9
Bump ed25519-dalek version to 0.7.0.
2018-07-15 22:15:54 +00:00
Henry de Valence
030eff547f
Make verify return a Result.
...
This also simplifies the verification logic. Because the verification check
happens in variable time, we don't need to do a constant-time eq check at the
end, so we can drop the `subtle` dependency entirely.
The `DecodingError` type becomes `SignatureError` and is also used to
signal failing verifications.
2018-07-15 13:07:58 -07:00
Isis Lovecruft
164303eeac
Switch to using criterion for benchmarks.
2018-07-11 22:46:32 +00:00
Isis Lovecruft
a4be92b271
Update curve25519-dalek dependency to 0.18.
2018-07-11 20:36:17 +00:00
Isis Lovecruft
1dfe211aa1
Remove failure/std from the default enabled features.
2018-07-11 20:32:12 +00:00
Isis Lovecruft
47c1d869ec
Make key generation work with no_std.
2018-05-16 22:09:31 +00:00
Isis Lovecruft
f6a631c229
WIP Update curve25519-dalek dependency to 0.17.
2018-05-15 23:34:01 +00:00
Isis Lovecruft
e3dfc8843c
Bump ed25519-dalek version to 0.6.2.
2018-03-26 02:32:38 +00:00
Isis Lovecruft
f790bd2ce1
Update subtle and curve25519-dalek dependencies.
2018-03-26 02:13:39 +00:00
Isis Lovecruft
ac3d974f70
Update Travis badge to point to dalek-cryptography repo.
2018-03-26 02:11:43 +00:00
Isis Lovecruft
40e887ce54
Bump ed25519-dalek version to 0.6.1.
2018-02-02 22:17:36 +00:00
Isis Lovecruft
bc9faa4186
Merge remote-tracking branch 'exrook/master' into develop
2018-01-25 20:48:26 +00:00
Isis Lovecruft
20fd237d35
Revert to using sha2^=0.6.
2018-01-20 03:00:47 +00:00
Isis Lovecruft
b650ae0c28
Update dev dependency versions.
2018-01-20 02:54:42 +00:00
Isis Lovecruft
6724268ea1
Update website and repo links.
2018-01-20 02:49:53 +00:00
Isis Lovecruft
04c8574106
Bump versions for several dependencies.
2018-01-20 02:49:34 +00:00
Jacob Hughes
fff5deddf8
Update dependencies
...
Update rand to verion 0.4
Update sha2 and digest to version 0.7
Update hex to version 0.3
2018-01-17 14:33:41 -05:00
Isis Lovecruft
510a1f89c0
Merge remote-tracking branch 'withoutboats/custom-error-type' into develop
2017-12-09 02:12:39 +00:00
Without Boats
6c1acaca7c
Use failure instead of std::error::Error.
...
failure is no_std compatible, whereas std::error::Error is not.
2017-12-06 15:25:12 -08:00
Without Boats
96246506c0
This is a breaking change.
2017-12-05 18:18:34 -08:00
Isis Lovecruft
9d89e2f660
Upgrade to using curve25519-dalek-0.14.0.
2017-12-04 17:47:06 +00:00