Home | History | Annotate | Download | only in keymaster

Lines Matching refs:resp

338     keymaster_gen_keypair_resp_t  *resp = NULL;
345 resp = (keymaster_gen_keypair_resp_t *)(handle->ion_sbuffer +
351 resp->status = KEYMASTER_FAILURE;
352 resp->key_blob_len = sizeof(qcom_km_key_blob_t);
361 QSEECOM_ALIGN(sizeof(keymaster_gen_keypair_cmd_t)), resp,
367 if ( (ret < 0) || (resp->status < 0)) {
368 ALOGE("Generate key command failed resp->status = %d ret =%d", resp->status, ret);
371 UniquePtr<unsigned char[]> keydata(new unsigned char[resp->key_blob_len]);
377 memcpy(p, (unsigned char *)(&resp->key_blob), resp->key_blob_len);
379 *keyBlobLength = resp->key_blob_len;
420 keymaster_import_keypair_resp_t *resp = NULL;
425 resp = (keymaster_import_keypair_resp_t *)(handle->ion_sbuffer +
433 resp->status = KEYMASTER_FAILURE;
434 resp->key_blob_len = sizeof(qcom_km_key_blob_t);
443 QSEECOM_ALIGN(sizeof(*send_cmd)), resp,
444 QSEECOM_ALIGN(sizeof(*resp)), &ion_fd_info);
449 if ( (ret < 0) || (resp->status < 0)) {
450 ALOGE("Import key command failed resp->status = %d ret =%d", resp->status, ret);
454 UniquePtr<unsigned char[]> keydata(new unsigned char[resp->key_blob_len]);
460 memcpy(p, (unsigned char *)(&resp->key_blob), resp->key_blob_len);
462 *keyBlobLength = resp->key_blob_len;
501 keymaster_sign_data_resp_t *resp = NULL;
522 resp = (keymaster_sign_data_resp_t *)(handle->ion_sbuffer +
532 resp->sig_len = KM_KEY_SIZE_MAX;
533 resp->status = KEYMASTER_FAILURE;
543 QSEECOM_ALIGN(sizeof(*send_cmd)), resp,
544 QSEECOM_ALIGN(sizeof(*resp)), &ion_fd_info);
549 if ( (ret < 0) || (resp->status < 0)) {
550 ALOGE("Sign data command failed resp->status = %d ret =%d", resp->status, ret);
554 UniquePtr<uint8_t> signedDataPtr(reinterpret_cast<uint8_t*>(malloc(resp->sig_len)));
561 memcpy(p, (unsigned char *)(&resp->signed_data), resp->sig_len);
563 *signedDataLength = resp->sig_len;
600 keymaster_verify_data_resp_t *resp = NULL;
622 resp = (keymaster_verify_data_resp_t *)((char *)handle->ion_sbuffer +
637 resp->status = KEYMASTER_FAILURE;
647 QSEECOM_ALIGN(sizeof(*send_cmd)), resp,
648 QSEECOM_ALIGN(sizeof(*resp)), &ion_fd_info);
653 if ( (ret < 0) || (resp->status < 0)) {
654 ALOGE("Verify data command failed resp->status = %d ret =%d", resp->status, ret);