isis agora lovecruft
d009239651
Merge pull request #65 from isislovecruft/feature/64-hardcode-sha2
...
Hardcode use of sha2::Sha512 in most cases
2018-12-30 01:28:25 +00: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 agora lovecruft
9fe447aeb8
Merge pull request #62 from isislovecruft/feature/61-decompress-caching
...
Cache decompressed PublicKey points
2018-12-24 12:09:24 +00:00
Isis Lovecruft
7877a7fa00
WARNING: Remove #[repr(C)] from all types.
2018-12-23 12:00:59 +00:00
Isis Lovecruft
8dbaf9a8d2
Move PublicKey point decompression into initialisation.
...
This caches the public key internally so that we effectively get a free
speedup on key reuse in regular signature verification, similar to that in
batch verification. (However, this also "speeds up"¹ batch verifications.)
¹ Less of a speed up than moving the computation elsewhere, but the speed up
on reuse still also applies to key reuse for batch verification.
2018-12-23 12:00:59 +00:00
Isis Lovecruft
4f53a4826d
Add comment in .travis.yml about testing no_std.
2018-12-22 13:27:44 +00:00
Isis Lovecruft
aee0043a92
Also exercise the test suite with the sha2 feature enabled in CI.
2018-12-22 13:23:49 +00:00
Isis Lovecruft
1459e72688
Only test serde feature on stable to save CI resources.
2018-12-22 13:20:44 +00:00
Isis Lovecruft
3d697bf27a
Fix doctests which relied on the sha2 feature being enabled.
2018-12-22 13:13:21 +00:00
Isis Lovecruft
a9e5410f69
Fix serialised size assumptions from #48 .
...
Unfortunately the serialised size is likely never going to be the same
as the type's size in memory, as most serialisation formats define
additional headers for parsing safety reasons, such as buffer lengths
and type information.
2018-12-22 13:13:21 +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
isis agora lovecruft
85285576a7
Merge pull request #57 from IronCoreLabs/rand-0.6
...
Rand 0.6 version bump
2018-12-18 01:33:57 +00:00
Isis Lovecruft
0dab8943a1
Merge remote-tracking branch 'garious/add-as-ref' into develop
2018-12-18 01:13:13 +00:00
isis agora lovecruft
60dea0b3b1
Merge pull request #48 from garious/serialized-size
...
Add tests for upgraded generic_array
2018-12-18 00:46:05 +00:00
isis agora lovecruft
f01b2767b6
Merge pull request #47 from garious/fix-doc-tests
...
Fix serde doc tests
2018-12-18 00:12:20 +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
Greg Fitzgerald
680f68be31
Add tests for generic_array serialized size
...
generic_array v0.12 no longer serializes GenericArray as a Vec,
which reduces the serialized size of PublicKey, Signature, and
SecretKey by 8 bytes. Now that generic_array has been upgraded,
these tests simply ensure the serialization size doesn't change
in the future.
2018-11-09 10:16:14 -07:00
Greg Fitzgerald
a3cfc7e294
Add AsRef instances for PublicKey and SecretKey
...
This just makes it a little easier to migrate to this library from
alternatives such as 'ring'.
2018-11-09 10:13:16 -07:00
Greg Fitzgerald
82948f0dd6
Fix serde doc tests
...
And let latest rustfmt reorder imports.
2018-11-09 10:12:32 -07:00
Greg Fitzgerald
617f3186e2
Expose CI failures
2018-11-09 10:12:32 -07:00
Isis Lovecruft
8badca9e34
Merge branch 'master' into develop
2018-11-06 02:12:14 +00:00
Isis Lovecruft
12c5777b23
Merge branch 'release/1.0.0-pre.0'
2018-11-06 02:12:08 +00:00
Isis Lovecruft
99c64cc403
Bump ed25519-dalek version to 1.0.0-pre.0.
2018-11-06 01:56:13 +00:00
Henry de Valence
4012da229c
Merge pull request #54 from isislovecruft/fix/curve25519-dalek-1.0.0-pre.0
...
Update curve25519-dalek dependency to 1.0.0-pre.0.
2018-11-05 17:47:43 -08:00
Isis Lovecruft
b97fa08900
Update curve25519-dalek dependency to 1.0.0-pre.0.
2018-11-06 01:40:21 +00:00
Isis Lovecruft
9721d1de5e
Merge branch 'master' into develop
2018-09-26 18:54:26 +00:00
Isis Lovecruft
5e156e5a7a
Merge branch 'release/0.8.1'
2018-09-26 18:54:18 +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 agora lovecruft
6a04da3ca4
Merge pull request #43 from dalek-cryptography/remove-rand-feature
...
Remove unused features
2018-09-26 18:42:46 +00:00
Henry de Valence
1e8b9f962b
Remove unused features
2018-09-26 11:38:41 -07:00
isis agora lovecruft
da8e609dc2
Merge pull request #36 from sunhuachuang/develop
...
fix doc code
2018-09-14 19:04:51 +00:00
Isis Lovecruft
ebece36cf4
Merge branch 'feature/39-public-from-expanded-secret' into develop
2018-09-14 18:35:39 +00:00
Isis Lovecruft
49ebfa13de
Implement From<ExpandedSecretKey> for PublicKey.
...
* CLOSES https://github.com/dalek-cryptography/ed25519-dalek/issues/39
2018-09-14 18:28:16 +00:00
sun
0ea12f922e
fix doc code
2018-08-24 11:27:15 +08:00
Isis Lovecruft
95ca81e0e6
Merge branch 'master' into develop
2018-07-27 22:00:12 +00:00
Isis Lovecruft
5a759ab9fa
Fix typo in image URL in README.
2018-07-27 22:00:05 +00:00
Isis Lovecruft
cf5b6b1a28
Merge branch 'master' into develop
2018-07-27 21:57:32 +00:00
Isis Lovecruft
d472254ad3
Merge branch 'release/0.8.0'
2018-07-27 21:57:12 +00:00
Isis Lovecruft
9263d01351
Remove outdated TODO section from the README.
2018-07-27 21:45:32 +00:00
Isis Lovecruft
591aff7025
Bump ed25519-dalek version to 0.8.0.
2018-07-27 21:35:36 +00:00
Isis Lovecruft
f67d955100
Add README section for batch performance.
2018-07-27 21:34:02 +00:00
Isis Lovecruft
c700a2b5e4
This is what happens when you have separate machines for benchmarks and
...
committing code.
2018-07-27 19:17:03 +00:00
Isis Lovecruft
1b702a3fe1
Add more batch sizes to benchmarks.
2018-07-27 18:28:17 +00:00
Isis Lovecruft
468acd8f1f
Fix batch benchmarks to use new function signature.
2018-07-27 18:28:06 +00:00
Isis Lovecruft
3ad616a23c
Remove unused csprng parameter from verify_batch() function.
2018-07-27 17:30:57 +00:00