Commit graph

166 commits

Author SHA1 Message Date
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
DebugSteven
de5d79388b use zeroize instead of clear_on_drop 2019-11-26 13:44:50 -07:00
J Haigh
e2537185ac
Merge pull request #48 from DebugSteven/serde-support
support for serde serialize and deserialize
2019-11-11 17:33:59 -05:00
DebugSteven
0c3981d87a support for serde serialize and deserialize 2019-11-11 10:46:28 -05:00
Henry de Valence
7af85b8e4b
Merge pull request #49 from dalek-cryptography/rust-2018
Use 2018 edition
2019-10-24 15:57:41 -07:00
Henry de Valence
9c3d6921d0 Use 2018 edition 2019-10-24 15:44:57 -07:00
Peat Bakke
1d61e1ba46 Add .to_bytes() to PublicKey, so that it has similar capabilities to the ed25519 PublicKey impl. Also to SharedSecret for consistency. 2019-06-05 12:20:02 -07:00
Henry de Valence
1cc37a1eda
Merge pull request #41 from untoldwind/master
Ensure that all data of StaticSecret is cleared on drop
2019-04-23 10:08:40 -07:00
Bodo Junglas
0f187b4670
Ensure that all data of StaticSecret is cleared on drop 2019-04-12 08:34:41 +02:00
Henry de Valence
9a637d48d4 Merge branch 'master' into develop 2019-03-29 12:56:21 -07:00
Henry de Valence
9567e021c5 Merge branch 'release/0.5.2' 2019-03-29 12:56:08 -07:00
Henry de Valence
89c58a991b Bump version, add changelog entries 2019-03-29 12:53:43 -07:00