Home | History | Annotate | Download | only in keystore

Lines Matching full:blob

26 #include "blob.h"
31 Blob::Blob(const uint8_t* value, size_t valueLength, const uint8_t* info, uint8_t infoLength,
36 ALOGW("Provided blob length too large");
58 Blob::Blob(blob b) {
62 Blob::Blob() {
66 bool Blob::isEncrypted() const {
74 bool Blob::isSuperEncrypted() const {
78 bool Blob::isCriticalToDeviceEncryption() const {
86 void Blob::setEncrypted(bool encrypted) {
90 void Blob::setSuperEncrypted(bool superEncrypted) {
94 void Blob::setCriticalToDeviceEncryption(bool critical) {
98 void Blob::setFallback(bool fallback) {
106 ResponseCode Blob::writeBlob(const char* filename, AES_KEY* aes_key, State state,
108 ALOGV("writing blob %s", filename);
111 ALOGD("couldn't insert encrypted blob while not unlocked");
158 ALOGW("blob not fully written %zu != %zu", writtenBytes, fileLength);
163 ALOGW("could not rename blob to %s: %s", filename, strerror(errno));
169 ResponseCode Blob::readBlob(const char* filename, AES_KEY* aes_key, State state) {
170 ALOGV("reading blob %s", filename);