All of lore.kernel.org
 help / color / mirror / Atom feed
* [dm-crypt] luks in java
@ 2010-03-27  5:11 Oscar
  2010-03-27  7:40 ` Arno Wagner
  2010-03-27  7:52 ` Milan Broz
  0 siblings, 2 replies; 4+ messages in thread
From: Oscar @ 2010-03-27  5:11 UTC (permalink / raw)
  To: dm-crypt

[-- Attachment #1: Type: text/plain, Size: 411 bytes --]

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?

thank you for your time,

oscar

[-- Attachment #2: Type: text/html, Size: 442 bytes --]

^ permalink raw reply	[flat|nested] 4+ messages in thread

* Re: [dm-crypt] luks in java
  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
  1 sibling, 0 replies; 4+ messages in thread
From: Arno Wagner @ 2010-03-27  7:40 UTC (permalink / raw)
  To: dm-crypt

The Luks header starts from offset 0 in the LUKS partition.
You can basically open the partition for reading and read
it as if it was a file.

Arno



On Sat, Mar 27, 2010 at 01:11:04AM -0400, 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?
> 
> thank you for your time,
> 
> oscar

> _______________________________________________
> dm-crypt mailing list
> dm-crypt@saout.de
> http://www.saout.de/mailman/listinfo/dm-crypt


-- 
Arno Wagner, Dr. sc. techn., Dipl. Inform., CISSP -- Email: arno@wagner.name 
GnuPG:  ID: 1E25338F  FP: 0C30 5782 9D93 F785 E79C  0296 797F 6B50 1E25 338F
----
Cuddly UI's are the manifestation of wishful thinking. -- Dylan Evans

If it's in the news, don't worry about it.  The very definition of 
"news" is "something that hardly ever happens." -- Bruce Schneier 

^ permalink raw reply	[flat|nested] 4+ messages in thread

* Re: [dm-crypt] luks in java
  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
  2010-03-27 15:38   ` Oscar
  1 sibling, 1 reply; 4+ messages in thread
From: Milan Broz @ 2010-03-27  7:52 UTC (permalink / raw)
  To: Oscar; +Cc: dm-crypt

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

^ permalink raw reply	[flat|nested] 4+ messages in thread

* Re: [dm-crypt] luks in java
  2010-03-27  7:52 ` Milan Broz
@ 2010-03-27 15:38   ` Oscar
  0 siblings, 0 replies; 4+ messages in thread
From: Oscar @ 2010-03-27 15:38 UTC (permalink / raw)
  To: dm-crypt

[-- Attachment #1: Type: text/plain, Size: 323 bytes --]

thank you for your quick response. my idea was to work in something platform
independent, but now that you said that, would there be any advantages in
using the shared libraries? i mean, i know that it would be less coding and
that updates on the libraries would update the dependent packages too but,
besides that?

oscar

[-- Attachment #2: Type: text/html, Size: 340 bytes --]

^ permalink raw reply	[flat|nested] 4+ messages in thread

end of thread, other threads:[~2010-03-27 15:38 UTC | newest]

Thread overview: 4+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
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
2010-03-27 15:38   ` Oscar

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.