140 Commits

Author SHA1 Message Date
e0ff3fcf8e alnyan/yggdrasil: patch rand dependency 2024-11-01 12:49:27 +02:00
dignifiedquire
075cf5777d (cargo-release) version 0.8.2 2022-11-18 18:02:21 +01:00
Friedel Ziegelmayer
0aa3ca3ad4
deps: update smallvec (#47) 2022-11-18 17:54:15 +01:00
aumetra
4e3ff9884c
feat: add arbitrary support
adds arbitrary support to BigInt and BigUint
2022-11-18 17:47:25 +01:00
dignifiedquire
158aea7d50 (cargo-release) version 0.8.1 2022-03-01 15:07:12 +01:00
Paolo Barbolini
fa8ce2dfc3
fix: enable the alloc feature of serde 2022-03-01 15:05:05 +01:00
dignifiedquire
0aa0679720 fix: update zeroize explicitlyg 2022-02-18 12:37:39 +01:00
dignifiedquire
e65d2d4c11 (cargo-release) version 0.8.0 2022-02-18 12:35:49 +01:00
Friedel Ziegelmayer
05cefd7448
Merge pull request #32 from tangramdotdev/remove-i128-feature
Unconditionally set has_i128
2022-02-02 12:29:24 +01:00
Friedel Ziegelmayer
c64439f509
Merge pull request #34 from tarcieri/2021-edition
2021 edition upgrade; MSRV 1.56
2022-02-02 12:28:38 +01:00
Tony Arcieri
679172c093 Impl zeroize without using zeroize_derive
The `zeroize_derive` crate has quite a few dependencies, and in
particular `syn` is a fairly large one with not-insignificant compile
times.

The usages of `zeroize` are fairly trivial with two impls zeroing a
total of three fields, which makes them easy to write by hand.

It takes more crate dependencies for the proc macro to do that
(`proc-macro2`, `quote`, `syn`, `synstructure`, and `zeroize_derive`
itself) than there are fields being zeroized, so I think it makes sense
to ditch the additional dependencies and write these impls by hand.
2022-02-01 16:36:50 -07:00
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
Ben Lovy
3ff6d82a77
Unconditionally set has_i128 2021-11-03 11:24:09 -04:00
Boris-Chengbiao Zhou
41264ca629
chore(deps): bump autocfg to 1.0 2021-05-13 11:44:10 +02:00
dignifiedquire
221ac0fba0 chore(num-bigint-dig): release 0.7.0 2021-03-09 14:33:58 +01:00
phayes
8b3f25a305
Making sure to use std_rng when using prime, not that this does not require the standard library 2021-02-17 10:59:46 -08:00
phayes
58be206fa7
Updating rand dependency to 0.8 2021-02-15 07:37:51 -08:00
dignifiedquire
f49304708c chore(num-bigint-dig): release 0.6.1 2020-12-02 17:46:49 +01:00
dignifiedquire
bb59029131 fix: disable rand/nightly to compile again on rust nightly 2020-12-02 17:39:19 +01:00
dignifiedquire
6f17ec8059 chore(num-bigint-dig): release 0.6.0 2019-12-11 00:48:46 +01:00
Friedel Ziegelmayer
3042607c90
feat: update dependencies 2019-12-11 00:48:19 +01:00
Tony Arcieri
266f1b0652 feat(deps): update zeroize to 1.1 2019-12-09 09:01:55 -08:00
dignifiedquire
5b3de9b0bb chore(num-bigint-dig): release 0.5.0 2019-10-13 16:29:37 +02:00
dignifiedquire
7a587a8ecf chore: fix crate version 2019-10-13 15:33:38 +02:00
dignifiedquire
7e7b231071 feat(deps): update zeroize 2019-10-13 15:30:50 +02: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
a0ba8ac498 feat(deps): update zeroize and use derive macro 2019-03-26 14:45:19 +01:00
dignifiedquire
ca8c31e097 feat(deps): upgrade to rand@0.6 2019-03-26 14:40:53 +01:00
dignifiedquire
80ffd7c027 feat: expose zeroize/nightly feature 2019-03-26 14:13:42 +01:00
gmorenz
93fcffd3e9 docs(cargo): fix typo in repo link 2019-03-18 12:54:17 +01:00
dignifiedquire
5fbee1da4d feat: add zeroize feature 2019-03-16 11:38:05 +01:00
dignifiedquire
666cdc6f2c (cargo-release) start next development iteration 0.3.1-alpha.0 2019-02-20 16:18:22 +01:00
dignifiedquire
887d57bf2f (cargo-release) version 0.3.0 2019-02-20 16:18:10 +01:00
dignifiedquire
f41212a3ee fixup: rebase issues 2019-01-22 12:54:45 +01:00
Josh Stone
97b0b17145 Expand the Roots benchmarks 2019-01-22 12:52:34 +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
2656a03c5a feat: use SmallVec as backing store 2018-12-19 19:46:26 +01:00
dignifiedquire
73a3f1eacb improve modpow perf and fix test 2018-12-19 19:10:19 +01:00
dignifiedquire
ca79006169 prepare for publishing 2018-11-24 12:04:44 +01:00
dignifiedquire
0c148e7207 start fixing after rebase 2018-11-07 13:41:59 +01:00
Josh Stone
02e2e4e7e9 Release 0.2.1 2018-11-02 17:08:29 -07:00
Manca Bizjak
1f2590656b Implement Roots for BigInt and BigUint
This commit implements num-integer::Roots trait
for BigInt and BigUint types, and also adds sqrt,
cbrt, nth_root as inherent methods to allow access
to them without importing Roots trait. For each
type tests were added as submodules in the roots
test module.

Signed-off-by: Manca Bizjak <manca.bizjak@xlab.si>
2018-07-11 12:14:46 +02:00
Josh Stone
de836f6fdc Release 0.2.0 2018-05-25 13:45:38 -07:00
Josh Stone
ec181ea593 Update rand CI 2018-05-22 16:56:54 -07:00
Josh Stone
9fdec42818 bump to rand 0.5 2018-05-22 14:16:20 -07:00
Josh Stone
23743e05db Add a mandatory "std" feature
We don't actually support `no_std` yet, and probably won't until `alloc`
is stable.  We're just reserving this ability with the "std" feature
now, and compilation will fail without.
2018-05-16 13:59:29 -07:00
Josh Stone
04252b7716 Add basic conversions for i128 and u128 2018-05-15 18:01:14 -07:00
Josh Stone
b374f9ac92 Merge branch 'num-bigint-0.1.x' into master 2018-05-14 13:01:51 -07:00
Josh Stone
10e00ff66a Release 0.1.44 2018-05-14 11:24:39 -07:00