Home
last modified time | relevance | path

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

/system/security/keystore/
Dblob.cpp33 memset(&mBlob, 0, sizeof(mBlob)); in Blob()
42 mBlob.length = valueLength; in Blob()
43 memcpy(mBlob.value, value, valueLength); in Blob()
45 mBlob.info = infoLength; in Blob()
46 memcpy(mBlob.value + valueLength, info, infoLength); in Blob()
48 mBlob.version = CURRENT_BLOB_VERSION; in Blob()
49 mBlob.type = uint8_t(type); in Blob()
52 mBlob.flags = KEYSTORE_FLAG_ENCRYPTED; in Blob()
54 mBlob.flags = KEYSTORE_FLAG_NONE; in Blob()
59 mBlob = b; in Blob()
[all …]
Dblob.h85 const uint8_t* getValue() const { return mBlob.value; } in getValue()
87 int32_t getLength() const { return mBlob.length; } in getLength()
89 const uint8_t* getInfo() const { return mBlob.value + mBlob.length; } in getInfo()
90 uint8_t getInfoLength() const { return mBlob.info; } in getInfoLength()
92 uint8_t getVersion() const { return mBlob.version; } in getVersion()
97 bool isFallback() const { return mBlob.flags & KEYSTORE_FLAG_FALLBACK; } in isFallback()
100 void setVersion(uint8_t version) { mBlob.version = version; } in setVersion()
101 BlobType getType() const { return BlobType(mBlob.type); } in getType()
102 void setType(BlobType type) { mBlob.type = uint8_t(type); } in setType()
108 struct blob mBlob; variable