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
2c22ff648a
Merge pull request #60 from dalek-cryptography/revert-49-add-as-ref
...
Revert "Add AsRef instances for PublicKey and SecretKey"
2018-12-18 01:11:43 +00:00
isis agora lovecruft
26e017df7c
Revert "Add AsRef instances for PublicKey and SecretKey"
2018-12-18 01:09:00 +00:00
isis agora lovecruft
91f5546a83
Merge pull request #49 from garious/add-as-ref
...
Add AsRef instances for PublicKey and SecretKey
2018-12-18 01:08:11 +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
DebugSteven
ad48c87a2a
remove repr(c)
2018-12-16 11:39:02 -07:00
DebugSteven
d3b7ccf030
byte-oriented x25519 function
2018-12-16 11:30:32 -07:00
Henry de Valence
0fc69912d9
Update src/x25519.rs
...
Co-Authored-By: DebugSteven <debugsteven@gmail.com>
2018-12-15 17:42:25 -05:00
Henry de Valence
f6da70d47b
Update benches/x25519.rs
...
Co-Authored-By: DebugSteven <debugsteven@gmail.com>
2018-12-15 17:41:35 -05:00
Henry de Valence
dd40ae0d97
Update Cargo.toml
...
Co-Authored-By: DebugSteven <debugsteven@gmail.com>
2018-12-15 17:41:12 -05:00
Henry de Valence
78cc7748d7
Merge branch 'master' into develop
2018-12-13 15:45:22 -08:00
Henry de Valence
7de65dc32c
Merge branch 'release/1.0.1'
2018-12-13 15:45:09 -08:00
Henry de Valence
5d4b5cb2a4
Bump version to 1.0.1
2018-12-13 15:43:26 -08:00
Henry de Valence
fca2cd5f95
Use the released version of subtle (oops)
2018-12-13 15:42:31 -08:00
Henry de Valence
3d6e0804de
Merge branch 'master' into develop
2018-12-13 15:39:25 -08:00
Henry de Valence
9855ba6b51
Merge branch 'release/1.0.0'
2018-12-13 15:39:06 -08:00
Henry de Valence
9b4361db8b
Finalize 1.0.0
2018-12-13 15:35:32 -08:00
DebugSteven
ff0e1f286b
From<[u8; 32]> for Ephemeral Public, fix to benches
2018-12-07 17:51:08 -05:00
DebugSteven
8730bfbba6
move implementation of x25519 into diffie_hellman
2018-12-07 17:07:24 -05:00
DebugSteven
ccf7e5bb57
remove mul; remove derive default on SharedSecret; rename decode to clamp
2018-12-03 13:27:35 -05:00
DebugSteven
7f822ff3dd
explicit lifetimes
2018-12-03 12:20:33 -05:00
DebugSteven
2619200aae
docs refactor
2018-12-02 14:31:41 -05:00
DebugSteven
734abac70b
wrap MontgomeryPoint in EphemeralPublic, impl From; remove byte fns for EphemeralSecret
2018-12-02 14:23:09 -05:00
Henry de Valence
7d80f9633a
Update src/lib.rs
...
Co-Authored-By: DebugSteven <debugsteven@gmail.com>
2018-11-28 02:33:55 -05:00
DebugSteven
a599644406
remove pub from x25519 fn
2018-11-27 17:02:38 -05:00
DebugSteven
7cf01d82d9
rand to 0.6
2018-11-19 13:27:29 -05:00
DebugSteven
98826dabf6
change curve dependency to 1.0.0-pre.1 at a minimum
2018-11-19 12:28:05 -05:00
Colt Frederickson
1132665ac2
Update to 1.0.0-pre1 curve25519
2018-11-19 10:13:59 -07:00
DebugSteven
4c6498ec69
change impl Drop for SharedSecret to use clear directly
2018-11-18 15:19:58 -05:00
Henry de Valence
6239a92055
Merge branch 'master' into develop
2018-11-18 10:47:51 -08:00
Henry de Valence
cd14527420
Merge branch 'release/1.0.0-pre.1'
2018-11-18 10:47:40 -08:00
Henry de Valence
7f63eaec60
Bump version to 1.0.0-pre.1
2018-11-18 10:44:30 -08:00
Henry de Valence
fc067303bb
Merge pull request #211 from IronCoreLabs/rand-0.6
...
Update to use Rand 0.6
2018-11-15 11:13:45 -08:00
Henry de Valence
55b96aab6d
Merge pull request #210 from DebugSteven/default-montgomerypoint
...
Default & Identity trait for MontgomeryPoint
2018-11-14 20:35:35 -08:00
DebugSteven
39145da396
implement default for MontgomeryPoint using zero byte array
2018-11-14 23:16:50 -05:00
Colt Frederickson
42b5d6ada9
Rand 0.6 version bump
2018-11-14 17:08:32 -07:00
Colt Frederickson
b5d6e94a64
Build for 0.6.0
2018-11-14 14:39:47 -07:00