Home
last modified time | relevance | path

Searched refs:olen (Results 1 – 7 of 7) sorted by relevance

/Zephyr-latest/lib/utils/
Dbase64.c60 int base64_encode(uint8_t *dst, size_t dlen, size_t *olen, const uint8_t *src, in base64_encode() argument
68 *olen = 0; in base64_encode()
75 *olen = BASE64_SIZE_T_MAX; in base64_encode()
82 *olen = n + 1; in base64_encode()
115 *olen = p - dst; in base64_encode()
124 int base64_decode(uint8_t *dst, size_t dlen, size_t *olen, const uint8_t *src, in base64_decode() argument
174 *olen = 0; in base64_decode()
186 *olen = n; in base64_decode()
213 *olen = p - dst; in base64_decode()
/Zephyr-latest/subsys/net/lib/http/
Dhttp_server_ws.c45 size_t olen; in handle_http1_to_websocket_upgrade() local
52 olen = MIN(sizeof(key_accept) - 1 - key_len, sizeof(WS_MAGIC) - 1); in handle_http1_to_websocket_upgrade()
53 strncpy(key_accept + key_len, WS_MAGIC, olen); in handle_http1_to_websocket_upgrade()
55 mbedtls_sha1(key_accept, olen + key_len, accept); in handle_http1_to_websocket_upgrade()
57 ret = base64_encode(tmp, sizeof(tmp) - 1, &olen, accept, sizeof(accept)); in handle_http1_to_websocket_upgrade()
60 NET_DBG("[%p] Too short buffer olen %zd", client, olen); in handle_http1_to_websocket_upgrade()
/Zephyr-latest/modules/mbedtls/
Dzephyr_entropy.c35 size_t *olen) in mbedtls_hardware_poll() argument
42 if (output == NULL || olen == NULL || len == 0) { in mbedtls_hardware_poll()
51 *olen = request_len; in mbedtls_hardware_poll()
/Zephyr-latest/include/zephyr/sys/
Dbase64.h62 int base64_encode(uint8_t *dst, size_t dlen, size_t *olen, const uint8_t *src,
81 int base64_decode(uint8_t *dst, size_t dlen, size_t *olen, const uint8_t *src,
/Zephyr-latest/tests/benchmarks/mbedtls/src/
Dbenchmark.c768 size_t olen; in main() local
795 sizeof(buf), &olen, myrand, in main()
802 sizeof(buf), &olen, myrand, in main()
888 size_t olen; in main() local
897 mbedtls_ecdh_make_public(&ecdh, &olen, buf, in main()
911 &olen, buf, sizeof(buf), in main()
914 &olen, buf, sizeof(buf), in main()
960 mbedtls_ecdh_make_public(&ecdh, &olen, buf, in main()
964 mbedtls_ecdh_make_public(&ecdh, &olen, buf, in main()
977 &olen, in main()
/Zephyr-latest/subsys/net/lib/websocket/
Dwebsocket.c204 size_t olen; in on_header_value() local
209 ret = base64_encode(str, sizeof(str) - 1, &olen, in on_header_value()
242 size_t olen; in websocket_connect() local
287 &olen, sec_accept_key, in websocket_connect()
297 if ((olen + sizeof("Sec-Websocket-Key: ") + 2) > sizeof(sec_ws_key)) { in websocket_connect()
299 olen + sizeof("Sec-Websocket-Key: ") + 2, in websocket_connect()
305 memcpy(sec_ws_key + sizeof("Sec-Websocket-Key: ") - 1 + olen, in websocket_connect()
337 key_len = MIN(sizeof(key_accept) - 1, olen); in websocket_connect()
341 olen = MIN(sizeof(key_accept) - 1 - key_len, sizeof(WS_MAGIC) - 1); in websocket_connect()
342 strncpy(key_accept + key_len, WS_MAGIC, olen); in websocket_connect()
[all …]
/Zephyr-latest/tests/lib/cbprintf_package/src/
Dmain.c952 int slen, clen, olen; in ZTEST() local
974 CBPRINTF_STATIC_PACKAGE(spackage, slen, olen, CBPRINTF_PACKAGE_ALIGNMENT, flags, TEST_FMT); in ZTEST()
975 zassert_equal(olen, slen); in ZTEST()