/ohos5.0/commonlibrary/rust/ylong_http/ylong_http/src/h1/response/ |
H A D | decoder.rs | 214 buf: &'a [u8], in decode() 229 buffer: &'a [u8], in version_phase() 256 buffer: &'a [u8], in status_code_phase() 277 buffer: &'a [u8], in reason_phase() 288 buffer: &'a [u8], in status_crlf_phase() 299 buffer: &'a [u8], in header_phase_with_init() 319 buffer: &'a [u8], in header_phase() 329 buffer: &'a [u8], in blank_line_phase() 384 buffer: &'a [u8], in decode_header_from_value() 398 buffer: &'a [u8], in decode_header_from_key() [all …]
|
/ohos5.0/commonlibrary/rust/ylong_http/ylong_http/src/body/mime/common/ |
H A D | mod.rs | 74 pub(crate) fn data_copy(src: &[u8], src_idx: &mut usize, buf: &mut [u8]) -> TokenResult<usize> { in data_copy() 87 pub(crate) fn trim_front_lwsp(buf: &[u8]) -> &[u8] { in trim_front_lwsp() 99 fn trim_back_lwsp(buf: &[u8]) -> &[u8] { in trim_back_lwsp() 112 pub(crate) fn trim_back_lwsp_if_end_with_lf(buf: &[u8]) -> &[u8] { in trim_back_lwsp_if_end_with_lf() 122 buf: &[u8], in consume_crlf() 125 ) -> Result<TokenStatus<&[u8], usize>, HttpError> { in consume_crlf() 147 pub(crate) fn get_crlf_contain(buf: &[u8]) -> TokenStatus<(&[u8], &[u8]), &[u8]> { in get_crlf_contain() 157 fn trim_ascii_start(mut bytes: &[u8]) -> &[u8] { in trim_ascii_start() 171 fn trim_ascii_end(mut bytes: &[u8]) -> &[u8] { in trim_ascii_end() 185 fn trim_ascii(bytes: &[u8]) -> &[u8] { in trim_ascii() [all …]
|
H A D | headers.rs | 160 buf: &'a [u8], in decode() 161 ) -> Result<(TokenStatus<Headers, ()>, &'a [u8]), HttpError> { in decode() 189 fn start_decode<'a>(&mut self, buf: &'a [u8]) -> Result<&'a [u8], HttpError> { in start_decode() 231 fn crlf_decode<'a>(&mut self, buf: &'a [u8]) -> Result<&'a [u8], HttpError> { in crlf_decode() 242 fn name_decode<'a>(&mut self, buf: &'a [u8]) -> Result<&'a [u8], HttpError> { in name_decode() 264 fn value_decode<'a>(&mut self, buf: &'a [u8]) -> Result<&'a [u8], HttpError> { in value_decode()
|
H A D | multi.rs | 181 pub(crate) fn set_boundary(&mut self, boundary: Vec<u8>) { in set_boundary() 187 content_type: &[u8], in set_content_type() 188 boundary: Vec<u8>, in set_content_type() 243 pub fn boundary(&self) -> &[u8] { in boundary() 248 pub fn boundary_mut(&mut self) -> &mut [u8] { in boundary_mut() 253 pub fn boundary_once(&mut self) -> Vec<u8> { in boundary_once() 462 pub fn set_content_type(mut self, content_type: &'a [u8], boundary: Vec<u8>) -> Self { in set_content_type()
|
/ohos5.0/commonlibrary/rust/ylong_http/ylong_http/src/huffman/ |
H A D | mod.rs | 44 pub(crate) fn huffman_encode(src: &[u8], dst: &mut Vec<u8>) { in huffman_encode() 127 pub(crate) fn huffman_decode(src: &[u8], dst: &mut Vec<u8>) -> Result<(), HuffmanDecodeError> { in huffman_decode() 171 src: &[u8], in huffman_decode_inner() 172 dst: &mut Vec<u8>, in huffman_decode_inner() 173 state: u8, in huffman_decode_inner() 174 flags: u8, in huffman_decode_inner() 175 ) -> Result<(u8, u8), HuffmanDecodeError> { in huffman_decode_inner() argument 232 pub(crate) fn finish(self) -> Result<Vec<u8>, HuffmanDecodeError> { in finish()
|
/ohos5.0/commonlibrary/rust/ylong_runtime/ylong_runtime/src/io/ |
H A D | read_buf.rs | 50 buf: &'a mut [MaybeUninit<u8>], in create() 99 pub fn filled(&self) -> &[u8] { in filled() 105 pub fn filled_mut(&mut self) -> &mut [u8] { in filled_mut() 111 pub fn unfilled_mut(&mut self) -> &mut [MaybeUninit<u8>] { in unfilled_mut() 117 pub fn initialized(&self) -> &[u8] { in initialized() 123 pub fn initialized_mut(&mut self) -> &mut [u8] { in initialized_mut() 132 pub fn inner_mut(&mut self) -> &mut [MaybeUninit<u8>] { in inner_mut() 149 pub fn initialize_unfilled_to(&mut self, n: usize) -> &mut [u8] { in initialize_unfilled_to() 168 pub fn initialize_unfilled(&mut self) -> &mut [u8] { in initialize_unfilled() 230 pub fn append(&mut self, buf: &[u8]) { in append()
|
H A D | async_buf_read.rs | 37 fn poll_fill_buf(self: Pin<&mut Self>, cx: &mut Context<'_>) -> Poll<io::Result<&[u8]>>; in poll_fill_buf() 52 fn poll_fill_buf(self: Pin<&mut Self>, cx: &mut Context<'_>) -> Poll<io::Result<&[u8]>> { in poll_fill_buf() 63 fn poll_fill_buf(self: Pin<&mut Self>, cx: &mut Context<'_>) -> Poll<io::Result<&[u8]>> { in poll_fill_buf() 78 fn poll_fill_buf(self: Pin<&mut Self>, cx: &mut Context<'_>) -> Poll<io::Result<&[u8]>> { in poll_fill_buf() 106 fn read_until<'a>(&'a mut self, byte: u8, buf: &'a mut Vec<u8>) -> ReadUtilTask<'a, Self> in read_until()
|
/ohos5.0/commonlibrary/rust/ylong_json/src/reader/ |
H A D | mod.rs | 28 fn next(&mut self) -> Result<Option<u8>, Self::Error>; in next() 32 fn peek(&mut self) -> Result<Option<u8>, Self::Error>; in peek() 59 fn cached_slice(&mut self) -> Option<&[u8]>; in cached_slice() 64 fn cached_data(&mut self) -> Option<Vec<u8>>; in cached_data() 72 fn take_cached_data(&mut self) -> Option<Vec<u8>>; in take_cached_data() 81 fn remainder_slice(&self) -> &[u8]; in remainder_slice() 84 fn remainder_data(&self) -> Vec<u8>; in remainder_data() 92 fn next_n(&mut self, n: usize) -> Result<Option<&[u8]>, Self::Error>; in next_n() 96 fn peek_n(&mut self, n: usize) -> Result<Option<&[u8]>, Self::Error>; in peek_n()
|
H A D | slice_reader.rs | 54 fn next(&mut self) -> Result<Option<u8>, Self::Error> { in next() 64 fn peek(&mut self) -> Result<Option<u8>, Self::Error> { in peek() 116 fn cached_slice(&mut self) -> Option<&[u8]> { in cached_slice() 121 fn cached_data(&mut self) -> Option<Vec<u8>> { in cached_data() 133 fn take_cached_data(&mut self) -> Option<Vec<u8>> { in take_cached_data() 147 fn remainder_slice(&self) -> &[u8] { in remainder_slice() 152 fn remainder_data(&self) -> Vec<u8> { in remainder_data() 158 fn next_n(&mut self, n: usize) -> Result<Option<&[u8]>, Self::Error> { in next_n() 167 fn peek_n(&mut self, n: usize) -> Result<Option<&[u8]>, Self::Error> { in peek_n()
|
/ohos5.0/commonlibrary/rust/ylong_http/ylong_http/src/body/mime/decode/ |
H A D | multi.rs | 117 buf: &'a [u8], in decode() 155 buf: &'a [u8], in unknown_decode() 156 ) -> Result<&'a [u8], HttpError> { in unknown_decode() 200 buf: &'a [u8], in part_decode() 233 buf: &'a [u8], in middle_or_end_boundary_decode() 259 buf: &'a [u8], in first_boundary_decode() 271 buf: &'a [u8], in outermost_first_boundary_decode() 298 buf: &'a [u8], in inner_first_boundary_decode() 451 buf: &'a [u8], in inner_first_boundary() 452 ) -> Result<TokenStatus<&'a [u8], &'a [u8]>, HttpError> { in inner_first_boundary() [all …]
|
H A D | part.rs | 59 pub(crate) fn init_from_multi(&mut self, headers: Headers, boundary: Vec<u8>) { in init_from_multi() 66 pub(crate) fn set_boundary(&mut self, boundary: Vec<u8>) { in set_boundary() 72 buf: &'a [u8], in decode() 73 ) -> Result<(TokenStatus<MimePart<'static>, ()>, &'a [u8]), HttpError> { in decode() 101 fn start_decode<'a>(&mut self, buf: &'a [u8]) -> Result<&'a [u8], HttpError> { in start_decode() 108 fn headers_decode<'a>(&mut self, buf: &'a [u8]) -> Result<&'a [u8], HttpError> { in headers_decode() 119 fn body_decode<'a>(&mut self, buf: &'a [u8]) -> Result<&'a [u8], HttpError> { in body_decode()
|
/ohos5.0/base/security/asset/frameworks/utils/src/ |
H A D | hasher.rs | 107 fn pre_process_msg(message: &[u8]) -> Vec<u8> { in pre_process_msg() 138 fn Sha256(input: *const u8, input_len: u32, output: *mut u8); in Sha256() 144 fn sha256_new(message: &[u8]) -> Vec<u8> { in sha256_new() 151 fn sha256_old(message: &[u8]) -> Vec<u8> { in sha256_old() 157 pub fn sha256(standard: bool, message: &[u8]) -> Vec<u8> { in sha256()
|
/ohos5.0/base/update/updater/services/rust/hash_signed_data/src/ |
H A D | lib.rs | 69 out: *mut u8, out_len: usize, file_name: *const c_char) -> usize in GetSigFromHashData() 125 pub unsafe extern fn LoadImgHashData(hash_data: *const u8, len: usize) in LoadImgHashData() 154 pub unsafe extern fn LoadImgHashDataNew(hash_data: *const u8, len: usize) in LoadImgHashDataNew() 184 img_name: *const c_char, start: T, end: T, hash_value: *const u8, len: usize) -> bool in check_data_hash_template() 217 img_name: *const c_char, start: u32, end: u32, hash_value: *const u8, len: usize) -> bool in check_data_hash() 229 img_name: *const c_char, start: u64, end: u64, hash_value: *const u8, len: usize) -> bool in CheckDataHashNew()
|
/ohos5.0/base/security/asset/services/crypto_manager/src/ |
H A D | crypto.rs | 68 pub fn init_key(&mut self) -> Result<&Vec<u8>> { in init_key() 89 …pub fn exec_crypt(&self, cipher: &Vec<u8>, aad: &Vec<u8>, auth_token: &Vec<u8>) -> Result<Vec<u8>>… in exec_crypt() 117 pub fn encrypt(key: &SecretKey, msg: &Vec<u8>, aad: &Vec<u8>) -> Result<Vec<u8>> { in encrypt() 140 pub fn decrypt(key: &SecretKey, cipher: &Vec<u8>, aad: &Vec<u8>) -> Result<Vec<u8>> { in decrypt() 174 pub(crate) fn challenge(&self) -> &Vec<u8> { in challenge()
|
/ohos5.0/base/security/code_signature/services/key_enable/src/ |
H A D | key_enable.rs | 52 fn InitLocalCertificate(cert_data: *mut u8, cert_size: *mut usize) -> i32; in InitLocalCertificate() 54 type_name: *const u8, in AddKey() 55 description: *const u8, in AddKey() 56 payload: *const u8, in AddKey() 62 type_name: *const u8, in KeyctlRestrictKeyring() 63 restriction: *const u8, in KeyctlRestrictKeyring() 127 fn enable_key_list(key_id: KeySerial, certs: Vec<Vec<u8>>, key_name_prefix: &str) -> i32 { in enable_key_list()
|
/ohos5.0/commonlibrary/rust/ylong_http/ylong_http/src/h3/qpack/ |
H A D | integer.rs | 24 pub(crate) fn index(pre: u8, index: usize, mask: u8) -> Self { in index() 56 pub(crate) fn first_byte(byte: u8, mask: u8) -> Result<usize, Self> { in first_byte() 102 pub(crate) fn new(pre: u8, i: usize, mask: u8) -> Self { in new() 115 pub(crate) fn get_pre(&self) -> u8 { in get_pre() 121 pub(crate) fn next_byte(&mut self) -> Option<u8> { in next_byte()
|
/ohos5.0/commonlibrary/rust/ylong_http/ylong_http/src/body/mime/encode/ |
H A D | multi.rs | 133 fn push_list_to_stages(&mut self, boundary: Vec<u8>, list: Vec<XPart<'a>>) { in push_list_to_stages() 172 fn push_first_boundary(&mut self, boundary: Vec<u8>) { in push_first_boundary() 181 fn push_middle_boundary(&mut self, boundary: Vec<u8>) { in push_middle_boundary() 188 fn push_end_boundary(&mut self, boundary: Vec<u8>) { in push_end_boundary() 239 fn boundary_encode(&mut self, dst: &mut [u8], boundary: Vec<u8>) -> SizeResult { in boundary_encode() 252 fn headers_encode(&mut self, dst: &mut [u8], mut headers_encoder: EncodeHeaders) -> SizeResult { in headers_encode() 267 dst: &mut [u8], in sync_mimepart_encode() 314 buf: &mut [u8], in poll_data()
|
/ohos5.0/commonlibrary/rust/ylong_http/ylong_http/src/h2/hpack/representation/ |
H A D | encoder.rs | 265 fn new(index: usize, value: Vec<u8>, is_huffman: bool) -> Self { in new() 288 fn new(name: Vec<u8>, value: Vec<u8>, is_huffman: bool) -> Self { in new() 311 fn new(index: usize, value: Vec<u8>, is_huffman: bool) -> Self { in new() 334 fn new(name: Vec<u8>, value: Vec<u8>, is_huffman: bool) -> Self { in new() 357 fn new(index: usize, value: Vec<u8>, is_huffman: bool) -> Self { in new() 380 fn new(name: Vec<u8>, value: Vec<u8>, is_huffman: bool) -> Self { in new() 468 fn set_index(mut self, mask: u8, pre: u8) -> Self { in set_index() 473 fn set_name_and_value(mut self, name: Vec<u8>, value: Vec<u8>, is_huffman: bool) -> Self { in set_name_and_value() 499 fn index(index: usize, mask: u8, pre: u8) -> Self { in index() 531 fn new(src: Vec<u8>, is_huffman: bool) -> Self { in new() [all …]
|
/ohos5.0/base/security/asset/services/core_service/src/operations/ |
H A D | common.rs | 143 fn build_aad_v1(attrs: &DbMap) -> Vec<u8> { in build_aad_v1() 156 fn to_hex(bytes: &Vec<u8>) -> Result<Vec<u8>> { in to_hex() 170 fn build_aad_v2(attrs: &DbMap) -> Result<Vec<u8>> { in build_aad_v2() 185 pub(crate) fn build_aad(attrs: &DbMap) -> Result<Vec<u8>> { in build_aad()
|
/ohos5.0/commonlibrary/rust/ylong_http/ylong_http_client/src/util/config/tls/alpn/ |
H A D | mod.rs | 84 pub(crate) fn wire_format_bytes(&self) -> &[u8] { in wire_format_bytes() 110 fn extend_from_slice(&mut self, other: &[u8]) { in extend_from_slice() 122 pub(crate) fn as_slice(&self) -> &[u8] { in as_slice()
|
/ohos5.0/foundation/communication/wifi/wifi/test/wifi_standard/wifi_hal/unittest/ |
H A D | wifi_wpa_common_test.h | 20 typedef unsigned char u8; typedef
|
/ohos5.0/foundation/communication/wifi/wifi/services/wifi_standard/wifi_framework/wifi_manage/wifi_native/client/hdi_client/ |
H A D | wifi_hdi_wpa_callback.h | 21 typedef unsigned char u8; typedef
|
/ohos5.0/base/security/asset/test/unittest/inner_kits_rust/src/ |
H A D | common.rs | 89 pub(crate) fn add_default_asset(alias: &[u8], secret: &[u8]) -> Result<()> { in add_default_asset() 97 pub(crate) fn add_default_auth_asset(alias: &[u8], secret: &[u8]) -> Result<()> { in add_default_auth_asset()
|
/ohos5.0/commonlibrary/rust/ylong_http/ylong_http/src/body/ |
H A D | chunk.rs | 197 buf: &mut [u8], in poll_partial() 271 buf: &mut [u8], in poll_data() 297 buf: &mut [u8], in poll_data() 995 remains: &[u8], in match_decode_result() 1148 data: &'a [u8], in sized_chunk() 1165 buf: &'a [u8], in decode_special_char() 1303 buf: &'a [u8], in decode_trailer_data() 1363 data: &'a [u8], in skip_trailer_last_crlf() 1364 buf: &'a [u8], in skip_trailer_last_crlf() 1400 data: &'a [u8], in skip_last_crlf() [all …]
|
/ohos5.0/commonlibrary/rust/ylong_http/ylong_http/src/util/ |
H A D | test_util.rs | 16 pub fn decode(str: &str) -> Option<Vec<u8>> { in decode()
|