summaryrefslogtreecommitdiff
path: root/src/ipa/ipa-sign.sh
diff options
context:
space:
mode:
Diffstat (limited to 'src/ipa/ipa-sign.sh')
-rwxr-xr-xsrc/ipa/ipa-sign.sh13
1 files changed, 13 insertions, 0 deletions
diff --git a/src/ipa/ipa-sign.sh b/src/ipa/ipa-sign.sh
new file mode 100755
index 00000000..8673dad1
--- /dev/null
+++ b/src/ipa/ipa-sign.sh
@@ -0,0 +1,13 @@
+#!/bin/sh
+# SPDX-License-Identifier: GPL-2.0-or-later
+# Copyright (C) 2020, Google Inc.
+#
+# Author: Laurent Pinchart <laurent.pinchart@ideasonboard.com>
+#
+# ipa-sign.sh - Generate a signature for an IPA module
+
+key="$1"
+input="$2"
+output="$3"
+
+openssl dgst -sha256 -sign "${key}" -out "${output}" "${input}"