Lines Matching refs:printf
60 printf("Usage: keystore_client_v2 <command> [options]\n"); in PrintUsageAndExit()
61 printf("Commands: brillo-platform-test [--prefix=<test_name_prefix>] [--test_for_0_3]\n" in PrintUsageAndExit()
89 printf(" %s\n", tag_str.c_str()); in PrintTags()
95 printf("Hardware:\n"); in PrintKeyCharacteristics()
97 printf("Software:\n"); in PrintKeyCharacteristics()
111 printf("[%s] %s\n", kBoldRedAbort, name.c_str()); in TestKey()
117 printf("[%s] %s\n", kBoldRedAbort, name.c_str()); in TestKey()
120 printf("===============================================================\n"); in TestKey()
121 printf("%s Key Characteristics:\n", name.c_str()); in TestKey()
133 printf("[%s] %s\n", in TestKey()
228 printf("%s: Testing for keymaster v0.3. " in BrilloPlatformTest()
259 printf("%s : %s\n", test_case.name.c_str(), in ListTestCases()
269 printf("Failed to read file: %s\n", filename.c_str()); in ReadFile()
279 printf("Failed to write file: %s\n", filename.c_str()); in WriteFile()
287 printf("AddEntropy: %d\n", result); in AddEntropy()
313 printf("GenerateKey: %d\n", result.getErrorCode()); in GenerateKey()
327 printf("GetCharacteristics: %d\n", result.getErrorCode()); in GetCharacteristics()
339 printf("ExportKey: %d (%zu)\n", result, data.size()); in ExportKey()
346 printf("DeleteKey: %d\n", result); in DeleteKey()
353 printf("DeleteAllKeys: %d\n", result); in DeleteAllKeys()
359 printf("DoesKeyExist: %s\n", keystore->doesKeyExist(name) ? "yes" : "no"); in DoesKeyExist()
367 printf("ListKeys failed.\n"); in List()
370 printf("Keys:\n"); in List()
372 printf(" %s\n", key_name.c_str()); in List()
398 printf("Apps with auth bound keys:\n"); in ListAppsWithKeys()
400 printf("%s\n", i->c_str()); in ListAppsWithKeys()
415 printf("Sign: BeginOperation failed: %d\n", result.getErrorCode()); in SignAndVerify()
424 printf("Sign: FinishOperation failed: %d\n", result.getErrorCode()); in SignAndVerify()
427 printf("Sign: %zu bytes.\n", output_data.size()); in SignAndVerify()
436 printf("Verify: Failed to verify signature.\n"); in SignAndVerify()
440 printf("Verify: FinishOperation failed: %d\n", result.getErrorCode()); in SignAndVerify()
443 printf("Verify: OK\n"); in SignAndVerify()
453 printf("EncryptWithAuthentication failed.\n"); in Encrypt()
466 printf("DecryptWithAuthentication failed.\n"); in Decrypt()
506 printf("error: could not connect to keystore service.\n"); in Confirmation()
511 printf("The --prompt_text parameter cannot be empty.\n"); in Confirmation()
517 printf("The --extra_data parameter does not appear to be valid hexadecimal.\n"); in Confirmation()
527 printf("Error parsing %s in --ui_options parameter as a number.\n", p.c_str()); in Confirmation()
536 printf("Error parsing %s in --cancel_after parameter as a double.\n", cancelAfter.c_str()); in Confirmation()
550 printf("Presenting confirmation prompt failed with binder status '%s'.\n", in Confirmation()
556 printf("Presenting confirmation prompt failed with response code %d.\n", responseCode); in Confirmation()
559 printf("Waiting for prompt to complete - use Ctrl+C to abort...\n"); in Confirmation()
562 printf("Sleeping %.1f seconds before canceling prompt...\n", cancelAfterValue); in Confirmation()
568 printf("Canceling confirmation prompt failed with binder status '%s'.\n", in Confirmation()
576 printf("Canceling confirmation prompt failed with response code %d.\n", in Confirmation()
587 printf("Confirmation prompt completed\n" in Confirmation()
590 printf("dataThatWasConfirmed[%zd] = {", dataThatWasConfirmed.size()); in Confirmation()
595 printf(", "); in Confirmation()
598 printf("\n "); in Confirmation()
601 printf("0x%02x", element); in Confirmation()
604 printf("}\n"); in Confirmation()