Home
last modified time | relevance | path

Searched refs:fileLength (Results 1 – 2 of 2) sorted by relevance

/system/security/keystore/
DKeyStore.cpp410 size_t fileLength = readFully(in, (uint8_t*)&mMetaData, sizeof(mMetaData)); in readMetaData() local
411 if (fileLength != sizeof(mMetaData)) { in readMetaData()
412 ALOGI("Metadata file is %zd bytes (%zd experted); upgrade?", fileLength, sizeof(mMetaData)); in readMetaData()
425 size_t fileLength = writeFully(out, (uint8_t*)&mMetaData, sizeof(mMetaData)); in writeMetaData() local
426 if (fileLength != sizeof(mMetaData)) { in writeMetaData()
427 ALOGI("Could only write %zd bytes to metadata file (%zd expected)", fileLength, in writeMetaData()
Dblob.cpp333 size_t fileLength = offsetof(blobv3, value) + dataLength + rawBlob->info; in writeBlob() local
346 writeFully(out, reinterpret_cast<uint8_t*>(rawBlob), fileLength); in writeBlob()
348 if (writtenBytes != fileLength) { in writeBlob()
349 LOG(ERROR) << "blob not fully written " << writtenBytes << " != " << fileLength; in writeBlob()
402 const size_t fileLength = readFully(in, (uint8_t*)rawBlob.get(), sizeof(blobv3)); in readBlob() local
407 if (fileLength == 0) { in readBlob()
420 if (fileLength < offsetof(blobv3, value)) { in readBlob()
421 LOG(ERROR) << __func__ << " VALUE_CORRUPTED blob file too short: " << fileLength; in readBlob()
447 const ssize_t encryptedLength = fileLength - headerLength - v2blob.info; in readBlob()
477 const ssize_t maxValueLength = fileLength - offsetof(blobv3, value) - rawBlob->info; in readBlob()