Home
last modified time | relevance | path

Searched refs:from_u32 (Results 1 – 24 of 24) sorted by relevance

/third_party/rust/crates/rust-openssl/openssl/src/
Ddsa.rs531 let p = BigNum::from_u32(283).unwrap(); in test_priv_key_from_parts()
532 let q = BigNum::from_u32(47).unwrap(); in test_priv_key_from_parts()
533 let g = BigNum::from_u32(60).unwrap(); in test_priv_key_from_parts()
534 let priv_key = BigNum::from_u32(15).unwrap(); in test_priv_key_from_parts()
535 let pub_key = BigNum::from_u32(207).unwrap(); in test_priv_key_from_parts()
538 assert_eq!(dsa.pub_key(), &BigNum::from_u32(207).unwrap()); in test_priv_key_from_parts()
539 assert_eq!(dsa.priv_key(), &BigNum::from_u32(15).unwrap()); in test_priv_key_from_parts()
540 assert_eq!(dsa.p(), &BigNum::from_u32(283).unwrap()); in test_priv_key_from_parts()
541 assert_eq!(dsa.q(), &BigNum::from_u32(47).unwrap()); in test_priv_key_from_parts()
542 assert_eq!(dsa.g(), &BigNum::from_u32(60).unwrap()); in test_priv_key_from_parts()
[all …]
Dbn.rs920 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()
[all …]
Drsa.rs528 let e = BigNum::from_u32(ffi::RSA_F4 as u32)?; in generate()
849 let e = BigNum::from_u32(0x10001).unwrap(); in generate_with_e()
Dasn1.rs681 roundtrip(BigNum::from_u32(1234).unwrap()); in bn_cvt()
682 roundtrip(-BigNum::from_u32(1234).unwrap()); in bn_cvt()
Dec.rs1087 let one = BigNum::from_u32(1).unwrap(); in cofactor()
1144 let one = BigNum::from_u32(1).unwrap(); in generator()
/third_party/rust/crates/regex/src/
Dutf8.rs68 0x80..=0x7FF => char::from_u32(cp).map(|cp| (cp, 2)), in decode_utf8()
88 0x800..=0xFFFF => char::from_u32(cp).map(|cp| (cp, 3)), in decode_utf8()
111 0x10000..=0x0010_FFFF => char::from_u32(cp).map(|cp| (cp, 4)), in decode_utf8()
Dinput.rs350 match char::from_u32(self.0) { in fmt()
369 char::from_u32(self.0).map_or(1, |c| c.len_utf8()) in len_utf8()
380 char::from_u32(self.0).map_or(false, regex_syntax::is_word_character) in is_word_char()
387 match char::from_u32(self.0) { in is_word_byte()
/third_party/rust/crates/regex/regex-syntax/src/
Dutf8.rs437 let cs = char::from_u32(self.start).unwrap(); in encode()
438 let ce = char::from_u32(self.end).unwrap(); in encode()
496 let c = match char::from_u32(i) { in single_codepoint_one_sequence()
/third_party/rust/crates/unicode-ident/diagram/src/
Dmain.rs16 *pixel = if char::from_u32(row * width + col).map_or(false, f) { in main()
/third_party/rust/crates/rust-cexpr/tests/
Dclang.rs71 write!(s, "{}", char::from_u32(chr).unwrap()).unwrap(); in test_definition()
93 .and_then(char::from_u32) in test_definition()
/third_party/rust/crates/num-traits/src/
Dcast.rs481 fn from_u32(n: u32) -> Option<Self> { in from_u32() method
567 fn from_u32(n: u32) -> Option<$T> {
665 fn from_u32(u32);
/third_party/rust/crates/regex/regex-syntax/src/hir/
Dinterval.rs508 c => char::from_u32((c as u32).checked_add(1).unwrap()).unwrap(), in increment()
515 c => char::from_u32((c as u32).checked_sub(1).unwrap()).unwrap(), in decrement()
Dmod.rs1032 for cp in (start..end).filter_map(char::from_u32) { in case_fold_simple()
/third_party/rust/crates/nom/examples/
Dstring.rs57 map_opt(parse_u32, |value| std::char::from_u32(value))(input) in parse_unicode()
/third_party/rust/crates/unicode-ident/generate/src/
Dmain.rs72 if let Some(ch) = char::from_u32(code) { in main()
/third_party/rust/crates/syn/src/
Dlit.rs1105 char::from_u32(u32::from(byte)).unwrap() in parse_lit_str_cooked()
1212 let ch = char::from_u32(u32::from(byte)).unwrap(); in parse_lit_byte_str_cooked()
1299 char::from_u32(u32::from(byte)).unwrap() in parse_lit_char()
1383 if let Some(ch) = char::from_u32(ch) { in backslash_u()
/third_party/rust/crates/nom/tests/
Djson.rs56 std::char::from_u32, in unicode_escape()
/third_party/rust/crates/nom/benchmarks/benches/
Djson.rs61 std::char::from_u32, in unicode_escape()
/third_party/rust/crates/rust-cexpr/src/
Dliteral.rs178 .and_then(char::from_u32) in c_unicode_escape()
/third_party/rust/crates/regex/regex-syntax/src/ast/
Dparse.rs1556 let c = char::from_u32(codepoint).expect("Unicode scalar value"); in parse_octal()
1628 match u32::from_str_radix(hex, 16).ok().and_then(char::from_u32) { in parse_hex_digits()
1683 match u32::from_str_radix(hex, 16).ok().and_then(char::from_u32) { in parse_hex_brace()
4275 c: ::std::char::from_u32(i).unwrap(), in parse_octal()
4350 c: ::std::char::from_u32(i).unwrap(), in parse_hex_two()
4381 let c = match ::std::char::from_u32(i) { in parse_hex_four()
4445 let c = match ::std::char::from_u32(i) { in parse_hex_eight()
/third_party/rust/crates/num-traits/tests/
Dcast.rs350 assert_eq_from!(from_u8 from_u16 from_u32 from_u64 from_usize); in newtype_from_primitive()
/third_party/rust/crates/proc-macro2/src/
Dparse.rs583 '}' if len > 0 => return char::from_u32(value).is_some(), in backslash_u()
/third_party/rust/crates/regex/regex-syntax/src/hir/literal/
Dmod.rs479 for c in (s..e).filter_map(char::from_u32) { in _add_char_class()
/third_party/rust/crates/memchr/bench/data/code/
Drust-library.rs4625 for c in (0..0x110000).filter_map(std::char::from_u32) {
4637 for c in (0..0x110000).filter_map(std::char::from_u32) {