/// Create a BIG from an isize
///
/// Miracl's documentation cautions against using BIG to hold negative integers.
/// However, sometimes our code produces negative isize values representing
/// elements of Z_r (where r is the order of G1).
Create a BIG from an isize
Miracl's documentation cautions against using BIG to hold negative integers.
However, sometimes our code produces negative isize values representing
elements of Z_r (where r is the order of G1).
Create a BIG from an isize Miracl ' s documentation cautions against using BIG to hold negative integers . However sometimes our code produces negative isize values representing elements of Z_r ( where r is the order of G1 ) .
pub fn negative_safe_new_int(n: isize) -> BIG {
    if n < 0 {
        let mut tmp = BIG::new_int(-n);
        tmp.rsub(&curve_order());
        tmp
    } else {
        BIG::new_int(n)
    }
}
pub fn negative_safe_new_int ( n : isize ) -> BIG { if n < 0 { let mut tmp = BIG :: new_int ( - n ) ; tmp . rsub ( & curve_order ( ) ) ; tmp } else { BIG :: new_int ( n ) } }
Create a BIG from an isize
Miracl's documentation cautions against using BIG to hold negative integers.
Create a BIG from an isize Miracl ' s documentation cautions against using BIG to hold negative integers .
n
isize