Isis Lovecruft
5500fd15ef
Merge branch 'master' into develop
2021-01-08 03:40:04 +00:00
Isis Lovecruft
73100b74ff
Merge branch 'release/3.0.2'
2021-01-08 03:39:55 +00:00
Isis Lovecruft
55e0db7cf6
Bump curve25519-dalek version to 3.0.2.
2021-01-08 03:32:42 +00:00
Isis Lovecruft
e852e97d2d
Bump curve25519-dalek version to 2.1.2.
2021-01-08 03:25:44 +00:00
Isis Lovecruft
ab5af2e47c
Whitespace fixes for 3267a5d merge.
...
(cherry picked from commit 77ec974212 )
Signed-off-by: Isis Lovecruft <isis@patternsinthevoid.net>
2021-01-08 00:40:00 +00:00
root
5ba95b13e4
errata and basepoint_odd_lookup_table test for better understanding
...
(cherry picked from commit 2d0c5323cb )
Signed-off-by: Isis Lovecruft <isis@patternsinthevoid.net>
2021-01-08 00:39:46 +00:00
root
4b268a9d7e
errata and basepoint_odd_lookup_table test for better understanding
...
(cherry picked from commit 8da05f7e90 )
Signed-off-by: Isis Lovecruft <isis@patternsinthevoid.net>
2021-01-08 00:39:20 +00:00
root
87a5ed78b7
errata for comment
...
(cherry picked from commit f6015c66c2 )
Signed-off-by: Isis Lovecruft <isis@patternsinthevoid.net>
2021-01-08 00:38:20 +00:00
root
3b79d0fbc4
errata for vpmuludq
...
(cherry picked from commit fa849e014c )
Signed-off-by: Isis Lovecruft <isis@patternsinthevoid.net>
2021-01-08 00:38:11 +00:00
Isis Lovecruft
77ec974212
Whitespace fixes for 3267a5d merge.
2021-01-08 00:33:37 +00:00
Isis Lovecruft
3267a5d75d
Merge remote-tracking branch '3for/comment-fix' into develop
2021-01-08 00:27:34 +00:00
Stephane Raux
4269b39f13
Make crate feature alloc work with stable Rust
...
`println!` was removed in the test as the corresponding test for `u32` does not have it.
(cherry picked from commit 608f8cd594 )
Signed-off-by: Isis Lovecruft <isis@patternsinthevoid.net>
2021-01-07 23:30:42 +00:00
Isis Lovecruft
8500cd3c2f
Merge remote-tracking branch 'stephaneyfx/alloc-with-stable-rust' into develop
2021-01-07 23:24:57 +00:00
Isis Lovecruft
0f07443c2d
Bump curve25519-dalek to 2.1.1.
2021-01-07 22:21:37 +00:00
Isis Lovecruft
bb889e478d
Remove deprecated feature flags from .travis.yml.
...
(cherry picked from commit 7e320cd1d9 )
Signed-off-by: Isis Lovecruft <isis@patternsinthevoid.net>
2021-01-07 22:12:24 +00:00
Isis Lovecruft
d00d4a5a9a
Fix CHANGELOG so that we can note backported patches.
...
(cherry picked from commit 64099e9adf )
Signed-off-by: Isis Lovecruft <isis@patternsinthevoid.net>
2021-01-07 22:12:12 +00:00
Henry de Valence
e6d8afc352
Add link to Cargo.toml with explanation of packed_simd renaming
...
(cherry picked from commit 45f3f53351 )
Signed-off-by: Isis Lovecruft <isis@patternsinthevoid.net>
2021-01-07 22:10:10 +00:00
Markus Zoppelt
dd71df6ea0
adjusted dependency entry like to pick up latest pick up the latest packed_simd crate under an alternative name.
...
see also: https://github.com/rust-lang/packed_simd/issues/303#issuecomment-701361161
(cherry picked from commit f27923bf8c )
Signed-off-by: Isis Lovecruft <isis@patternsinthevoid.net>
2021-01-07 22:09:49 +00:00
Markus Zoppelt
6ffc8ddefd
bumped packed_simd to 0.3.4. resolves #333
...
(cherry picked from commit c2e394dd04 )
Signed-off-by: Isis Lovecruft <isis@patternsinthevoid.net>
2021-01-07 22:09:26 +00:00
Isis Lovecruft
2e543e73d9
Merge branch 'master' into develop
2021-01-07 22:05:35 +00:00
Isis Lovecruft
3b44ed82dd
Merge branch 'release/3.0.1'
2021-01-07 22:05:26 +00:00
Isis Lovecruft
7e320cd1d9
Remove deprecated feature flags from .travis.yml.
2021-01-07 21:51:21 +00:00
Isis Lovecruft
64099e9adf
Fix CHANGELOG so that we can note backported patches.
2021-01-07 21:31:57 +00:00
Isis Lovecruft
e47a180991
Bump curve25519-dalek to 3.0.1.
2021-01-07 21:29:17 +00:00
Paul Grandperrin
050034c98c
Fix rand_core test by enabling "getrandom" feature
2020-12-21 22:53:43 -03:00
Paul Grandperrin
9717eb8d52
Update rand_core to 0.6
...
https://github.com/rust-random/rand/blob/master/rand_core/CHANGELOG.md
This new version makes using rand_core on wasm seamless (thanks to the update of getrandom to v0.2)
The crate compiles well with this PR, but since some rand_core traits are publicly exposed in this crate's API, this is strictly speaking a breaking change.
2020-12-14 18:07:06 +00:00
Tyler Neely
9d9a6b0beb
Speed up compilation by avoiding zeroize_derive
2020-11-25 12:35:24 +01:00
Isis Lovecruft
bbb8869550
Fix std builds when serde is enabled.
2020-11-02 23:57:09 +00:00
Isis Lovecruft
ce5ff27681
Make serde_bytes/alloc dependent on alloc feature.
...
Fixup for PR #149 .
2020-10-28 00:04:15 +00:00
isis agora lovecruft
50b26f0bb4
Merge pull request #149 from xu-cheng/no_std
...
fix serde in no_std
2020-10-28 00:02:02 +00:00
isis agora lovecruft
95db7d8eae
Merge pull request #153 from huitseeker/non_repudiation
...
[test-only] Add test showing non-repudiation for verify, verify_strict
2020-10-27 23:59:26 +00:00
François Garillot
8aa1458941
Implements an Elligator2 map for Curve25519
...
This implementation:
- is agnostic on the hash used to pick a field element, even though SHA512 is commonly used,
- follows https://tools.ietf.org/id/draft-irtf-cfrg-hash-to-curve-10.html closely
- tests the outputs of the function using libsignal's implementation.
2020-10-21 17:38:22 -04:00
Stephane Raux
608f8cd594
Make crate feature alloc work with stable Rust
...
`println!` was removed in the test as the corresponding test for `u32` does not have it.
2020-10-20 18:15:00 -07:00
François Garillot
da6c7e114f
[test-only] Add test showing the non-repudiation property of the signature verifications used in PublicKey::verify and PublicKey::verify_strict.
...
This PR is a follow-up of #98 , which aims to demonstrate the issue brought by small-order public keys. It shows an example of crafting a (public_key, signature) that verifies against two distinct messages using `verify`, but fails using `verify_strict`.
This has consequences on the possibility to repudiate a signed contract of blockchain transactions.
For more details, see:
https://eprint.iacr.org/2020/1244
Joint work with @kchalkias @valerini
2020-10-14 17:28:51 -04:00
Henry de Valence
a787300ba1
Merge pull request #334 from MarkusZoppelt/fix-packed_simd-AMD
...
bumped packed_simd to 0.3.4
2020-09-30 12:52:15 -07:00
Henry de Valence
45f3f53351
Add link to Cargo.toml with explanation of packed_simd renaming
2020-09-30 12:01:43 -07:00
Markus Zoppelt
f27923bf8c
adjusted dependency entry like to pick up latest pick up the latest packed_simd crate under an alternative name.
...
see also: https://github.com/rust-lang/packed_simd/issues/303#issuecomment-701361161
2020-09-30 15:17:18 +02:00
Markus Zoppelt
c2e394dd04
bumped packed_simd to 0.3.4. resolves #333
2020-09-30 12:59:10 +02:00
Cheng XU
6ce6519287
fix serde in no_std
2020-09-21 19:16:01 -07:00
Isis Lovecruft
91234fcdc8
Merge branch 'master' into develop
2020-09-22 02:01:10 +00:00
Isis Lovecruft
925eb9ea56
Merge branch 'release/1.0.1'
2020-09-22 02:00:50 +00:00
Isis Lovecruft
1042cb60a0
Bump ed25519-dalek version to 1.0.1.
2020-09-22 01:56:35 +00:00
Isis Lovecruft
8c15bce61d
Actually, we use unsafe{} in one test.
2020-09-22 01:54:44 +00:00
isis agora lovecruft
97c22f2d07
Merge pull request #146 from xu-cheng/serde2
...
Fix serde implementation for serde_json
2020-09-22 01:49:58 +00:00
isis agora lovecruft
a9ebf7f53e
Merge pull request #148 from isislovecruft/feature/forbid-unsafe
...
Add #![forbid(unsafe_code)].
2020-09-22 01:39:51 +00:00
isis agora lovecruft
1335f3a859
Merge pull request #147 from isislovecruft/fix/deterministic-batch-malleability
...
batch verification malleability issue when used with fully deterministic nonce generation
2020-09-22 01:38:22 +00:00
Isis Lovecruft
d6ff6de2cf
Add #![forbid(unsafe_code)].
...
CLOSES https://github.com/dalek-cryptography/ed25519-dalek/issues/144
2020-09-22 01:36:49 +00:00
Cheng XU
69eccda444
Fix serde implementation for serde_json
...
We use the [serde_bytes](https://github.com/serde-rs/bytes ) crate for
serialization implementations, which simplifies codes and fixes issues
for serde_json.
2020-09-21 18:26:59 -07:00
Cheng XU
008c9680f6
Update tests for serde
...
* Upgrade bincode to 1.0
* Add more serde tests including json serialization.
2020-09-21 18:26:59 -07:00
Isis Lovecruft
b5a15bf451
Feature gate key generation on the "rand" dependency.
...
See https://github.com/dalek-cryptography/ed25519-dalek/pull/139 .
2020-09-21 23:53:56 +00:00