From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: <169101@gmail.com> Received: from mail-wi0-x230.google.com (mail-wi0-x230.google.com [IPv6:2a00:1450:400c:c05::230]) (using TLSv1 with cipher ECDHE-RSA-RC4-SHA (128/128 bits)) (No client certificate requested) by mail.saout.de (Postfix) with ESMTPS for ; Thu, 15 May 2014 04:58:29 +0200 (CEST) Received: by mail-wi0-f176.google.com with SMTP id n15so9055949wiw.3 for ; Wed, 14 May 2014 19:58:29 -0700 (PDT) MIME-Version: 1.0 Date: Wed, 14 May 2014 23:58:29 -0300 Message-ID: From: Franz <169101@gmail.com> Content-Type: multipart/alternative; boundary=f46d0442685ab8484304f967788a Subject: [dm-crypt] Required kernel crypto interface not available List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , To: dm-crypt@saout.de --f46d0442685ab8484304f967788a Content-Type: text/plain; charset=UTF-8 Hello, I am trying to follow this tutorial to mount truecrypt volumes with cryptsetup: http://forums.fedoraforum.org/showthread.php?p=1698596#post1698596 But I'm getting this error: "Required kernel crypto interface not available. Ensure you have algif_skcipher kernel module loaded." So tried to load the kernel module, but got other error: "[user@cryptsetup ~]$ sudo modprobe algif_skcipher modprobe: FATAL: Module algif_skcipher not found." Is there a solution? Best Franz --f46d0442685ab8484304f967788a Content-Type: text/html; charset=UTF-8 Content-Transfer-Encoding: quoted-printable
Hello,

I am trying to follow this = tutorial to mount truecrypt volumes with cryptsetup:
http://forums= .fedoraforum.org/showthread.php?p=3D1698596#post1698596
But I'm getting this error:

"Required kernel crypto i= nterface not available.
Ensure you have algif_skcipher kernel module loa= ded."

So tried to load the kernel module, but got other er= ror:

"[user@cryptsetup ~]$ sudo modprobe algif_skcipher
modprobe: FA= TAL: Module algif_skcipher not found."

Is there a so= lution?

Best

Franz
--f46d0442685ab8484304f967788a-- From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from v6.tansi.org (ns.km31936-01.keymachine.de [87.118.116.4]) by mail.saout.de (Postfix) with ESMTP for ; Thu, 15 May 2014 09:53:53 +0200 (CEST) Received: from gatewagner.dyndns.org (77-57-44-24.dclient.hispeed.ch [77.57.44.24]) by v6.tansi.org (Postfix) with ESMTPA id BDBBC20DC1E9 for ; Thu, 15 May 2014 09:53:52 +0200 (CEST) Date: Thu, 15 May 2014 09:53:52 +0200 From: Arno Wagner Message-ID: <20140515075352.GA16025@tansi.org> References: MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: Subject: Re: [dm-crypt] Required kernel crypto interface not available List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , To: dm-crypt@saout.de Hi Franz, this is not a cryptsetup problem. You need to get a kernel that has that module or compile one yourself. There really is nothing else to do. Arno On Thu, May 15, 2014 at 04:58:29 CEST, Franz wrote: > Hello, > > I am trying to follow this tutorial to mount truecrypt volumes with > cryptsetup: > http://forums.fedoraforum.org/showthread.php?p=1698596#post1698596 > But I'm getting this error: > > "Required kernel crypto interface not available. > Ensure you have algif_skcipher kernel module loaded." > > So tried to load the kernel module, but got other error: > > "[user@cryptsetup ~]$ sudo modprobe algif_skcipher > modprobe: FATAL: Module algif_skcipher not found." > > Is there a solution? > > Best > > Franz > _______________________________________________ > dm-crypt mailing list > dm-crypt@saout.de > http://www.saout.de/mailman/listinfo/dm-crypt -- Arno Wagner, Dr. sc. techn., Dipl. Inform., Email: arno@wagner.name GnuPG: ID: CB5D9718 FP: 12D6 C03B 1B30 33BB 13CF B774 E35C 5FA1 CB5D 9718 ---- A good decision is based on knowledge and not on numbers. - Plato From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mail-ee0-x22b.google.com (mail-ee0-x22b.google.com [IPv6:2a00:1450:4013:c00::22b]) (using TLSv1 with cipher ECDHE-RSA-RC4-SHA (128/128 bits)) (No client certificate requested) by mail.saout.de (Postfix) with ESMTPS for ; Thu, 15 May 2014 19:35:21 +0200 (CEST) Received: by mail-ee0-f43.google.com with SMTP id d17so881882eek.2 for ; Thu, 15 May 2014 10:35:21 -0700 (PDT) Message-ID: <5374FAD5.1000605@gmail.com> Date: Thu, 15 May 2014 19:35:17 +0200 From: Milan Broz MIME-Version: 1.0 References: In-Reply-To: Content-Type: text/plain; charset="utf-8" Content-Transfer-Encoding: 8bit Subject: Re: [dm-crypt] Required kernel crypto interface not available List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , To: Franz <169101@gmail.com>, dm-crypt@saout.de See cryptsetup man page TCRYPT extension requires kernel userspace crypto API to be available (introduced in Linux kernel 2.6.38). If you are configur‐ ing kernel yourself, enable "User-space interface for symmetric key cipher algorithms" in "Cryptographic API" section (CRYPTO_USER_API_SKCIPHER .config option). Milan On 05/15/2014 04:58 AM, Franz wrote: > Hello, > > I am trying to follow this tutorial to mount truecrypt volumes with cryptsetup: > http://forums.fedoraforum.org/showthread.php?p=1698596#post1698596 > But I'm getting this error: > > "Required kernel crypto interface not available. > Ensure you have algif_skcipher kernel module loaded." > > So tried to load the kernel module, but got other error: > > "[user@cryptsetup ~]$ sudo modprobe algif_skcipher > modprobe: FATAL: Module algif_skcipher not found." > > Is there a solution? > > Best > > Franz > > > _______________________________________________ > dm-crypt mailing list > dm-crypt@saout.de > http://www.saout.de/mailman/listinfo/dm-crypt > From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: <169101@gmail.com> Received: from mail-wg0-x22a.google.com (mail-wg0-x22a.google.com [IPv6:2a00:1450:400c:c00::22a]) (using TLSv1 with cipher ECDHE-RSA-RC4-SHA (128/128 bits)) (No client certificate requested) by mail.saout.de (Postfix) with ESMTPS for ; Thu, 15 May 2014 21:55:55 +0200 (CEST) Received: by mail-wg0-f42.google.com with SMTP id y10so3904018wgg.13 for ; Thu, 15 May 2014 12:55:54 -0700 (PDT) MIME-Version: 1.0 In-Reply-To: <5374FAD5.1000605@gmail.com> References: <5374FAD5.1000605@gmail.com> Date: Thu, 15 May 2014 15:55:43 -0300 Message-ID: From: Franz <169101@gmail.com> Content-Type: multipart/alternative; boundary=089e01493f5818ce3104f974d884 Subject: Re: [dm-crypt] Required kernel crypto interface not available List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , To: Milan Broz Cc: dm-crypt@saout.de --089e01493f5818ce3104f974d884 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: quoted-printable Thanks for the kind and informed reply. My kernel is 3.12.14-4. I am no developer nor kernel configurator. Just a user. It seems this means I cannot use this for the foreseeable future. Do you know any other script to mount a crypted container (contained in a file) that may work for a simple user like me. Well if it does not exist I'll go on using trucrypt. Best and thanks Fran On Thu, May 15, 2014 at 2:35 PM, Milan Broz wrote: > See cryptsetup man page > > TCRYPT extension requires kernel userspace crypto API to be available > (introduced in Linux kernel 2.6.38). If you are configur=E2=80=90 > ing kernel yourself, enable "User-space interface for symmetric ke= y > cipher algorithms" in "Cryptographic API" section > (CRYPTO_USER_API_SKCIPHER .config option). > > Milan > > On 05/15/2014 04:58 AM, Franz wrote: > > Hello, > > > > I am trying to follow this tutorial to mount truecrypt volumes with > cryptsetup: > > http://forums.fedoraforum.org/showthread.php?p=3D1698596#post1698596 > > But I'm getting this error: > > > > "Required kernel crypto interface not available. > > Ensure you have algif_skcipher kernel module loaded." > > > > So tried to load the kernel module, but got other error: > > > > "[user@cryptsetup ~]$ sudo modprobe algif_skcipher > > modprobe: FATAL: Module algif_skcipher not found." > > > > Is there a solution? > > > > Best > > > > Franz > > > > > > _______________________________________________ > > dm-crypt mailing list > > dm-crypt@saout.de > > http://www.saout.de/mailman/listinfo/dm-crypt > > > --089e01493f5818ce3104f974d884 Content-Type: text/html; charset=UTF-8 Content-Transfer-Encoding: quoted-printable
Thanks for the kind and informed reply.

