Home
last modified time | relevance | path

Searched refs:memcmp (Results 1 – 25 of 29) sorted by relevance

12

/trusted-firmware-m-3.4.0/lib/ext/cryptocell-312-runtime/host/src/tests/integration_cc3x/runtime_integration_test/tests/
Drun_integration_sha.c74 RUNIT_ASSERT(memcmp(sha1sum, DIGEST, 20) == 0); in runIt_sha1Test()
82 RUNIT_ASSERT(memcmp(sha1sum, DIGEST, 20) == 0); in runIt_sha1Test()
130 RUNIT_ASSERT(memcmp(sha224sum, DIGEST, 28) == 0); in runIt_sha224Test()
138 RUNIT_ASSERT(memcmp(sha224sum, DIGEST, 28) == 0); in runIt_sha224Test()
185 RUNIT_ASSERT(memcmp(sha256sum, DIGEST, 32) == 0); in runIt_sha256Test()
192 RUNIT_ASSERT(memcmp(sha256sum, DIGEST, 32) == 0); in runIt_sha256Test()
239 RUNIT_ASSERT(memcmp(sha512sum, DIGEST, 48) == 0); in runIt_sha384Test()
246 RUNIT_ASSERT(memcmp(sha512sum, DIGEST, 48) == 0); in runIt_sha384Test()
293 RUNIT_ASSERT(memcmp(sha512sum, DIGEST, 64) == 0); in runIt_sha512Test()
300 RUNIT_ASSERT(memcmp(sha512sum, DIGEST, 64) == 0); in runIt_sha512Test()
Drun_integration_ccm.c81 RUNIT_ASSERT(memcmp(buf, RES, sizeof(MSG) + TAG_LEN) == 0); in runIt_ccmStarEncOnly()
89 RUNIT_ASSERT(memcmp(buf, MSG, sizeof(MSG)) == 0); in runIt_ccmStarEncOnly()
141 RUNIT_ASSERT(memcmp(buf, RES, sizeof(MSG) + TAG_LEN) == 0); in runIt_ccmStar()
149 RUNIT_ASSERT(memcmp(buf, MSG, sizeof(MSG)) == 0); in runIt_ccmStar()
194 RUNIT_ASSERT(memcmp(buf, RES, sizeof(MSG) + TAG_LEN) == 0); in runIt_ccm()
202 RUNIT_ASSERT(memcmp(buf, MSG, sizeof(MSG)) == 0); in runIt_ccm()
Drun_integration_aes.c96 RUNIT_ASSERT(memcmp(buf, CYPHER, AES_BLOCK_SIZE) == 0); in runIt_aesOfbTest()
115 RUNIT_ASSERT(memcmp(buf, PLAIN, AES_BLOCK_SIZE) == 0); in runIt_aesOfbTest()
229 RUNIT_ASSERT(memcmp(buf, CYPHER, AES_BLOCK_SIZE) == 0); in runIt_aesCtrTest()
252 RUNIT_ASSERT(memcmp(buf, PLAIN, AES_BLOCK_SIZE) == 0); in runIt_aesCtrTest()
306 RUNIT_ASSERT(memcmp(buf, CYPHER, AES_BLOCK_SIZE) == 0); in runIt_aesCbcTest()
326 RUNIT_ASSERT(memcmp(buf, PLAIN, AES_BLOCK_SIZE) == 0); in runIt_aesCbcTest()
372 RUNIT_ASSERT(memcmp(buf, CYPHER, AES_BLOCK_SIZE) == 0); in runIt_aesEcbTest()
390 RUNIT_ASSERT(memcmp(buf, PLAIN, AES_BLOCK_SIZE) == 0); in runIt_aesEcbTest()
Drun_integration_chacha.c82 RUNIT_ASSERT(memcmp(pDataOut, pExpectedDataOut, sizeof(pDataIn)) == 0); in runIt_Chacha()
111 RUNIT_ASSERT(memcmp(pDataOut, pExpectedDataOut, sizeof(pDataIn)) == 0); in runIt_Chacha()
173 RUNIT_ASSERT(memcmp(pCcDataOutBuff, pExpectedDataOut, sizeof(pExpectedDataOut)) == 0); in runIt_ChachaPolyEncrypt()
174 RUNIT_ASSERT(memcmp(pMacBuffRaw, pExpectedMac, sizeof(pExpectedMac)) == 0); in runIt_ChachaPolyEncrypt()
240 RUNIT_ASSERT(memcmp(pCcDataOutBuff, pExpectedDataOut, sizeof(pExpectedDataOut)) == 0); in runIt_ChachaPolyDecrypt()
290 RUNIT_ASSERT(memcmp(pMacBuff, EXPECTED_MAC, sizeof(EXPECTED_MAC)) == 0); in runIt_Poly()
Drun_integration_key_derivation.c113 RUNIT_ASSERT(memcmp(pDataOut, userKeyDataOut, dataOutLength) == 0); in runIt_hmacKeyDerivTest()
171 RUNIT_ASSERT(memcmp(pDataOut, userKeyDataOut, dataOutLength) == 0); in runIt_cmacKeyDerivTest()
250 RUNIT_ASSERT(memcmp(pDataOut, pDataOutRef, dataOutLength) != 0); in runIt_cmacRootKeyDerivTest()
252 RUNIT_ASSERT(memcmp(pDataOut, pDataOutRef, dataOutLength) == 0); in runIt_cmacRootKeyDerivTest()
256 RUNIT_ASSERT(memcmp(pDataOut, userKeyDataOut, dataOutLength) == 0); in runIt_cmacRootKeyDerivTest()
307 RUNIT_ASSERT(memcmp(pOKMDataBuff, hkdf_ExpectOKM, hkdf_LSize) == 0); in runIt_hkdfKeyDerivTest()
Drun_integration_gcm.c180 RUNIT_ASSERT(memcmp(pBuf, ct, pt_len) == 0); in runIt_gcm()
181 RUNIT_ASSERT(memcmp(pTagBuf, tag, tag_len) == 0); in runIt_gcm()
208 RUNIT_ASSERT(memcmp(pBuf, pt, pt_len) == 0); in runIt_gcm()
233 RUNIT_ASSERT(memcmp(pBuf, pt, pt_len) == 0); in runIt_gcm()
Drun_integration_mac.c83 RUNIT_ASSERT(memcmp(hmacOutBuff, hmacTest_ExpOutData, hmacTest_ExpOutDataSize) == 0); in runIt_hmac()
103 RUNIT_ASSERT(memcmp(hmacOutBuff, hmacTest_ExpOutData, hmacTest_ExpOutDataSize) == 0); in runIt_hmac()
256 RUNIT_ASSERT(memcmp(output, expected_result, block_size) == 0); in runIt_cmac()
268 RUNIT_ASSERT(memcmp(output, expected_result, block_size) == 0); in runIt_cmac()
Drun_integration_dhm.c116 RUNIT_ASSERT(memcmp(pSecSrv, pSecCli, sec_srv_len) == 0); in runIt_dhm()
126 RUNIT_ASSERT(memcmp(pSecSrv, pSecCli, sec_srv_len) == 0); in runIt_dhm()
147 RUNIT_ASSERT(memcmp(pSecSrv, pSecCli, sec_srv_len) == 0); in runIt_dhm()
Drun_integration_asset_prov.c159 RUNIT_ASSERT(memcmp(pBuf, EXP_ASSET_BIN, assetLen) == 0); in runIt_assetProv()
206 RUNIT_ASSERT(memcmp(pBuf, EXP_ASSET_BIN, assetLen) == 0); in runIt_assetProv()
Drun_integration_drbg.c179 RUNIT_ASSERT(memcmp( buf, result_pr, MBEDTLS_CTR_DRBG_BLOCKSIZE) == 0); in runIt_ctrDrbgVectorTest()
193 RUNIT_ASSERT(memcmp(buf, result_nopr, 16) == 0); in runIt_ctrDrbgVectorTest()
Drun_integration_ecies.c150 RUNIT_ASSERT(memcmp(pSenderSecret, pRecieverSecret, SECRET_KEY_LEN_BYTES) == 0); in runIt_eciesRandom()
285 RUNIT_ASSERT(memcmp(pRecieverSecret, pSenderSecret, SECRET_KEY_LEN_BYTES) == 0); in runIt_eciesVector()
Drun_integration_ext_dma.c120 RUNIT_ASSERT(memcmp(outputBuffer, CYPHER, sizeInWords * sizeof(uint32_t)) == 0); in runIt_extDma()
Drun_integration_rsa.c654 RUNIT_ASSERT(memcmp(pRsaDecrypted, pRsaPlaintext, len) == 0); in runIt_rsaPkcsV21TestGeneral()
/trusted-firmware-m-3.4.0/platform/ext/target/arm/corstone1000/fip_parser/
Dfip_parser.c46 if (!memcmp(iter, &uuid_null, sizeof(uuid_t))) { in parse_fip_and_extract_tfa_info()
50 if (!memcmp(iter, &tfa_uuid, sizeof(uuid_t))) { in parse_fip_and_extract_tfa_info()
/trusted-firmware-m-3.4.0/secure_fw/partitions/lib/runtime/
Dcrt_memcmp.c11 int memcmp(const void *s1, const void *s2, size_t n) in memcmp() function
/trusted-firmware-m-3.4.0/lib/ext/cryptocell-312-runtime/host/src/pal/freertos/
Dcc_pal_mem.c81 return memcmp(aTarget, aSource, aSize); in CC_PalMemCmpPlat()
/trusted-firmware-m-3.4.0/lib/ext/cryptocell-312-runtime/host/src/pal/linux/
Dcc_pal_mem.c80 return memcmp(aTarget, aSource, aSize); in CC_PalMemCmpPlat()
/trusted-firmware-m-3.4.0/lib/ext/cryptocell-312-runtime/host/src/pal/no_os/
Dcc_pal_mem.c82 return memcmp(aTarget, aSource, aSize); in CC_PalMemCmpPlat()
/trusted-firmware-m-3.4.0/platform/ext/accelerator/cc312/cc312-rom/
Dcc3xx_otp.c47 if (memcmp(((uint8_t*)&word) + start_offset, buf + in_done, copy_size)) { in cc3xx_otp_write()
/trusted-firmware-m-3.4.0/secure_fw/partitions/internal_trusted_storage/flash_fs/
Dits_flash_fs.c232 if (memcmp(fid, tmp_metadata.id, ITS_FILE_ID_SIZE)) { in its_flash_fs_file_get_info()
610 if (memcmp(fid, tmp_metadata.id, ITS_FILE_ID_SIZE)) { in its_flash_fs_file_read()
/trusted-firmware-m-3.4.0/platform/ext/target/arm/corstone1000/fw_update_agent/
Duefi_fmp.c140 if ((memcmp(guid, &fmp_info[i].ImageDescriptor.ImageTypeId, in fmp_set_image_info()
Dfwu_agent.c397 if ((memcmp(guid, &full_capsule_image_guid, sizeof(struct efi_guid))) == 0) { in get_image_info_in_bank()
/trusted-firmware-m-3.4.0/platform/ext/target/stm/common/hal/CMSIS_Driver/
Dlow_level_flash.c508 if ((err == HAL_OK) && memcmp(dest, data, cnt)) in Flash_ProgramData()
/trusted-firmware-m-3.4.0/docs/technical_references/design_docs/
Dtfm_secure_partition_runtime_library.rst66 The comparison API ('memcmp' e.g.), they should not return immediately when the
95 - 'memcmp()'
/trusted-firmware-m-3.4.0/lib/ext/cryptocell-312-runtime/host/src/tests/integration_cc3x/runtime_integration_test/
Dstackinfo1023 memcmp 88 8

12