/Zephyr-Core-3.7.0/subsys/random/ |
D | random_entropy_device.c | 15 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()
|
D | random_timer.c | 60 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()
|
D | random_ctr_drbg.c | 106 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()
|
D | random_xoshiro128.c | 94 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/ |
D | hmac_prng_expects.c | 47 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()
|
D | hmac_prng_expects.h | 32 void expect_call_count_tc_hmac_prng_generate(int call_count, uint8_t *out, unsigned int outlen,
|
/Zephyr-Core-3.7.0/lib/os/ |
D | spsc_pbuf.c | 231 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/ |
D | lwm2m_util.h | 23 int lwm2m_ftoa(double *input, char *out, size_t outlen, int8_t dec_limit);
|
D | lwm2m_util.c | 376 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/ |
D | main.c | 129 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/ |
D | main.c | 88 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
|
D | test_suite_invalid_inputs.c | 145 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/ |
D | cbprintf.h | 391 #define CBPRINTF_STATIC_PACKAGE(packaged, inlen, outlen, align_offset, flags, \ argument 393 Z_CBPRINTF_STATIC_PACKAGE(packaged, inlen, outlen, \
|
D | cbprintf_internal.h | 865 #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/ |
D | main.c | 90 int outlen; \ 92 CBPRINTF_STATIC_PACKAGE(pkg, len, outlen, ALIGN_OFFSET, flags, fmt, __VA_ARGS__);\ 93 zassert_equal(len, outlen); \
|