My ker= nel is 3.12.14-4. I am no developer nor kernel configurator. Just a user. I= t seems this means I cannot use this for the foreseeable future.

Do= you know any other script to mount a crypted container (contained in a fil= e) that may work for a simple user like me.

Well if it does not exist I'll go on using trucrypt.
=
Best and thanks

Fran


On Thu, May 15,= 2014 at 2:35 PM, Milan Broz <gmazyland@gmail.com> wrote:<= br>
See cryptsetup man page

=C2=A0TCRYPT =C2=A0extension requires kernel userspace crypto API to be ava= ilable (introduced in Linux kernel 2.6.38). =C2=A0If you are configur=E2=80= =90
=C2=A0ing kernel yourself, =C2=A0enable =C2=A0"User-space =C2=A0interf= ace =C2=A0for =C2=A0symmetric =C2=A0key =C2=A0cipher =C2=A0algorithms"= =C2=A0in =C2=A0"Cryptographic =C2=A0API" =C2=A0section
=C2=A0(CRYPTO_USER_API_SKCIPHER .config option).

Milan

On 05/15/2014 04:58 AM, Franz wrote:
> Hello,
>
> I am trying to follow this tutorial to mount truecrypt volumes with cr= yptsetup:
> http://forums.fedoraforum.org/showthread.php?p= =3D1698596#post1698596
> But I'm getting this error:
>
> "Required kernel crypto interface not available.
> Ensure you have algif_skcipher kernel module loaded."
>
> So tried to load the kernel module, but got other error:
>
> "[user@cryptsetup ~]$ sudo modprobe algif_skcipher
> modprobe: FATAL: Module algif_skcipher not found."
>
> Is there a solution?
>
> Best
>
> Franz
>
>
> _______________________________________________
> dm-crypt mailing list
> dm-crypt@saout.de
> http://www.saout.de/mailman/listinfo/dm-crypt
>

--089e01493f5818ce3104f974d884-- From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mail-ee0-x236.google.com (mail-ee0-x236.google.com [IPv6:2a00:1450:4013:c00::236]) (using TLSv1 with cipher ECDHE-RSA-RC4-SHA (128/128 bits)) (No client certificate requested) by mail.saout.de (Postfix) with ESMTPS for ; Thu, 15 May 2014 22:18:38 +0200 (CEST) Received: by mail-ee0-f54.google.com with SMTP id b57so960701eek.41 for ; Thu, 15 May 2014 13:18:37 -0700 (PDT) Message-ID: <5375211A.2090604@gmail.com> Date: Thu, 15 May 2014 22:18:34 +0200 From: Milan Broz MIME-Version: 1.0 References: <5374FAD5.1000605@gmail.com> In-Reply-To: Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 7bit Subject: Re: [dm-crypt] Required kernel crypto interface not available List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , To: Franz <169101@gmail.com> Cc: dm-crypt@saout.de On 05/15/2014 08:55 PM, Franz wrote: > Thanks for the kind and informed reply. > > My kernel is 3.12.14-4. I am no developer nor kernel configurator. Just a user. It seems this means I cannot use this for the foreseeable future. Report bug to your distro then. > > Do you know any other script to mount a crypted container (contained in a file) that may work for a simple user like me. For new TrueCrypt containers (XTS mode) you can also use tcplay (if it is in your distro). Milan From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mail-ie0-x233.google.com (mail-ie0-x233.google.com [IPv6:2607:f8b0:4001:c03::233]) (using TLSv1 with cipher ECDHE-RSA-RC4-SHA (128/128 bits)) (No client certificate requested) by mail.saout.de (Postfix) with ESMTPS for ; Thu, 15 May 2014 22:30:46 +0200 (CEST) Received: by mail-ie0-f179.google.com with SMTP id rd18so1591976iec.38 for ; Thu, 15 May 2014 13:30:45 -0700 (PDT) MIME-Version: 1.0 In-Reply-To: References: <5374FAD5.1000605@gmail.com> From: ".. ink .." Date: Thu, 15 May 2014 16:30:25 -0400 Message-ID: Content-Type: multipart/alternative; boundary=90e6ba5bbb17eb2df804f9762b2e Subject: Re: [dm-crypt] Required kernel crypto interface not available List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , To: Franz <169101@gmail.com>, "dm-crypt@saout.de" --90e6ba5bbb17eb2df804f9762b2e Content-Type: text/plain; charset=UTF-8 On Thu, May 15, 2014 at 2:55 PM, Franz <169101@gmail.com> wrote: > Thanks for the kind and informed reply. > > My kernel is 3.12.14-4. I am no developer nor kernel configurator. Just a > user. It seems this means I cannot use this for the foreseeable future. > > What distribution are you using? Your kernel is modern enough and should have the required functionality build in by default,if not,you should file a bug with the distribution.The reason why things do not work probably is because you are making a mistake somewhere. > Do you know any other script to mount a crypted container (contained in a > file) that may work for a simple user like me. > > Well if it does not exist I'll go on using trucrypt. > > Any reason why you want to do this from a script? If you want the volume at be unlocked at boot time,i believe systemd has provisions to make it possible if you are running a systemd managed system. There is a GUI tool called zuluCrypt[1] that will allow you to mount your truecrypt volume. Info on how to install binaries in fedora is here[2] [1] https://code.google.com/p/zulucrypt/ [2] http://forums.fedoraforum.org/showthread.php?t=292320 --90e6ba5bbb17eb2df804f9762b2e Content-Type: text/html; charset=UTF-8 Content-Transfer-Encoding: quoted-printable
On T= hu, May 15, 2014 at 2:55 PM, Franz <169101@gmail.com> wrote:<= br>
Thanks for the kind and informed reply.

My ker= nel is 3.12.14-4. I am no developer nor kernel configurator. Just a user. I= t seems this means I cannot use this for the foreseeable future.

What distribution are you using?
Your kernel is modern enough and should have the required functionality = build in by default,if not,you should file a bug with the distribution.The = reason why things do not work probably is because you are making a mistake = somewhere.
=C2=A0
Do you know any other script to mount a crypted contain= er (contained in a file) that may work for a simple user like me.

Well if it does not exist I'll go on using trucrypt.
=

Any reason why you want to= do this from a script? If you want the volume at be unlocked at boot time,= i believe systemd has provisions to make it possible if you are running a s= ystemd managed system.

There is a GUI tool called zuluCrypt[1] that will allow you = to mount your truecrypt volume. Info on how to install binaries in fedora i= s here[2]

[1] https= ://code.google.com/p/zulucrypt/

[2] http://forums.fedoraforum.org/showthread.php?t=3D292320

=

--90e6ba5bbb17eb2df804f9762b2e-- From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mail-ig0-x234.google.com (mail-ig0-x234.google.com [IPv6:2607:f8b0:4001:c05::234]) (using TLSv1 with cipher ECDHE-RSA-RC4-SHA (128/128 bits)) (No client certificate requested) by mail.saout.de (Postfix) with ESMTPS for ; Thu, 15 May 2014 23:47:04 +0200 (CEST) Received: by mail-ig0-f180.google.com with SMTP id c1so9786igq.1 for ; Thu, 15 May 2014 14:47:02 -0700 (PDT) MIME-Version: 1.0 In-Reply-To: References: <5374FAD5.1000605@gmail.com> From: ".. ink .." Date: Thu, 15 May 2014 17:46:42 -0400 Message-ID: Content-Type: multipart/alternative; boundary=047d7bd6c744c54a8004f9773c32 Subject: Re: [dm-crypt] Required kernel crypto interface not available List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , To: Franz <169101@gmail.com>, "dm-crypt@saout.de" --047d7bd6c744c54a8004f9773c32 Content-Type: text/plain; charset=UTF-8 On Thu, May 15, 2014 at 5:26 PM, Franz <169101@gmail.com> wrote: > Yes I had already seen this zulucrypt and also tomb > http://www.dyne.org/software/tomb/ that seems even more developed that > zulucrypt. But for such a critical task I am willing to trust packages like > cryptsetup and dm-crypt that are signed, incorporated into main > distributions, and certainly checked by many people. But I am unwilling to > trust something posted somewhere in internet, unsigned and unchecked. > > Otherwise better to stay with Truecrypt a little more waiting for things > to change. > > In any case many thanks to all for the kind help > Best > Franz > Your statement carries with it a logical inconsistece since you use TrueCrypt, a product that is developed in secrecy, by unknown developers who seem to take extra effort to hide themselves for no obvious reasons who also seem to just put link to a source code dump online once in a while,unchecked and unverified. Why not switching to LUKS since you already seen to trust cryptsetup? what advantages does TrueCrypt volumes have in your use case that makes you want to stick with its encrypted format? --047d7bd6c744c54a8004f9773c32 Content-Type: text/html; charset=UTF-8 Content-Transfer-Encoding: quoted-printable


