libcamera: ipa: Move key generation to utils

Move the GPLv2 utilities used for generating public and private keys to
the utilities subtree.

Signed-off-by: Kieran Bingham <kieran.bingham@ideasonboard.com>
Reviewed-by: Laurent Pinchart <laurent.pinchart@ideasonboard.com>
Reviewed-by: Paul Elder <paul.elder@ideasonboard.com>
This commit is contained in:
Kieran Bingham 2020-09-09 12:56:07 +01:00
parent 131629d3a2
commit 4af45819d0
5 changed files with 4 additions and 2 deletions

11
utils/gen-ipa-priv-key.sh Executable file
View file

@ -0,0 +1,11 @@
#!/bin/sh
# SPDX-License-Identifier: GPL-2.0-or-later
# Copyright (C) 2020, Google Inc.
#
# Author: Laurent Pinchart <laurent.pinchart@ideasonboard.com>
#
# gen-ipa-priv-key.sh - Generate an RSA private key to sign IPA modules
key="$1"
openssl genpkey -algorithm RSA -out "${key}" -pkeyopt rsa_keygen_bits:2048