From: Stephen Warren <swarren-3lzwWm7+Weoh9ZMKESR00Q@public.gmane.org>
To: Jimmy Zhang <jimmzhang-DDmLM1+adcrQT0dZR+AlfA@public.gmane.org>
Cc: Allen Martin <AMartin-DDmLM1+adcrQT0dZR+AlfA@public.gmane.org>,
Stephen Warren <swarren-DDmLM1+adcrQT0dZR+AlfA@public.gmane.org>,
"linux-tegra-u79uwXL29TY76Z2rM5mHXA@public.gmane.org"
<linux-tegra-u79uwXL29TY76Z2rM5mHXA@public.gmane.org>
Subject: Re: [cbootimage PATCH v3 5/5] Add two sample scripts to do rsa signing for T210 bootimage
Date: Thu, 8 Oct 2015 20:09:16 -0600 [thread overview]
Message-ID: <561721CC.9030307@wwwdotorg.org> (raw)
In-Reply-To: <797766912b984b9d840369e86e7b2637-wO81nVYWzR7YuxH7O460wFaTQe2KTcn/@public.gmane.org>
On 10/08/2015 08:00 PM, Jimmy Zhang wrote:
> Stephen Warren wrote at Thursday, October 08, 2015 1:58 PM:
>> On 10/08/2015 01:38 PM, Jimmy Zhang wrote:
>>> sign.sh runs openssl and other linux utilities to generate rsa-pss
>>> signatures for a prebuilt bootimage and inject signatures and rsa
>>> modulus into bct directly.
>>>
>>> Syntax: sign.sh <bootimage> <rsa_key.pem>
>>>
>>> sign-by-update.sh is similar to sign.sh. The difference is the
>>> signatures update are done by cbootimage with configuration keywords
>>> "RsaKeyModulusFile", "RsaPssSigBlFile", and "RsaPssSigBctFile".
>>> Comparing to sign.sh, this script is relatively simple to be ported to
>>> T124/T114.
>>>
>>> Syntax: sign-by-update.sh <bootimage> <rsa_key.pem>
>>> diff --git a/sign-by-update.sh b/sign-by-update.sh
>>
>> Let's put these example files in an examples directory or something like that.
>>
>> Should we update the Makefile to install the examples into some doc
>> directory?
>
> I am not sure how to change Makefile.
I'm sure Allen can give you an example quickly, although just having the
files in the source distribution (in a sub-dir) is probably fine for now.
>>> +$DD bs=1 if=$KEY_FILE.mod of=$KEY_FILE.mod.tmp skip=8 count=512
>>
>> I'd suggest using cut for that in case the prefix changes; `cut -d= f2`.
>
> Not sure how to use 'cut'. Instead, will use 'sed'
You can can just use the cut command I gave, this maps to this as the
entire replacement for dd:
cut -d= -f2 < $KEY_FILE.mod > $KEY_FILE.mod.tmp
next prev parent reply other threads:[~2015-10-09 2:09 UTC|newest]
Thread overview: 18+ messages / expand[flat|nested] mbox.gz Atom feed top
2015-10-08 19:38 [cbootimage PATCH v3 0/5] Add RSA signing support Jimmy Zhang
[not found] ` <1444333109-3671-1-git-send-email-jimmzhang-DDmLM1+adcrQT0dZR+AlfA@public.gmane.org>
2015-10-08 19:38 ` [cbootimage PATCH v3 1/5] Enable -u | --update option support for t210 Jimmy Zhang
[not found] ` <1444333109-3671-2-git-send-email-jimmzhang-DDmLM1+adcrQT0dZR+AlfA@public.gmane.org>
2015-10-08 20:34 ` Stephen Warren
2015-10-08 19:38 ` [cbootimage PATCH v3 2/5] Add support for update pubkey and rsa-pss signatures Jimmy Zhang
2015-10-08 19:38 ` [cbootimage PATCH v3 3/5] Add support to dump rsa related fields for t210 Jimmy Zhang
[not found] ` <1444333109-3671-4-git-send-email-jimmzhang-DDmLM1+adcrQT0dZR+AlfA@public.gmane.org>
2015-10-08 20:42 ` Stephen Warren
2015-10-08 19:38 ` [cbootimage PATCH v3 4/5] Add new configuration keyword "RehashBl" Jimmy Zhang
[not found] ` <1444333109-3671-5-git-send-email-jimmzhang-DDmLM1+adcrQT0dZR+AlfA@public.gmane.org>
2015-10-08 20:45 ` Stephen Warren
2015-10-08 19:38 ` [cbootimage PATCH v3 5/5] Add sample shell script to sign bootimage for T210 Jimmy Zhang
[not found] ` <1444333109-3671-6-git-send-email-jimmzhang-DDmLM1+adcrQT0dZR+AlfA@public.gmane.org>
2015-10-08 19:42 ` Jimmy Zhang
2015-10-08 19:38 ` [cbootimage PATCH v3 5/5] Add two sample scripts to do rsa signing for T210 bootimage Jimmy Zhang
[not found] ` <1444333109-3671-7-git-send-email-jimmzhang-DDmLM1+adcrQT0dZR+AlfA@public.gmane.org>
2015-10-08 20:57 ` Stephen Warren
[not found] ` <5616D8CA.2040209-3lzwWm7+Weoh9ZMKESR00Q@public.gmane.org>
2015-10-09 2:00 ` Jimmy Zhang
[not found] ` <797766912b984b9d840369e86e7b2637-wO81nVYWzR7YuxH7O460wFaTQe2KTcn/@public.gmane.org>
2015-10-09 2:09 ` Stephen Warren [this message]
[not found] ` <561721CC.9030307-3lzwWm7+Weoh9ZMKESR00Q@public.gmane.org>
2015-10-09 17:11 ` Jimmy Zhang
[not found] ` <4666228153ed418ab535fe9011c1ff67-wO81nVYWzR7YuxH7O460wFaTQe2KTcn/@public.gmane.org>
2015-10-09 18:28 ` Stephen Warren
2015-10-09 20:51 ` Allen Martin
2015-10-08 20:34 ` [cbootimage PATCH v3 0/5] Add RSA signing support Stephen Warren
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=561721CC.9030307@wwwdotorg.org \
--to=swarren-3lzwwm7+weoh9zmkesr00q@public.gmane.org \
--cc=AMartin-DDmLM1+adcrQT0dZR+AlfA@public.gmane.org \
--cc=jimmzhang-DDmLM1+adcrQT0dZR+AlfA@public.gmane.org \
--cc=linux-tegra-u79uwXL29TY76Z2rM5mHXA@public.gmane.org \
--cc=swarren-DDmLM1+adcrQT0dZR+AlfA@public.gmane.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).