Home
last modified time | relevance | path

Searched refs:olen (Results 26 - 50 of 365) sorted by relevance

12345678910>>...15

/foundation/communication/dsoftbus/adapter/common/openssl/
H A Dsoftbus_adapter_crypto.c238 int32_t SoftBusBase64Encode(unsigned char *dst, size_t dlen, size_t *olen, const unsigned char *src, size_t slen) in SoftBusBase64Encode() argument
240 if (dst == NULL || dlen == 0 || olen == NULL || src == NULL || slen == 0) { in SoftBusBase64Encode()
243 *olen = 0; in SoftBusBase64Encode()
263 *olen += outlen; in SoftBusBase64Encode()
265 *olen += outlen; in SoftBusBase64Encode()
267 if (*olen > dlen) { in SoftBusBase64Encode()
268 COMM_LOGE(COMM_ADAPTER, "[TRANS] invalid dlen=%{public}zu, olen=%{public}zu.", dlen, *olen); in SoftBusBase64Encode()
274 ret = memcpy_s(dst, dlen, dstTmp, *olen); in SoftBusBase64Encode()
281 if ((*olen > in SoftBusBase64Encode()
291 SoftBusBase64Decode(unsigned char *dst, size_t dlen, size_t *olen, const unsigned char *src, size_t slen) SoftBusBase64Decode() argument
347 uint32_t olen; SoftBusGenerateStrHash() local
[all...]
/third_party/mbedtls/programs/psa/
H A Daead_demo.c210 size_t olen, olen_tag; in aead_encrypt() local
220 PSA_CHECK(psa_aead_update(&op, part1, part1_len, p, end - p, &olen)); in aead_encrypt()
221 p += olen; in aead_encrypt()
222 PSA_CHECK(psa_aead_update(&op, part2, part2_len, p, end - p, &olen)); in aead_encrypt()
223 p += olen; in aead_encrypt()
224 PSA_CHECK(psa_aead_finish(&op, p, end - p, &olen, in aead_encrypt()
226 p += olen; in aead_encrypt()
230 olen = p - out; in aead_encrypt()
231 print_buf("out", out, olen); in aead_encrypt()
/third_party/mbedtls/library/
H A Dbase64.c61 int mbedtls_base64_encode(unsigned char *dst, size_t dlen, size_t *olen, in mbedtls_base64_encode() argument
69 *olen = 0; in mbedtls_base64_encode()
76 *olen = SIZE_MAX; in mbedtls_base64_encode()
83 *olen = n + 1; 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
187 *olen = 0; in mbedtls_base64_decode()
199 *olen = n; in mbedtls_base64_decode()
228 *olen = (size_t) (p - dst); in mbedtls_base64_decode()
H A Dnist_kw.c133 size_t olen, padlen = 0; in mbedtls_nist_kw_wrap() local
197 inbuff, 16, output, &olen); in mbedtls_nist_kw_wrap()
219 inbuff, 16, outbuff, &olen); in mbedtls_nist_kw_wrap()
263 size_t olen; in unwrap() local
286 inbuff, 16, outbuff, &olen); in unwrap()
325 size_t olen; in mbedtls_nist_kw_unwrap() local
379 input, 16, outbuff, &olen); in mbedtls_nist_kw_unwrap()
584 size_t olen; in mbedtls_nist_kw_self_test() local
611 kw_msg_len[i], out, &olen, sizeof(out)); in mbedtls_nist_kw_self_test()
612 if (ret != 0 || kw_out_len[i] != olen || in mbedtls_nist_kw_self_test()
[all...]
H A Dentropy_poll.h46 unsigned char *output, size_t len, size_t *olen);
59 unsigned char *output, size_t len, size_t *olen);
69 unsigned char *output, size_t len, size_t *olen);
/foundation/communication/dhcp/test/unittest/services/dhcp_server/unittest/
H A Ddhcp_message_sim.cpp183 uint8_t *current = msg->packet.options, olen = MAGIC_COOKIE_LENGTH; in ParseDhcpOptions() local
185 if (memcpy_s(current, olen, &cookie, olen) != EOK) { in ParseDhcpOptions()
189 replyOptsLength += olen; in ParseDhcpOptions()
190 current += olen; in ParseDhcpOptions()
194 olen = OPT_HEADER_LENGTH + 1; in ParseDhcpOptions()
196 olen = OPT_HEADER_LENGTH + pNode->option.length; in ParseDhcpOptions()
198 if (memcpy_s(current, olen, &pNode->option, olen) != EOK) { in ParseDhcpOptions()
203 current += olen; in ParseDhcpOptions()
[all...]
/foundation/communication/dsoftbus/tests/adapter/unittest/
H A Ddsoftbus_crypto_test.cpp58 size_t olen = 10; in HWTEST_F() local
59 int32_t ret = SoftBusBase64Encode((unsigned char *)dst, sizeof(dst), &olen, (unsigned char *)src, sizeof(src)); in HWTEST_F()
62 encodeLen = olen; in HWTEST_F()
63 memcpy_s(encodeStr, olen, dst, olen); in HWTEST_F()
76 size_t olen = 10; in HWTEST_F() local
77 int32_t ret = SoftBusBase64Encode(NULL, sizeof(dst), &olen, (unsigned char *)src, sizeof(src)); in HWTEST_F()
83 ret = SoftBusBase64Encode((unsigned char *)dst, sizeof(dst), &olen, NULL, sizeof(src)); in HWTEST_F()
97 size_t olen = 10; in HWTEST_F() local
99 int32_t ret = SoftBusBase64Encode((unsigned char *)dst, dlen, &olen, (unsigne in HWTEST_F()
116 size_t olen = 10; HWTEST_F() local
132 size_t olen = 10; HWTEST_F() local
156 size_t olen = 10; HWTEST_F() local
[all...]
/kernel/linux/linux-5.10/arch/powerpc/boot/
H A Dopal.c45 uint64_t olen, len; in opal_con_putc() local
48 rc = opal_console_write_buffer_space(opal_con_id, &olen); in opal_con_putc()
49 len = be64_to_cpu(olen); in opal_con_putc()
56 olen = cpu_to_be64(1); in opal_con_putc()
57 opal_console_write(opal_con_id, &olen, &c); in opal_con_putc()
/kernel/linux/linux-6.6/arch/powerpc/boot/
H A Dopal.c45 uint64_t olen, len; in opal_con_putc() local
48 rc = opal_console_write_buffer_space(opal_con_id, &olen); in opal_con_putc()
49 len = be64_to_cpu(olen); in opal_con_putc()
56 olen = cpu_to_be64(1); in opal_con_putc()
57 opal_console_write(opal_con_id, &olen, &c); in opal_con_putc()
/third_party/node/deps/base64/base64/lib/arch/neon32/
H A Dcodec.c59 enc_loop_neon32(&s, &slen, &o, &olen); in BASE64_ENC_FUNCTION()
60 enc_loop_generic_32(&s, &slen, &o, &olen); in BASE64_ENC_FUNCTION()
71 dec_loop_neon32(&s, &slen, &o, &olen); in BASE64_DEC_FUNCTION()
72 dec_loop_generic_32(&s, &slen, &o, &olen); in BASE64_DEC_FUNCTION()
/kernel/linux/linux-5.10/drivers/net/ppp/
H A Dppp_deflate.c189 int r, proto, off, olen, oavail; in z_compress() local
215 olen = PPP_HDRLEN + DEFLATE_OVHD; in z_compress()
217 state->strm.avail_out = oavail = osize - olen; in z_compress()
234 olen += oavail; in z_compress()
241 olen += oavail - state->strm.avail_out; in z_compress()
246 if (olen < isize && olen <= osize) { in z_compress()
247 state->stats.comp_bytes += olen; in z_compress()
252 olen = 0; in z_compress()
257 return olen; in z_compress()
415 int olen, seq, r; z_decompress() local
[all...]
/kernel/linux/linux-6.6/drivers/net/ppp/
H A Dppp_deflate.c189 int r, proto, off, olen, oavail; in z_compress() local
215 olen = PPP_HDRLEN + DEFLATE_OVHD; in z_compress()
217 state->strm.avail_out = oavail = osize - olen; in z_compress()
234 olen += oavail; in z_compress()
241 olen += oavail - state->strm.avail_out; in z_compress()
246 if (olen < isize && olen <= osize) { in z_compress()
247 state->stats.comp_bytes += olen; in z_compress()
252 olen = 0; in z_compress()
257 return olen; in z_compress()
414 int olen, seq, r; z_decompress() local
[all...]
/third_party/node/deps/base64/base64/lib/arch/neon64/
H A Dcodec.c79 enc_loop_neon64(&s, &slen, &o, &olen); in BASE64_ENC_FUNCTION()
80 enc_loop_generic_64(&s, &slen, &o, &olen); in BASE64_ENC_FUNCTION()
91 dec_loop_neon64(&s, &slen, &o, &olen); in BASE64_DEC_FUNCTION()
92 dec_loop_generic_32(&s, &slen, &o, &olen); in BASE64_DEC_FUNCTION()
/kernel/linux/linux-5.10/lib/842/
H A D842_compress.c93 u64 olen; member
183 else if (p->olen < 8 && bits > 32 && bits <= 56) in add_bits()
185 else if (p->olen < 4 && bits > 16 && bits <= 24) in add_bits()
188 if (DIV_ROUND_UP(bits, 8) > p->olen) in add_bits()
215 p->olen -= p->bit / 8; in add_bits()
471 * @out, using no more than @olen bytes, using the 842 compression format.
473 * Returns: 0 on success, error on failure. The @olen parameter
478 u8 *out, unsigned int *olen, void *wmem) in sw842_compress()
496 p->olen = *olen; in sw842_compress()
477 sw842_compress(const u8 *in, unsigned int ilen, u8 *out, unsigned int *olen, void *wmem) sw842_compress() argument
[all...]
/kernel/linux/linux-6.6/lib/842/
H A D842_compress.c93 u64 olen; member
183 else if (p->olen < 8 && bits > 32 && bits <= 56) in add_bits()
185 else if (p->olen < 4 && bits > 16 && bits <= 24) in add_bits()
188 if (DIV_ROUND_UP(bits, 8) > p->olen) in add_bits()
215 p->olen -= p->bit / 8; in add_bits()
471 * @out, using no more than @olen bytes, using the 842 compression format.
473 * Returns: 0 on success, error on failure. The @olen parameter
478 u8 *out, unsigned int *olen, void *wmem) in sw842_compress()
496 p->olen = *olen; in sw842_compress()
477 sw842_compress(const u8 *in, unsigned int ilen, u8 *out, unsigned int *olen, void *wmem) sw842_compress() argument
[all...]
/third_party/node/deps/base64/base64/lib/arch/generic/
H A Dcodec.c25 enc_loop_generic_32(&s, &slen, &o, &olen); in BASE64_ENC_FUNCTION()
27 enc_loop_generic_64(&s, &slen, &o, &olen); in BASE64_ENC_FUNCTION()
36 dec_loop_generic_32(&s, &slen, &o, &olen); in BASE64_DEC_FUNCTION()
/third_party/node/deps/base64/base64/lib/arch/avx/
H A Dcodec.c46 enc_loop_avx(&s, &slen, &o, &olen); in BASE64_ENC_FUNCTION()
48 enc_loop_ssse3(&s, &slen, &o, &olen); in BASE64_ENC_FUNCTION()
61 dec_loop_ssse3(&s, &slen, &o, &olen); in BASE64_DEC_FUNCTION()
/foundation/communication/dsoftbus/tests/core/transmission/common/mock/src/
H A Dtrans_common_mock.cpp51 int32_t SoftBusBase64Encode(unsigned char *dst, size_t dlen, size_t *olen, const unsigned char *src, size_t slen) in SoftBusBase64Encode() argument
53 return GetCommonInterface()->SoftBusBase64Encode(dst, dlen, olen, src, slen); in SoftBusBase64Encode()
56 int32_t SoftBusBase64Decode(unsigned char *dst, size_t dlen, size_t *olen, const unsigned char *src, size_t slen) in SoftBusBase64Decode() argument
58 return GetCommonInterface()->SoftBusBase64Decode(dst, dlen, olen, src, slen); in SoftBusBase64Decode()
/third_party/libwebsockets/include/libwebsockets/
H A Dlws-tokenize.h169 size_t *pos, size_t olen, size_t *exp_ofs);
176 size_t olen; member
200 * \p olen: the length of the output buffer in bytes
205 * only the length is returned. olen should be set to the largest feasible
211 char *out, size_t olen);
218 * \p olen: the length of the output buffer in bytes
225 * only the length is returned. \p olen should be set to the largest feasible
230 lws_strexp_reset_out(lws_strexp_t *exp, char *out, size_t olen);
/third_party/mbedtls/programs/pkey/
H A Drsa_sign_pss.c49 size_t olen = 0; in main() local
121 buf, sizeof(buf), &olen, in main()
137 if (fwrite(buf, 1, olen, f) != olen) { in main()
H A Dpk_sign.c48 size_t olen = 0; in main() local
108 buf, sizeof(buf), &olen, in main()
124 if (fwrite(buf, 1, olen, f) != olen) { in main()
/third_party/mbedtls/include/mbedtls/
H A Decjpake.h154 * \param olen The address at which to store the total number
164 unsigned char *buf, size_t len, size_t *olen,
195 * \param olen The address at which to store the total number of Bytes
205 unsigned char *buf, size_t len, size_t *olen,
235 * \param olen The address at which to store the total number of Bytes
245 unsigned char *buf, size_t len, size_t *olen,
258 * \param olen The address at which to store the total number of bytes
268 unsigned char *buf, size_t len, size_t *olen,
H A Dsha3.h53 uint16_t MBEDTLS_PRIVATE(olen);
119 * This must be a writable buffer of length \c olen bytes.
120 * \param olen Defines the length of output buffer (in bytes). For SHA-3 224, SHA-3 256,
121 * SHA-3 384 and SHA-3 512 \c olen must equal to 28, 32, 48 and 64,
128 uint8_t *output, size_t olen);
145 * This must be a writable buffer of length \c olen bytes.
146 * \param olen Defines the length of output buffer (in bytes). For SHA-3 224, SHA-3 256,
147 * SHA-3 384 and SHA-3 512 \c olen must equal to 28, 32, 48 and 64,
156 size_t olen);
/third_party/node/deps/openssl/openssl/crypto/comp/
H A Dcomp_lib.c59 int COMP_compress_block(COMP_CTX *ctx, unsigned char *out, int olen, in COMP_compress_block() argument
66 ret = ctx->meth->compress(ctx, out, olen, in, ilen); in COMP_compress_block()
74 int COMP_expand_block(COMP_CTX *ctx, unsigned char *out, int olen, in COMP_expand_block() argument
82 ret = ctx->meth->expand(ctx, out, olen, in, ilen); in COMP_expand_block()
/third_party/openssl/crypto/comp/
H A Dcomp_lib.c59 int COMP_compress_block(COMP_CTX *ctx, unsigned char *out, int olen, in COMP_compress_block() argument
66 ret = ctx->meth->compress(ctx, out, olen, in, ilen); in COMP_compress_block()
74 int COMP_expand_block(COMP_CTX *ctx, unsigned char *out, int olen, in COMP_expand_block() argument
82 ret = ctx->meth->expand(ctx, out, olen, in, ilen); in COMP_expand_block()

Completed in 13 milliseconds

12345678910>>...15