On Thu, May 15, 2014 at 5:26 PM, Franz <169101@gmail.com>= wrote:

=C2=A0
Yes I had already see= n this zulucrypt and also tomb http://www.dyne.org/software/tomb/ that seems even= more developed that zulucrypt. But for such a critical task I am willing t= o trust packages like cryptsetup and dm-crypt that are signed, incorporated= into main distributions, and certainly checked by many people. But I am un= willing to trust something posted somewhere in internet, unsigned and unche= cked.

Otherwise better to stay with Truecryp= t a little more waiting for things to change.

In any case many thanks to all for the kind help
Best
=
F= ranz

Your statement carr= ies with it a logical inconsistece since you use TrueCrypt, a product that = is developed in secrecy,
by unknown dev= elopers who seem to take extra effort to hide themselves for no obvious rea= sons who
also seem to just put link to a source code dump online once in a while,unc= hecked and unverified.

Why not swit= ching to LUKS since you already seen to trust cryptsetup?

what advan= tages does TrueCrypt volumes have in your use case that makes
you want to stick with its encrypted format?


--047d7bd6c744c54a8004f9773c32-- From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: <169101@gmail.com> Received: from mail-ve0-x22b.google.com (mail-ve0-x22b.google.com [IPv6:2607:f8b0:400c:c01::22b]) (using TLSv1 with cipher ECDHE-RSA-RC4-SHA (128/128 bits)) (No client certificate requested) by mail.saout.de (Postfix) with ESMTPS for ; Fri, 16 May 2014 01:10:11 +0200 (CEST) Received: by mail-ve0-f171.google.com with SMTP id oz11so2170073veb.2 for ; Thu, 15 May 2014 16:10:09 -0700 (PDT) MIME-Version: 1.0 In-Reply-To: References: <5374FAD5.1000605@gmail.com> Date: Thu, 15 May 2014 20:04:56 -0300 Message-ID: From: Franz <169101@gmail.com> Content-Type: multipart/alternative; boundary=20cf3078130c554a5004f9785398 Subject: Re: [dm-crypt] Required kernel crypto interface not available List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , To: ".. ink .." Cc: "dm-crypt@saout.de" --20cf3078130c554a5004f9785398 Content-Type: text/plain; charset=UTF-8 On Thu, May 15, 2014 at 6:46 PM, .. ink .. wrote: > > > On Thu, May 15, 2014 at 5:26 PM, Franz <169101@gmail.com> wrote: > > > >> Yes I had already seen this zulucrypt and also tomb >> http://www.dyne.org/software/tomb/ that seems even more developed that >> zulucrypt. But for such a critical task I am willing to trust packages like >> cryptsetup and dm-crypt that are signed, incorporated into main >> distributions, and certainly checked by many people. But I am unwilling to >> trust something posted somewhere in internet, unsigned and unchecked. >> >> Otherwise better to stay with Truecrypt a little more waiting for things >> to change. >> >> In any case many thanks to all for the kind help >> Best >> Franz >> > > Your statement carries with it a logical inconsistece since you use > TrueCrypt, a product that is developed in secrecy, > by unknown developers who seem to take extra effort to hide themselves for > no obvious reasons who > also seem to just put link to a source code dump online once in a > while,unchecked and unverified. > > Why not switching to LUKS since you already seen to trust cryptsetup? > > what advantages does TrueCrypt volumes have in your use case that makes > you want to stick with its encrypted format? > > > well you are certainly totally right unfortunately. But truecrypt is at least still open source and the installation file is signed. Also, it is a very well known product so I suppose that many people audited the source code and no big problem ever surfaced. Less important, but still... it is already installed and working fine in a VM of my computer. Switching to LUCKS would be very interesting. Qubes already uses LUCKS to encrypt my disk so every time I start my computer need to put a password just to uncrypt it. But can LUCKS work on a file container that I can copy and move? I investigated it time ago and found no way to do it. Is there a way to do that? Really that would be the solution. Best Franz --20cf3078130c554a5004f9785398 Content-Type: text/html; charset=UTF-8 Content-Transfer-Encoding: quoted-printable


well you are certai= nly totally right unfortunately. But truecrypt is at least still open sourc= e and the installation file is signed. Also, it is a very well known produc= t so I suppose that many people audited the source code and no big problem = ever surfaced. Less important, but still... it is already installed and wor= king fine in a VM of my computer.

Switching to LUCKS would be very inter= esting. Qubes already uses LUCKS to encrypt my disk so every time I start m= y computer need to put a password just to uncrypt it. But can LUCKS work on= a file container that I can copy and move? I investigated it time ago and = found no way to do it. Is there a way to do that? Really that would be the = solution.

Best
Franz
--20cf3078130c554a5004f9785398-- From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mail-ie0-x22c.google.com (mail-ie0-x22c.google.com [IPv6:2607:f8b0:4001:c03::22c]) (using TLSv1 with cipher ECDHE-RSA-RC4-SHA (128/128 bits)) (No client certificate requested) by mail.saout.de (Postfix) with ESMTPS for ; Fri, 16 May 2014 01:43:57 +0200 (CEST) Received: by mail-ie0-f172.google.com with SMTP id as1so1804790iec.31 for ; Thu, 15 May 2014 16:43:56 -0700 (PDT) MIME-Version: 1.0 In-Reply-To: References: <5374FAD5.1000605@gmail.com> From: ".. ink .." Date: Thu, 15 May 2014 19:43:35 -0400 Message-ID: Content-Type: multipart/alternative; boundary=90e6ba613c3ac69e5704f978de95 Subject: Re: [dm-crypt] Required kernel crypto interface not available List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , To: Franz <169101@gmail.com>, "dm-crypt@saout.de" --90e6ba613c3ac69e5704f978de95 Content-Type: text/plain; charset=UTF-8 On Thu, May 15, 2014 at 7:04 PM, Franz <169101@gmail.com> wrote: > Switching to LUCKS would be very interesting. Qubes already uses LUCKS to > encrypt my disk so every time I start my computer need to put a password > just to uncrypt it. But can LUCKS work on a file container that I can copy > and move? I investigated it time ago and found no way to do it. Is there a > way to do that? Really that would be the solution. > > Best > Franz > Yes it can. Below is an example of how to create a 10MB LUKS volume in an image file that can be moved around the same way you would move around truecrypt volume image file Summary of below steps: 1. create a 10MB image file 2. create a LUKS volume on the image file 3. open the LUKS volume. 4. put a file system on the volume. 5. close the the volume. 6. ????? 7. profit!!!!! :-) dd if=/dev/urandom of=luks.img bs=1024 count=10000 cryptsetup luksFormat luks.img cryptsetup luksOpen luks.img luks mkfs.ext4 /dev/mapper/luks cryptsetup luksClose luks --90e6ba613c3ac69e5704f978de95 Content-Type: text/html; charset=UTF-8 Content-Transfer-Encoding: quoted-printable

= On Thu, May 15, 2014 at 7:04 PM, Franz <169101@gmail.com> wro= te:

=C2=A0
Switch= ing to LUCKS would be very interesting. Qubes already uses LUCKS to encrypt= my disk so every time I start my computer need to put a password just to u= ncrypt it. But can LUCKS work on a file container that I can copy and move?= I investigated it time ago and found no way to do it. Is there a way to do= that? Really that would be the solution.

Best
Franz

Yes it can. Below i= s an example of how to create a 10MB LUKS volume in an image file that can = be moved around
the same way you would move around truecrypt volume imag= e file

Summary of below steps:
1. create a= 10MB image file
2. create a LUKS volum= e on the image file
3. open the LUKS vo= lume.
4. put a file system on the volume.
5. close the the volume.
6. ?????
7. profit!!!!! :-)

dd if=3D/dev/urandom of=3Dluks.img bs=3D1024 count=3D10000
cryptsetup lu= ksFormat luks.img
cryptsetup luksOpen luks.img luks
mkfs.ext4 /dev/ma= pper/luks
cryptsetup luksClose luks


