Home | History | Annotate | Download | only in keystore

Lines Matching defs:out

82 void OperationResult::writeToParcel(Parcel* out) const {
83 out->writeInt32(resultCode);
84 out->writeStrongBinder(token);
85 out->writeInt64(handle);
86 out->writeInt32(inputConsumed);
87 out->writeInt32(dataLength);
89 void* buf = out->writeInplace(dataLength);
96 outParams.writeToParcel(out);
125 void ExportResult::writeToParcel(Parcel* out) const {
126 out->writeInt32(resultCode);
127 out->writeInt32(dataLength);
129 void* buf = out->writeInplace(dataLength);
163 void KeymasterArguments::writeToParcel(Parcel* out) const {
164 out->writeInt32(params.size());
166 out->writeInt32(1);
167 writeKeymasterArgumentToParcel(param, out);
190 void KeyCharacteristics::writeToParcel(Parcel* out) const {
192 out->writeInt32(characteristics.sw_enforced.length);
194 out->writeInt32(1);
195 writeKeymasterArgumentToParcel(characteristics.sw_enforced.params[i], out);
198 out->writeInt32(0);
201 out->writeInt32(characteristics.hw_enforced.length);
203 out->writeInt32(1);
204 writeKeymasterArgumentToParcel(characteristics.hw_enforced.params[i], out);
207 out->writeInt32(0);
268 void KeymasterCertificateChain::writeToParcel(Parcel* out) const {
269 out->writeInt32(chain.entry_count);
272 out->writeInt32(chain.entries[i].data_length);
273 void* buf = out->writeInplace(chain.entries[i].data_length);
280 out->writeInt32(0); // Tell Java side this object is NULL.
286 void writeKeymasterArgumentToParcel(const keymaster_key_param_t& param, Parcel* out) {
290 out->writeInt32(param.tag);
291 out->writeInt32(param.enumerated);
296 out->writeInt32(param.tag);
297 out->writeInt32(param.integer);
302 out->writeInt32(param.tag);
303 out->writeInt64(param.long_integer);
307 out->writeInt32(param.tag);
308 out->writeInt64(param.date_time);
312 out->writeInt32(param.tag);
317 out->writeInt32(param.tag);
318 out->writeInt32(param.blob.data_length);
319 void* buf = out->writeInplace(param.blob.data_length);
334 bool readKeymasterArgumentFromParcel(const Parcel& in, keymaster_key_param_t* out) {
343 *out = keymaster_param_enum(tag, value);
349 *out = keymaster_param_int(tag, value);
355 *out = keymaster_param_long(tag, value);
360 *out = keymaster_param_date(tag, value);
364 *out = keymaster_param_bool(tag);
385 *out = keymaster_param_blob(tag, data, ulength);
504 ALOGE("out of memory allocating output array in get");
761 virtual int32_t sign(const String16& name, const uint8_t* in, size_t inLength, uint8_t** out,
780 *out = (uint8_t*) malloc(ulen);
781 if (*out != NULL) {
782 memcpy((void*) *out, outBuf, ulen);
785 ALOGE("out of memory allocating output array in sign");
846 ALOGE("out of memory allocating output array in get_pubkey");
1377 void* out = NULL;
1379 int32_t ret = get(name, uid, (uint8_t**) &out, &outSize);
1384 memcpy(buf, out, outSize);
1385 free(out);
1544 void* out = NULL;
1546 int32_t ret = sign(name, (const uint8_t*) in, (size_t) inSize, (uint8_t**) &out, &outSize);
1548 if (outSize > 0 && out != NULL) {
1551 memcpy(buf, out, outSize);
1552 delete[] reinterpret_cast<uint8_t*>(out);
1587 void* out = NULL;
1589 int32_t ret = get_pubkey(name, (unsigned char**) &out, &outSize);
1591 if (outSize > 0 && out != NULL) {
1594 memcpy(buf, out, outSize);
1595 free(out);