Lines Matching refs:index
83 bool Tpm2NvramImpl::DefineNvram(uint32_t index, size_t length) {
88 index, length, trunks_session_->GetDelegate());
96 bool Tpm2NvramImpl::DestroyNvram(uint32_t index) {
101 index, trunks_session_->GetDelegate());
109 bool Tpm2NvramImpl::WriteNvram(uint32_t index, const std::string& data) {
113 TPM_RC result = trunks_utility_->WriteNVSpace(index,
121 result = trunks_utility_->LockNVSpace(index, trunks_session_->GetDelegate());
129 bool Tpm2NvramImpl::ReadNvram(uint32_t index, std::string* data) {
134 if (!GetNvramSize(index, &nvram_size)) {
139 TPM_RC result = trunks_utility_->ReadNVSpace(index,
151 bool Tpm2NvramImpl::IsNvramDefined(uint32_t index, bool* defined) {
153 TPM_RC result = trunks_utility_->GetNVSpacePublicArea(index, &nvram_public);
159 LOG(ERROR) << "Error reading NV space for index " << index
166 bool Tpm2NvramImpl::IsNvramLocked(uint32_t index, bool* locked) {
168 TPM_RC result = trunks_utility_->GetNVSpacePublicArea(index, &nvram_public);
170 LOG(ERROR) << "Error reading NV space for index " << index
178 bool Tpm2NvramImpl::GetNvramSize(uint32_t index, size_t* size) {
180 TPM_RC result = trunks_utility_->GetNVSpacePublicArea(index, &nvram_public);
182 LOG(ERROR) << "Error reading NV space for index " << index