From: Andreas Jellinghaus <aj@dungeon.inka.de>
To: linux-kernel@vger.kernel.org
Subject: Re: Announcing crypto suspend
Date: Tue, 21 Mar 2006 10:45:40 +0100 [thread overview]
Message-ID: <20060321094449.0760E12768C@dungeon.inka.de> (raw)
In-Reply-To: <200603201954.45572.rjw@sisk.pl>
Rafael J. Wysocki wrote:
> First, you need to generate the RSA key pair using suspend-keygen and save
> the output file as /etc/suspend.key (or something else pointed to by
> the "RSA key file =" configuration parameter of suspend). This file
> contains the public modulus (n), public exponent (e) and
> Blowfish-encrypted private exponent (d) of the RSA key pair.
>
> Then, the suspend utility will load the contents of this file, generate a
> random session key (k) and initialization vector (i) for the image
> encryption and use (n, e) to encrypt these values with RSA. The encrypted
> k, i as well as the contents of the RSA key file will be saved in the
> image header.
>
> The resume utility will read n, e and (encrypted) d as well as (encrypted)
> k, i from the image header. Then it will ask the user for a passphrase
> and will try to decrypt d using it. Next, it will use (n, e, d) to
> decrypt k, i needed for decrypting the image.
what interface will those tools use? can I replace them with my own
code, e.g. that uses smart cards instead of an encrypted public key
on a disk?
Andreas
next prev parent reply other threads:[~2006-03-21 9:44 UTC|newest]
Thread overview: 16+ messages / expand[flat|nested] mbox.gz Atom feed top
2006-03-20 8:04 Pavel Machek
2006-03-20 14:13 ` Andreas Jellinghaus
2006-03-20 18:35 ` Peter Wainwright
2006-03-20 18:44 ` Pavel Machek
2006-03-20 19:26 ` Peter Wainwright
2006-03-20 18:54 ` Rafael J. Wysocki
2006-03-20 19:11 ` Alon Bar-Lev
2006-03-20 20:26 ` Rafael J. Wysocki
2006-03-20 20:35 ` Pavel Machek
2006-03-20 21:22 ` Rafael J. Wysocki
2006-03-20 21:34 ` Pavel Machek
2006-03-20 22:05 ` Alon Bar-Lev
2006-03-20 22:18 ` Pavel Machek
2006-03-20 22:24 ` Andreas Happe
2006-03-21 9:45 ` Andreas Jellinghaus [this message]
2006-03-21 20:50 ` Pavel Machek
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=20060321094449.0760E12768C@dungeon.inka.de \
--to=aj@dungeon.inka.de \
--cc=linux-kernel@vger.kernel.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
all inboxes | Powered by JetHome®