Searched refs:bytes_to_hold (Results 1 – 2 of 2) sorted by relevance
215 UINT16 bytes_to_hold = (idx / 8) + 1; in obj_pcrs_set_value() local224 bytes_to_hold = (bytes_to_hold < 2) ? 2 : bytes_to_hold; in obj_pcrs_set_value()229 bytes_to_hold = (bytes_to_hold < 3) ? 3 : bytes_to_hold; in obj_pcrs_set_value()234 bytes_to_hold = (bytes_to_hold < 3) ? 3 : bytes_to_hold; in obj_pcrs_set_value()247 if ((select->pcrSelect = malloc(bytes_to_hold)) == NULL) { in obj_pcrs_set_value()248 LogError("malloc of %d bytes failed.", bytes_to_hold); in obj_pcrs_set_value()252 select->sizeOfSelect = bytes_to_hold; in obj_pcrs_set_value()253 __tspi_memset(select->pcrSelect, 0, bytes_to_hold); in obj_pcrs_set_value()256 if ((pcrs->pcrs = malloc(bytes_to_hold * 8 * in obj_pcrs_set_value()259 bytes_to_hold * 8 * TCPA_SHA1_160_HASH_LEN); in obj_pcrs_set_value()[all …]
101 UINT16 num_pcrs, bytes_to_hold; in pcrs_sanity_check_selection() local106 bytes_to_hold = num_pcrs / 8; in pcrs_sanity_check_selection()113 if (bytes_to_hold > select->sizeOfSelect) { in pcrs_sanity_check_selection()114 if ((select->pcrSelect = realloc(select->pcrSelect, bytes_to_hold)) == NULL) { in pcrs_sanity_check_selection()115 LogError("malloc of %hu bytes failed.", bytes_to_hold); in pcrs_sanity_check_selection()120 bytes_to_hold - select->sizeOfSelect); in pcrs_sanity_check_selection()121 select->sizeOfSelect = bytes_to_hold; in pcrs_sanity_check_selection()125 … (bytes_to_hold * 8) * TPM_SHA1_160_HASH_LEN)) == NULL) { in pcrs_sanity_check_selection()127 (bytes_to_hold * 8) * TPM_SHA1_160_HASH_LEN); in pcrs_sanity_check_selection()