--90e6ba613c3ac69e5704f978de95-- From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: <169101@gmail.com> Received: from mail-wi0-x231.google.com (mail-wi0-x231.google.com [IPv6:2a00:1450:400c:c05::231]) (using TLSv1 with cipher ECDHE-RSA-RC4-SHA (128/128 bits)) (No client certificate requested) by mail.saout.de (Postfix) with ESMTPS for ; Fri, 16 May 2014 03:58:33 +0200 (CEST) Received: by mail-wi0-f177.google.com with SMTP id f8so197256wiw.16 for ; Thu, 15 May 2014 18:58:32 -0700 (PDT) MIME-Version: 1.0 In-Reply-To: References: <5374FAD5.1000605@gmail.com> Date: Thu, 15 May 2014 22:58:31 -0300 Message-ID: From: Franz <169101@gmail.com> Content-Type: multipart/alternative; boundary=047d7bb03f9c285dfe04f97ac03a Subject: Re: [dm-crypt] Required kernel crypto interface not available List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , To: ".. ink .." Cc: "dm-crypt@saout.de" --047d7bb03f9c285dfe04f97ac03a Content-Type: text/plain; charset=UTF-8 On Thu, May 15, 2014 at 8:43 PM, .. ink .. wrote: > > On Thu, May 15, 2014 at 7:04 PM, Franz <169101@gmail.com> wrote: > > > >> Switching to LUCKS would be very interesting. Qubes already uses LUCKS to >> encrypt my disk so every time I start my computer need to put a password >> just to uncrypt it. But can LUCKS work on a file container that I can copy >> and move? I investigated it time ago and found no way to do it. Is there a >> way to do that? Really that would be the solution. >> >> Best >> Franz >> > > Yes it can. Below is an example of how to create a 10MB LUKS volume in an > image file that can be moved around > the same way you would move around truecrypt volume image file > > Summary of below steps: > 1. create a 10MB image file > 2. create a LUKS volume on the image file > 3. open the LUKS volume. > 4. put a file system on the volume. > 5. close the the volume. > 6. ????? > 7. profit!!!!! :-) > > dd if=/dev/urandom of=luks.img bs=1024 count=10000 > cryptsetup luksFormat luks.img > cryptsetup luksOpen luks.img luks > mkfs.ext4 /dev/mapper/luks > cryptsetup luksClose luks > > > Wow it works!! I cannot believe it was that easy. Also I was able to create a container called only test, without the .img extension to hidden the file among other files. Many thanks INK you are great! I was breaking my head for nothing. Well it is easy when you know how to do it. Otherwise... Goodby to Truecrypt now. And to make a 200 MB container? Well many thanks indeed INK good night --047d7bb03f9c285dfe04f97ac03a Content-Type: text/html; charset=UTF-8 Content-Transfer-Encoding: quoted-printable



On Thu, May 15, 2014 at 8:43 PM, .. ink .. <mhogomchungu@gmai= l.com> wrote:

On Thu, May 15, 2014 at 7:0= 4 PM, Franz <169101@gmail.com> wrote:

=C2=A0
Switch= ing to LUCKS would be very interesting. Qubes already uses LUCKS to encrypt= my disk so every time I start my computer need to put a password just to u= ncrypt it. But can LUCKS work on a file container that I can copy and move?= I investigated it time ago and found no way to do it. Is there a way to do= that? Really that would be the solution.

Best
=
Franz

Yes it can. B= elow is an example of how to create a 10MB LUKS volume in an image file tha= t can be moved around
the same way you would move around truecrypt volum= e image file

Summary of below steps:
1. create a= 10MB image file
2. create a LUKS volum= e on the image file
3. open the LUKS vo= lume.
4. put a file system on the volume.
5. close the the volume.
6. ?????
7. profit!!!!! :-)

dd if=3D/dev/urandom of=3Dluks.img bs=3D1024 count=3D10000
cryptsetup lu= ksFormat luks.img
cryptsetup luksOpen luks.img luks
mkfs.ext4 /dev/ma= pper/luks
cryptsetup luksClose luks



Wow it works!! I ca= nnot believe it was that easy. Also I was able to create a container called= only test, without the .img extension to hidden the file among other files= . Many thanks INK you are great!

I was breaking my head for nothing. We= ll it is easy when you know how to do it. Otherwise...=C2=A0 Goodby to True= crypt now.

And to make a 200 MB con= tainer?

Well many thanks indeed INK good night=
--047d7bb03f9c285dfe04f97ac03a-- From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mail-ie0-x22e.google.com (mail-ie0-x22e.google.com [IPv6:2607:f8b0:4001:c03::22e]) (using TLSv1 with cipher ECDHE-RSA-RC4-SHA (128/128 bits)) (No client certificate requested) by mail.saout.de (Postfix) with ESMTPS for ; Fri, 16 May 2014 05:01:18 +0200 (CEST) Received: by mail-ie0-f174.google.com with SMTP id at1so1962953iec.33 for ; Thu, 15 May 2014 20:01:15 -0700 (PDT) MIME-Version: 1.0 In-Reply-To: References: <5374FAD5.1000605@gmail.com> From: ".. ink .." Date: Thu, 15 May 2014 23:00:55 -0400 Message-ID: Content-Type: multipart/alternative; boundary=089e01184b0c7c28e104f97ba05f Subject: Re: [dm-crypt] Required kernel crypto interface not available List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , To: Franz <169101@gmail.com>, "dm-crypt@saout.de" --089e01184b0c7c28e104f97ba05f Content-Type: text/plain; charset=UTF-8 On Thu, May 15, 2014 at 9:58 PM, Franz <169101@gmail.com> wrote: > Wow it works!! I cannot believe it was that easy. Also I was able to > create a container called only test, without the .img extension to hidden > the file among other files. Many thanks INK you are great! > > You should know that LUKS header volume is partially open and hence its readily obvious the volume is a LUKS volume and hence you arent hiding that much if anything. If you want to use LUKS while hiding the header, create the volume with a detached header,info on how to do so is here: https://code.google.com/p/cryptsetup/wiki/Cryptsetup140 Alternative to have a completely hidden volume while not using a detached header is to create a plain dm-crypt volume using cryptsetup. > And to make a 200 MB container? > > That will be dd if=/dev/urandom of=volume bs=1024 count=200000 The formula is simple,volume size = block size(bs) * count Just start with bs =1024 and read for yourself "one kilo byte". Then have "count=2" and then read for yourself "two kilo bytes" because now you will have bs=1024 count=2 and both amounts to 2048(two kilobytes) >From the above just start adding "zeros" to count while saying: "twenty kilobytes" "two hunded kilobytes" "two megabytes" "twenty megabytes" "two hundred megabytes" and stop when you have reached the desired size,get the idea? This is the thinking i usually use when creating image files using "dd" command. Well many thanks indeed INK good night > You are welcome. If i can introduce myself to you, i am the developer of zuluCrypt. I started the project because i did not want to use TrueCrypt simply because it didnt feel like a linux native solution and using cryptsetup from the terminal got really annoying really fast.I should also say i am not a cryptsetup developer, i just hang out here to keep track of a project i depend on. With crypsetup,you can manage 3 different volumes, TrueCrypt volumes,LUKS volumes and PLAIN volumes.Each has a pro and associated cons. I wrote a "simple" comparison btw them in an article about zuluCrypt in the may issue of pclinuxos magazine,you can read the online version of the article here: http://pclosmag.com/html/Issues/201405/page10.html --089e01184b0c7c28e104f97ba05f Content-Type: text/html; charset=UTF-8 Content-Transfer-Encoding: quoted-printable

= On Thu, May 15, 2014 at 9:58 PM, Franz <169101@gmail.com> wro= te:

=C2=A0
Wow it works!! I cannot believe it was that easy. Also I was able to create= a container called only test, without the .img extension to hidden the fil= e among other files. Many thanks INK you are great!

=C2=A0
You should know that= LUKS header volume is partially open and hence its readily obvious the vol= ume is a LUKS volume
and hence you arent hiding that much if = anything. If you want to use LUKS while hiding the header, create the
volume with a detached header,info on how to do so is here: https://code.google.co= m/p/cryptsetup/wiki/Cryptsetup140

Alternative to have= a completely hidden volume while not using a detached header is to create = a plain dm-crypt volume using cryptsetup.
=C2=A0

And to make a 200 MB container?

=C2=A0
That will be
dd if=3D/dev/urandom of=3Dvolume bs=3D1024 count=3D200000

The formula is simple,volume size =3D block size(bs) * count

=
Just start with bs =3D1024 and read for yourself "one kilo byte&q= uot;.
Then have "count=3D2" and then read for yourself "= ;two kilo bytes" because now you will have bs=3D1024 count=3D2
and both amounts to 2048(two kilobytes)

