Home
last modified time | relevance | path

Searched refs:from_u32 (Results 1 - 17 of 17) sorted by relevance

/third_party/rust/crates/rust-openssl/openssl/src/
H A Ddsa.rs563 let p = BigNum::from_u32(283).unwrap(); in test_priv_key_from_parts()
564 let q = BigNum::from_u32(47).unwrap(); in test_priv_key_from_parts()
565 let g = BigNum::from_u32(60).unwrap(); in test_priv_key_from_parts()
566 let priv_key = BigNum::from_u32(15).unwrap(); in test_priv_key_from_parts()
567 let pub_key = BigNum::from_u32(207).unwrap(); in test_priv_key_from_parts()
570 assert_eq!(dsa.pub_key(), &BigNum::from_u32(207).unwrap()); in test_priv_key_from_parts()
571 assert_eq!(dsa.priv_key(), &BigNum::from_u32(15).unwrap()); in test_priv_key_from_parts()
572 assert_eq!(dsa.p(), &BigNum::from_u32(283).unwrap()); in test_priv_key_from_parts()
573 assert_eq!(dsa.q(), &BigNum::from_u32(47).unwrap()); in test_priv_key_from_parts()
574 assert_eq!(dsa.g(), &BigNum::from_u32(6 in test_priv_key_from_parts()
[all...]
H A Dbn.rs144 /// let little_big = BigNum::from_u32(std::u32::MAX)?;
322 /// let s = -BigNum::from_u32(8).unwrap();
323 /// let o = BigNum::from_u32(8).unwrap();
812 /// let s = -BigNum::from_u32(4543).unwrap();
813 /// let r = BigNum::from_u32(4543).unwrap();
838 /// let bn = BigNum::from_u32(0x4543).unwrap();
846 /// let bn = -BigNum::from_u32(0x4543).unwrap();
865 /// let s = -BigNum::from_u32(12345).unwrap();
881 /// let s = -BigNum::from_u32(0x99ff).unwrap();
954 pub fn from_u32( functions
[all...]
H A 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()
/third_party/rust/crates/regex/regex-syntax/src/
H A 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/regex/src/
H A Dutf8.rs68 0x80..=0x7FF => char::from_u32(cp).map(|cp| (cp, 2)), in decode_utf8()
87 // char::from_u32 will disallow surrogate codepoints. 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()
H A 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/unicode-ident/diagram/src/
H A Dmain.rs16 *pixel = if char::from_u32(row * width + col).map_or(false, f) { in main()
/third_party/rust/crates/rust-cexpr/tests/
H A 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/rust-cexpr/src/
H A Dliteral.rs178 .and_then(char::from_u32) in c_unicode_escape()
/third_party/rust/crates/unicode-ident/generate/src/
H A Dmain.rs72 if let Some(ch) = char::from_u32(code) { in main()
/third_party/rust/crates/regex/regex-syntax/src/hir/
H A 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()
/third_party/rust/crates/nom/tests/
H A Djson.rs56 std::char::from_u32, in unicode_escape()
/third_party/rust/crates/nom/benchmarks/benches/
H A Djson.rs61 std::char::from_u32, in unicode_escape()
/third_party/rust/crates/regex/regex-syntax/src/ast/
H A 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/regex/regex-syntax/src/hir/literal/
H A Dmod.rs479 for c in (s..e).filter_map(char::from_u32) { in _add_char_class()
/third_party/rust/crates/rust-openssl/openssl/src/x509/
H A Dtests.rs234 let expected = BigNum::from_u32(3).unwrap(); in test_authority_issuer_and_serial()
/third_party/rust/crates/memchr/bench/data/code/
H A Drust-library.rs4625 for c in (0..0x110000).filter_map(std::char::from_u32) { in test_chars_decoding()
4637 for c in (0..0x110000).filter_map(std::char::from_u32) { in test_chars_rev_decoding()
[all...]

Completed in 75 milliseconds