From ec9231889156fc9b5debcdb99605fe32964ebaaa Mon Sep 17 00:00:00 2001 From: Laurent Pinchart Date: Sun, 29 Mar 2020 04:48:59 +0300 Subject: libcamera: Add IPA module signing infrastructure MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Add infrastructure to generate an RSA private key and sign IPA modules. The signatures are stored in separate files with a .sign suffix. Signed-off-by: Laurent Pinchart Reviewed-by: Niklas Söderlund --- src/ipa/ipa-sign.sh | 13 +++++++++++++ 1 file changed, 13 insertions(+) create mode 100755 src/ipa/ipa-sign.sh (limited to 'src/ipa/ipa-sign.sh') 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 +# +# ipa-sign.sh - Generate a signature for an IPA module + +key="$1" +input="$2" +output="$3" + +openssl dgst -sha256 -sign "${key}" -out "${output}" "${input}" -- cgit v1.2.1