Home
last modified time | relevance | path

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

/foundation/communication/wifi/tests/wifi_standard/wifi_framework/dhcp_manage/dhcp_server/unittest/
Ddhcp_message_sim.cpp233 uint8_t *current = msg->packet.options, olen = MAGIC_COOKIE_LENGTH; in ParseDhcpOptions() local
235 if (memcpy_s(current, olen, &cookie, olen) != EOK) { in ParseDhcpOptions()
239 replyOptsLength += olen; in ParseDhcpOptions()
240 current += olen; in ParseDhcpOptions()
244 olen = OPT_HEADER_LENGTH + 1; in ParseDhcpOptions()
246 olen = OPT_HEADER_LENGTH + pNode->option.length; in ParseDhcpOptions()
248 if (memcpy_s(current, olen, &pNode->option, olen) != EOK) { in ParseDhcpOptions()
253 current += olen; in ParseDhcpOptions()
254 replyOptsLength += olen; in ParseDhcpOptions()
/foundation/distributedhardware/devicemanager/ext/mini/utils/src/cipher/
Dencrypt_utils.cpp34 int32_t EncryptUtils::MbedtlsBase64Encode(uint8_t *dst, size_t dlen, size_t *olen, in MbedtlsBase64Encode() argument
37 return mbedtls_base64_encode(dst, dlen, olen, src, slen); in MbedtlsBase64Encode()
40 int32_t EncryptUtils::MbedtlsBase64Decode(uint8_t *dst, size_t dlen, size_t *olen, in MbedtlsBase64Decode() argument
43 return mbedtls_base64_decode(dst, dlen, olen, src, slen); in MbedtlsBase64Decode()
/foundation/distributedhardware/devicemanager/ext/mini/utils/include/cipher/
Dencrypt_utils.h26 static int32_t MbedtlsBase64Encode(uint8_t *dst, size_t dlen, size_t *olen,
28 static int32_t MbedtlsBase64Decode(uint8_t *dst, size_t dlen, size_t *olen,
/foundation/communication/dsoftbus/adapter/common/mbedtls/
Dsoftbus_adapter_crypto.c121 size_t *olen, const unsigned char *src, size_t slen) in SoftBusBase64Encode() argument
123 if (dst == NULL || dlen == 0 || olen == NULL || src == NULL || slen == 0) { in SoftBusBase64Encode()
126 return mbedtls_base64_encode(dst, dlen, olen, src, slen); in SoftBusBase64Encode()
130 size_t *olen, const unsigned char *src, size_t slen) in SoftBusBase64Decode() argument
132 if (dst == NULL || dlen == 0 || olen == NULL || src == NULL || slen == 0) { in SoftBusBase64Decode()
135 return mbedtls_base64_decode(dst, dlen, olen, src, slen); in SoftBusBase64Decode()
/foundation/communication/dsoftbus/adapter/common/include/
Dsoftbus_adapter_crypto.h58 size_t *olen, const unsigned char *src, size_t slen);
61 size_t *olen, const unsigned char *src, size_t slen);
/foundation/communication/wifi/services/wifi_standard/wifi_framework/dhcp_manage/dhcp_server/src/
Ddhcp_server.c1522 uint8_t *current = reply->packet.options, olen = MAGIC_COOKIE_LENGTH; in ParseReplyOptions() local
1525 if (memcpy_s(current, remainingSize, &cookie, olen) != EOK) { in ParseReplyOptions()
1529 replyOptsLength += olen; in ParseReplyOptions()
1530 remainingSize -= olen; in ParseReplyOptions()
1531 current += olen; in ParseReplyOptions()
1535 olen = OPT_HEADER_LENGTH + 1; in ParseReplyOptions()
1537 olen = OPT_HEADER_LENGTH + pNode->option.length; in ParseReplyOptions()
1539 if (memcpy_s(current, remainingSize, &pNode->option, olen) != EOK) { in ParseReplyOptions()
1544 remainingSize -= olen; in ParseReplyOptions()
1545 current += olen; in ParseReplyOptions()
[all …]