All of lore.kernel.org
 help / color / mirror / Atom feed
From: Milan Broz <mbroz@redhat.com>
To: Oscar <omtinez@gmail.com>
Cc: dm-crypt@saout.de
Subject: Re: [dm-crypt] luks in java
Date: Sat, 27 Mar 2010 08:52:03 +0100	[thread overview]
Message-ID: <4BADB923.4060505@redhat.com> (raw)
In-Reply-To: <93bd79e11003262211p1c0fdd23h35f8bb2ea884259b@mail.gmail.com>

On 03/27/2010 06:11 AM, Oscar wrote:
> hey everybody! i am currently working on a java program capable of
> reading data encrypted following the luks standard. I have read hundreds
> of pages of documentation but i am still a little lost on how should i
> begin to attack the problem. My first question is, how can i retrieve
> the luks "header" from a partition using java? is it a fixed size header
> starting from sector 0?

No, it is not. Only visible header is fixed size (starting on first sector),
but keyslot areas size depends on key size.
Read http://code.google.com/p/cryptsetup/wiki/Specification

Not sure what are you trying to do, but if it is going to be used
Linux, please use libcryptsetup shared lirary (from cryptsetup 1.1).
(So it is just about java bindings to library.)

There is already some Python bindigs for the cryptsetup btw.

If you plan to use it on Windows, check also FreeOTFE project.

Milan

  parent reply	other threads:[~2010-03-27  7:52 UTC|newest]

Thread overview: 4+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2010-03-27  5:11 [dm-crypt] luks in java Oscar
2010-03-27  7:40 ` Arno Wagner
2010-03-27  7:52 ` Milan Broz [this message]
2010-03-27 15:38   ` Oscar

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=4BADB923.4060505@redhat.com \
    --to=mbroz@redhat.com \
    --cc=dm-crypt@saout.de \
    --cc=omtinez@gmail.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 an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.