entropyxyz / crypto-primes

Random prime generation and primality testing library based on `crypto-bigint`.
https://docs.rs/crypto-primes
Apache License 2.0
17 stars 4 forks source link

Relax the `subtle` version requirement #30

Closed fjarri closed 1 year ago

fjarri commented 1 year ago

CtOption::expect() was introduced in subtle 2.5. crypto-bigint 0.5.2 depends on subtle 2.4, so this PR changes the uses of expect to the API available there instead.

codecov[bot] commented 1 year ago

Codecov Report

Patch coverage: 100.00% and no project coverage change.

Comparison is base (b70250c) 98.65% compared to head (8e53477) 98.65%.

Additional details and impacted files ```diff @@ Coverage Diff @@ ## master #30 +/- ## ======================================= Coverage 98.65% 98.65% ======================================= Files 10 10 Lines 1339 1339 ======================================= Hits 1321 1321 Misses 18 18 ``` | [Impacted Files](https://app.codecov.io/gh/entropyxyz/crypto-primes/pull/30?src=pr&el=tree&utm_medium=referral&utm_source=github&utm_content=comment&utm_campaign=pr+comments&utm_term=entropyxyz) | Coverage Δ | | |---|---|---| | [src/hazmat/lucas.rs](https://app.codecov.io/gh/entropyxyz/crypto-primes/pull/30?src=pr&el=tree&utm_medium=referral&utm_source=github&utm_content=comment&utm_campaign=pr+comments&utm_term=entropyxyz#diff-c3JjL2hhem1hdC9sdWNhcy5ycw==) | `98.64% <100.00%> (+<0.01%)` | :arrow_up: | | [src/hazmat/miller\_rabin.rs](https://app.codecov.io/gh/entropyxyz/crypto-primes/pull/30?src=pr&el=tree&utm_medium=referral&utm_source=github&utm_content=comment&utm_campaign=pr+comments&utm_term=entropyxyz#diff-c3JjL2hhem1hdC9taWxsZXJfcmFiaW4ucnM=) | `99.46% <100.00%> (+<0.01%)` | :arrow_up: | | [src/hazmat/sieve.rs](https://app.codecov.io/gh/entropyxyz/crypto-primes/pull/30?src=pr&el=tree&utm_medium=referral&utm_source=github&utm_content=comment&utm_campaign=pr+comments&utm_term=entropyxyz#diff-c3JjL2hhem1hdC9zaWV2ZS5ycw==) | `100.00% <100.00%> (ø)` | |

:umbrella: View full report in Codecov by Sentry.
:loudspeaker: Do you have feedback about the report comment? Let us know in this issue.