Andreas Fackler
c7eda7a14a
Make serialization less wasteful.
...
This removes the unneeded length from key and signature representation,
removing 8 bytes from each. Also adds `from_bytes` and `to_bytes`
methods to convert keys and signatures.
6 years ago
Andrew Gross
4fec9da3d6
Update rand reference
7 years ago
Andrew Gross
a0aa9606fd
Linked to security audit in POA wiki
7 years ago
Andrew Gross
3ffe4b3386
Added security audit link
7 years ago
Andreas Fackler
05cde32d01
Instead of macro_use, use use.
7 years ago
Vladimir Komendantskiy
0cadd3196f
Merge pull request #58 from poanetwork/afck-rust-1.30.0
...
Upgrade to Rust 1.30.0.
7 years ago
Andreas Fackler
54026f5fe7
Upgrade to Rust 1.30.0.
7 years ago
Andreas Fackler
a4e0da3e8b
Version 0.2.1
7 years ago
Andreas Fackler
1d613c2113
Make hash_g2 public.
...
This function can be useful, to avoid redundant hashing of a long message.
7 years ago
Andreas Fackler
96db9fbba7
Version 0.2.0
...
Also: Follow the soon-to-be-official formatting guidelines:
https://github.com/nrc/rfcs/blob/style-guide/style-guide/cargo.md
7 years ago
Andreas Fackler
29b40fffa7
Use hex_fmt 0.2.0.
7 years ago
Andreas Fackler
2ca1d2ef7d
Fix negative overflow, add interpolation test. ( #52 )
7 years ago
Marc Brinkmann
0d4c376808
Add `cargo audit` to CI.
7 years ago
Andreas Fackler
20de873356
Replace HexBytes with the hex_fmt crate.
7 years ago
Marc Brinkmann
d133bb6d79
Mocktography ( #49 )
...
Added mocktography (feature `use-insecure-test-only-mock-crypto) and factored out CI execution script.
7 years ago
Andreas Fackler
90f63e34e9
Remove explicit Send+Sync impl for Error.
7 years ago
Andreas Fackler
d9da30835f
Reorder: public imports come last.
7 years ago
Vladimir Komendantskiy
f1742a6170
Merge pull request #46 from poanetwork/afck-interpolate
...
Optimize polynomial interpolation in the curve.
7 years ago
Andreas Fackler
3d324bb8d7
Optimize polynomial interpolation in the curve.
...
Slightly reduce the number of multiplication and division operations in
the scalar field.
7 years ago
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
Andreas Fackler
c72bc9a2a7
Fix build failure if deadlinks is already installed.
7 years ago
Andreas Fackler
bc04ea51e4
Fix formatting and warnings, re-enable other benches.
7 years ago
Fletcher Haynes
4b1e6eecb7
Add benchmark for combining signatures
7 years ago
Andreas Fackler
b786d897e2
Run cargo-deadlinks in CI.
7 years ago
Andreas Fackler
42f4ace5a0
Update authors list.
7 years ago
Vladimir Komendantskiy
e28b77d86d
use Rust 1.29
7 years ago
Fletcher Haynes
e0c488a214
Adds a few more benchmarks for poly operators. Changed benchmarks to use a seeded rng for reproducibility.
7 years ago
DrPeterVanNostrand
5f09f96345
Added type for clearing temporary values.
7 years ago
Andrew Gross
b48a4b6812
Merge pull request #32 from poanetwork/ag_typos
...
Typo fixes, added Code of Conduct file
7 years ago
Andrew Gross
b39cc1f909
Typo fixes, added Code of Conduct file
7 years ago
Vladimir Komendantskiy
a2fa8a4b8f
Merge pull request #28 from poanetwork/try-prefixed-constructors
...
Added 'try_' constructors to secret types.
7 years ago
DrPeterVanNostrand
f7d9c26b9a
Added 'Testing' section to readme.
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
Vladimir Komendantskiy
76ac2a5415
Merge pull request #22 from poanetwork/afck-fmt
...
Use Formatter debug helpers. Hide SecretKeyShares.
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
Andreas Fackler
02109b586e
Benchmark polynomials of different degrees.
7 years ago
DrPeterVanNostrand
d783f2756e
Added benchmarks for polynomial multiplication and interpolation.
7 years ago
Andrew Gross
2f3b061b82
Merge pull request #15 from andogro/ag-README-edits
...
Minor README modifications, added environment variables section.
7 years ago
c0gent
43799fc0cf
Travis: Enable cpu-specific optimizations.
7 years ago
Andrew Gross
9839566799
Minor README modifications, added environment variables section
7 years ago
DrPeterVanNostrand
824eef95ae
Added basic public-key cryptography example.
7 years ago