Commit graph

177 commits

Author SHA1 Message Date
Isis Lovecruft
02fc85ea21
Enable CI via github actions. 2021-09-13 22:32:19 +00:00
Isis Lovecruft
adbd0e37a4
Pin zeroize to 1.3 for now to support older MSRVs.
I reserve the right to change this between minor version changes in x25519-dalek.

This closes https://github.com/dalek-cryptography/x25519-dalek/issues/74
2021-09-13 21:45:08 +00:00
Isis Lovecruft
4f0ad77805
Fix test errors from #70. 2021-09-13 21:40:13 +00:00
isis agora lovecruft
7af25420ec
Merge pull request #76 from decentriq/main
feature(external_doc) -> doc = include_str
2021-09-13 21:31:17 +00:00
isis agora lovecruft
bf4c67a11b
Merge pull request #72 from huitseeker/thread-fiat-backends
Threads the `fiat_{u32,u64}_backend` features through the feature set
2021-09-13 21:25:03 +00:00
exfalso
ee2500db75 feature(external_doc) -> doc = include_str 2021-08-17 09:49:02 +02:00
François Garillot
893e0506a3
Threads the fiat_{u32,u64}_backend features through the feature set
This allows the fiat backends introduced in [curve25519-dalek/#342](https://github.com/dalek-cryptography/curve25519-dalek/pull/342) to be used from an x25519 import without cumbersome overrides.
2021-05-03 16:31:32 -07:00
isis agora lovecruft
3d87bd3c7d
Merge pull request #70 from isislovecruft/fix/test-directory
Move tests to a separate directory
2021-04-14 19:53:57 +00:00
Isis Lovecruft
2333b52698
Move tests to a separate directory. 2021-04-14 19:45:36 +00:00
Isis Lovecruft
9e387372e6
Remove unused import from test suite. 2021-04-14 19:33:11 +00:00
isis agora lovecruft
336939cf02
Merge pull request #69 from isislovecruft/feature/zeroize-public
Derive Zeroize for PublicKey
2021-04-14 19:37:58 +00:00
Isis Lovecruft
0cca7977fc
Derive Zeroize for PublicKey. 2021-04-14 19:29:09 +00:00
Isis Lovecruft
fc945778ab
Fixups for doctest from #33. 2021-04-14 05:05:54 +00:00
Isis Lovecruft
cdd97559de
Merge remote-tracking branch 'zer0x64/master' into develop 2021-04-14 04:55:59 +00:00
Isis Lovecruft
9da1401908
Merge branch 'main' into develop 2021-04-14 04:47:45 +00:00
Isis Lovecruft
3bc0d07a09
Merge branch 'release/1.1.1' into main 2021-04-14 04:47:38 +00:00
Isis Lovecruft
f616c8b2c5
Update CHANGELOG and README; bump version to 1.1.1. 2021-04-14 04:38:37 +00:00
Isis Lovecruft
1c39ff92e0
Update copyright years. 2021-04-14 04:32:20 +00:00
isis agora lovecruft
2b541666de
Merge pull request #66 from oblazy/oblazy-patch-voila
Update README.md
2021-03-25 07:56:41 +00:00
Olivier Blazy
f40a0a060d
Update README.md
There was acute typo, not agrave mistake. ;)
2021-02-12 10:53:34 +01:00
Henry de Valence
7ef5cc7c32 Merge branch 'master' into develop 2020-08-31 12:59:05 -07:00
Henry de Valence
0985e1babf Merge branch 'release/1.1' 2020-08-31 12:58:49 -07:00
Henry de Valence
e8615a9326 bump version to 1.1.0 and update CHANGELOG 2020-08-31 12:56:34 -07:00
Henry de Valence
1ede5270e5
Merge pull request #63 from jack-michaud/derive-partialeq
Add PartialEq derive to PublicKey
2020-08-31 12:52:53 -07:00
Jack Michaud
3c09664112 Feedback from @hdevalence - Added derive for Eq and Hash 2020-08-31 12:15:43 -07:00
Jack Michaud
48df927d7b Add PartialEq derive to PublicKey
Derives from the PartialEq impl for MontgomeryPoint
2020-08-30 17:41:54 -07:00
Henry de Valence
fd12c03b86 Merge branch 'master' into develop 2020-08-17 20:38:34 -07:00
Henry de Valence
d438d486fd Merge branch 'release/1.0.1' 2020-08-17 20:38:25 -07:00
Henry de Valence
af6d5bd5bf Bump version to 1.0.1 2020-08-17 20:37:20 -07:00
Henry de Valence
b8e6fb7ee1
Merge pull request #62 from dalek-cryptography/curve-3
Update curve25519-dalek to version 3.0.0.
2020-08-17 20:35:31 -07:00
Henry de Valence
2408e6b179 Update curve25519-dalek to version 3.0.0.
This allows unifying dependencies with other crates using the `3.x` series of
the curve library.  It is a semver patch-level change, because the x25519-dalek
API does not expose any details of the underlying curve implementation.
2020-08-17 20:17:57 -07:00
Henry de Valence
1781dd3d05 Merge branch 'master' into develop 2020-08-17 19:45:27 -07:00
Henry de Valence
bddb3c7777 Merge branch 'release/1.0.0' 2020-08-17 19:45:17 -07:00
Henry de Valence
1b01d597ca Bump version to 1.0.0 and update CHANGELOG.md 2020-08-17 19:43:22 -07:00
Henry de Valence
122d4bb114
Merge pull request #61 from dalek-cryptography/clarify-ephemeral-static
Clarify Ephemeral/StaticSecret docs.
2020-08-17 19:33:45 -07:00
Henry de Valence
fb92cd82da Clarify Ephemeral/StaticSecret docs.
Also does a pass through the docs converting `TypeNames` to Rustdoc links, and
making sure that all the items have consistent summaries.

