MCPcopy Create free account
hub / github.com/DNSCrypt/encrypted-dns-server / hex_to_vec

Function hex_to_vec

src/pq.rs:523–529  ·  view source on GitHub ↗
(s: &str)

Source from the content-addressed store, hash-verified

521 }
522
523 fn hex_to_vec(s: &str) -> Vec<u8> {
524 let s: String = s.chars().filter(|c| !c.is_whitespace()).collect();
525 (0..s.len())
526 .step_by(2)
527 .map(|i| u8::from_str_radix(&s[i..i + 2], 16).unwrap())
528 .collect()
529 }
530}

Callers 1

appendix3_vectorsFunction · 0.85

Calls

no outgoing calls

Tested by 1

appendix3_vectorsFunction · 0.68