Andreas Fackler
214e5f81cf
Remove try_ methods.
7 years ago
Andreas Fackler
ad11ceaed6
Remove mlock.
...
It currently causes too many problems to be practical. We will re-enable
it once we have a dedicated allocator for locked memory.
7 years ago
Andreas Fackler
191cf0b741
Reexport pairing.
...
Since we are reexporting some of the pairing types, we should also
export pairing itself, to make all the matching traits available and
avoid version conflicts.
7 years ago
Andreas Fackler
0efdad4d69
Prepare for adding mock cryptography for testing.
...
* Add a feature flag (that doesn't do anything yet).
* Give `clear_fr` a stronger type to prevent mistakes and ensure the
right amount of memory gets cleared.
* Re-export the engine and related types from `lib.rs`.
7 years ago
Marc Brinkmann
d69590bedc
Convert all uses of `Bls12` and friends to refer to root `lib.rs` instead of importing from pairing directly.
7 years ago
Andreas Fackler
84e8b69a24
Validate polynomial degrees: fix panics.
7 years ago
Andreas Fackler
0bb41bd990
Merge xor_vec and hash_bytes.
...
They are only used together, and the API of `xor_vec` is a bit dangerous
since it silently stops at the minimum of the two arguments' lengths.
7 years ago
Marc Brinkmann
3645668bff
Add an API that allows specifying the RNG to be used for encryption.
7 years ago
DrPeterVanNostrand
5f09f96345
Added type for clearing temporary values.
7 years ago
DrPeterVanNostrand
72d1c607f8
Added 'try_' constructors to secret types.
7 years ago
Andreas Fackler
ded335f236
Simplify Poly multiplication, speed up interpolation. ( #23 )
...
* Simplify Poly multiplication, speed up interpolation.
Also add more `Mul` implementations.
* Postpone division: speed up interpolation some more.
* Speed up interpolation: re-use base polynomial.
7 years ago
Andreas Fackler
a03d258e9d
Use Formatter debug helpers. Hide SecretKeyShares.
...
Output "..." in the `Debug` implementation of `SecretKeyShare`, to make
it consistent with `SecretKey`.
7 years ago
Marc Brinkmann
a7cd6e0529
Update to Rust `beta` channel.
7 years ago
DrPeterVanNostrand
69ff326430
Added env-var 'MLOCK_SECRETS' to disable memory locks.
7 years ago
DrPeterVanNostrand
8f6dce18f2
Added mlocking for secret types.
7 years ago
Andreas Fackler
2d17d0e783
Replace ring with tiny-keccak.
7 years ago
Vladimir Komendantskiy
bf98f1271f
removed protobuf support
7 years ago
Vladimir Komendantskiy
150389c591
allow for using Error with inside other errors outside this crate
7 years ago
Vladimir Komendantskiy
b7ab849a16
converted errors from error_chain to failure
7 years ago
Vladimir Komendantskiy
394e4ce140
separated crypto module from hbbft crate
7 years ago