Closes #58
Closes $56
2020-08-17 19:25:12 -07:00
Henry de Valence
736f8dd313
Merge pull request #60 from dalek-cryptography/remove-rand-os-example
Remove rand os example
2020-08-17 19:22:21 -07:00
Henry de Valence
5d245dcefa
Merge pull request #43 from peat/master
Add .to_bytes() to PublicKey, SharedSecret
2020-08-17 18:55:18 -07:00
Henry de Valence
8287798aa1 Update doc examples to remove deprecated code and restore testing.
Closes #59.

The doc examples have code interspersed with text explaining the API.  Because
each doctest executes independently, when these code examples are run as
doctests, they have to include parts of the previous examples with # lines.
These lines are hidden from Rustdoc output and do not appear in the rendered
docs, but they do appear when viewing the README.md on Github.

In order to hide these on Github, the code blocks were made non-executable,
with their content moved to a unit test.  However, this meant that the example
API usage was not tested, and so when the unit test was updated to remove the
deprecated `rand_os`, there was no check that the examples stayed in sync with
the test, causing #59.  To prevent this from reocurring in the future, go back
to executable tests of the API examples.
2020-08-17 18:47:31 -07:00
Henry de Valence
5d91bd8f22 Make bound on csprng more general.
`rand_core` defines a blanket impl of `RngCore + CryptoRng` for `&mut T` where
`T: RngCore + CryptoRng`, so rather than requiring a borrowed RNG, it's better
to require an owned RNG, as this allows passing either owned or borrowed
values.  In particular, this makes `OsRng` usage much more ergonomic, because
the caller is not forced to do `&mut OsRng` on the zero-sized struct.
2020-08-17 18:44:48 -07:00
Henry de Valence
5115951681
Merge pull request #55 from huitseeker/bump-criterion
Bump criterion version
2020-03-06 09:10:35 -08:00
François Garillot
be420d4ffc
Bump criterion version 2020-03-04 22:35:33 -05:00
Henry de Valence
ebb4981232
Merge pull request #54 from tarcieri/readme/crypto_box
README.md: Add "See also" section with link to `crypto_box` crate
2020-02-25 13:30:39 -08:00
Tony Arcieri
bdc6412faa README.md: Add "See also" section with link to crypto_box crate
The `crypto_box` crate provides a pure Rust implementation of the
public-key authenticated encryption primitive from NaCl which combines
X25519 + XSalsa20Poly1305 (a.k.a. "Curve25519XSalsa20Poly1305")

This commit adds a link to it case x25519-dalek users are interested in
using it as part of a hybrid cryptosystem.
2020-02-25 12:14:41 -08:00
Henry de Valence
52050e4e10 Merge branch 'master' into develop 2019-11-26 14:05:18 -08:00
Henry de Valence
ecd6be6748 Merge branch 'release/0.6' 2019-11-26 14:05:10 -08:00
Henry de Valence
d9c7f2814e Bump version to 0.6.0 and update CHANGELOG. 2019-11-26 14:03:08 -08:00
Henry de Valence
d588e2fd18
Merge pull request #52 from DebugSteven/bump-rand
Bump rand_core Version
2019-11-26 13:56:19 -08:00
DebugSteven
be82bcb15b update rand_core version
Co-authored-by: Greg <gregory.mkv@gmail.com>
2019-11-26 14:28:34 -07:00
Henry de Valence
b651a5e7ca
Merge pull request #39 from DebugSteven/zeroize
Use zeroize crate
2019-11-26 12:52:36 -08:00