Home | History | Annotate | Download | only in keystore

Lines Matching full:blob

175             Blob blob;
176 ResponseCode rc = get(filename, &blob, ::TYPE_ANY, userId);
191 shouldDelete = blob.isEncrypted();
259 ResponseCode KeyStore::get(const char* filename, Blob* keyBlob, const BlobType type, uid_t userId) {
270 * it must be read it again since the blob is encrypted each time
310 ResponseCode KeyStore::put(const char* filename, Blob* keyBlob, uid_t userId) {
317 Blob keyBlob;
470 hidl_vec<uint8_t> blob;
477 blob = keyBlob;
489 Blob keyBlob(&blob[0], blob.size(), NULL, 0, TYPE_KEYMASTER_10);
518 ResponseCode KeyStore::getKeyForName(Blob* keyBlob, const android::String8& keyName,
609 bool KeyStore::upgradeBlob(const char* filename, Blob* blob, const uint8_t oldVersion,
618 blob->setType(type);
620 importBlobAsKey(blob, filename, uid);
630 blob->setEncrypted(true);
636 * If we've updated, set the key blob to the right version
641 blob->setVersion(version);
652 ResponseCode KeyStore::importBlobAsKey(Blob* blob, const char* filename, uid_t uid) {
653 // We won't even write to the blob directly with this BIO, so const_cast is okay.
654 Unique_BIO b(BIO_new_mem_buf(const_cast<uint8_t*>(blob->getValue()), blob->getLength()));
681 blob->isEncrypted() ? KEYSTORE_FLAG_ENCRYPTED : KEYSTORE_FLAG_NONE);
686 return get(filename, blob, TYPE_KEY_PAIR, uid);
776 ALOGW("couldn't rename blob: %s: %s", file->d_name, strerror(errno));