Home
last modified time | relevance | path

Searched refs:dst (Results 1 – 25 of 99) sorted by relevance

1234

/lib/zstd/common/
A Dhuf.h48 HUF_PUBLIC_API size_t HUF_compress(void* dst, size_t dstCapacity,
61 HUF_PUBLIC_API size_t HUF_decompress(void* dst, size_t originalSize,
78 HUF_PUBLIC_API size_t HUF_compress2 (void* dst, size_t dstCapacity,
87 HUF_PUBLIC_API size_t HUF_compress4X_wksp (void* dst, size_t dstCapacity,
146 size_t HUF_decompress4X1 (void* dst, size_t dstSize, const void* cSrc, size_t cSrcSize); /*< sing…
148 size_t HUF_decompress4X2 (void* dst, size_t dstSize, const void* cSrc, size_t cSrcSize); /*< doub…
180 size_t HUF_compress4X_usingCTable(void* dst, size_t dstSize, const void* src, size_t srcSize, const…
196 size_t HUF_compress4X_repeat(void* dst, size_t dstSize,
293 size_t HUF_compress1X_usingCTable(void* dst, size_t dstSize, const void* src, size_t srcSize, const…
301 size_t HUF_compress1X_repeat(void* dst, size_t dstSize,
[all …]
A Dzstd_internal.h158 static void ZSTD_copy8(void* dst, const void* src) { in ZSTD_copy8() argument
160 vst1_u8((uint8_t*)dst, vld1_u8((const uint8_t*)src)); in ZSTD_copy8()
162 ZSTD_memcpy(dst, src, 8); in ZSTD_copy8()
171 static void ZSTD_copy16(void* dst, const void* src) { in ZSTD_copy16() argument
173 vst1q_u8((uint8_t*)dst, vld1q_u8((const uint8_t*)src)); in ZSTD_copy16()
175 _mm_storeu_si128((__m128i*)dst, _mm_loadu_si128((const __m128i*)src)); in ZSTD_copy16()
177 ZSTD_memmove(dst, src, 16); in ZSTD_copy16()
182 ZSTD_memcpy(dst, copy16_buf, 16); in ZSTD_copy16()
206 ptrdiff_t diff = (BYTE*)dst - (const BYTE*)src; in ZSTD_wildcopy()
208 BYTE* op = (BYTE*)dst; in ZSTD_wildcopy()
[all …]
A Dfse_decompress.c226 void* dst, size_t maxDstSize, in FSE_decompress_usingDTable_generic() argument
230 BYTE* const ostart = (BYTE*) dst; in FSE_decompress_usingDTable_generic()
287 size_t FSE_decompress_usingDTable(void* dst, size_t originalSize, in FSE_decompress_usingDTable() argument
296 … if (fastMode) return FSE_decompress_usingDTable_generic(dst, originalSize, cSrc, cSrcSize, dt, 1); in FSE_decompress_usingDTable()
297 return FSE_decompress_usingDTable_generic(dst, originalSize, cSrc, cSrcSize, dt, 0); in FSE_decompress_usingDTable()
311 void* dst, size_t dstCapacity, in FSE_decompress_wksp_body() argument
348 return FSE_decompress_usingDTable_generic(dst, dstCapacity, ip, cSrcSize, wksp->dtable, 0); in FSE_decompress_wksp_body()
355 … return FSE_decompress_wksp_body(dst, dstCapacity, cSrc, cSrcSize, maxLog, workSpace, wkspSize, 0); in FSE_decompress_wksp_body_default()
361 … return FSE_decompress_wksp_body(dst, dstCapacity, cSrc, cSrcSize, maxLog, workSpace, wkspSize, 1); in FSE_decompress_wksp_body_bmi2()
369 …return FSE_decompress_wksp_body_bmi2(dst, dstCapacity, cSrc, cSrcSize, maxLog, workSpace, wkspSize… in FSE_decompress_wksp_bmi2()
[all …]
/lib/
A Dcharset.c146 if (!dst || !*dst) in utf8_put()
160 ++*dst; in utf8_put()
163 ++*dst; in utf8_put()
166 ++*dst; in utf8_put()
169 ++*dst; in utf8_put()
196 if (!src || !dst || !*dst) in utf8_utf16_strncpy()
206 **dst = 0; in utf8_utf16_strncpy()
240 if (!dst || !*dst) in utf16_put()
249 ++*dst; in utf16_put()
252 ++*dst; in utf16_put()
[all …]
A Delf.c90 void *dst = (void *)(ulong)phdr->p_paddr; in load_elf64_image_phdr() local
98 i, dst, (ulong)phdr->p_filesz); in load_elf64_image_phdr()
100 memcpy(dst, src, phdr->p_filesz); in load_elf64_image_phdr()
102 memset(dst + phdr->p_filesz, 0x00, in load_elf64_image_phdr()
104 flush_cache(rounddown((unsigned long)dst, ARCH_DMA_MINALIGN), in load_elf64_image_phdr()
208 void *dst = (void *)(uintptr_t)phdr->p_paddr; in load_elf_image_phdr() local
216 i, dst, phdr->p_filesz); in load_elf_image_phdr()
218 memcpy(dst, src, phdr->p_filesz); in load_elf_image_phdr()
220 memset(dst + phdr->p_filesz, 0x00, in load_elf_image_phdr()
222 flush_cache(rounddown((unsigned long)dst, ARCH_DMA_MINALIGN), in load_elf_image_phdr()
A Dgzip.c38 int gzip(void *dst, unsigned long *lenp, in gzip() argument
41 return zzip(dst, lenp, src, srclen, 1, NULL); in gzip()
47 int zzip(void *dst, unsigned long *lenp, unsigned char *src, in zzip() argument
88 s.next_out = dst; in zzip()
97 dst += (left_len - s.avail_out); in zzip()
100 r = func((unsigned long)dst, in zzip()
A Daes.c628 void aes_apply_cbc_chain_data(u8 *cbc_chain_data, u8 *src, u8 *dst) in aes_apply_cbc_chain_data() argument
633 *dst++ = *src++ ^ *cbc_chain_data++; in aes_apply_cbc_chain_data()
636 void aes_cbc_encrypt_blocks(u32 key_len, u8 *key_exp, u8 *iv, u8 *src, u8 *dst, in aes_cbc_encrypt_blocks() argument
652 aes_encrypt(key_len, tmp_data, key_exp, dst); in aes_cbc_encrypt_blocks()
653 debug_print_vector("AES Dst", AES_BLOCK_LENGTH, dst); in aes_cbc_encrypt_blocks()
656 cbc_chain_data = dst; in aes_cbc_encrypt_blocks()
658 dst += AES_BLOCK_LENGTH; in aes_cbc_encrypt_blocks()
662 void aes_cbc_decrypt_blocks(u32 key_len, u8 *key_exp, u8 *iv, u8 *src, u8 *dst, in aes_cbc_decrypt_blocks() argument
682 aes_apply_cbc_chain_data(cbc_chain_data, tmp_data, dst); in aes_cbc_decrypt_blocks()
683 debug_print_vector("AES Dst", AES_BLOCK_LENGTH, dst); in aes_cbc_decrypt_blocks()
[all …]
A Dlz4_wrapper.c18 __rcode int ulz4fn(const void *src, size_t srcn, void *dst, size_t *dstn) in ulz4fn() argument
20 const void *end = dst + *dstn; in ulz4fn()
22 void *out = dst; in ulz4fn()
106 *dstn = out - dst; in ulz4fn()
A Dlz4.c45 __rcode static FORCE_INLINE void LZ4_copy8(void *dst, const void *src) in LZ4_copy8() argument
47 put_unaligned(get_unaligned((const u64 *)src), (u64 *)dst); in LZ4_copy8()
135 char * const dst, in LZ4_decompress_generic() argument
161 BYTE *op = (BYTE *) dst; in LZ4_decompress_generic()
518 return (int) (((char *)op) - dst); in LZ4_decompress_generic()
539 __rcode int LZ4_decompress_safe_partial(const char *src, char *dst, in LZ4_decompress_safe_partial() argument
544 return LZ4_decompress_generic(src, dst, compressedSize, dstCapacity, in LZ4_decompress_safe_partial()
546 noDict, (BYTE *)dst, NULL, 0); in LZ4_decompress_safe_partial()
/lib/mbedtls/external/mbedtls/tests/suites/
A Dtest_suite_des.function30 TEST_ASSERT(mbedtls_test_hexcmp(output, dst->x, 8, dst->len) == 0);
50 TEST_ASSERT(mbedtls_test_hexcmp(output, dst->x, 8, dst->len) == 0);
74 dst->len) == 0);
84 data_t *src_str, data_t *dst,
100 dst->len) == 0);
110 data_t *src_str, data_t *dst)
129 TEST_ASSERT(mbedtls_test_hexcmp(output, dst->x, 8, dst->len) == 0);
138 data_t *src_str, data_t *dst)
157 TEST_ASSERT(mbedtls_test_hexcmp(output, dst->x, 8, dst->len) == 0);
167 data_t *dst, int cbc_result)
[all …]
A Dtest_suite_camellia.function48 data_t *dst, int setkey_result)
62 TEST_ASSERT(mbedtls_test_hexcmp(output, dst->x, 16, dst->len) == 0);
72 data_t *dst, int setkey_result)
86 TEST_ASSERT(mbedtls_test_hexcmp(output, dst->x, 16, dst->len) == 0);
111 dst->len) == 0);
121 data_t *src_str, data_t *dst,
137 dst->len) == 0);
147 data_t *src_str, data_t *dst)
161 TEST_ASSERT(mbedtls_test_hexcmp(output, dst->x, 16, dst->len) == 0);
171 data_t *dst)
[all …]
A Dtest_suite_aes.function70 data_t *dst, int setkey_result)
83 TEST_ASSERT(mbedtls_test_hexcmp(output, dst->x, 16, dst->len) == 0);
224 TEST_ASSERT(mbedtls_test_hexcmp(output, dst->x, 16, dst->len) == 0);
234 data_t *src_str, data_t *dst,
260 data_t *src_str, data_t *dst,
291 unsigned char *dst = NULL;
322 mbedtls_free(dst);
335 unsigned char *dst = NULL;
366 mbedtls_free(dst);
423 TEST_ASSERT(mbedtls_test_hexcmp(output, dst->x, 16, dst->len) == 0);
[all …]
A Dtest_suite_base64.function106 void base64_encode_hex(data_t *src, char *dst, int dst_buf_size,
123 TEST_ASSERT(len == strlen(dst));
124 TEST_ASSERT(memcmp(dst, res, len) == 0);
133 void base64_decode_hex(char *src, data_t *dst, int dst_buf_size,
144 TEST_ASSERT(len == dst->len);
145 TEST_ASSERT(memcmp(dst->x, res, len) == 0);
156 unsigned char dst[1000] = { 0 };
159 TEST_ASSERT(mbedtls_base64_decode(dst, sizeof(dst), &len, src->x, src->len) == result);
162 TEST_ASSERT(memcmp(dst, dst_ref, len) == 0);
/lib/zstd/decompress/
A Dhuf_decompress.c211 args->op[0] = (BYTE*)dst; in HUF_DecompressAsmArgs_init()
521 void* dst, size_t dstSize, in HUF_decompress1X1_usingDTable_internal_body() argument
525 BYTE* op = (BYTE*)dst; in HUF_decompress1X1_usingDTable_internal_body()
544 void* dst, size_t dstSize, in HUF_decompress4X1_usingDTable_internal_body() argument
662 void* dst, size_t dstSize, in HUF_decompress4X1_usingDTable_internal_bmi2_asm() argument
743 void* dst, size_t dstSize, in HUF_decompress1X1_usingDTable() argument
767 void* dst, size_t dstSize, in HUF_decompress4X1_usingDTable() argument
1208 void* dst, size_t dstSize, in HUF_decompress1X2_usingDTable_internal_body() argument
1234 void* dst, size_t dstSize, in HUF_decompress4X2_usingDTable_internal_body() argument
1372 void* dst, size_t dstSize, in HUF_decompress4X2_usingDTable_internal_bmi2_asm() argument
[all …]
A Dzstd_decompress_block.c46 static void ZSTD_copy4(void* dst, const void* src) { ZSTD_memcpy(dst, src, 4); } in ZSTD_copy4() argument
1319 BYTE* const ostart = (BYTE*)dst;
1341 assert(dst != NULL);
1529 void* dst, size_t maxDstSize, argument
1536 BYTE* const ostart = (BYTE*)dst;
1558 assert(dst != NULL);
1665 BYTE* const ostart = (BYTE*)dst;
1688 assert(dst != NULL);
2040 dctx->prefixStart = dst;
2041 dctx->previousDstEnd = dst;
[all …]
A Dzstd_decompress.c785 if (dst == NULL) { in ZSTD_copyRawBlock()
789 ZSTD_memcpy(dst, src, srcSize); in ZSTD_copyRawBlock()
798 if (dst == NULL) { in ZSTD_setRleBlock()
802 ZSTD_memset(dst, b, regenSize); in ZSTD_setRleBlock()
824 BYTE* const ostart = (BYTE*)dst; in ZSTD_decompressFrame()
912 void* const dststart = dst; in ZSTD_decompressMultiFrame()
964 dst = (BYTE*)dst + res; in ZSTD_decompressMultiFrame()
1794 if (expect.dst == output->dst && expect.pos == output->pos && expect.size == output->size) in ZSTD_checkOutBuffer()
1839 char* const dst = (char*)output->dst; in ZSTD_decompressStream() local
1840 char* const ostart = output->pos != 0 ? dst + output->pos : dst; in ZSTD_decompressStream()
[all …]
/lib/blake2/
A Dblake2-impl.h83 static BLAKE2_INLINE void store16( void *dst, uint16_t w ) in store16() argument
86 memcpy(dst, &w, sizeof w); in store16()
88 uint8_t *p = ( uint8_t * )dst; in store16()
94 static BLAKE2_INLINE void store32( void *dst, uint32_t w ) in store32() argument
97 memcpy(dst, &w, sizeof w); in store32()
99 uint8_t *p = ( uint8_t * )dst; in store32()
107 static BLAKE2_INLINE void store64( void *dst, uint64_t w ) in store64() argument
110 memcpy(dst, &w, sizeof w); in store64()
112 uint8_t *p = ( uint8_t * )dst; in store64()
135 static BLAKE2_INLINE void store48( void *dst, uint64_t w ) in store48() argument
[all …]
/lib/mbedtls/external/mbedtls/scripts/mbedtls_dev/
A Dasymmetric_key_data.py25 dst = {} #type: Dict[str, Dict[int, bytes]]
29 dst[private] = {}
30 dst[public] = {}
32 dst[private][size] = unhexlify(src[typ][size][0])
33 dst[public][size] = unhexlify(src[typ][size][1])
34 return dst
/lib/lwip/lwip/src/netif/
A Dlowpan6_ble.c110 ble_addr_to_eui64(u8_t *dst, const u8_t *src, int public_addr) in ble_addr_to_eui64() argument
113 memcpy(dst, src, 3); in ble_addr_to_eui64()
114 dst[3] = 0xFF; in ble_addr_to_eui64()
115 dst[4] = 0xFE; in ble_addr_to_eui64()
116 memcpy(&dst[5], &src[3], 3); in ble_addr_to_eui64()
119 dst[0] &= ~0x02; in ble_addr_to_eui64()
121 dst[0] |= 0x02; in ble_addr_to_eui64()
139 eui64_to_ble_addr(u8_t *dst, const u8_t *src) in eui64_to_ble_addr() argument
142 memcpy(dst,src,3); in eui64_to_ble_addr()
143 memcpy(&dst[3],&src[5],3); in eui64_to_ble_addr()
/lib/mbedtls/external/mbedtls/library/
A Dbase64.c61 int mbedtls_base64_encode(unsigned char *dst, size_t dlen, size_t *olen, in mbedtls_base64_encode() argument
82 if ((dlen < n + 1) || (NULL == dst)) { in mbedtls_base64_encode()
89 for (i = 0, p = dst; i < n; i += 3) { in mbedtls_base64_encode()
119 *olen = (size_t) (p - dst); in mbedtls_base64_encode()
128 int mbedtls_base64_decode(unsigned char *dst, size_t dlen, size_t *olen, in mbedtls_base64_decode() argument
198 if (dst == NULL || dlen < n) { in mbedtls_base64_decode()
204 for (x = 0, p = dst; i > 0; i--, src++) { in mbedtls_base64_decode()
228 *olen = (size_t) (p - dst); in mbedtls_base64_decode()
A Dmd.c334 int mbedtls_md_clone(mbedtls_md_context_t *dst, in mbedtls_md_clone() argument
337 if (dst == NULL || dst->md_info == NULL || in mbedtls_md_clone()
339 dst->md_info != src->md_info) { in mbedtls_md_clone()
344 if (src->engine != dst->engine) { in mbedtls_md_clone()
361 mbedtls_md5_clone(dst->md_ctx, src->md_ctx); in mbedtls_md_clone()
371 mbedtls_sha1_clone(dst->md_ctx, src->md_ctx); in mbedtls_md_clone()
376 mbedtls_sha256_clone(dst->md_ctx, src->md_ctx); in mbedtls_md_clone()
381 mbedtls_sha256_clone(dst->md_ctx, src->md_ctx); in mbedtls_md_clone()
386 mbedtls_sha512_clone(dst->md_ctx, src->md_ctx); in mbedtls_md_clone()
391 mbedtls_sha512_clone(dst->md_ctx, src->md_ctx); in mbedtls_md_clone()
[all …]
/lib/lzo/
A Dlzo1x_decompress.c25 #define COPY4(dst, src) \ argument
26 put_unaligned(get_unaligned((const u32 *)(src)), (u32 *)(dst))
79 unsigned char *dst, size_t *dst_len) in lzop_decompress() argument
81 unsigned char *start = dst; in lzop_decompress()
99 *dst_len = dst - start; in lzop_decompress()
118 memcpy(dst, src, slen); in lzop_decompress()
122 r = lzo1x_decompress_safe((u8 *)src, slen, dst, &tmp); in lzop_decompress()
125 *dst_len = dst - start; in lzop_decompress()
134 dst += dlen; in lzop_decompress()
/lib/lwip/lwip/src/apps/snmp/
A Dsnmp_raw.c57 snmp_sendto(void *handle, struct pbuf *p, const ip_addr_t *dst, u16_t port) in snmp_sendto() argument
59 return udp_sendto((struct udp_pcb *)handle, p, dst, port); in snmp_sendto()
63 snmp_get_local_ip_for_dst(void *handle, const ip_addr_t *dst, ip_addr_t *result) in snmp_get_local_ip_for_dst() argument
71 ip_route_get_local_ip(&udp_pcb->local_ip, dst, dst_if, dst_ip); in snmp_get_local_ip_for_dst()
A Dsnmp_netconn.c82 snmp_sendto(void *handle, struct pbuf *p, const ip_addr_t *dst, u16_t port) in snmp_sendto() argument
89 result = netconn_sendto((struct netconn *)handle, &buf, dst, port); in snmp_sendto()
95 snmp_get_local_ip_for_dst(void *handle, const ip_addr_t *dst, ip_addr_t *result) in snmp_get_local_ip_for_dst() argument
103 ip_route_get_local_ip(&conn->pcb.udp->local_ip, dst, dst_if, dst_ip); in snmp_get_local_ip_for_dst()
/lib/mbedtls/external/mbedtls/programs/test/
A Dudp_proxy.c478 mbedtls_net_context *dst; member
533 mbedtls_net_context *dst = p->dst; in send_packet() local
554 if ((ret = dispatch_data(dst, buf, p->len)) <= 0) { in send_packet()
573 if ((ret = dispatch_data(dst, buf, p->len)) <= 0) { in send_packet()
580 if ((ret = dispatch_data(dst, p->buf, p->len)) <= 0) { in send_packet()
591 if ((ret = dispatch_data(dst, p->buf, p->len)) <= 0) { in send_packet()
603 if ((ret = dispatch_data(dst, initial_clihlo.buf, in send_packet()
667 mbedtls_net_context *dst, in handle_message() argument
687 cur.dst = dst; in handle_message()

Completed in 60 milliseconds

1234