Commit graph

17 commits

Author SHA1 Message Date
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