Home
last modified time | relevance | path

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

12345

/device/google/cuttlefish/host/commands/secure_env/
Dtpm_keymaster_enforcement.cpp49 !memcmp(a.data, b.data, a.data_length)); in operator ==()
54 return a.seed == b.seed && !memcmp(a.nonce, b.nonce, sizeof(a.nonce)); in operator ==()
64 auto res = memcmp(a.seed.data, b.seed.data, a.seed.data_length); in operator ()()
69 return memcmp(a.nonce, b.nonce, sizeof(a.nonce)) < 0; in operator ()()
172 return memcmp(token.hmac, comparison_token.hmac, sizeof(token.hmac)) == 0; in ValidateTokenSignature()
Dencrypted_serializable_test.cpp52 ASSERT_EQ(0, memcmp(input_data, output.begin(), sizeof(input_data))); in TEST()
Dhmac_serializable.cpp121 if (memcmp(signature.get(), hmac_check->buffer, digest_size_) != 0) { in Deserialize()
Dsoft_gatekeeper.h148 return memcmp(computed.digest, fast_hash.digest, SHA256_DIGEST_LENGTH) == 0; in VerifyFast()
Dtpm_attestation_record.cpp62 if (memcmp(blob.data, id.data(), id.size())) { in matchAttestationId()
/device/google/contexthub/firmware/os/core/
Dbl.c173 return !memcmp(dst, src, length); in blProgramFlash()
347 if (memcmp(hdr->magic, mOsUpdateMagic, sizeof(hdr->magic)) != 0) in blVerifyOsImage()
365 if (memcmp(rsaKey, osSigPubkey, RSA_BYTES) == 0) in blVerifyOsImage()
405 if (memcmp(expectedHash, ourHash, SHA2_HASH_SIZE) != 0) { in blVerifyOsImage()
DappSec.c400 if (memcmp(state->lastHash, result, SHA2_HASH_SIZE)) in appSecDoSomeProcessing()
437 bool verified = memcmp(hash, state->dataBytes, SHA2_BLOCK_SIZE) == 0; in appSecVerifyEncryptedData()
Dseos.c1416 if (task->app && !memcmp(&task->app->hdr.appId, appId, sizeof(*appId))) { in osTidById()
/device/generic/opengl-transport/host/libs/virglrenderer/
DChecksumCalculator.cpp116 isValid = 0 == memcmp(&val, expectedChecksum, sizeof(val)) && in validate()
117 0 == memcmp(&m_numRead, in validate()
/device/generic/goldfish/camera/
Dqemu_channel.cpp92 if (!memcmp(reply.data(), "ok", 2)) { in qemuRunQuery()
94 } else if (!memcmp(reply.data(), "ko", 2)) { in qemuRunQuery()
DCameraProvider.cpp47 if (memcmp(str.data(), kCameraIdPrefix, sizeof(kCameraIdPrefix) - 1) != 0) { in parseLogicalCameraId()
/device/google/contexthub/firmware/os/cpu/cortexm4/
Dcortexm4.mk43 $(LIB_PATH)/libc/memcmp.c \
50 $(LIB_PATH)/libc/memcmp.c \
/device/google/contexthub/util/nanoapp_sign/
Dnanoapp_sign.c177 if (memcmp(rsaResult, refHash, SHA2_HASH_SIZE)) { in validateSignature()
270 if (memcmp(masterPubKey, rsa->modulus, RSA_BYTES) == 0) { in handleVerify()
300 if (memcmp(masterPubKey, sigPack + RSA_BYTES, RSA_BYTES) == 0) { in handleVerify()
/device/google/contexthub/firmware/lib/libc/
Dmemcmp.c42 memcmp(const void *s1, const void *s2, size_t n) in memcmp() function
/device/google/cuttlefish/host/commands/assemble_cvd/
Dkernel_module_parser.cc32 return memcmp(buf.data(), SIGNATURE_FOOTER.data(), SIGNATURE_FOOTER.size()) == in IsKernelModuleSigned()
Dboot_image_utils.cc120 return memcmp(buf.data(), CPIO_MAGIC.data(), CPIO_MAGIC.size()) == 0; in IsCpioArchive()
Dvendor_dlkm_utils.cc544 if (memcmp(buf1.data(), buf2.data(), bytes_to_read)) { in FileEquals()
/device/google/tangorpro/cast_auth/mediadrm/
DDrmFactory.cpp24 return !memcmp(uuid, kCastKeyUUID.data(), 16); in isCastKeyUUID()
/device/google/contexthub/firmware/lib/
Dlib.mk56 SRCS += $(LIBC_PATH)/memcmp.c
/device/google/contexthub/util/nanoapp_encr/
Dnanoapp_encr.c224 bool verify = memcmp(fileHash, calcHash, SHA2_HASH_SIZE) == 0; in handleDecrypt()
/device/linaro/dragonboard/shared/utils/tqftpserv/
Dtqftpserv.c580 if (!memcmp(&client->sq, &sq, sizeof(sq))) in main()
/device/google/sunfish/gpt-utils/
Dgpt-utils.cpp441 if (memcmp(gpt_header, GPT_SIGNATURE, sizeof(GPT_SIGNATURE))) in gpt_get_state()
/device/google/coral/gpt-utils/
Dgpt-utils.cpp441 if (memcmp(gpt_header, GPT_SIGNATURE, sizeof(GPT_SIGNATURE))) in gpt_get_state()
/device/google/redbull/gpt-utils/
Dgpt-utils.cpp441 if (memcmp(gpt_header, GPT_SIGNATURE, sizeof(GPT_SIGNATURE))) in gpt_get_state()
/device/google/cuttlefish/common/libs/fs/
Dshared_fd.cpp1007 if (memcmp(&terminal_settings, &raw_settings, sizeof(terminal_settings))) { in SetTerminalRaw()

12345