15 Commits

Author SHA1 Message Date
Tony Arcieri
2aade9ddcb 2021 edition upgrade; MSRV 1.56
Upgrades the edition, with changes primarily performed by
`cargo fix --edition`.

In order to keep the changes to a minimum, this doesn't include
automated idiom fixes (i.e. `cargo fix --edition-idioms`).

This is needed to unblock the edition upgrade for the RSA crate:
https://github.com/RustCrypto/RSA/pull/135
2022-02-01 16:24:03 -07:00
Friedel Ziegelmayer
3042607c90
feat: update dependencies 2019-12-11 00:48:19 +01:00
Robin Lambertz
874ab0fbaa feat: no_std support
* no_std support

* Use integer log2 when possible to estimate allocations

* Remove std features from a few dependencies

* Use libm for missing funcs in nostd environment

* Use autocfg to detect presence of i128

* Better CI test for nostd environment

* Move benchmark to a separate crate

* Make the tests pass in no_std builds

* Use thumbv7m target for nostd build test

* Add documentation about the no-std compatibility

* Make zeroize and prime features no_std-compatible

* Test each feature in nostd context

* Fix mac test to work in no_std environment

* Avoid using thread_rng in nostd tests

* Fix prime tests in nostd mode

* Fix all warnings and errors

* Only test nostd builds on nightly on travis

* Travis: Only do nostd builds on nightly
2019-10-13 15:14:14 +02:00
dignifiedquire
ca8c31e097 feat(deps): upgrade to rand@0.6 2019-03-26 14:40:53 +01:00
dignifiedquire
bbea8a2e65 fix: ensure features are working independently, test prime on ci 2019-01-15 15:24:40 +01:00
goldenMetteyya
d4c0b721c9 feat: implement prime generation related features
also switches the benchmarks to criterion
2019-01-15 15:02:12 +01:00
dignifiedquire
ad076a8cd4 fix: test and some flags 2018-12-19 22:00:11 +01:00
dignifiedquire
fb29d3cd80 update names 2018-12-12 14:14:34 +01:00
dignifiedquire
f7e8af05a4 chore: run rustfmt on all code 2018-08-06 15:13:09 -07:00
Josh Stone
8b5a092010 Add tests for PRNG value stability 2018-07-02 11:09:07 -07:00
Josh Stone
e679836303 Add a RandomBits distribution 2018-05-23 20:57:29 -07:00
Josh Stone
b72822bbde impl SampleUniform for BigInt 2018-05-22 14:59:36 -07:00
Josh Stone
4ef07c4625 impl SampleUniform for BigUint 2018-05-22 14:48:52 -07:00
Josh Stone
39104f5732 refactor tests/rand.rs 2018-05-22 14:38:59 -07:00
Josh Stone
8964eb9887 Chop the tests up
The test modules were getting huge, and some of its functions were
actually a huge amount of code due to macros, causing tests to take a
long time just to compile.  They are now separated into a few different
tests, and the scalar macros especially are now expanded more sparingly
in just a few `check()` functions.

Test compile times for me went from about 25 seconds to 1.5s in debug
mode, and from 300 seconds (!) to about 8s in release mode.
2018-02-26 22:13:25 -08:00