From the a= bove just start adding "zeros" to count while saying:

"twenty kilobytes"
"two hunded = kilobytes"
"two megabytes"
"= ;twenty megabytes"
"two hundred megabytes"

and stop when you have reached the desired size,get the idea= ? This is the thinking i usually use when creating image files using "= dd" command.
=C2=A0

Well many thanks indeed INK good night

You are welcome. If= i can introduce myself to you, i am the developer of zuluCrypt. I started = the project because i did not want
to use TrueCrypt simply because it di= dnt feel like a linux native solution and using cryptsetup from the termina= l got really annoying really fast.I should also say i am not a cryptsetup d= eveloper, i just hang out here to keep track of a project i depend on.

With crypsetup,you can manage 3 differ= ent volumes, TrueCrypt volumes,LUKS volumes and PLAIN volumes.Each has a pr= o and associated cons. I wrote a "simple" comparison btw them in = an article about zuluCrypt in the may issue of pclinuxos magazine,you can r= ead the online version of the article here: http://pclosmag.com/html/Issues/201405/page= 10.html
--089e01184b0c7c28e104f97ba05f-- From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mail-we0-f176.google.com (mail-we0-f176.google.com [74.125.82.176]) (using TLSv1 with cipher ECDHE-RSA-RC4-SHA (128/128 bits)) (No client certificate requested) by mail.saout.de (Postfix) with ESMTPS for ; Fri, 16 May 2014 09:42:38 +0200 (CEST) Received: by mail-we0-f176.google.com with SMTP id q59so2181393wes.35 for ; Fri, 16 May 2014 00:42:37 -0700 (PDT) Message-ID: <5375C3B8.9040905@codehawks.eu> Date: Fri, 16 May 2014 08:52:24 +0100 From: Thomas Bastiani MIME-Version: 1.0 References: <5374FAD5.1000605@gmail.com> In-Reply-To: Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 7bit Subject: Re: [dm-crypt] Required kernel crypto interface not available List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , To: Franz <169101@gmail.com> Cc: "dm-crypt@saout.de" On 16/05/14 00:04, Franz wrote: > On Thu, May 15, 2014 at 6:46 PM, .. ink .. wrote: > >> >> >> On Thu, May 15, 2014 at 5:26 PM, Franz <169101@gmail.com> wrote: >> >> >> >>> Yes I had already seen this zulucrypt and also tomb >>> http://www.dyne.org/software/tomb/ that seems even more developed that >>> zulucrypt. But for such a critical task I am willing to trust packages like >>> cryptsetup and dm-crypt that are signed, incorporated into main >>> distributions, and certainly checked by many people. But I am unwilling to >>> trust something posted somewhere in internet, unsigned and unchecked. >>> >>> Otherwise better to stay with Truecrypt a little more waiting for things >>> to change. >>> >>> In any case many thanks to all for the kind help >>> Best >>> Franz >>> >> >> Your statement carries with it a logical inconsistece since you use >> TrueCrypt, a product that is developed in secrecy, >> by unknown developers who seem to take extra effort to hide themselves for >> no obvious reasons who >> also seem to just put link to a source code dump online once in a >> while,unchecked and unverified. >> >> Why not switching to LUKS since you already seen to trust cryptsetup? >> >> what advantages does TrueCrypt volumes have in your use case that makes >> you want to stick with its encrypted format? >> >> >> > well you are certainly totally right unfortunately. But truecrypt is at > least still open source and the installation file is signed. Also, it is a > very well known product so I suppose that many people audited the source > code and no big problem ever surfaced. Less important, but still... it is > already installed and working fine in a VM of my computer. > > Switching to LUCKS would be very interesting. Qubes already uses LUCKS to > encrypt my disk so every time I start my computer need to put a password > just to uncrypt it. But can LUCKS work on a file container that I can copy > and move? I investigated it time ago and found no way to do it. Is there a > way to do that? Really that would be the solution. > > Best > Franz > > > > _______________________________________________ > dm-crypt mailing list > dm-crypt@saout.de > http://www.saout.de/mailman/listinfo/dm-crypt > Hello Franz, Regarding the fact that TrueCrypt is safe because it should *obviously* have been audited, it's not quite as simple. For one thing, proper audits cost money. Recently Matthew Green and Kenn White setup http://istruecryptauditedyet.com with the intent of raising enough money to fund a TrueCrypt audit. You can find the original post here: http://blog.cryptographyengineering.com/2013/10/lets-audit-truecrypt.html As you can see, as of today, TrueCrypt has been partially audited. I say partially because they did a "security assessment" that does not include a "cryptographic assessment". They have found a number of potential issues, although none of them are qualified as "critical". I'll let you read the initial report for yourself if you like: https://opencryptoaudit.org/reports/ My point is generally, TrueCrypt is not as audited as you might think and the "many eyes" argument is mostly invalid. As for encrypting a file that you can simply move around, it looks like it works out of the box. You just need to create a file large enough for your purposes and then encrypt it and create a file-system as you would usually do with a block device. Say you want to create a file that's 1GB is size: # dd if=/dev/zero of=block.luks bs=1G count=1 # cryptsetup luksFormat block.luks # cryptsetup luksOpen block.luks crypt # mkfs.ext4 /dev/mapper/crypt # mkdir /mnt/container # mount /dev/mapper/crypt /mnt/container Obviously you could write random data to your container instead of 0's, You could also use another file system or even a key-file. But you get the gist. HTH, -- Thomas From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from v6.tansi.org (ns.km31936-01.keymachine.de [87.118.116.4]) by mail.saout.de (Postfix) with ESMTP for ; Fri, 16 May 2014 12:54:35 +0200 (CEST) Received: from gatewagner.dyndns.org (77-57-44-24.dclient.hispeed.ch [77.57.44.24]) by v6.tansi.org (Postfix) with ESMTPA id BCD4420DC1EA for ; Fri, 16 May 2014 12:54:34 +0200 (CEST) Date: Fri, 16 May 2014 12:54:34 +0200 From: Arno Wagner Message-ID: <20140516105434.GA31000@tansi.org> References: <5374FAD5.1000605@gmail.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: Subject: Re: [dm-crypt] Required kernel crypto interface not available List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , To: dm-crypt@saout.de On Fri, May 16, 2014 at 03:58:31 CEST, Franz wrote: > On Thu, May 15, 2014 at 8:43 PM, .. ink .. wrote: > > Summary of below steps: > > 1. create a 10MB image file > > 2. create a LUKS volume on the image file > > 3. open the LUKS volume. > > 4. put a file system on the volume. > > 5. close the the volume. > > 6. ????? > > 7. profit!!!!! :-) > > > > dd if=/dev/urandom of=luks.img bs=1024 count=10000 > > cryptsetup luksFormat luks.img > > cryptsetup luksOpen luks.img luks > > mkfs.ext4 /dev/mapper/luks > > cryptsetup luksClose luks > > > > > > > Wow it works!! I cannot believe it was that easy. Also I was able to create > a container called only test, without the .img extension to hidden the file > among other files. Many thanks INK you are great! > > I was breaking my head for nothing. Well it is easy when you know how to do > it. Otherwise... Goodby to Truecrypt now. > > And to make a 200 MB container? > For a less obscure way to create files in any size you like seel also FAQ item 2.6. Can also be done with /dev/urandom, but that gets really slow on larger files, see FAQ Item 2.19 for the idea how to wipe faster. The FAQ ist at http://code.google.com/p/cryptsetup/wiki/FrequentlyAskedQuestions Arno -- Arno Wagner, Dr. sc. techn., Dipl. Inform., Email: arno@wagner.name GnuPG: ID: CB5D9718 FP: 12D6 C03B 1B30 33BB 13CF B774 E35C 5FA1 CB5D 9718 ---- A good decision is based on knowledge and not on numbers. - Plato From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from v6.tansi.org (ns.km31936-01.keymachine.de [87.118.116.4]) by mail.saout.de (Postfix) with ESMTP for ; Fri, 16 May 2014 12:56:33 +0200 (CEST) Received: from gatewagner.dyndns.org (77-57-44-24.dclient.hispeed.ch [77.57.44.24]) by v6.tansi.org (Postfix) with ESMTPA id DB1E720DC1EA for ; Fri, 16 May 2014 12:56:32 +0200 (CEST) Date: Fri, 16 May 2014 12:56:32 +0200 From: Arno Wagner Message-ID: <20140516105632.GB31000@tansi.org> References: <5374FAD5.1000605@gmail.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: Subject: Re: [dm-crypt] Required kernel crypto interface not available List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , To: dm-crypt@saout.de On Fri, May 16, 2014 at 05:00:55 CEST, .. ink .. wrote: > On Thu, May 15, 2014 at 9:58 PM, Franz <169101@gmail.com> wrote: > > > > > Wow it works!! I cannot believe it was that easy. Also I was able to > > create a container called only test, without the .img extension to hidden > > the file among other files. Many thanks INK you are great! > > > > > You should know that LUKS header volume is partially open and hence its > readily obvious the volume is a LUKS volume > and hence you arent hiding that much if anything. If you want to use LUKS > while hiding the header, create the > volume with a detached header,info on how to do so is here: > https://code.google.com/p/cryptsetup/wiki/Cryptsetup140 > > Alternative to have a completely hidden volume while not using a detached > header is to create a plain dm-crypt volume using cryptsetup. And while you consider that, make very sure you have your attacker model right. Hiding encrypted volumes is a tricky, uncertain business and, if discoverted or suspected, you can land in a lot of hot water. Arno -- Arno Wagner, Dr. sc. techn., Dipl. Inform., Email: arno@wagner.name GnuPG: ID: CB5D9718 FP: 12D6 C03B 1B30 33BB 13CF B774 E35C 5FA1 CB5D 9718 ---- A good decision is based on knowledge and not on numbers. - Plato From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: <169101@gmail.com> Received: from mail-we0-x229.google.com (mail-we0-x229.google.com [IPv6:2a00:1450:400c:c03::229]) (using TLSv1 with cipher ECDHE-RSA-RC4-SHA (128/128 bits)) (No client certificate requested) by mail.saout.de (Postfix) with ESMTPS for ; Fri, 16 May 2014 15:31:50 +0200 (CEST) Received: by mail-we0-f169.google.com with SMTP id u56so2615824wes.28 for ; Fri, 16 May 2014 06:31:49 -0700 (PDT) MIME-Version: 1.0 In-Reply-To: <5375C3B8.9040905@codehawks.eu> References: <5374FAD5.1000605@gmail.com> <5375C3B8.9040905@codehawks.eu> Date: Fri, 16 May 2014 10:31:49 -0300 Message-ID: From: Franz <169101@gmail.com> Content-Type: multipart/alternative; boundary=f46d0442685a8ceeec04f9846fb5 Subject: Re: [dm-crypt] Required kernel crypto interface not available List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , To: Thomas Bastiani Cc: "dm-crypt@saout.de" --f46d0442685a8ceeec04f9846fb5 Content-Type: text/plain; charset=UTF-8 On Fri, May 16, 2014 at 4:52 AM, Thomas Bastiani wrote: > On 16/05/14 00:04, Franz wrote: > > On Thu, May 15, 2014 at 6:46 PM, .. ink .. > wrote: > > > >> > >> > >> On Thu, May 15, 2014 at 5:26 PM, Franz <169101@gmail.com> wrote: > >> > >> > >> > >>> Yes I had already seen this zulucrypt and also tomb > >>> http://www.dyne.org/software/tomb/ that seems even more developed that > >>> zulucrypt. But for such a critical task I am willing to trust packages > like > >>> cryptsetup and dm-crypt that are signed, incorporated into main > >>> distributions, and certainly checked by many people. But I am > unwilling to > >>> trust something posted somewhere in internet, unsigned and unchecked. > >>> > >>> Otherwise better to stay with Truecrypt a little more waiting for > things > >>> to change. > >>> > >>> In any case many thanks to all for the kind help > >>> Best > >>> Franz > >>> > >> > >> Your statement carries with it a logical inconsistece since you use > >> TrueCrypt, a product that is developed in secrecy, > >> by unknown developers who seem to take extra effort to hide themselves > for > >> no obvious reasons who > >> also seem to just put link to a source code dump online once in a > >> while,unchecked and unverified. > >> > >> Why not switching to LUKS since you already seen to trust cryptsetup? > >> > >> what advantages does TrueCrypt volumes have in your use case that makes > >> you want to stick with its encrypted format? > >> > >> > >> > > well you are certainly totally right unfortunately. But truecrypt is at > > least still open source and the installation file is signed. Also, it is > a > > very well known product so I suppose that many people audited the source > > code and no big problem ever surfaced. Less important, but still... it is > > already installed and working fine in a VM of my computer. > > > > Switching to LUCKS would be very interesting. Qubes already uses LUCKS to > > encrypt my disk so every time I start my computer need to put a password > > just to uncrypt it. But can LUCKS work on a file container that I can > copy > > and move? I investigated it time ago and found no way to do it. Is there > a > > way to do that? Really that would be the solution. > > > > Best > > Franz > > > > > > > > _______________________________________________ > > dm-crypt mailing list > > dm-crypt@saout.de > > http://www.saout.de/mailman/listinfo/dm-crypt > > > > Hello Franz, > > Regarding the fact that TrueCrypt is safe because it should *obviously* > have been audited, it's not quite as simple. For one thing, proper > audits cost money. Recently Matthew Green and Kenn White setup > http://istruecryptauditedyet.com with the intent of raising enough money > to fund a TrueCrypt audit. You can find the original post here: > > http://blog.cryptographyengineering.com/2013/10/lets-audit-truecrypt.html > > As you can see, as of today, TrueCrypt has been partially audited. I say > partially because they did a "security assessment" that does not include > a "cryptographic assessment". They have found a number of potential > issues, although none of them are qualified as "critical". I'll let you > read the initial report for yourself if you like: > > https://opencryptoaudit.org/reports/ > > My point is generally, TrueCrypt is not as audited as you might think > and the "many eyes" argument is mostly invalid. > > Very interesting Thomas > As for encrypting a file that you can simply move around, it looks like > it works out of the box. You just need to create a file large enough for > your purposes and then encrypt it and create a file-system as you would > usually do with a block device. Say you want to create a file that's 1GB > is size: > > # dd if=/dev/zero of=block.luks bs=1G count=1 > # cryptsetup luksFormat block.luks > # cryptsetup luksOpen block.luks crypt > # mkfs.ext4 /dev/mapper/crypt > # mkdir /mnt/container > # mount /dev/mapper/crypt /mnt/container > > Obviously you could write random data to your container instead of 0's, > You could also use another file system or even a key-file. But you get > the gist. > > HTH, > -- > Thomas > > > Many thanks Thomas, it seems very similar to what INK wrote. Certainly it solves my problem Best Franz --f46d0442685a8ceeec04f9846fb5 Content-Type: text/html; charset=UTF-8 Content-Transfer-Encoding: quoted-printable



