Home
last modified time | relevance | path

Searched refs:digests (Results 1 – 25 of 234) sorted by relevance

12345678910

/external/tpm2-tss/test/integration/
Dsapi-pcr-extension.int.c43 TPML_DIGEST_VALUES digests; in test_invoke() local
59 digests.count = 1; in test_invoke()
60 digests.digests[0].hashAlg = TPM2_ALG_SHA1; in test_invoke()
61 digest_size = GetDigestSize( digests.digests[0].hashAlg ); in test_invoke()
65 digests.digests[0].digest.sha1[i] = (UINT8)(i % 256); in test_invoke()
80 memcpy(&(pcr_before_extend[0]), &(pcr_values.digests[0].buffer[0]), pcr_values.digests[0].size); in test_invoke()
82 rc = Tss2_Sys_PCR_Extend(sapi_context, PCR_8, &sessions_data, &digests, 0); in test_invoke()
92 memcpy(&(pcr_after_extend[0]), &(pcr_values.digests[0].buffer[0]), pcr_values.digests[0].size); in test_invoke()
Desys-pcr-basic.int.c50 TPML_DIGEST_VALUES digests in test_esys_pcr_basic() local
53 .digests = { in test_esys_pcr_basic()
69 &digests in test_esys_pcr_basic()
/external/ms-tpm-20-ref/TPMCmd/tpm/src/command/PCR/
DPCR_Extend.c79 for(i = 0; i < in->digests.count; i++) in TPM2_PCR_Extend()
81 PCRExtend(in->pcrHandle, in->digests.digests[i].hashAlg, in TPM2_PCR_Extend()
82 CryptHashGetDigestSize(in->digests.digests[i].hashAlg), in TPM2_PCR_Extend()
83 (BYTE *)&in->digests.digests[i].digest); in TPM2_PCR_Extend()
DPCR_Event.c73 out->digests.count = HASH_COUNT; in TPM2_PCR_Event()
79 out->digests.digests[i].hashAlg = hash; in TPM2_PCR_Event()
83 (BYTE *)&out->digests.digests[i].digest); in TPM2_PCR_Event()
86 (BYTE *)&out->digests.digests[i].digest); in TPM2_PCR_Event()
/external/tpm2-tss/src/tss2-esys/api/
DEsys_PCR_Event.c71 TPML_DIGEST_VALUES **digests) in Esys_PCR_Event() argument
90 r = Esys_PCR_Event_Finish(esysContext, digests); in Esys_PCR_Event()
241 TPML_DIGEST_VALUES **digests) in Esys_PCR_Event_Finish() argument
245 esysContext, digests); in Esys_PCR_Event_Finish()
261 if (digests != NULL) { in Esys_PCR_Event_Finish()
262 *digests = calloc(sizeof(TPML_DIGEST_VALUES), 1); in Esys_PCR_Event_Finish()
263 if (*digests == NULL) { in Esys_PCR_Event_Finish()
321 (digests != NULL) ? *digests : NULL); in Esys_PCR_Event_Finish()
331 if (digests != NULL) in Esys_PCR_Event_Finish()
332 SAFE_FREE(*digests); in Esys_PCR_Event_Finish()
DEsys_PCR_Extend.c71 const TPML_DIGEST_VALUES *digests) in Esys_PCR_Extend() argument
76 shandle3, digests); in Esys_PCR_Extend()
147 const TPML_DIGEST_VALUES *digests) in Esys_PCR_Extend_Async() argument
151 esysContext, pcrHandle, digests); in Esys_PCR_Extend_Async()
176 : pcrHandleNode->rsrc.handle, digests); in Esys_PCR_Extend_Async()
/external/tpm2-tss/src/tss2-sys/api/
DTss2_Sys_PCR_Extend.c18 const TPML_DIGEST_VALUES *digests) in Tss2_Sys_PCR_Extend_Prepare() argument
23 if (!ctx || !digests) in Tss2_Sys_PCR_Extend_Prepare()
36 rval = Tss2_MU_TPML_DIGEST_VALUES_Marshal(digests, ctx->cmdBuffer, in Tss2_Sys_PCR_Extend_Prepare()
64 const TPML_DIGEST_VALUES *digests, in Tss2_Sys_PCR_Extend() argument
70 if (!digests) in Tss2_Sys_PCR_Extend()
73 rval = Tss2_Sys_PCR_Extend_Prepare(sysContext, pcrHandle, digests); in Tss2_Sys_PCR_Extend()
DTss2_Sys_PCR_Event.c60 TPML_DIGEST_VALUES *digests) in Tss2_Sys_PCR_Event_Complete() argument
75 digests); in Tss2_Sys_PCR_Event_Complete()
83 TPML_DIGEST_VALUES *digests, in Tss2_Sys_PCR_Event() argument
97 return Tss2_Sys_PCR_Event_Complete(sysContext, digests); in Tss2_Sys_PCR_Event()
/external/tpm2-tss/src/tss2-fapi/
Difapi_policy_calculate.c41 memcpy(&dest->digests[digest_idx].digest, &src->digests[digest_idx].digest, in copy_policy_digest()
43 dest->digests[digest_idx].hashAlg = src->digests[digest_idx].hashAlg; in copy_policy_digest()
44 LOGBLOB_DEBUG((uint8_t *)&dest->digests[digest_idx].digest, hash_size, in copy_policy_digest()
60 LOGBLOB_DEBUG((uint8_t *)&dest->digests[digest_idx].digest, hash_size, in log_policy_digest()
117 &current_digest->digests[digest_idx].digest, hash_size, in ifapi_compute_policy_pcr()
127 digests[digest_idx].digest, &hash_size); in ifapi_compute_policy_pcr()
252 &current_digest->digests[digest_idx].digest); in ifapi_calculate_policy_signed()
308 &current_digest->digests[digest_idx].digest); in ifapi_calculate_policy_authorize_nv()
360 &current_digest->digests[digest_idx].digest, hash_size, in ifapi_calculate_policy_duplicate()
372 digests[digest_idx].digest, &hash_size); in ifapi_calculate_policy_duplicate()
[all …]
Difapi_policy.c123 if (policy->policyDigests.digests[i].hashAlg == hash_alg) { in ifapi_calculate_tree()
137 policy->policyDigests.digests[i].hashAlg = hash_alg; in ifapi_calculate_tree()
139 memset(&policy->policyDigests.digests[*digest_idx].digest, 0, in ifapi_calculate_tree()
/external/openssh/
Ddigest-openssl.c58 const struct ssh_digest digests[] = { variable
72 if (digests[alg].id != alg) /* sanity */ in ssh_digest_by_alg()
74 if (digests[alg].mdfunc == NULL) in ssh_digest_by_alg()
76 return &(digests[alg]); in ssh_digest_by_alg()
84 for (alg = 0; digests[alg].id != -1; alg++) { in ssh_digest_alg_by_name()
85 if (strcasecmp(name, digests[alg].name) == 0) in ssh_digest_alg_by_name()
86 return digests[alg].id; in ssh_digest_alg_by_name()
Ddigest-libc.c64 const struct ssh_digest digests[SSH_DIGEST_MAX] = { variable
122 if (digests[alg].id != alg) /* sanity */ in ssh_digest_by_alg()
124 return &(digests[alg]); in ssh_digest_by_alg()
133 if (strcasecmp(name, digests[alg].name) == 0) in ssh_digest_alg_by_name()
134 return digests[alg].id; in ssh_digest_alg_by_name()
/external/dng_sdk/source/
Ddng_jpeg_image.cpp261 dng_fingerprint *digests) in dng_jpeg_image_find_digest_task() argument
265 , fDigests (digests) in dng_jpeg_image_find_digest_task()
332 AutoArray<dng_fingerprint> digests (arrayCount); in FindDigest() local
343 digests.Get ()); in FindDigest()
360 digests [tileCount] = printer.Result (); in FindDigest()
373 printer.Process (digests [k].data, in FindDigest()
/external/autotest/client/site_tests/platform_PrinterPpds/
Dcontrol.ext_test_debug13 digests).
25 5. Compare digests of obtained outputs with expected ones (from digests
38 path_digests='digests',
Dcontrol.core_test_debug13 digests).
25 5. Compare digests of obtained outputs with expected ones (from digests
38 path_digests='digests',
Dcontrol.ext_test13 digests).
25 4. Compare digests of obtained outputs with expected ones (from digests
38 path_digests='digests')
Dcontrol.core_test13 digests).
25 4. Compare digests of obtained outputs with expected ones (from digests
38 path_digests='digests')
Dhelpers.py279 digests = dict()
288 digests[cols[0]] = cols[1]
291 return digests, sizes
294 def save_digests_file(path_digests, digests, sizes, denylist): argument
306 names = sorted(set(digests.keys()).difference(denylist))
308 digest = digests[name]
Dreadme.txt48 A function for digests calculation is in the 'helpers.py' file. Not all
52 expected digests for every test document are stored in the directory "digests".
53 If a digests for given pair (test document, PPD file) is missing, the test
89 path_digests - path to directory with files containing digests for
92 deleted if already exists); also all digests files are recalculated
97 Generating new digests
99 The following procedure can be used to update digests:
102 2. Download generated files with digests to your workstation
103 rsync root@<device IP>:/tmp/PrinterPpds_outputs/*.digests <local dir>
104 3. Replace the files from the "digests" directory and commit changes
/external/ms-tpm-20-ref/TPMCmd/tpm/src/command/HashHMAC/
DEventSequenceComplete.c91 out->results.digests[out->results.count].hashAlg = hashAlg; in TPM2_EventSequenceComplete()
94 (BYTE *)&out->results.digests[out->results.count].digest); in TPM2_EventSequenceComplete()
99 (BYTE *)&out->results.digests[out->results.count].digest); in TPM2_EventSequenceComplete()
/external/tpm2-tss/src/tss2-fapi/api/
DFapi_PcrRead.c232 *pcrValueSize = command->pcrValues->digests[0].size; in Fapi_PcrRead_Finish()
234 *pcrValue = malloc(command->pcrValues->digests[0].size); in Fapi_PcrRead_Finish()
238 memcpy(*pcrValue, &command->pcrValues->digests[0].buffer[0], in Fapi_PcrRead_Finish()
239 command->pcrValues->digests[0].size); in Fapi_PcrRead_Finish()
/external/lzma/CPP/7zip/Archive/7z/
D7zOut.cpp335 void COutArchive::WriteHashDigests(const CUInt32DefVector &digests) in WriteHashDigests() argument
337 const unsigned numDefined = BoolVector_CountSum(digests.Defs); in WriteHashDigests()
342 if (numDefined == digests.Defs.Size()) in WriteHashDigests()
347 WriteBoolVector(digests.Defs); in WriteHashDigests()
350 for (unsigned i = 0; i < digests.Defs.Size(); i++) in WriteHashDigests()
351 if (digests.Defs[i]) in WriteHashDigests()
352 WriteUInt32(digests.Vals[i]); in WriteHashDigests()
401 const CUInt32DefVector &digests) in WriteSubStreamsInfo() argument
445 digests2.Defs.Add(digests.Defs[digestIndex]); in WriteSubStreamsInfo()
446 digests2.Vals.Add(digests.Vals[digestIndex]); in WriteSubStreamsInfo()
[all …]
D7zIn.cpp828 CUInt32DefVector &digests) in ReadSubStreamsInfo() argument
909 digests.ClearAndSetSize(unpackSizes.Size()); in ReadSubStreamsInfo()
919 digests.Defs[k] = true; in ReadSubStreamsInfo()
920 digests.Vals[k] = folders.FolderCRCs.Vals[i]; in ReadSubStreamsInfo()
926 digests.Defs[k] = defined; in ReadSubStreamsInfo()
930 digests.Vals[k] = crc; in ReadSubStreamsInfo()
942 if (digests.Defs.Size() != unpackSizes.Size()) in ReadSubStreamsInfo()
944 digests.ClearAndSetSize(unpackSizes.Size()); in ReadSubStreamsInfo()
951 digests.Defs[k] = true; in ReadSubStreamsInfo()
952 digests.Vals[k] = folders.FolderCRCs.Vals[i]; in ReadSubStreamsInfo()
[all …]
/external/tpm2-tss/src/tss2-mu/
Dtpml-types.c164 TPML_MARSHAL(TPML_DIGEST, Tss2_MU_TPM2B_DIGEST_Marshal, digests, ADDR)
165 TPML_UNMARSHAL(TPML_DIGEST, Tss2_MU_TPM2B_DIGEST_Unmarshal, digests)
176 TPML_MARSHAL(TPML_DIGEST_VALUES, Tss2_MU_TPMT_HA_Marshal, digests, ADDR)
177 TPML_UNMARSHAL(TPML_DIGEST_VALUES, Tss2_MU_TPMT_HA_Unmarshal, digests)
/external/ms-tpm-20-ref/TPMCmd/tpm/src/command/EA/
DPolicyOR.c66 &in->pHashList.digests[i].b))) in TPM2_PolicyOR()
87 CryptDigestUpdate2B(&hashState, &in->pHashList.digests[i].b); in TPM2_PolicyOR()

12345678910