Lines Matching defs:in
6 ** you may not use this file except in compliance with the License.
11 ** Unless required by applicable law or agreed to in writing, software
34 static keymaster_key_param_t* readParamList(const Parcel& in, size_t* length);
58 void OperationResult::readFromParcel(const Parcel& in) {
59 resultCode = in.readInt32();
60 token = in.readStrongBinder();
61 handle = static_cast<keymaster_operation_handle_t>(in.readInt64());
62 inputConsumed = in.readInt32();
63 ssize_t length = in.readInt32();
66 const void* buf = in.readInplace(length);
79 outParams.readFromParcel(in);
105 void ExportResult::readFromParcel(const Parcel& in) {
106 resultCode = in.readInt32();
107 ssize_t length = in.readInt32();
110 const void* buf = in.readInplace(length);
145 void KeymasterArguments::readFromParcel(const Parcel& in) {
146 ssize_t length = in.readInt32();
155 if (!readKeymasterArgumentFromParcel(in, ¶m)) {
179 void KeyCharacteristics::readFromParcel(const Parcel& in) {
181 keymaster_key_param_t* params = readParamList(in, &length);
185 params = readParamList(in, &length);
219 static bool readKeymasterBlob(const Parcel& in, keymaster_blob_t* blob) {
220 if (in.readInt32() != 1) {
224 ssize_t length = in.readInt32();
233 const void* buf = in.readInplace(length);
243 void KeymasterCertificateChain::readFromParcel(const Parcel& in) {
246 ssize_t count = in.readInt32();
260 if (!readKeymasterBlob(in, &chain.entries[i])) {
334 bool readKeymasterArgumentFromParcel(const Parcel& in, keymaster_key_param_t* out) {
335 if (in.readInt32() == 0) {
338 keymaster_tag_t tag = static_cast<keymaster_tag_t>(in.readInt32());
342 uint32_t value = in.readInt32();
348 uint32_t value = in.readInt32();
354 uint64_t value = in.readInt64();
359 uint64_t value = in.readInt64();
369 ssize_t length = in.readInt32();
377 const void* buf = in.readInplace(ulength);
397 * Read a byte array from in. The data at *data is still owned by the parcel
399 static void readByteArray(const Parcel& in, const uint8_t** data, size_t* length) {
400 ssize_t slength = in.readInt32();
402 *data = reinterpret_cast<const uint8_t*>(in.readInplace(slength));
414 // Read a keymaster_key_param_t* from a Parcel for use in a
417 static keymaster_key_param_t* readParamList(const Parcel& in, size_t* length) {
418 ssize_t slength = in.readInt32();
435 if (!readKeymasterArgumentFromParcel(in, &list[i])) {
447 static std::unique_ptr<keymaster_blob_t> readKeymasterBlob(const Parcel& in) {
449 if (!readKeymasterBlob(in, blob.get())) {
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,
769 memcpy(buf, in, inLength);
785 ALOGE("out of memory allocating output array in sign");
798 virtual int32_t verify(const String16& name, const uint8_t* in, size_t inLength,
808 memcpy(buf, in, inLength);
846 ALOGE("out of memory allocating output array in get_pubkey");
1395 const void* in;
1397 in = data.readInplace(inSize);
1399 in = NULL;
1404 int32_t ret = insert(name, (const uint8_t*) in, (size_t) inSize, uid, flags);
1519 const void* in;
1521 in = data.readInplace(inSize);
1523 in = NULL;
1528 int32_t ret = import(name, (const uint8_t*) in, (size_t) inSize, uid, flags);
1537 const void* in;
1539 in = data.readInplace(inSize);
1541 in = NULL;
1546 int32_t ret = sign(name, (const uint8_t*) in, (size_t) inSize, (uint8_t**) &out, &outSize);
1563 const void* in;
1565 in = data.readInplace(inSize);
1567 in = NULL;
1578 bool ret = verify(name, (const uint8_t*) in, (size_t) inSize, (const uint8_t*) sig,