Lines Matching refs:from_u32
920 pub fn from_u32(n: u32) -> Result<BigNum, ErrorStack> { in from_u32() method
1373 let v0 = BigNum::from_u32(10_203_004).unwrap(); in test_to_from_slice()
1382 let a = BigNum::from_u32(909_829_283).unwrap(); in test_negation()
1390 let a = BigNum::from_u32(909_829_283).unwrap(); in test_shift()
1398 let range = BigNum::from_u32(909_829_283).unwrap(); in test_rand_range()
1401 assert!(result >= BigNum::from_u32(0).unwrap() && result < range); in test_rand_range()
1407 let range = BigNum::from_u32(909_829_283).unwrap(); in test_pseudo_rand_range()
1410 assert!(result >= BigNum::from_u32(0).unwrap() && result < range); in test_pseudo_rand_range()
1416 let a = BigNum::from_u32(19_029_017).unwrap(); in test_prime_numbers()
1429 let a = BigNum::from_u32(8).unwrap(); in test_secure_bn_ctx()
1430 let b = BigNum::from_u32(3).unwrap(); in test_secure_bn_ctx()
1435 assert!(remainder.eq(&BigNum::from_u32(2).unwrap())); in test_secure_bn_ctx()