lkml.org 
[lkml]   [2016]   [Feb]   [9]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
/
From
SubjectRe: [PATCH v2] scripts/sign-file.c: Add support for signing with a raw signature
Date
Juerg Haefliger <juerg.haefliger@hpe.com> wrote:

> This patch adds support for signing a kernel module with a raw
> detached PKCS#7 signature/message.
>
> The signature is not converted and is simply appended to the module so
> it needs to be in the right format. Using openssl, a valid signature can
> be generated like this:
> $ openssl smime -sign -nocerts -noattr -binary -in <module> -inkey \
> <key> -signer <x509> -outform der -out <raw sig>
>
> The resulting raw signature from the above command is (more or less)
> identical to the raw signature that sign-file itself can produce like
> this:
> $ scripts/sign-file -d <hash algo> <key> <x509> <module>
>
> Signed-off-by: Juerg Haefliger <juerg.haefliger@hpe.com>

Looks okay. I'll apply it unless David Woodhouse has an objection.

David

\
 
 \ /
  Last update: 2016-02-09 18:01    [W:0.128 / U:3.892 seconds]
©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site