Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(282)

Unified Diff: src/platform/vboot_reference/utils/sign_data.sh

Issue 578025: Refactor code from test/ to utils/ since they are not just used by tests. (Closed)
Patch Set: Fix nits. Created 10 years, 10 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « src/platform/vboot_reference/utils/Makefile ('k') | src/platform/vboot_reference/utils/signature_digest.c » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: src/platform/vboot_reference/utils/sign_data.sh
diff --git a/src/platform/vboot_reference/utils/sign_data.sh b/src/platform/vboot_reference/utils/sign_data.sh
new file mode 100755
index 0000000000000000000000000000000000000000..bd9e1be2455201b1e4fa4b3de9bd7bcdbbf3bfc4
--- /dev/null
+++ b/src/platform/vboot_reference/utils/sign_data.sh
@@ -0,0 +1,13 @@
+#!/bin/bash
+
+# Copyright (c) 2010 The Chromium OS Authors. All rights reserved.
+# Use of this source code is governed by a BSD-style license that can be
+# found in the LICENSE file.
+
+if [ $# -ne 3 ]
+then
+ echo "Usage: `basename $0` <algorithm> <key file> <input file>"
+ exit -1
+fi
+
+./signature_digest $1 $3 | openssl rsautl -sign -pkcs -inkey $2
« no previous file with comments | « src/platform/vboot_reference/utils/Makefile ('k') | src/platform/vboot_reference/utils/signature_digest.c » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698