linux-fsdevel.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
From: Phillip Susi <psusi@cfl.rr.com>
To: Michael Halcrow <mhalcrow@us.ibm.com>
Cc: akpm@osdl.org, phillip@hellewell.homeip.net,
	linux-kernel@vger.kernel.org, linux-fsdevel@vger.kernel.org,
	viro@ftp.linux.org.uk, mike@halcrow.us, mcthomps@us.ibm.com,
	yoder1@us.ibm.com, toml@us.ibm.com, emilyr@us.ibm.com,
	daw@cs.berk
Subject: Re: eCryptfs Design Document
Date: Sat, 25 Mar 2006 14:28:21 -0500	[thread overview]
Message-ID: <442599D5.806@cfl.rr.com> (raw)
In-Reply-To: <20060324222517.GA13688@us.ibm.com>

Michael Halcrow wrote:
> * A mount-wide passphrase is stored in the user session 
>   keyring in the form of an authentication token.

I'm a bit confused because you appear to be contradicting yourself.  You 
say several times that a mount-wide passphrase is used for the master 
key.  If that is the case, then it would be given at mount time and be 
bound to the super block.  You also then say that the master key is 
stored in the kernel keyring.  If that is the case, then you don't have 
to know the key at mount time, rather the key is associated with a given 
process or group of processes and will be required when such a process 
attempts to open a file on that mount point.  This would also allow 
different users to use different keys.


So which is it?  Is the master key bound to the superblock, or to the 
session keyring?  Or am I just confused about the meaning of the kernel 
keyring?

> passphrase into a key follows the S2K process as described in RFC
> 2440, in that the passphrase is concatenated with a salt; that data
> block is then iteratively MD5-hashed 65,536 times to generate the key
> that encrypts the file encryption key.


Are you saying that you salt the passphrase, hash that, then hash the 
hash, then hash that hash, and so on?  What good does repeatedly hashing 
the hash do?  Simply hashing the salted passphrase should be sufficient 
to obtain a key.



  parent reply	other threads:[~2006-03-25 19:29 UTC|newest]

Thread overview: 18+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2006-03-24 22:25 eCryptfs Design Document Michael Halcrow
2006-03-24 23:12 ` James Morris
2006-03-27 16:17   ` Michael Thompson
2006-03-27 16:52   ` Michael Halcrow
2006-03-24 23:49 ` Andrew Morton
2006-03-25  0:13   ` Michael Halcrow
2006-03-25  0:33     ` Andrew Morton
2006-03-25  7:38       ` Miklos Szeredi
2006-03-27 23:31       ` Michael Halcrow
2006-03-28 16:00         ` Stephen C. Tweedie
2006-03-29 20:14           ` Michael Halcrow
2006-03-25 19:28 ` Phillip Susi [this message]
2006-03-25 19:50   ` Michael Halcrow
2006-03-26 17:10     ` Phillip Susi
2006-03-26 18:04       ` Michael Halcrow
2006-03-27  0:05         ` Phillip Hellewell
2006-03-27  2:53           ` Phillip Susi
2006-03-27 16:10             ` Michael Thompson

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=442599D5.806@cfl.rr.com \
    --to=psusi@cfl.rr.com \
    --cc=akpm@osdl.org \
    --cc=daw@cs.berk \
    --cc=emilyr@us.ibm.com \
    --cc=linux-fsdevel@vger.kernel.org \
    --cc=linux-kernel@vger.kernel.org \
    --cc=mcthomps@us.ibm.com \
    --cc=mhalcrow@us.ibm.com \
    --cc=mike@halcrow.us \
    --cc=phillip@hellewell.homeip.net \
    --cc=toml@us.ibm.com \
    --cc=viro@ftp.linux.org.uk \
    --cc=yoder1@us.ibm.com \
    /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).