Commit graph

91 commits

Author SHA1 Message Date
pinkforest(she/her)
84158337af
Make static_secrets optional (#122)
* Make `static_secrets` optional

* Added more feature combinations to CI
2023-03-31 13:34:03 -04:00
pinkforest(she/her)
02a5ce20ca
Add getrandom (#118)
* Add getrandom to bring convenience random init functions

* Fix doc name

* Rename new to random_from_rng

* Deprecate new() in favor of random_from_rng()

* Simplify constructors documentation

Co-authored-by: Ciprian Dorin Craciun <ciprian@volution.ro>
2023-03-21 01:40:51 -04:00
Tony Arcieri
6aabb9bf08
Merge pull request #119 from pinkforest/fix-no_std
Fix `no std` by moving `get_random` feat dev-deps
2023-03-20 19:05:42 -06:00
Michael Rosenberg
d6c3cbf97d
Merge branch 'main' into release/2.0 2023-03-20 14:19:38 -04:00
pinkforest
5080b42601
Merge remote-tracking branch 'origin/release/2.0' into fix-no_std 2023-03-13 07:22:03 +11:00
pinkforest
f3c46bc3bf
Remove redundant feature 2023-03-12 15:27:53 +11:00
pinkforest
fdc992d6cd
Fix no_std with get_random 2023-03-12 14:18:07 +11:00
pinkforest
c779e215f7
Fixed doc nit from update-ci branch
Co-Authored-by: Michael Rosenberg <michael@mrosenberg.pub>
2023-03-12 13:42:31 +11:00
Dirk Stolle
327618c7d8 Fix two typos 2023-02-24 22:22:19 +01:00
Michael Rosenberg
88cc32b687
Updated to curve25519-dalek rc0 2023-01-29 04:29:07 -05:00
dlblv
d95e3bd536 impl AsRef for keys as well 2022-12-30 01:43:42 +05:00
dlblv
7374fd3d2f fix clippy warnings 2022-12-21 01:11:17 +05:00
dlblv
50dbb9eb4d Add as_bytes() method 2022-12-19 21:30:09 +05:00
dignifiedquire
ce3b8d3689 fixup: cleanup extern crates 2022-12-09 15:40:56 +01:00
dignifiedquire
fa9e16e938 happy clippy 2022-12-09 15:36:55 +01:00
dignifiedquire
cf56e789ed bump MSRV to 1.60 and update to current curve25519-dalek 2022-12-09 15:35:49 +01:00
Isis Lovecruft
73d4c2fe93
Update x25519-dalek version to 2.0.0-pre.1. 2021-09-23 19:53:44 +00:00
Isis Lovecruft
9d7bccbd8e
Bump x25519-dalek version to 2.0.0-pre.0. 2021-09-15 01:07:48 +00:00
Isis Lovecruft
ea047a218f
Bump x25519-dalek version to 1.2. 2021-09-14 23:08:36 +00:00
isis agora lovecruft
b6f7de1e4c
Merge pull request #71 from isislovecruft/feature/noise-secrets
Implement reused secret keys for Noise/X3DH/etc protocols
2021-09-14 22:47:04 +00:00
Isis Lovecruft
eef4de41c0
Disambiguate what kind of key in docstring. 2021-09-14 22:34:41 +00:00
Isis Lovecruft
edb9ec984e
Document that ReusableSecret is preferrable for Noise protocols. 2021-09-14 22:33:31 +00:00
Isis Lovecruft
588e48f8f2
Make ReusableSecret derive Clone. 2021-09-14 20:24:12 +00:00
Isis Lovecruft
3924797b59
Add note to StaticSecret that EphemeralSecret is recommended. 2021-09-14 20:23:38 +00:00
isis agora lovecruft
254e43debf
Merge pull request #78 from isislovecruft/feature/contributory-behaviour-check
Implement optional contributory behaviour check
2021-09-14 20:13:24 +00:00
Isis Lovecruft
91babd286f
Add a #[must_use] to the was_contributory check. 2021-09-14 19:51:02 +00:00
Isis Lovecruft
18323afd63
Bisect to determine MSRV. 2021-09-13 23:44:57 +00:00
Isis Lovecruft
a32a92798a
Get rid of the include_str!() docs to support earlier MSRVs. 2021-09-13 22:37:52 +00:00
Isis Lovecruft
c13e102f95
Implement optional check for contributory behaviour. 2021-09-13 21:31:54 +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
exfalso
ee2500db75 feature(external_doc) -> doc = include_str 2021-08-17 09:49:02 +02:00
Isis Lovecruft
27c73fdb57
Feature gate reusable secrets and make the name more intuitive. 2021-04-20 21:33:32 +00:00
Isis Lovecruft
0a1023f4db
Implement reused secret keys for Noise protocol. 2021-04-14 20:00:41 +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 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
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
Henry de Valence
e8615a9326 bump version to 1.1.0 and update CHANGELOG 2020-08-31 12:56:34 -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
af6d5bd5bf Bump version to 1.0.1 2020-08-17 20:37:20 -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
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