On Fri, May 16, 2014 at 4:52 AM, Thomas Bastiani = <thom@codehawks.e= u> wrote:
On 1= 6/05/14 00:04, Franz wrote:
> On Thu, May 15, 2014 at 6:46 PM, .. ink .. <mhogomchungu@gmail.com> wrote:
>
>>
>>
>> On Thu, May 15, 2014 at 5:26 PM, Franz <169101@gmail.com> wrote:
>>
>>
>>
>>> Yes I had already seen this zulucrypt and also tomb
>>> http://www.dyne.org/software/tomb/ that seems even more developed th= at
>>> zulucrypt. But for such a critical task I am willing to trust = packages like
>>> cryptsetup and dm-crypt that are signed, incorporated into mai= n
>>> distributions, and certainly checked by many people. But I am = unwilling to
>>> trust something posted somewhere in internet, unsigned and unc= hecked.
>>>
>>> Otherwise better to stay with Truecrypt a little more waiting = for things
>>> to change.
>>>
>>> In any case many thanks to all for the kind help
>>> Best
>>> Franz
>>>
>>
>> Your statement carries with it a logical inconsistece since you us= e
>> TrueCrypt, a product that is developed in secrecy,
>> by unknown developers who seem to take extra effort to hide themse= lves for
>> no obvious reasons who
>> also seem to just put link to a source code dump online once in a<= br> >> while,unchecked and unverified.
>>
>> Why not switching to LUKS since you already seen to trust cryptset= up?
>>
>> what advantages does TrueCrypt volumes have in your use case that = makes
>> you want to stick with its encrypted format?
>>
>>
>>
> well you are certainly totally right unfortunately. But truecrypt is a= t
> least still open source and the installation file is signed. Also, it = is a
> very well known product so I suppose that many people audited the sour= ce
> code and no big problem ever surfaced. Less important, but still... it= is
> already installed and working fine in a VM of my computer.
>
> Switching to LUCKS would be very interesting. Qubes already uses LUCKS= to
> encrypt my disk so every time I start my computer need to put a passwo= rd
> just to uncrypt it. But can LUCKS work on a file container that I can = copy
> and move? I investigated it time ago and found no way to do it. Is the= re a
> way to do that? Really that would be the solution.
>
> Best
> Franz
>
>
>
> __________________________________________= _____
> dm-crypt mailing list
> dm-crypt@saout.de
> http://www.saout.de/mailman/listinfo/dm-crypt
>

