Home
last modified time | relevance | path

Searched refs:outlen (Results 1 – 15 of 15) sorted by relevance

/Zephyr-Core-3.7.0/subsys/random/
Drandom_entropy_device.c15 static int rand_get(uint8_t *dst, size_t outlen, bool csrand) in rand_get() argument
23 ret = entropy_get_entropy(entropy_dev, dst, outlen); in rand_get()
43 while (len < outlen) { in rand_get()
44 size_t copylen = outlen - len; in rand_get()
60 void z_impl_sys_rand_get(void *dst, size_t outlen) in z_impl_sys_rand_get() argument
62 rand_get(dst, outlen, false); in z_impl_sys_rand_get()
68 int z_impl_sys_csrand_get(void *dst, size_t outlen) in z_impl_sys_csrand_get() argument
70 if (rand_get(dst, outlen, true) != 0) { in z_impl_sys_csrand_get()
Drandom_timer.c60 void z_impl_sys_rand_get(void *dst, size_t outlen) in z_impl_sys_rand_get() argument
66 while (outlen > 0) { in z_impl_sys_rand_get()
68 blocksize = MIN(outlen, sizeof(ret)); in z_impl_sys_rand_get()
71 outlen -= blocksize; in z_impl_sys_rand_get()
Drandom_ctr_drbg.c106 int z_impl_sys_csrand_get(void *dst, uint32_t outlen) in z_impl_sys_csrand_get() argument
122 ret = mbedtls_ctr_drbg_random(&ctr_ctx, (unsigned char *)dst, outlen); in z_impl_sys_csrand_get()
128 ret = tc_ctr_prng_generate(&ctr_ctx, 0, 0, (uint8_t *)dst, outlen); in z_impl_sys_csrand_get()
148 (uint8_t *)dst, outlen); in z_impl_sys_csrand_get()
Drandom_xoshiro128.c94 void z_impl_sys_rand_get(void *dst, size_t outlen) in z_impl_sys_rand_get() argument
96 size_t blocks = outlen / sizeof(uint32_t); in z_impl_sys_rand_get()
97 size_t rem = (outlen - (blocks * sizeof(uint32_t))); in z_impl_sys_rand_get()
/Zephyr-Core-3.7.0/tests/bluetooth/host/crypto/mocks/
Dhmac_prng_expects.c47 void expect_call_count_tc_hmac_prng_generate(int call_count, uint8_t *out, unsigned int outlen, in expect_call_count_tc_hmac_prng_generate() argument
57 zassert_equal(tc_hmac_prng_generate_fake.arg1_val, outlen, in expect_call_count_tc_hmac_prng_generate()
Dhmac_prng_expects.h32 void expect_call_count_tc_hmac_prng_generate(int call_count, uint8_t *out, unsigned int outlen,
/Zephyr-Core-3.7.0/lib/os/
Dspsc_pbuf.c231 int outlen; in spsc_pbuf_write() local
237 outlen = spsc_pbuf_alloc(pb, len, &pbuf); in spsc_pbuf_write()
238 if (outlen != len) { in spsc_pbuf_write()
239 return outlen < 0 ? outlen : -ENOMEM; in spsc_pbuf_write()
/Zephyr-Core-3.7.0/subsys/net/lib/lwm2m/
Dlwm2m_util.h23 int lwm2m_ftoa(double *input, char *out, size_t outlen, int8_t dec_limit);
Dlwm2m_util.c376 int lwm2m_ftoa(double *input, char *out, size_t outlen, int8_t dec_limit) in lwm2m_ftoa() argument
422 return snprintk(out, outlen, "%s%lld.%s", in lwm2m_ftoa()
/Zephyr-Core-3.7.0/tests/lib/spsc_pbuf/src/
Dmain.c129 uint16_t outlen, in packet_write() argument
143 zassert_true(rv >= outlen, "%d: Unexpected rv (bigger than %d)", line, rv, outlen); in packet_write()
145 for (uint16_t i = 0; i < outlen; i++) { in packet_write()
149 if (outlen > 0) { in packet_write()
150 spsc_pbuf_commit(pb, outlen); in packet_write()
/Zephyr-Core-3.7.0/tests/bluetooth/host/crypto/bt_rand/src/
Dmain.c88 static int tc_hmac_prng_generate_custom_fake(uint8_t *out, unsigned int outlen, TCHmacPrng_t prng) in tc_hmac_prng_generate_custom_fake() argument
Dtest_suite_invalid_inputs.c145 static int tc_hmac_prng_generate_custom_fake(uint8_t *out, unsigned int outlen, TCHmacPrng_t prng) in tc_hmac_prng_generate_custom_fake() argument
/Zephyr-Core-3.7.0/include/zephyr/sys/
Dcbprintf.h391 #define CBPRINTF_STATIC_PACKAGE(packaged, inlen, outlen, align_offset, flags, \ argument
393 Z_CBPRINTF_STATIC_PACKAGE(packaged, inlen, outlen, \
Dcbprintf_internal.h865 #define Z_CBPRINTF_STATIC_PACKAGE(packaged, inlen, outlen, align_offset, flags, \ argument
867 Z_CBPRINTF_STATIC_PACKAGE_GENERIC(packaged, inlen, outlen, \
870 #define Z_CBPRINTF_STATIC_PACKAGE(packaged, inlen, outlen, align_offset, flags, \
875 outlen = cbprintf_package(packaged, inlen, flags, __VA_ARGS__); \
877 outlen = cbprintf_package(NULL, align_offset, flags, __VA_ARGS__); \
/Zephyr-Core-3.7.0/tests/lib/cbprintf_package/src/
Dmain.c90 int outlen; \
92 CBPRINTF_STATIC_PACKAGE(pkg, len, outlen, ALIGN_OFFSET, flags, fmt, __VA_ARGS__);\
93 zassert_equal(len, outlen); \