Home
last modified time | relevance | path

Searched refs:pcr (Results 1 – 25 of 64) sorted by relevance

123

/external/ms-tpm-20-ref/TPMCmd/tpm/src/subsystem/
DPCR.c310 UINT32 pcr, // IN: The number of the PCR in PcrIsAllocated() argument
317 if(pcr < IMPLEMENTATION_PCR) in PcrIsAllocated()
323 if(((gp.pcrAllocated.pcrSelections[i].pcrSelect[pcr / 8]) in PcrIsAllocated()
324 & (1 << (pcr % 8))) != 0) in PcrIsAllocated()
348 static BYTE *pcr = NULL; in GetPcrPointer() local
357 pcr = s_pcrs[pcrNumber].Hash##Pcr; \ in GetPcrPointer()
367 return pcr; in GetPcrPointer()
379 UINT32 pcr, // IN: The number of the PCR in IsPcrSelected() argument
384 selected = (pcr < IMPLEMENTATION_PCR in IsPcrSelected()
385 && ((selection->pcrSelect[pcr / 8]) & (1 << (pcr % 8))) != 0); in IsPcrSelected()
[all …]
/external/ltp/testcases/kernel/security/integrity/ima/src/
Dima_boot_aggregate.c41 static void display_sha1_digest(unsigned char *pcr) in display_sha1_digest() argument
46 printf("%02x", *(pcr + i) & 0xff); in display_sha1_digest()
55 u_int32_t pcr; in main() member
64 } pcr[NUM_PCRS]; in main() local
82 memset(&pcr[i].digest, 0, SHA_DIGEST_LENGTH); in main()
93 printf("%03u ", event.header.pcr); in main()
97 if (event.header.pcr < NUM_PCRS) { in main()
99 SHA1_Update(&c, pcr[event.header.pcr].digest, in main()
103 SHA1_Final(pcr[event.header.pcr].digest, &c); in main()
123 display_sha1_digest(pcr[i].digest); in main()
[all …]
/external/vboot_reference/futility/
Dcmd_pcr.c103 uint8_t pcr[SHA256_DIGEST_SIZE]; in do_pcr() local
149 memset(pcr, 0, sizeof(pcr)); in do_pcr()
152 parse_digest_or_die(pcr, digest_size, argv[optind]); in do_pcr()
157 print_digest(pcr, digest_size); in do_pcr()
161 memcpy(accum, pcr, sizeof(pcr)); in do_pcr()
173 memcpy(pcr, digest, digest_size); in do_pcr()
177 print_digest(pcr, digest_size); in do_pcr()
184 DECLARE_FUTIL_COMMAND(pcr, do_pcr,
/external/arm-trusted-firmware/drivers/st/fmc/
Dstm32_fmc2_nand.c169 uint32_t pcr, pmem, patt; in stm32_fmc2_nand_setup_timing() local
317 pcr = mmio_read_32(fmc2_base() + FMC2_PCR); in stm32_fmc2_nand_setup_timing()
318 pcr &= ~FMC2_PCR_TCLR_MASK; in stm32_fmc2_nand_setup_timing()
319 pcr |= FMC2_PCR_TCLR(tims.tclr); in stm32_fmc2_nand_setup_timing()
320 pcr &= ~FMC2_PCR_TAR_MASK; in stm32_fmc2_nand_setup_timing()
321 pcr |= FMC2_PCR_TAR(tims.tar); in stm32_fmc2_nand_setup_timing()
335 mmio_write_32(fmc2_base() + FMC2_PCR, pcr); in stm32_fmc2_nand_setup_timing()
672 uint32_t pcr = mmio_read_32(fmc2_base() + FMC2_PCR); in stm32_fmc2_ctrl_init() local
676 pcr |= FMC2_PCR_PWAITEN; in stm32_fmc2_ctrl_init()
677 pcr |= FMC2_PCR_PBKEN; in stm32_fmc2_ctrl_init()
[all …]
/external/llvm-project/llvm/test/CodeGen/Hexagon/
Dcirc_new.ll91 %0 = tail call { i32, i8* } @llvm.hexagon.L2.loadrub.pcr(i8* %start, i32 %mod, i8* %start)
97 declare { i32, i8* } @llvm.hexagon.L2.loadrub.pcr(i8*, i32, i8* nocapture) #1
105 %0 = tail call { i32, i8* } @llvm.hexagon.L2.loadrb.pcr(i8* %start, i32 %mod, i8* %start)
111 declare { i32, i8* } @llvm.hexagon.L2.loadrb.pcr(i8*, i32, i8* nocapture) #1
119 %0 = tail call { i32, i8* } @llvm.hexagon.L2.loadruh.pcr(i8* %start, i32 %mod, i8* %start)
125 declare { i32, i8* } @llvm.hexagon.L2.loadruh.pcr(i8*, i32, i8* nocapture) #1
133 %0 = tail call { i32, i8* } @llvm.hexagon.L2.loadrh.pcr(i8* %start, i32 %mod, i8* %start)
139 declare { i32, i8* } @llvm.hexagon.L2.loadrh.pcr(i8*, i32, i8* nocapture) #1
147 %0 = tail call { i32, i8* } @llvm.hexagon.L2.loadri.pcr(i8* %start, i32 %mod, i8* %start)
152 declare { i32, i8* } @llvm.hexagon.L2.loadri.pcr(i8*, i32, i8* nocapture) #1
[all …]
Dcirc_pcr_assert.ll14 %v0 = tail call { i32, i8* } @llvm.hexagon.L2.loadrub.pcr(i8* %a0, i32 -268430336, i8* %a0)
21 declare { i32, i8* } @llvm.hexagon.L2.loadrub.pcr(i8*, i32, i8* nocapture) #1
27 %v1 = tail call i8* @llvm.hexagon.S2.storerb.pcr(i8* %a0, i32 -268430336, i32 %v0, i8* %a0)
32 declare i8* @llvm.hexagon.S2.storerb.pcr(i8*, i32, i32, i8* nocapture) #1
/external/tpm2-tss/src/tss2-fapi/api/
DFapi_PcrExtend.c61 uint32_t pcr, in Fapi_PcrExtend() argument
88 r = Fapi_PcrExtend_Async(context, pcr, data, dataSize, logData); in Fapi_PcrExtend()
143 uint32_t pcr, in Fapi_PcrExtend_Async() argument
149 LOG_TRACE("pcr: %u", pcr); in Fapi_PcrExtend_Async()
164 IFAPI_PCR * command = &context->cmd.pcr; in Fapi_PcrExtend_Async()
180 command->pcrIndex = pcr; in Fapi_PcrExtend_Async()
240 IFAPI_PCR * command = &context->cmd.pcr; in Fapi_PcrExtend_Finish()
281 pcrEvent->pcr = command->pcrIndex; in Fapi_PcrExtend_Finish()
DFapi_VerifyQuote.c179 IFAPI_PCR * command = &context->cmd.pcr; in Fapi_VerifyQuote_Async()
258 IFAPI_PCR * command = &context->cmd.pcr; in Fapi_VerifyQuote_Finish()
292 command->event_list = json_tokener_parse(context->cmd.pcr.logData); in Fapi_VerifyQuote_Finish()
DFapi_PcrRead.c148 IFAPI_PCR * command = &context->cmd.pcr; in Fapi_PcrRead_Async()
216 IFAPI_PCR * command = &context->cmd.pcr; in Fapi_PcrRead_Finish()
/external/bouncycastle/bcprov/src/main/java/org/bouncycastle/crypto/engines/
DDESEngine.java314 pcr = new boolean[56]; in generateWorkingKey()
344 pcr[j] = pc1m[l]; in generateWorkingKey()
348 pcr[j] = pc1m[l - 28]; in generateWorkingKey()
357 pcr[j] = pc1m[l]; in generateWorkingKey()
361 pcr[j] = pc1m[l - 28]; in generateWorkingKey()
367 if (pcr[pc2[j]]) in generateWorkingKey()
372 if (pcr[pc2[j + 24]]) in generateWorkingKey()
/external/bouncycastle/repackaged_platform/bcprov/src/main/java/com/android/internal/org/bouncycastle/crypto/engines/
DDESEngine.java316 pcr = new boolean[56]; in generateWorkingKey()
346 pcr[j] = pc1m[l]; in generateWorkingKey()
350 pcr[j] = pc1m[l - 28]; in generateWorkingKey()
359 pcr[j] = pc1m[l]; in generateWorkingKey()
363 pcr[j] = pc1m[l - 28]; in generateWorkingKey()
369 if (pcr[pc2[j]]) in generateWorkingKey()
374 if (pcr[pc2[j + 24]]) in generateWorkingKey()
/external/bouncycastle/repackaged/bcprov/src/main/java/com/android/org/bouncycastle/crypto/engines/
DDESEngine.java316 pcr = new boolean[56]; in generateWorkingKey()
346 pcr[j] = pc1m[l]; in generateWorkingKey()
350 pcr[j] = pc1m[l - 28]; in generateWorkingKey()
359 pcr[j] = pc1m[l]; in generateWorkingKey()
363 pcr[j] = pc1m[l - 28]; in generateWorkingKey()
369 if (pcr[pc2[j]]) in generateWorkingKey()
374 if (pcr[pc2[j + 24]]) in generateWorkingKey()
/external/ltp/testcases/kernel/security/integrity/ima/tests/
Dima_tpm.sh53 local pcr hash aggregate_pcr
63 pcr="$(echo $line | cut -d':' -f1)"
64 if [ "${pcr}" = "PCR-10" ]; then
/external/wpa_supplicant_8/src/crypto/
Ddes-internal.c276 u8 pc1m[56], pcr[56]; in deskey() local
295 pcr[j] = pc1m[l]; in deskey()
297 pcr[j] = pc1m[l - 28]; in deskey()
302 pcr[j] = pc1m[l]; in deskey()
304 pcr[j] = pc1m[l - 28]; in deskey()
307 if ((int) pcr[(int) pc2[j]] != 0) in deskey()
309 if ((int) pcr[(int) pc2[j + 24]] != 0) in deskey()
/external/tpm2-tss/src/tss2-fapi/
Difapi_policy_callbacks.c297 size_t i, pcr, n_pcrs = 0, i_pcr; in ifapi_read_pcr() local
310 for (pcr = 0; pcr < TPM2_MAX_PCRS; pcr++) { in ifapi_read_pcr()
311 uint8_t byte_idx = pcr / 8; in ifapi_read_pcr()
312 uint8_t flag = 1 << (pcr % 8); in ifapi_read_pcr()
353 for (pcr = 0; pcr < TPM2_MAX_PCRS; pcr++) { in ifapi_read_pcr()
354 uint8_t byte_idx = pcr / 8; in ifapi_read_pcr()
355 uint8_t flag = 1 << (pcr % 8); in ifapi_read_pcr()
368 for (pcr = 0; pcr < TPM2_MAX_PCRS; pcr++) { in ifapi_read_pcr()
369 uint8_t byte_idx = pcr / 8; in ifapi_read_pcr()
370 uint8_t flag = 1 << (pcr % 8); in ifapi_read_pcr()
[all …]
Difapi_helpers.c1957 TPM2_HANDLE pcr; in ifapi_calculate_pcr_digest() member
1960 size_t i, pcr, i_evt, hash_size, n_pcrs = 0, n_events = 0; in ifapi_calculate_pcr_digest() local
1989 for (pcr = 0; pcr < TPM2_MAX_PCRS; pcr++) { in ifapi_calculate_pcr_digest()
1990 uint8_t byte_idx = pcr / 8; in ifapi_calculate_pcr_digest()
1991 uint8_t flag = 1 << (pcr % 8); in ifapi_calculate_pcr_digest()
1994 pcrs[n_pcrs].pcr = pcr; in ifapi_calculate_pcr_digest()
2013 goto_if_error2(r, "Extending vpcr %"PRIu32, error_cleanup, pcrs[i].pcr); in ifapi_calculate_pcr_digest()
2191 UINT32 pcr; in ifapi_compute_policy_digest() local
2215 UINT32 pcrIndex = pcrs->pcrs[i].pcr; in ifapi_compute_policy_digest()
2241 for (pcr = 0; pcr < max_pcr; pcr++) { in ifapi_compute_policy_digest()
[all …]
Difapi_eventlog.h45 TPM2_HANDLE pcr; /**< PCR register */ member
Difapi_eventlog.c240 eventlog->log_dir, IFAPI_PCR_LOG_FILE, event->pcr); in ifapi_eventlog_append_async()
330 eventlog->log_dir, IFAPI_PCR_LOG_FILE, eventlog->event.pcr); in ifapi_eventlog_append_finish()
/external/kernel-headers/original/uapi/linux/
Datmsvc.h52 #define SELECT_TOP_PCR(tp) ((tp).pcr ? (tp).pcr : \
/external/mesa3d/src/gallium/frontends/wgl/
Dstw_wgl.c354 CONST COLORREF *pcr ) in wglSetLayerPaletteEntries() argument
356 return DrvSetLayerPaletteEntries(hdc, iLayerPlane, iStart, cEntries, pcr); in wglSetLayerPaletteEntries()
365 COLORREF *pcr ) in wglGetLayerPaletteEntries() argument
367 return DrvGetLayerPaletteEntries(hdc, iLayerPlane, iStart, cEntries, pcr); in wglGetLayerPaletteEntries()
/external/eigen/demos/mandelbrot/
Dmandelbrot.cpp61 Packet pcr, pci = pci_start, pzr, pzi = pzi_start, pzr_buf; in render() local
62 for(int i = 0; i < packetSize; i++) pzr[i] = pcr[i] = start.x() + (x+i) * step.x(); in render()
78 pzr += pcr; \ in render()
/external/ppp/pppd/plugins/pppoatm/
Dtext2qos.c98 if (a) a->pcr = value; in params()
99 if (b) b->pcr = value; in params()
/external/arm-trusted-firmware/include/lib/cpus/aarch32/
Dcortex_a9.h30 DEFINE_COPROCR_RW_FUNCS(pcr, PCR)
/external/tpm2-tss/test/integration/
Dmain-fapi.c34 pcr_reset(FAPI_CONTEXT *context, UINT32 pcr) in pcr_reset() argument
46 r = Esys_PCR_Reset(esys, pcr, in pcr_reset()
Dtest-fapi.h24 pcr_reset(FAPI_CONTEXT *context, UINT32 pcr);

123