Commit graph

33 commits

Author SHA1 Message Date
Isis Lovecruft
23e61b7063
Merge remote-tracking branch 'rozbb/master' into develop 2019-02-27 21:51:37 +00:00
Isis Lovecruft
60f276db72
Fix README examples and doctests. 2019-02-27 20:45:55 +00:00
Michael Rosenberg
2a58e35b23
PublicKey now derives Copy, Clone, Debug 2019-02-27 12:40:14 -05:00
Henry de Valence
aee783ae82
use clamp_scalar for StaticSecret
This ensures that the `StaticSecret`'s scalar always has the X25519 bit-twiddles applied.

Co-Authored-By: DebugSteven <debugsteven@gmail.com>
2019-02-16 16:31:05 -05:00
DebugSteven
6797c0969f summarize how types are used & how they relate to one another 2019-02-16 10:57:42 -07:00
DebugSteven
29edaa17ac informative doc comments 2019-02-16 10:22:06 -07:00
DebugSteven
ad670a4d03 methods to convert a StaticSecret to and from bytes 2019-02-16 09:42:56 -07:00
DebugSteven
4caffdcca0 impl StaticSecret & create DH method that borrows our StaticSecret 2019-02-16 09:14:43 -07:00
DebugSteven
9fe535dcc7 rename EphemeralPublic to PublicKey 2019-02-16 08:57:09 -07:00
Henry de Valence
1117184a02 Add EphemeralPublic::as_bytes 2019-01-22 14:11:44 -08:00
Henry de Valence
dd8b61da4a Add an X25519 basepoint constant 2019-01-15 21:44:56 -08:00
Isis Lovecruft
53ba2f3bcc
Merge remote-tracking branch 'newpavlov/rand_os' into release/0.4.0 2019-01-16 01:29:46 +00:00
Isis Lovecruft
c9a1ef6a36
Credit @DebugSteven as an author. 2019-01-12 23:34:49 +00:00
Henry de Valence
b8716bb82b Pull source docs from README 2019-01-10 10:30:30 -08:00
Артём Павлов [Artyom Pavlov]
5dcc1c17da use rand_os instead of rand 2019-01-05 16:17:05 +03:00
DebugSteven
d3b7ccf030 byte-oriented x25519 function 2018-12-16 11:30:32 -07: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
4c6498ec69 change impl Drop for SharedSecret to use clear directly 2018-11-18 15:19:58 -05:00
DebugSteven
1b64afd83d associate diffie_hellman, generate_public, generate_secret with the Ephemeral type; implement Mul for Ephemeral; create SharedSecret type & implement drop; change docs to reflect new methods on the Ephemeral type 2018-11-10 15:29:17 -05:00
DebugSteven
e93a7125d9 revert change to fn x25519 2018-11-06 17:04:18 -05:00
DebugSteven
34abee71f8 generate secret key in impl & use the type 2018-11-06 16:51:57 -05:00
DebugSteven
bd13f0728f add clear_on_drop to toml & add secret key type 2018-11-06 14:00:52 -05:00
Isis Lovecruft
1aec62c6be
Switch to using traits from rand_core instead of rand. 2018-07-23 17:15:09 +00:00
Jake McGinty
cb88ab169a Use latest curve25519-dalek.
Fixes #5 (allows x25519-dalek to compile on stable).

informed by 6748ddd:
  - sub `CompressedMontgomeryU` with `MontgomeryPoint`, removing
    (de)compress calls.
informed by d32fe97:
  - sub `Scalar([u8; 32])` with `Scalar::from_bits([u8; 32])`
2018-05-01 20:18:43 -07:00
Isis Lovecruft
f8c554dd97
Move seldom-used import. 2017-10-24 06:10:27 +00:00
Isis Lovecruft
3702a7c598
Initial commit. 2017-10-09 04:02:40 +00:00