Hello Franz,

Regarding the fact that TrueCrypt is safe because it should *obviously*
have been audited, it's not quite as simple. For one thing, proper
audits cost money. Recently Matthew Green and Kenn White setup
http://istru= ecryptauditedyet.com with the intent of raising enough money
to fund a TrueCrypt audit. You can find the original post here:

http://blog.cryptographyengineering.com/2013/1= 0/lets-audit-truecrypt.html

As you can see, as of today, TrueCrypt has been partially audited. I say partially because they did a "security assessment" that does not = include
a "cryptographic assessment". They have found a number of potenti= al
issues, although none of them are qualified as "critical". I'= ll let you
read the initial report for yourself if you like:

https://= opencryptoaudit.org/reports/

My point is generally, TrueCrypt is not as audited as you might think
and the "many eyes" argument is mostly invalid.


Very interesting Thomas
=C2=A0
<= /div>
As for encrypting a file that you can simply move around, it looks like
it works out of the box. You just need to create a file large enough for your purposes and then encrypt it and create a file-system as you would
usually do with a block device. Say you want to create a file that's 1G= B
is size:

# dd if=3D/dev/zero of=3Dblock.luks bs=3D1G count=3D1
# cryptsetup luksFormat block.luks
# cryptsetup luksOpen block.luks crypt
# mkfs.ext4 /dev/mapper/crypt
# mkdir /mnt/container
# mount /dev/mapper/crypt /mnt/container

Obviously you could write random data to your container instead of 0's,=
You could also use another file system or even a key-file. But you get
the gist.

HTH,
--
Thomas



Many thanks Thomas, it seems very simi= lar to what INK wrote. Certainly it solves my problem
Best
Franz

--f46d0442685a8ceeec04f9846fb5-- From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: <169101@gmail.com> Received: from mail-wi0-x22e.google.com (mail-wi0-x22e.google.com [IPv6:2a00:1450:400c:c05::22e]) (using TLSv1 with cipher ECDHE-RSA-RC4-SHA (128/128 bits)) (No client certificate requested) by mail.saout.de (Postfix) with ESMTPS for ; Fri, 16 May 2014 15:36:03 +0200 (CEST) Received: by mail-wi0-f174.google.com with SMTP id r20so961501wiv.13 for ; Fri, 16 May 2014 06:36:03 -0700 (PDT) MIME-Version: 1.0 In-Reply-To: References: <5374FAD5.1000605@gmail.com> Date: Fri, 16 May 2014 10:13:23 -0300 Message-ID: From: Franz <169101@gmail.com> Content-Type: multipart/alternative; boundary=089e01493f58a47acd04f9842d4f Subject: Re: [dm-crypt] Required kernel crypto interface not available List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , To: ".. ink .." Cc: "dm-crypt@saout.de" --089e01493f58a47acd04f9842d4f Content-Type: text/plain; charset=UTF-8 On Fri, May 16, 2014 at 12:00 AM, .. ink .. wrote: > > On Thu, May 15, 2014 at 9:58 PM, Franz <169101@gmail.com> wrote: > > > >> Wow it works!! I cannot believe it was that easy. Also I was able to >> create a container called only test, without the .img extension to hidden >> the file among other files. Many thanks INK you are great! >> >> > You should know that LUKS header volume is partially open and hence its > readily obvious the volume is a LUKS volume > and hence you arent hiding that much if anything. If you want to use LUKS > while hiding the header, create the > volume with a detached header,info on how to do so is here: > https://code.google.com/p/cryptsetup/wiki/Cryptsetup140 > > I do not get clearly the advantage of having the header separated from the container. If I have header and container together, you tell that anybody can easily find this is a LUKS container. They cannot open it but they know there is something hidden. But isn't the same happening if container and header are separated? I suppose that as well they can easily find the header (OR NOT?). They cannot open the container, but they know there is something hidden. Yes they do not know WHERE it is hidden in this case, but how important is this if in any case they cannot open it? > Alternative to have a completely hidden volume while not using a detached > header is to create a plain dm-crypt volume using cryptsetup. > >> > > And to make a 200 MB container? >> >> > That will be > dd if=/dev/urandom of=volume bs=1024 count=200000 > > The formula is simple,volume size = block size(bs) * count > > Just start with bs =1024 and read for yourself "one kilo byte". > Then have "count=2" and then read for yourself "two kilo bytes" because > now you will have bs=1024 count=2 > and both amounts to 2048(two kilobytes) > > From the above just start adding "zeros" to count while saying: > > "twenty kilobytes" > "two hunded kilobytes" > "two megabytes" > "twenty megabytes" > "two hundred megabytes" > > and stop when you have reached the desired size,get the idea? This is the > thinking i usually use when creating image files using "dd" command. > > > Well many thanks indeed INK good night >> > > You are welcome. If i can introduce myself to you, i am the developer of > zuluCrypt. I started the project because i did not want > to use TrueCrypt simply because it didnt feel like a linux native solution > and using cryptsetup from the terminal got really annoying really fast.I > should also say i am not a cryptsetup developer, i just hang out here to > keep track of a project i depend on. > > With crypsetup,you can manage 3 different volumes, TrueCrypt volumes,LUKS > volumes and PLAIN volumes.Each has a pro and associated cons. I wrote a > "simple" comparison btw them in an article about zuluCrypt in the may issue > of pclinuxos magazine,you can read the online version of the article here: > http://pclosmag.com/html/Issues/201405/page10.html > Very interesting INK, and clear. Now I am sorry wrote did not trust zuluCrypt. These mail lists are dangerous: you never know who you are speaking with :-). Trust is the weak and strong point. I am getting older and cannot tell how many times my trust was misplaced with bad consequences, but at the same time all the best things I accomplished in life were based on trust. So... Best Franz --089e01493f58a47acd04f9842d4f Content-Type: text/html; charset=UTF-8 Content-Transfer-Encoding: quoted-printable



On Fri, May 16, 2014 at 12:00 AM, .. ink .. <<= a href=3D"mailto:mhogomchungu@gmail.com" target=3D"_blank">mhogomchungu@gma= il.com> wrote:
=
On Thu, May 15, 2014 at 9:58= PM, Franz <169101@gmail.com> wrote:

=C2=A0
Wow it works!! I cannot believe it was that easy. Also I was able to create= a container called only test, without the .img extension to hidden the fil= e among other files. Many thanks INK you are great!

=C2=A0
You should kno= w that LUKS header volume is partially open and hence its readily obvious t= he volume is a LUKS volume
and hence you arent hiding that mu= ch if anything. If you want to use LUKS while hiding the header, create the=
volume with a detached header,info on how to do so is here: http= s://code.google.com/p/cryptsetup/wiki/Cryptsetup140


I do not get clearly the advan= tage of having the header separated from the container. If I have header an= d container together, you tell that anybody can easily find this is a LUKS = container. They cannot open it but they know there is something hidden.

But isn't the same happening if container and header are= separated? I suppose that as well they can easily find the header (OR NOT?= ). They cannot open the container, but they know there is something hidden.= Yes they do not know WHERE it is hidden in this case, but how important is= this if in any case they cannot open it?
=C2=A0
Alternative to = have a completely hidden volume while not using a detached header is to cre= ate a plain dm-crypt volume using cryptsetup.
<= /div>
=C2=A0

And to make a 200 MB container?

=C2=A0
That will be
dd if=3D/dev/urandom of=3Dvolume bs=3D1024 count=3D200000

The formula is simple,volume size =3D block size(bs) * count

=
Just start with bs =3D1024 and read for yourself "one kilo byte&q= uot;.
Then have "count=3D2" and then read for yourself "= ;two kilo bytes" because now you will have bs=3D1024 count=3D2
and both amounts to 2048(two kilobytes)

From the a= bove just start adding "zeros" to count while saying:

"twenty kilobytes"
"two hunded = kilobytes"
"two megabytes"
"= ;twenty megabytes"
"two hundred megabytes"

and stop when you have reached the desired size,get the idea= ? This is the thinking i usually use when creating image files using "= dd" command.
=C2=A0

Well many thanks indeed INK good night

You are welco= me. If i can introduce myself to you, i am the developer of zuluCrypt. I st= arted the project because i did not want
to use TrueCrypt simply because= it didnt feel like a linux native solution and using cryptsetup from the t= erminal got really annoying really fast.I should also say i am not a crypts= etup developer, i just hang out here to keep track of a project i depend on= .

