Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Added
TryFrom<&[u8]>
bound onEncoding::Repr
(#261)Uint
functionality:bitand_limb
(#322),gcd
(#472),from_str_radix_vartime
(#603),to_string_radix_vartime
(#659)MulMod
(#313),Div
/Rem
(#720)BoxedUint
functionality:sbb
/wrapping_sub
/checked_sub
(#303),mul
(#306),from_be_slice
/from_le_slice
(#307),to_be_bytes
/to_le_bytes
(#308),bits
(#328),conditional_select
(#329),shl_vartime
(#330),shr_vartime
(#331),rem_vartime
(#332),inv_mod2k
/bitor
(#334),pow
(#337),inv_mod
(#341),random
(#349),cond_map
/cond_and_then
(#352),map_limbs
(#357),div_rem
/rem
(#398),new_with_arc
(#407),gcd
(#497),from_str_radix_vartime
(#603),to_string_radix_vartime
(#659)BitAnd*
(#314),ConstantTimeGreater/Less
/PartialOrd/Ord
(#316),AddMod
(#317),SubMod
(#320),Hash
/BoxedUint
(#350),MulMod
/BoxedUint
(#343),RandomMod
(#349),Rem
(#356),BitNot
/BitXor
(#358),CheckedMul
/Mul
(#361),NegMod
(#362),Div
(#366),Integer
(#367)FixedInteger
(#363),CheckedDiv
(#369),WideningMul
(#371),ConstantTimeSelect
(#454),SquareAssign
(#431),Gcd
(#499),DivRemLimb
/RemLimb
(#496),InvMod
(#505, #741),SquareRoot
(#508),BitOperations
(#507),ShrVartime
/ShlVartime
(#509),RandomBits
(#510),RemMixed
(#746)num-traits
impls:Wrapping*
(#425),Zero
/One
(#433),ConstZero
(#573),Num
(#720)Zeroize
forNonZero
wrapper (#406)Zero::set_zero
method (#426)Inverter
/PrecomputeInverter
traits (#438, #444)const fn
encoders (#453)Integer::Monty
associated typeMonty
trait with arithmetic bounds and an associatedMonty::Integer
typeOdd
wrapper type (#487)NonZero::new_unwrap
(#602)Uint
andBoxedUint
(#649)impl_modulus!
(#676)core::error::Error
support (#680)Int
type providing initial signed integer support using two's complement (#695, #730)Changed
modular
module now contains all modular functionality (#300, #324)Integer
trait: expand bounds to include*Mod
(#318),Add
/Sub
/Mul
(#435),RemAssign
(#709),AddAssign
/MulAssign
/SubAssign
(#716)Integer
trait: add new methodsbits(_vartime)
/leading_zeros
(#368),from_limb_like/
one_like/
zero_like` (#533)BoxedUint::new
with::zero_with_precision
(#327)Zero
trait intoZero
+ZeroConstant
(#335)Integer
trait; addConstants
/LimbsConstant
(#355)Bounded
trait subsumesBITS
/BYTES
Constants
providesONE
andMAX
LimbsConstant
providesLIMBS
BoxedUint::mul_wide
tomul
(#359)bits_precision
when creatingBoxedUint
(#365)u32
for shifts and bit counts (#373)core
/std
on overflow behavior for bit shifts (#395)inv_mod2k(_vartime)
return aCtChoice
(#416)CtChoice
toConstChoice
(#417)NonZero
-wrapped divisors (#419)core
/std
onoverflowing_sh*
for functions which return an overflow flag (#430)Uint
: renameHLIMBS
toRHS_LIMBS
(#432)Checked*
traits in line withWrapping*
(#434)*Residue*
types i.e. Montgomery form representations (#485):Residue
->ConstMontyForm
DynResidue
->MontyForm
BoxedResidue
->BoxedMontyForm
*ResidueParams
->*MontyParams
residue_params
->params
params.r
->params.one
Monty::new_params()
take anOdd
-wrapped modulus (#488)Uint
support forconst fn
:square
(#514),widening_mul
(#515),to_le_bytes
(#555)(Boxed)MontyParams::modulus
return&Odd<_>
(#517)MontyParams::new
andnew_vartime
([RenameMontyParams::new
=>::new_vartime
#516], #518)Concat(Mixed)
/Split(Mixed)
argument ordering (#526)generic-array
tohybrid-array
(#544)ZeroConstant
withConstZero
trait fromnum-traits
(#546, #573)Uint::concat_mixed
andsplit_mixed
to acceptself
; makepub
(#556, #558)Uint::concat
andsplit
const generic over inputs (#557, #558)Uint::mul_mod
andUint::mul_mod_vartime
(#623)BoxedMontyForm
: always useArc
forparams
(#645)const_mut_refs
; MSRV 1.83 (#667)rlp
dependency from 0.5 to 0.6 (#673)RngCore
instead ofCryptoRngCore
for various random methods (#710)serdect
dependency to v0.3 (#719)rand
feature enablerand_core/getrandom
instead ofrand_core/std
(#745)Fixed
BoxedUint::chain
(#315)MontyForm
/BoxedMontyForm
(#713)Removed
ct_*
prefixes from method names since we're constant-time by default (#417)const_assert_*
macros (#452, #690)