/third_party/node/test/parallel/ |
H A D | test-v8-serdes.js | 44 const des = new v8.DefaultDeserializer(ser.releaseBuffer()); 45 des.readHeader(); 48 assert.deepStrictEqual(des.readValue(), obj); 88 const des = new v8.DefaultDeserializer(ser.releaseBuffer()); 89 des._readHostObject = common.mustCall(() => { 90 const length = des.readUint32(); 91 const buf = des.readRawBytes(length); 95 assert.deepStrictEqual(des.readUint64(), [1, 2]); 96 assert.strictEqual(des.readDouble(), -0.25); 100 des [all...] |
/third_party/musl/libc-test/src/functionalext/supplement/string/ |
H A D | wmemset.c | 31 wchar_t des[index]; in wmemset_0100() local 32 wmemset(des, ch, count); in wmemset_0100() 34 if (des[i] != ch) { in wmemset_0100() 35 t_error("%s des[%d] is not C\n", __func__, i); in wmemset_0100() 50 wchar_t des[index]; in wmemset_0200() local 51 wmemset(des, ch, count); in wmemset_0200() 53 if (des[i] == ch) { in wmemset_0200() 54 t_error("%s des[%d] is not want C\n", __func__, i); in wmemset_0200() 69 wchar_t des[index]; in wmemset_0300() local 70 wmemset(des, c in wmemset_0300() [all...] |
H A D | wcscpy.c | 31 * @tc.desc : Copies the C wide string pointed by wcs into the array pointed by des 37 wchar_t des[BUFF_SIZE]; in wcscpy_0100() local 38 wcscpy(des, wcs); in wcscpy_0100() 39 if (wcscmp(wcs, des)) { in wcscpy_0100() 52 wchar_t des[] = L"wcscpy test"; in wcscpy_0200() local 53 wcscpy(des, wcs); in wcscpy_0200() 54 if (wcscmp(wcs, des)) { in wcscpy_0200() 55 t_error("%s des is not equal to wcs", __func__); in wcscpy_0200() 61 * @tc.desc : des is empty, the program is abnormal
|
/base/hiviewdfx/hiview/plugins/sysevent_source/test/fuzztest/common/eventserversocket_fuzzer/ |
H A D | eventserversocket_fuzzer.cpp | 37 uint8_t* des = reinterpret_cast<uint8_t*>(malloc(desLen)); in ConverRawData() local 38 if (des == nullptr) { in ConverRawData() 42 if (memcpy_s(des, desLen, source, sourceHeaderLen) != EOK) { in ConverRawData() 43 free(des); in ConverRawData() 46 *(reinterpret_cast<uint8_t*>(des + sourceHeaderLen)) = 0; // init header.log flag in ConverRawData() 48 if (memcpy_s(des + desPos, desLen - desPos, source + sourceHeaderLen, sourceLen - sourceHeaderLen) != EOK) { in ConverRawData() 49 free(des); in ConverRawData() 52 *(reinterpret_cast<int32_t*>(des)) = desLen; in ConverRawData() 53 auto rawData = std::make_shared<EventRaw::RawData>(des, desLen); in ConverRawData() 54 free(des); in ConverRawData() [all...] |
/drivers/peripheral/usb/ddk/device/src/ |
H A D | usbfn_sdk_if.c | 34 static int32_t IsDescriptorOk(struct UsbFnDeviceDesc *des) in IsDescriptorOk() argument 39 if (des == NULL) { in IsDescriptorOk() 40 HDF_LOGE("%{public}s: des null", __func__); in IsDescriptorOk() 43 if (des->deviceDesc == NULL || des->deviceStrings == NULL || des->configs == NULL) { in IsDescriptorOk() 48 strings = des->deviceStrings; in IsDescriptorOk() 54 for (i = 0; des->configs[i] != NULL; i++) { in IsDescriptorOk() 55 for (j = 0; des->configs[i]->functions[j] != NULL; j++) { in IsDescriptorOk() 56 functions = des in IsDescriptorOk() 94 UsbFnChangeFunction(struct UsbFnDeviceDesc * const des, struct UsbFnDescriptorData * const descriptor) UsbFnChangeFunction() argument 113 struct UsbFnDeviceDesc *des = NULL; UsbFnCreateDevice() local [all...] |
H A D | usbfn_dev_mgr.c | 63 static void CreateInterface(struct UsbFnDeviceDesc *des, struct UsbFnDeviceMgr *devMgr) in CreateInterface() argument 71 for (uint32_t i = 0; des->configs[i] != NULL; i++) { in CreateInterface() 72 for (uint32_t j = 0; des->configs[i]->functions[j] != NULL; j++) { in CreateInterface() 73 if (strncmp(des->configs[i]->functions[j]->funcName, FUNCTION_GENERIC, strlen(FUNCTION_GENERIC))) { in CreateInterface() 76 if (des->configs[i]->functions[j]->enable == false) { in CreateInterface() 82 des->configs[i]->functions[j]->funcName); in CreateInterface() 88 for (uint32_t k = 0; des->configs[i]->functions[j]->fsDescriptors[k] != NULL; k++) { in CreateInterface() 89 intf = (struct UsbInterfaceDescriptor *)des->configs[i]->functions[j]->fsDescriptors[k]; in CreateInterface() 90 GetInterfaceInfo(intf, devMgr, fnCnt, des->configs[i]); in CreateInterface() 126 static int32_t CreatDev(const char *udcName, struct UsbFnDeviceDesc *des, struc argument 167 AllocInterfaceAndFuncMgr(struct UsbFnDeviceMgr *fnDevMgr, struct UsbFnDeviceDesc *des) AllocInterfaceAndFuncMgr() argument 203 UsbFnMgrDeviceCreate( const char *udcName, struct UsbFnDeviceDesc *des, const struct DeviceResourceNode *node) UsbFnMgrDeviceCreate() argument [all...] |
/test/xts/acts/kernel_lite/futex_posix/src/ |
H A D | FutexTest.cpp | 20 void ChildAssertEQ(int src, int des) in ChildAssertEQ() argument 22 if (src != des) { in ChildAssertEQ() 23 LOG("> src = %d, but des = %d", src, des); in ChildAssertEQ() 28 int ChildExpectEQ(int src, int des) in ChildExpectEQ() argument 30 if (src != des) { in ChildExpectEQ() 31 LOG("> src = %d, but des = %d", src, des); in ChildExpectEQ()
|
/third_party/curl/lib/ |
H A D | curl_ntlm_core.c | 65 # include <openssl/des.h> 71 # include <wolfssl/openssl/des.h> 97 # include <nettle/des.h> 101 # include <mbedtls/des.h> 174 struct des_ctx *des) in setup_des_key() 185 des_set_key(des, (const uint8_t *) key); in setup_des_key() 331 struct des_ctx des; in Curl_ntlm_core_lm_resp() 332 setup_des_key(keys, &des); in Curl_ntlm_core_lm_resp() 333 des_encrypt(&des, 8, results, plaintext); in Curl_ntlm_core_lm_resp() 334 setup_des_key(keys + 7, &des); in Curl_ntlm_core_lm_resp() 173 setup_des_key(const unsigned char *key_56, struct des_ctx *des) setup_des_key() argument 381 struct des_ctx des; Curl_ntlm_core_mk_lm_hash() local [all...] |
/kernel/linux/linux-6.6/drivers/staging/media/atomisp/pci/hmm/ |
H A D | hmm.c | 283 char *src, *des; in load_and_flush_by_kmap() local 291 des = (char *)data; in load_and_flush_by_kmap() 308 if (des) { in load_and_flush_by_kmap() 309 memcpy(des, src, len); in load_and_flush_by_kmap() 310 des += len; in load_and_flush_by_kmap() 383 char *src, *des; in hmm_store() local 428 des = (char *)kmap_local_page(bo->pages[idx]); in hmm_store() 430 if (!des) { in hmm_store() 437 des += offset; in hmm_store() 449 memcpy(des, sr in hmm_store() 466 char *des; hmm_set() local [all...] |
/drivers/hdf_core/framework/support/platform/src/hdmi/ |
H A D | hdmi_infoframe.c | 254 struct HdmiStaticMetadataDescriptor1st *des = &(drm->des.type1); in HdmiInfoFramePacketDrmEncoding() local 273 buff[UINT8_ARRAY_TELEMENT_2] = (uint8_t)(des->displayPrimaries0X & HDMI_DRM_METADATA_MARK); in HdmiInfoFramePacketDrmEncoding() 275 buff[UINT8_ARRAY_TELEMENT_3] = (uint8_t)((des->displayPrimaries0X >> HDMI_DRM_METADATA_SHIFT) & in HdmiInfoFramePacketDrmEncoding() 278 buff[UINT8_ARRAY_TELEMENT_4] = (uint8_t)(des->displayPrimaries0Y & HDMI_DRM_METADATA_MARK); in HdmiInfoFramePacketDrmEncoding() 280 buff[UINT8_ARRAY_TELEMENT_5] = (uint8_t)((des->displayPrimaries0Y & HDMI_DRM_METADATA_MARK) & in HdmiInfoFramePacketDrmEncoding() 283 buff[UINT8_ARRAY_TELEMENT_6] = (uint8_t)(des->displayPrimaries1X & HDMI_DRM_METADATA_MARK); in HdmiInfoFramePacketDrmEncoding() 285 buff[UINT8_ARRAY_TELEMENT_7] = (uint8_t)((des->displayPrimaries1X & HDMI_DRM_METADATA_MARK) & in HdmiInfoFramePacketDrmEncoding() 288 buff[UINT8_ARRAY_TELEMENT_8] = (uint8_t)(des->displayPrimaries1Y & HDMI_DRM_METADATA_MARK); in HdmiInfoFramePacketDrmEncoding() 290 buff[UINT8_ARRAY_TELEMENT_9] = (uint8_t)((des in HdmiInfoFramePacketDrmEncoding() [all...] |
/third_party/wpa_supplicant/wpa_supplicant-2.9/src/crypto/ |
H A D | crypto_internal-cipher.c | 38 } des; member 91 des_key_setup(key, ctx->u.des.ek, ctx->u.des.dk); in crypto_cipher_init() 92 os_memcpy(ctx->u.des.cbc, iv, 8); in crypto_cipher_init() 151 des_block_encrypt(ctx->u.des.cbc, ctx->u.des.ek, in crypto_cipher_encrypt() 152 ctx->u.des.cbc); in crypto_cipher_encrypt() 153 os_memcpy(crypt, ctx->u.des.cbc, 8); in crypto_cipher_encrypt() 214 des_block_decrypt(crypt, ctx->u.des.dk, plain); in crypto_cipher_decrypt() 216 plain[j] ^= ctx->u.des in crypto_cipher_decrypt() [all...] |
/third_party/wpa_supplicant/wpa_supplicant-2.9_standard/src/crypto/ |
H A D | crypto_internal-cipher.c | 38 } des; member 91 des_key_setup(key, ctx->u.des.ek, ctx->u.des.dk); in crypto_cipher_init() 92 os_memcpy(ctx->u.des.cbc, iv, 8); in crypto_cipher_init() 151 des_block_encrypt(ctx->u.des.cbc, ctx->u.des.ek, in crypto_cipher_encrypt() 152 ctx->u.des.cbc); in crypto_cipher_encrypt() 153 os_memcpy(crypt, ctx->u.des.cbc, 8); in crypto_cipher_encrypt() 214 des_block_decrypt(crypt, ctx->u.des.dk, plain); in crypto_cipher_decrypt() 216 plain[j] ^= ctx->u.des in crypto_cipher_decrypt() [all...] |
/third_party/ffmpeg/libavformat/ |
H A D | asfcrypt.c | 25 #include "libavutil/des.h" 150 struct AVDES *des; in ff_asfcrypt_dec() local 164 des = av_des_alloc(); in ff_asfcrypt_dec() 166 if (!des || !rc4) { in ff_asfcrypt_dec() 167 av_freep(&des); in ff_asfcrypt_dec() 178 av_des_init(des, key + 12, 64, 1); in ff_asfcrypt_dec() 179 av_des_crypt(des, (uint8_t *)&packetkey, (uint8_t *)&packetkey, 1, NULL, 1); in ff_asfcrypt_dec() 195 av_free(des); in ff_asfcrypt_dec()
|
/third_party/node/deps/openssl/openssl/providers/implementations/ciphers/ |
H A D | cipher_des.c | 132 CIPHER_DEFAULT_GETTABLE_CTX_PARAMS_START(des) 134 CIPHER_DEFAULT_GETTABLE_CTX_PARAMS_END(des) 193 IMPLEMENT_des_cipher(des, ecb, ECB, DES_FLAGS, 64, 64, 0, block); 195 IMPLEMENT_des_cipher(des, cbc, CBC, DES_FLAGS, 64, 64, 64, block); 197 IMPLEMENT_des_cipher(des, ofb64, OFB, DES_FLAGS, 64, 8, 64, stream); 199 IMPLEMENT_des_cipher(des, cfb64, CFB, DES_FLAGS, 64, 8, 64, stream); 201 IMPLEMENT_des_cipher(des, cfb1, CFB, DES_FLAGS, 64, 8, 64, stream); 203 IMPLEMENT_des_cipher(des, cfb8, CFB, DES_FLAGS, 64, 8, 64, stream);
|
/third_party/openssl/providers/implementations/ciphers/ |
H A D | cipher_des.c | 131 CIPHER_DEFAULT_GETTABLE_CTX_PARAMS_START(des) 133 CIPHER_DEFAULT_GETTABLE_CTX_PARAMS_END(des) 192 IMPLEMENT_des_cipher(des, ecb, ECB, DES_FLAGS, 64, 64, 0, block); 194 IMPLEMENT_des_cipher(des, cbc, CBC, DES_FLAGS, 64, 64, 64, block); 196 IMPLEMENT_des_cipher(des, ofb64, OFB, DES_FLAGS, 64, 8, 64, stream); 198 IMPLEMENT_des_cipher(des, cfb64, CFB, DES_FLAGS, 64, 8, 64, stream); 200 IMPLEMENT_des_cipher(des, cfb1, CFB, DES_FLAGS, 64, 8, 64, stream); 202 IMPLEMENT_des_cipher(des, cfb8, CFB, DES_FLAGS, 64, 8, 64, stream);
|
/kernel/linux/linux-5.10/drivers/staging/media/atomisp/pci/hmm/ |
H A D | hmm.c | 340 char *src, *des; in load_and_flush_by_kmap() local 348 des = (char *)data; in load_and_flush_by_kmap() 365 if (des) { in load_and_flush_by_kmap() 366 memcpy(des, src, len); in load_and_flush_by_kmap() 367 des += len; in load_and_flush_by_kmap() 440 char *src, *des; in hmm_store() local 486 des = (char *)kmap_atomic(bo->page_obj[idx].page); in hmm_store() 488 des = (char *)kmap(bo->page_obj[idx].page); in hmm_store() 490 if (!des) { in hmm_store() 497 des in hmm_store() 533 char *des; hmm_set() local [all...] |
/third_party/lwip/src/netif/ppp/ |
H A D | chap_ms.c | 500 lwip_des_context des; in ChallengeResponse() local 512 lwip_des_init(&des); in ChallengeResponse() 513 lwip_des_setkey_enc(&des, des_key); in ChallengeResponse() 514 lwip_des_crypt_ecb(&des, challenge, response +0); in ChallengeResponse() 515 lwip_des_free(&des); in ChallengeResponse() 518 lwip_des_init(&des); in ChallengeResponse() 519 lwip_des_setkey_enc(&des, des_key); in ChallengeResponse() 520 lwip_des_crypt_ecb(&des, challenge, response +8); in ChallengeResponse() 521 lwip_des_free(&des); in ChallengeResponse() 524 lwip_des_init(&des); in ChallengeResponse() 617 lwip_des_context des; ChapMS_LANMan() local [all...] |
/third_party/ltp/testcases/kernel/syscalls/socketpair/ |
H A D | socketpair02.c | 31 char *des; member 54 tc->des, i); in verify_socketpair() 60 tc->des, i); in verify_socketpair() 65 tst_res(TPASS, "socketpair() passed to set %s flag", tc->des); in verify_socketpair()
|
/third_party/ltp/testcases/kernel/syscalls/socket/ |
H A D | socket02.c | 28 char *des; member 48 tst_res(TFAIL, "socket() failed to set %s flag", tc->des); in verify_socket() 53 tst_res(TFAIL, "socket() failed to set %s flag", tc->des); in verify_socket() 57 tst_res(TPASS, "socket() passed to set %s flag", tc->des); in verify_socket()
|
/third_party/ltp/testcases/kernel/syscalls/fcntl/ |
H A D | fcntl31.c | 56 static void check_io_signal(char *des); 57 static void test_set_and_get_sig(int sig, char *des); 250 static void test_set_and_get_sig(int sig, char *des) in test_set_and_get_sig() argument 280 check_io_signal(des); in test_set_and_get_sig() 322 static void check_io_signal(char *des) in check_io_signal() argument 344 tst_resm(TPASS, "fcntl test %s success", des); in check_io_signal() 348 "%s failed", des); in check_io_signal()
|
/base/telephony/cellular_data/test/ |
H A D | sim_account_callback_proxy_test.cpp | 34 std::u16string des = SimAccountCallbackProxy::GetDescriptor(); in HWTEST_F() local 35 std::cout << "SimAccountCallbackProxy_01 Descriptor " << des.c_str() << std::endl; in HWTEST_F() 38 ASSERT_FALSE(des.length() == 0); in HWTEST_F()
|
/third_party/ffmpeg/tools/ |
H A D | crypto_bench.c | 82 #include "libavutil/des.h" 156 static struct AVDES *des; in run_lavu_des() local 157 if (!des && !(des = av_des_alloc())) in run_lavu_des() 159 av_des_init(des, hardcoded_key, 64, 0); in run_lavu_des() 160 av_des_crypt(des, output, input, size >> 3, NULL, 0); in run_lavu_des() 207 #include <openssl/des.h> 272 DES_key_schedule des; in run_crypto_des() local 275 DES_set_key(hardcoded_key, &des); in run_crypto_des() 277 DES_ecb_encrypt(input + i, output + i, &des, in run_crypto_des() 411 mbedtls_des_context des; run_mbedcrypto_des() local 523 symmetric_key des; run_tomcrypt_des() local [all...] |
/kernel/linux/linux-5.10/drivers/staging/rtl8723bs/include/ |
H A D | hal_com_h2c.h | 100 #define cpMacAddr(des, src) ((des)[0] = (src)[0], (des)[1] = (src)[1], (des)[2] = (src)[2], (des)[3] = (src)[3], (des)[4] = (src)[4], (des)[5] = (src)[5]) 101 #define cpIpAddr(des, src) ((des)[0] = (src)[0], (des)[ [all...] |
/kernel/linux/linux-5.10/drivers/pci/hotplug/ |
H A D | acpiphp_ibm.c | 123 union apci_descriptor *ret = NULL, *des; in ibm_slot_from_id() local 129 des = (union apci_descriptor *)table; in ibm_slot_from_id() 130 if (memcmp(des->header.sig, "aPCI", 4) != 0) in ibm_slot_from_id() 133 des = (union apci_descriptor *)&table[ind += des->header.len]; in ibm_slot_from_id() 134 while (ind < size && (des->generic.type != 0x82 || in ibm_slot_from_id() 135 des->slot.slot_num != id)) { in ibm_slot_from_id() 136 des = (union apci_descriptor *)&table[ind += des->generic.len]; in ibm_slot_from_id() 139 if (ind < size && des in ibm_slot_from_id() [all...] |
/kernel/linux/linux-6.6/drivers/pci/hotplug/ |
H A D | acpiphp_ibm.c | 123 union apci_descriptor *ret = NULL, *des; in ibm_slot_from_id() local 129 des = (union apci_descriptor *)table; in ibm_slot_from_id() 130 if (memcmp(des->header.sig, "aPCI", 4) != 0) in ibm_slot_from_id() 133 des = (union apci_descriptor *)&table[ind += des->header.len]; in ibm_slot_from_id() 134 while (ind < size && (des->generic.type != 0x82 || in ibm_slot_from_id() 135 des->slot.slot_num != id)) { in ibm_slot_from_id() 136 des = (union apci_descriptor *)&table[ind += des->generic.len]; in ibm_slot_from_id() 139 if (ind < size && des in ibm_slot_from_id() [all...] |