Lines Matching defs:value

53 /* KeyStore is a secured storage for key-value pairs. In this implementation,
54 * each file stores one key-value pair. Keys are encoded in file names, and
89 memcpy(value, orig, origLen);
97 uint8_t value[VALUE_SIZE];
105 value = new char[length + 1];
106 memcpy(value, orig->value, length);
107 value[length] = '\0';
111 delete[] value;
115 return value;
119 char* ret = value;
120 value = NULL;
125 char* value;
165 const uint8_t* in = key->value;
254 /* Here is the file format. There are two parts in blob.value, the secret and
260 * than blob.info, blob.length, and blob.value are modified by encryptBlob()
287 uint8_t value[VALUE_SIZE + AES_BLOCK_SIZE];
300 Blob(uint8_t* value, int32_t valueLength, uint8_t* info, uint8_t infoLength, BlobType type) {
302 memcpy(mBlob.value, value, valueLength);
305 memcpy(mBlob.value + valueLength, info, infoLength);
318 return mBlob.value;
326 return mBlob.value + mBlob.length;
354 // data includes the value and the value's length
359 // encrypted data includes the digest value
362 memmove(&mBlob.encrypted[encryptedLength], &mBlob.value[mBlob.length], mBlob.info);
364 memset(mBlob.value + mBlob.length, 0, digestedLength - dataLength);
431 memmove(&mBlob.value[mBlob.length], &mBlob.value[maxValueLength], mBlob.info);
660 rc = mDevice->import_keypair(mDevice, key->value, key->length, &data, &dataLength);
739 PKCS5_PBKDF2_HMAC_SHA1((char*) pw->value, pw->length, salt, saltSize, 8192, keySize, key);
831 uint8_t* tmp = pkcs8key.value;
928 * fixed and defined in a table. If the return value of an action is positive,
956 Blob keyBlob(val->value, val->length, NULL, 0, TYPE_GENERIC);
993 keyPrefix->length = decode_key(keyPrefix->value, p, strlen(p));
994 send_message(sock, keyPrefix->value, keyPrefix->length);
1210 data->value, data->length, &signedData, &signedDataLength);
1245 data->value, data->length, signature->value, signature->length);
1400 params[i].length = recv_message(sock, params[i].value, action->lengths[i]);