With crypsetup,you can manage 3 differ= ent volumes, TrueCrypt volumes,LUKS volumes and PLAIN volumes.Each has a pr= o and associated cons. I wrote a "simple" comparison btw them in = an article about zuluCrypt in the may issue of pclinuxos magazine,you can r= ead the online version of the article here: http://pclosmag.com/html/= Issues/201405/page10.html

Very interesting IN= K, and clear. Now I am sorry wrote did not trust zuluCrypt. These mail list= s are dangerous: you never know who you are speaking with :-). Trust is the= weak and strong point. I am getting older and cannot tell how many times m= y trust was misplaced with bad consequences, but at the same time all the b= est things I accomplished in life=C2=A0 were based on trust. So...

Best
Franz
--089e01493f58a47acd04f9842d4f-- From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mail-ig0-x22f.google.com (mail-ig0-x22f.google.com [IPv6:2607:f8b0:4001:c05::22f]) (using TLSv1 with cipher ECDHE-RSA-RC4-SHA (128/128 bits)) (No client certificate requested) by mail.saout.de (Postfix) with ESMTPS for ; Fri, 16 May 2014 23:50:50 +0200 (CEST) Received: by mail-ig0-f175.google.com with SMTP id uq10so1349164igb.14 for ; Fri, 16 May 2014 14:50:48 -0700 (PDT) MIME-Version: 1.0 In-Reply-To: References: <5374FAD5.1000605@gmail.com> From: ".. ink .." Date: Fri, 16 May 2014 17:23:02 -0400 Message-ID: Content-Type: multipart/alternative; boundary=90e6ba1efcaef18daf04f98b057e Subject: Re: [dm-crypt] Required kernel crypto interface not available List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , To: Franz <169101@gmail.com>, "dm-crypt@saout.de" --90e6ba1efcaef18daf04f98b057e Content-Type: text/plain; charset=UTF-8 On Fri, May 16, 2014 at 9:13 AM, Franz <169101@gmail.com> wrote: > I do not get clearly the advantage of having the header separated from the > container. If I have header and container together, you tell that anybody > can easily find this is a LUKS container. They cannot open it but they know > there is something hidden. > > yes > But isn't the same happening if container and header are separated? I > suppose that as well they can easily find the header (OR NOT?). They cannot > open the container, but they know there is something hidden. Yes they do > not know WHERE it is hidden in this case, but how important is this if in > any case they cannot open it? > > with a detached header,when somebody gets a hold of the header less volume,they will not know the volume has encrypted data using LUKS,at best,they may suspect but not know.You will not get many successes when trying to convince somebody that your 200MB file made up of cryptographically sound random data is not an encrypted volume but at least you will get the opportunity to try.A LUKS volume with attached header will not give you this opportunity and a detached header seeks to give it back. Which one of the supported cryptsetup volume you should use depends on your use case but they all largely give marginal benefits when compared to each other for most use cases --90e6ba1efcaef18daf04f98b057e Content-Type: text/html; charset=UTF-8 Content-Transfer-Encoding: quoted-printable

= On Fri, May 16, 2014 at 9:13 AM, Franz <169101@gmail.com> wro= te:
=C2=A0
I do not get clearly the advantage of having the header separated from th= e container. If I have header and container together, you tell that anybody= can easily find this is a LUKS container. They cannot open it but they kno= w there is something hidden.

yes
But isn't the same happening if container and header ar= e separated? I suppose that as well they can easily find the header (OR NOT= ?). They cannot open the container, but they know there is something hidden= . Yes they do not know WHERE it is hidden in this case, but how important i= s this if in any case they cannot open it?
=C2=A0
with a detached header= ,when somebody gets a hold of the header less volume,they will not know the= volume has encrypted data using LUKS,at best,they may suspect but not know= .You will not get many successes when trying to convince somebody that your= 200MB file made up of cryptographically sound random data is not an encryp= ted volume but at least you will get the opportunity to try.A LUKS volume w= ith attached header will not give you this opportunity and a detached heade= r seeks to give it back.

Which one of the supported cryptsetup volume you should use depends on = your use case but they all largely give marginal benefits when compared to = each other for most use cases



--90e6ba1efcaef18daf04f98b057e-- From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: <169101@gmail.com> Received: from mail-wi0-x22b.google.com (mail-wi0-x22b.google.com [IPv6:2a00:1450:400c:c05::22b]) (using TLSv1 with cipher ECDHE-RSA-RC4-SHA (128/128 bits)) (No client certificate requested) by mail.saout.de (Postfix) with ESMTPS for ; Sun, 18 May 2014 01:48:09 +0200 (CEST) Received: by mail-wi0-f171.google.com with SMTP id hm4so2521048wib.16 for ; Sat, 17 May 2014 16:48:08 -0700 (PDT) MIME-Version: 1.0 In-Reply-To: References: <5374FAD5.1000605@gmail.com> Date: Sat, 17 May 2014 20:48:08 -0300 Message-ID: From: Franz <169101@gmail.com> Content-Type: multipart/alternative; boundary=001a11c264ec88334904f9a12970 Subject: Re: [dm-crypt] Required kernel crypto interface not available List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , To: ".. ink .." Cc: "dm-crypt@saout.de" --001a11c264ec88334904f9a12970 Content-Type: text/plain; charset=UTF-8 On Fri, May 16, 2014 at 6:23 PM, .. ink .. wrote: > > On Fri, May 16, 2014 at 9:13 AM, Franz <169101@gmail.com> wrote: > > >> I do not get clearly the advantage of having the header separated from >> the container. If I have header and container together, you tell that >> anybody can easily find this is a LUKS container. They cannot open it but >> they know there is something hidden. >> >> yes > >> But isn't the same happening if container and header are separated? I >> suppose that as well they can easily find the header (OR NOT?). They cannot >> open the container, but they know there is something hidden. Yes they do >> not know WHERE it is hidden in this case, but how important is this if in >> any case they cannot open it? >> >> > with a detached header,when somebody gets a hold of the header less > volume,they will not know the volume has encrypted data using LUKS,at > best,they may suspect but not know.You will not get many successes when > trying to convince somebody that your 200MB file made up of > cryptographically sound random data is not an encrypted volume but at least > you will get the opportunity to try.A LUKS volume with attached header will > not give you this opportunity and a detached header seeks to give it back. > > Which one of the supported cryptsetup volume you should use depends on > your use case but they all largely give marginal benefits when compared to > each other for most use cases > > Many thanks INK. Finally did not try to separate the header, but got everything working now and can start using it, with a little .sh file than runs the steps you indicated in your second post. For my wife, that cordially hates computers, it is easier to use it this way than following previous truecrypt GUI steps. Now she only has to open a terminal, write in an alias and fill in a password, when asked for it :-). My plan is to periodically save the file for backup. Best --001a11c264ec88334904f9a12970 Content-Type: text/html; charset=UTF-8 Content-Transfer-Encoding: quoted-printable



On Fri, May 16, 2014 at 6:23 PM, .. ink .. <mhogomchungu@gmai= l.com> wrote:
=
On Fri, May 16, 2014 at 9:13= AM, Franz <169101@gmail.com> wrote:
=C2=A0
I do not = get clearly the advantage of having the header separated from the container= . If I have header and container together, you tell that anybody can easily= find this is a LUKS container. They cannot open it but they know there is = something hidden.

yes
But isn't the same happening if container and header ar= e separated? I suppose that as well they can easily find the header (OR NOT= ?). They cannot open the container, but they know there is something hidden= . Yes they do not know WHERE it is hidden in this case, but how important i= s this if in any case they cannot open it?
=C2=A0
with a detached = header,when somebody gets a hold of the header less volume,they will not kn= ow the volume has encrypted data using LUKS,at best,they may suspect but no= t know.You will not get many successes when trying to convince somebody tha= t your 200MB file made up of cryptographically sound random data is not an = encrypted volume but at least you will get the opportunity to try.A LUKS vo= lume with attached header will not give you this opportunity and a detached= header seeks to give it back.

Which one of the supported cryptsetup volume you should use depends on = your use case but they all largely give marginal benefits when compared to = each other for most use cases


Many thanks INK. Finally did not try to se= parate the header, but got everything working now and can start using it, w= ith a little=C2=A0 .sh file than runs the steps you indicated in your secon= d post. For my wife, that cordially hates computers,=C2=A0 it is easier to = use it this way than following previous truecrypt GUI steps.=C2=A0 Now she = only has to open a terminal, write in an alias and fill in a password, when= asked for it=C2=A0 :-). My plan is to periodically save the file for backu= p.

Best
--001a11c264ec88334904f9a12970--