@@ -44,7 +44,7 @@ impl<const L: usize> LInt<L> {
44
44
#[ inline]
45
45
fn sum ( first : u64 , second : u64 , carry : bool ) -> ( u64 , bool ) {
46
46
// The implementation is inspired with the "carrying_add" function from this
47
- // source: https://github.com/rust-lang/rust/blob/master/library/core/src/num/uint_macros.rs
47
+ // source: < https://github.com/rust-lang/rust/blob/master/library/core/src/num/uint_macros.rs>
48
48
let ( second, carry) = second. overflowing_add ( carry as u64 ) ;
49
49
let ( first, high) = first. overflowing_add ( second) ;
50
50
( first, carry || high)
@@ -330,9 +330,9 @@ fn jacobinary(mut n: u64, mut d: u64, mut t: u64) -> i64 {
330
330
/// differences have been commented; the aforesaid Pornin's method and the used
331
331
/// ideas of M. Hamburg were given here:
332
332
/// - T. Pornin, "Optimized Binary GCD for Modular Inversion",
333
- /// https://eprint.iacr.org/2020/972.pdf
333
+ /// < https://eprint.iacr.org/2020/972.pdf>
334
334
/// - M. Hamburg, "Computing the Jacobi symbol using Bernstein-Yang",
335
- /// https://eprint.iacr.org/2021/1271.pdf
335
+ /// < https://eprint.iacr.org/2021/1271.pdf>
336
336
pub fn jacobi < const L : usize > ( n : & [ u64 ] , d : & [ u64 ] ) -> i64 {
337
337
// Instead of the variable "j" taking the values from {-1, 1} and satisfying
338
338
// at the end of the outer loop iteration the equation J = "j" * ("n" / |"d"|)
0 commit comments