From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mail.saout.de ([127.0.0.1]) by localhost (mail.saout.de [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id qEk4r19Tu78B for ; Tue, 4 Sep 2012 03:20:37 +0200 (CEST) Received: from nm20-vm0.bullet.mail.bf1.yahoo.com (nm20-vm0.bullet.mail.bf1.yahoo.com [98.139.213.165]) by mail.saout.de (Postfix) with SMTP for ; Tue, 4 Sep 2012 03:20:36 +0200 (CEST) Message-ID: <1346721635.29083.YahooMailNeo@web161504.mail.bf1.yahoo.com> Date: Mon, 3 Sep 2012 18:20:35 -0700 (PDT) From: Anil MIME-Version: 1.0 Content-Type: multipart/alternative; boundary="1835785293-530646386-1346721635=:29083" Subject: [dm-crypt] (no subject) Reply-To: Anil List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , To: "dm-crypt@saout.de" --1835785293-530646386-1346721635=:29083 Content-Type: text/plain; charset=us-ascii Newbie here. I need to use dm-crypt with aes-xts. How is dm-crypt called? Is it possible to encrypt data while being saved on the fly? Will there be file filters to encrypt/decrypt while saving and opening the file? Is aes-xts provided elsewhere as a plugin? or is it part of dmcrypt? --1835785293-530646386-1346721635=:29083 Content-Type: text/html; charset=us-ascii
Newbie here. I need to use dm-crypt with aes-xts. How is dm-crypt called? Is it possible to encrypt data while being saved on the fly?
Will there be file filters to encrypt/decrypt while saving and opening the file?
Is aes-xts provided elsewhere as a plugin? or is it part of dmcrypt?

--1835785293-530646386-1346721635=:29083-- From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mail.saout.de ([127.0.0.1]) by localhost (mail.saout.de [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id yHZhVFifQkon for ; Tue, 4 Sep 2012 03:29:16 +0200 (CEST) Received: from v4.tansi.org (ns.km33513-03.keymachine.de [87.118.94.3]) by mail.saout.de (Postfix) with ESMTP for ; Tue, 4 Sep 2012 03:29:15 +0200 (CEST) Received: from gatewagner.dyndns.org (84-72-142-78.dclient.hispeed.ch [84.72.142.78]) by v4.tansi.org (Postfix) with ESMTPA id 521FF1404001 for ; Tue, 4 Sep 2012 03:29:15 +0200 (CEST) Date: Tue, 4 Sep 2012 03:29:14 +0200 From: Arno Wagner Message-ID: <20120904012914.GA22939@tansi.org> References: <1346721635.29083.YahooMailNeo@web161504.mail.bf1.yahoo.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <1346721635.29083.YahooMailNeo@web161504.mail.bf1.yahoo.com> Subject: Re: [dm-crypt] (no subject) List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , To: dm-crypt@saout.de On Mon, Sep 03, 2012 at 06:20:35PM -0700, Anil wrote: > Newbie here. I need to use dm-crypt with aes-xts. How is dm-crypt called? Refer to the man-page and the FAQ. > Is it possible to encrypt data while being saved on the fly? That is its job. It is not possible to do it in any other way. > Will there be file filters to encrypt/decrypt while saving > and opening the file? No. > Is aes-xts provided elsewhere as a plugin? or is it part of dmcrypt? Ciphers and modes are the job of the kernel, not dm-crypt. It just uses them. Arno -- Arno Wagner, Dr. sc. techn., Dipl. Inform., Email: arno@wagner.name GnuPG: ID: 1E25338F FP: 0C30 5782 9D93 F785 E79C 0296 797F 6B50 1E25 338F ---- One of the painful things about our time is that those who feel certainty are stupid, and those with any imagination and understanding are filled with doubt and indecision. -- Bertrand Russell From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mail.saout.de ([127.0.0.1]) by localhost (mail.saout.de [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id xcro0ZlXvYj6 for ; Tue, 4 Sep 2012 23:14:11 +0200 (CEST) Received: from nm25.bullet.mail.bf1.yahoo.com (nm25.bullet.mail.bf1.yahoo.com [98.139.212.184]) by mail.saout.de (Postfix) with SMTP for ; Tue, 4 Sep 2012 23:14:10 +0200 (CEST) References: <1346721635.29083.YahooMailNeo@web161504.mail.bf1.yahoo.com> <20120904012914.GA22939@tansi.org> Message-ID: <1346793249.9716.YahooMailNeo@web161501.mail.bf1.yahoo.com> Date: Tue, 4 Sep 2012 14:14:09 -0700 (PDT) From: Anil In-Reply-To: <20120904012914.GA22939@tansi.org> MIME-Version: 1.0 Content-Type: multipart/alternative; boundary="-167995730-1844649502-1346793249=:9716" Subject: Re: [dm-crypt] newbie qs on dm-crypt Reply-To: Anil List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , To: Arno Wagner , "dm-crypt@saout.de" ---167995730-1844649502-1346793249=:9716 Content-Type: text/plain; charset=iso-8859-1 Content-Transfer-Encoding: quoted-printable Thanks for replying.=0AYou said,=0A"Ciphers and modes are the job of the ke= rnel, not dm-crypt."=0A=0AI am trying to understand if=A0proprietary softwa= re can be used with dm-crypt.=0AI read it is in GPL mode. Which version? GP= L v2, v3, LGPL...?=0AFor example, there is some in-house proprietary develo= ped code for AES-XTS.=0A=0AIf I understood your reply correctly, then dm-cr= ypt will call these functions loaded into the kernel and there will not be = any problem as the GPL code (dm-crypt) will not be linked with the propriet= ary code.=0AIs that so?=A0=0A=0A=0A=0A________________________________=0A F= rom: Arno Wagner =0ATo: dm-crypt@saout.de =0ASent: Monday= , September 3, 2012 8:29 PM=0ASubject: Re: [dm-crypt] (no subject)=0A =0AOn= Mon, Sep 03, 2012 at 06:20:35PM -0700, Anil wrote:=0A> Newbie here. I need= to use dm-crypt with aes-xts. How is dm-crypt called? =0A=0ARefer to the m= an-page and the FAQ. =0A=0A> Is it possible to encrypt data while being sav= ed on the fly?=0A=0AThat is its job. It is not possible to do it in any oth= er way.=0A=0A> Will there be file filters to encrypt/decrypt while saving = =0A> and opening the file?=0A=0ANo.=0A=0A> Is aes-xts provided elsewhere as= a plugin? or is it part of dmcrypt?=0A=0ACiphers and modes are the job of = the kernel, not dm-crypt.=0AIt just uses them. =0A=0AArno=0A-- =0AArno Wagn= er,=A0 =A0 Dr. sc. techn., Dipl. Inform.,=A0 Email: arno@wagner.name =0AGn= uPG:=A0 ID: 1E25338F=A0 FP: 0C30 5782 9D93 F785 E79C=A0 0296 797F 6B50 1E25= 338F=0A----=0AOne of the painful things about our time is that those who f= eel certainty =0Aare stupid, and those with any imagination and understandi= ng are filled =0Awith doubt and indecision. -- Bertrand Russell =0A________= _______________________________________=0Adm-crypt mailing list=0Adm-crypt@= saout.de=0Ahttp://www.saout.de/mailman/listinfo/dm-crypt ---167995730-1844649502-1346793249=:9716 Content-Type: text/html; charset=iso-8859-1 Content-Transfer-Encoding: quoted-printable
Thanks for replying.<= /span>
You said,
"Ciphers = and modes are the job of the kernel, not dm-crypt."

I a= m trying to understand if pro= prietary software can be used with dm-crypt.
I read it is i= n GPL mode. Which version? GPL v2, v3, LGPL...?
For example, there is some in-house propriet= ary developed code for AES-XTS.
If I understood your re= ply correctly, then dm-crypt will call these functions loaded into the kern= el and there will not be any problem as the GPL code (dm-crypt) will not be l= inked with the proprietary code.
Is that so? 



From: Arno Wagner <arno@wagner.name>
To: dm-crypt@saout.de
Sent: Monday, September 3, 2012 8:29 PM=
Subject: Re: [dm-crypt] (no subjec= t)

=0AOn Mon, Sep 03, 2012 at 06:20:35PM -0700, Anil= wrote:
> Newbie here. I need to use dm-crypt with aes-xts. How is dm= -crypt called?

Refer to the man-page and the FAQ.

> Is i= t possible to encrypt data while being saved on the fly?

That is its= job. It is not possible to do it in any other way.

> Will there = be file filters to encrypt/decrypt while saving
> and opening the fi= le?

No.

> Is aes-xts provided elsewhere as a plugin? or is= it part of dmcrypt?

Ciphers and modes are the job of the kernel, no= t dm-crypt.
It just uses them.

Arno
--
Arno Wagner, =   Dr. sc. techn., Dipl. Inform.,  Email: arno@wagner.name
= GnuPG:  ID: 1E25338F  FP: 0C30 5782 9D93 F785 E79C  0296 797= F 6B50 1E25 338F
----
One of the painful things about our time is tha= t those who feel certainty
are stupid, and those with any imagination and understanding are fille= d
with doubt and indecision. -- Bertrand Russell
__________________= _____________________________
dm-crypt mailing list
dm-crypt@saout.de<= /a>
http://www.saout.de/mailman/listinfo/dm-crypt


---167995730-1844649502-1346793249=:9716-- From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mail.saout.de ([127.0.0.1]) by localhost (mail.saout.de [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id zz4QO7a5OAJw for ; Wed, 5 Sep 2012 14:41:10 +0200 (CEST) Received: from v4.tansi.org (ns.km33513-03.keymachine.de [87.118.94.3]) by mail.saout.de (Postfix) with ESMTP for ; Wed, 5 Sep 2012 14:41:10 +0200 (CEST) Received: from gatewagner.dyndns.org (84-72-142-78.dclient.hispeed.ch [84.72.142.78]) by v4.tansi.org (Postfix) with ESMTPA id B79C41404001 for ; Wed, 5 Sep 2012 14:41:09 +0200 (CEST) Date: Wed, 5 Sep 2012 14:41:09 +0200 From: Arno Wagner Message-ID: <20120905124109.GA11942@tansi.org> References: <1346721635.29083.YahooMailNeo@web161504.mail.bf1.yahoo.com> <20120904012914.GA22939@tansi.org> <1346793249.9716.YahooMailNeo@web161501.mail.bf1.yahoo.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <1346793249.9716.YahooMailNeo@web161501.mail.bf1.yahoo.com> Subject: Re: [dm-crypt] newbie qs on dm-crypt List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , To: dm-crypt@saout.de On Tue, Sep 04, 2012 at 02:14:09PM -0700, Anil wrote: > Thanks for replying. > You said, > "Ciphers and modes are the job of the kernel, not dm-crypt." > > I am trying to understand if?proprietary software can be used with > dm-crypt. > That depends. > I read it is in GPL mode. Which version? GPL v2, v3, LGPL...? > > For example, there is some in-house proprietary developed code for > AES-XTS. > > If I understood your reply correctly, then dm-crypt will call these > functions loaded into the kernel and there will not be any problem as the > GPL code (dm-crypt) will not be linked with the proprietary code. Is that > so?? No. Kernels are different. If you do not distribute, it does not matter anyways. If you distribute, and want your stuff to stay closed, you should probably talk to an IP lawyer. I have to say though that there is pobably no point, as AES-XTS is open and the kernel implementation is probably better than yours anyways. Arno > > > > ________________________________ > From: Arno Wagner > To: dm-crypt@saout.de > Sent: Monday, September 3, 2012 8:29 PM > Subject: Re: [dm-crypt] (no subject) > > On Mon, Sep 03, 2012 at 06:20:35PM -0700, Anil wrote: > > Newbie here. I need to use dm-crypt with aes-xts. How is dm-crypt called? > > Refer to the man-page and the FAQ. > > > Is it possible to encrypt data while being saved on the fly? > > That is its job. It is not possible to do it in any other way. > > > Will there be file filters to encrypt/decrypt while saving > > and opening the file? > > No. > > > Is aes-xts provided elsewhere as a plugin? or is it part of dmcrypt? > > Ciphers and modes are the job of the kernel, not dm-crypt. > It just uses them. > > Arno > -- > Arno Wagner,? ? Dr. sc. techn., Dipl. Inform.,? Email: arno@wagner.name > GnuPG:? ID: 1E25338F? FP: 0C30 5782 9D93 F785 E79C? 0296 797F 6B50 1E25 338F > ---- > One of the painful things about our time is that those who feel certainty > are stupid, and those with any imagination and understanding are filled > with doubt and indecision. -- Bertrand Russell > _______________________________________________ > dm-crypt mailing list > dm-crypt@saout.de > http://www.saout.de/mailman/listinfo/dm-crypt > _______________________________________________ > 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: 1E25338F FP: 0C30 5782 9D93 F785 E79C 0296 797F 6B50 1E25 338F ---- One of the painful things about our time is that those who feel certainty are stupid, and those with any imagination and understanding are filled with doubt and indecision. -- Bertrand Russell From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mail.saout.de ([127.0.0.1]) by localhost (mail.saout.de [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id gi5EGv3xxYw9 for ; Tue, 11 Sep 2012 18:17:19 +0200 (CEST) Received: from nm13.bullet.mail.bf1.yahoo.com (nm13.bullet.mail.bf1.yahoo.com [98.139.212.172]) by mail.saout.de (Postfix) with SMTP for ; Tue, 11 Sep 2012 18:17:19 +0200 (CEST) References: <1346721635.29083.YahooMailNeo@web161504.mail.bf1.yahoo.com> <20120904012914.GA22939@tansi.org> <1346793249.9716.YahooMailNeo@web161501.mail.bf1.yahoo.com> <20120905124109.GA11942@tansi.org> Message-ID: <1347380237.80031.YahooMailNeo@web160804.mail.bf1.yahoo.com> Date: Tue, 11 Sep 2012 09:17:17 -0700 (PDT) From: Anil In-Reply-To: <20120905124109.GA11942@tansi.org> MIME-Version: 1.0 Content-Type: multipart/alternative; boundary="1124294693-118509081-1347380237=:80031" Subject: Re: [dm-crypt] newbie qs on dm-crypt Reply-To: Anil List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , To: Arno Wagner , "dm-crypt@saout.de" --1124294693-118509081-1347380237=:80031 Content-Type: text/plain; charset=iso-8859-1 Content-Transfer-Encoding: quoted-printable Suppose I have a library of various crypto algorithms. It is proprietary.= =0AI build it as a module and want the user to run dm-crypt specifying my m= odule to be run.=0AFor example,=0Acrypt FooCryptoLibrary-aes-xts=0AI read t= hat if your module is not GPL, then one cannot access core functions.=0AWil= l there be a problem here?=0A=0A=0A________________________________=0A From= : Arno Wagner =0ATo: dm-crypt@saout.de =0ASent: Wednesday= , September 5, 2012 7:41 AM=0ASubject: Re: [dm-crypt] newbie qs on dm-crypt= =0A =0AOn Tue, Sep 04, 2012 at 02:14:09PM -0700, Anil wrote:=0A> Thanks for= replying.=0A> You said,=0A> "Ciphers and modes are the job of the kernel, = not dm-crypt."=0A=0A> =0A> I am trying to understand if?proprietary softwar= e can be used with=0A> dm-crypt.=0A>=0A=0AThat depends.=0A=0A> I read it is= in GPL mode. Which version? GPL v2, v3, LGPL...?=0A>=0A> For example, ther= e is some in-house proprietary developed code for=0A> AES-XTS.=0A> =0A> If = I understood your reply correctly, then dm-crypt will call these=0A> functi= ons loaded into the kernel and there will not be any problem as the=0A> GPL= code (dm-crypt) will not be linked with the proprietary code.=A0 Is that= =0A> so??=0A=0ANo. Kernels are different. If you do not distribute, it does= not=0Amatter anyways. If you distribute, and want your stuff to stay =0Acl= osed, you should probably talk to an IP lawyer. =0A=0AI have to say though = that there is pobably no point, as AES-XTS is=0Aopen and the kernel impleme= ntation is probably better than yours =0Aanyways.=0A=0AArno=0A=0A=0A=0A> = =0A> =0A> =0A> ________________________________=0A>=A0 From: Arno Wagner =0A> To: dm-crypt@saout.de =0A> Sent: Monday, September 3, = 2012 8:29 PM=0A> Subject: Re: [dm-crypt] (no subject)=0A>=A0 =0A> On Mon, S= ep 03, 2012 at 06:20:35PM -0700, Anil wrote:=0A> > Newbie here. I need to u= se dm-crypt with aes-xts. How is dm-crypt called? =0A> =0A> Refer to the ma= n-page and the FAQ. =0A> =0A> > Is it possible to encrypt data while being = saved on the fly?=0A> =0A> That is its job. It is not possible to do it in = any other way.=0A> =0A> > Will there be file filters to encrypt/decrypt whi= le saving =0A> > and opening the file?=0A> =0A> No.=0A> =0A> > Is aes-xts p= rovided elsewhere as a plugin? or is it part of dmcrypt?=0A> =0A> Ciphers a= nd modes are the job of the kernel, not dm-crypt.=0A> It just uses them. = =0A> =0A> Arno=0A> -- =0A> Arno Wagner,? ? Dr. sc. techn., Dipl. Inform.,?= =A0 Email: arno@wagner.name =0A> GnuPG:? ID: 1E25338F? FP: 0C30 5782 9D93 F= 785 E79C? 0296 797F 6B50 1E25 338F=0A> ----=0A> One of the painful things a= bout our time is that those who feel certainty =0A> are stupid, and those w= ith any imagination and understanding are filled =0A> with doubt and indeci= sion. -- Bertrand Russell =0A> ____________________________________________= ___=0A> dm-crypt mailing list=0A> dm-crypt@saout.de=0A> http://www.saout.de= /mailman/listinfo/dm-crypt=0A=0A> _________________________________________= ______=0A> dm-crypt mailing list=0A> dm-crypt@saout.de=0A> http://www.saout= .de/mailman/listinfo/dm-crypt=0A=0A=0A-- =0AArno Wagner,=A0 =A0 Dr. sc. tec= hn., Dipl. Inform.,=A0 Email: arno@wagner.name =0AGnuPG:=A0 ID: 1E25338F= =A0 FP: 0C30 5782 9D93 F785 E79C=A0 0296 797F 6B50 1E25 338F=0A----=0AOne o= f the painful things about our time is that those who feel certainty =0Aare= stupid, and those with any imagination and understanding are filled =0Awit= h doubt and indecision. -- Bertrand Russell =0A____________________________= ___________________=0Adm-crypt mailing list=0Adm-crypt@saout.de=0Ahttp://ww= w.saout.de/mailman/listinfo/dm-crypt --1124294693-118509081-1347380237=:80031 Content-Type: text/html; charset=iso-8859-1 Content-Transfer-Encoding: quoted-printable
Suppose I have a libr= ary of various crypto algorithms. It is proprietary.
I buil= d it as a module and want the user to run dm-crypt specifying my module to = be run.
For example,
crypt FooCryptoLibrary= -aes-xts
I read that if your module is not GPL, then on= e cannot access core functions.
Will there be a problem her= e?


From: Arno Wagner <arno@wagner.name>
To: dm-crypt@saout.de
Sent: Wednesday, September 5, 2012 7= :41 AM
Subject: Re: [d= m-crypt] newbie qs on dm-crypt

=0AOn Tue, Sep 04, 20= 12 at 02:14:09PM -0700, Anil wrote:
> Thanks for replying.
> Yo= u said,
> "Ciphers and modes are the job of the kernel, not dm-crypt.= "

>
> I am trying to understand if?proprietary software ca= n be used with
> dm-crypt.
>

That depends.

> I= read it is in GPL mode. Which version? GPL v2, v3, LGPL...?
>
>= ; For example, there is some in-house proprietary developed code for
>= ; AES-XTS.
>
> If I understood your reply correctly, then dm-c= rypt will call these
> functions loaded into the kernel and there wil= l not be any problem as the
> GPL code (dm-crypt) will not be linked = with the proprietary code.  Is that
> so??

No. Kernels ar= e different. If you do not distribute, it does not
matter anyways. If yo= u distribute, and want your stuff to stay
closed, you should probably t= alk to an IP lawyer.

I have to say though that there is pobably no point, as AES-XTS is
open and the kernel imple= mentation is probably better than yours
anyways.

Arno


>
>
>
> ________________________________
&g= t;  From: Arno Wagner <
arno@wagner.name>
> To: dm-crypt@s= aout.de
> Sent: Monday, September 3, 2012 8:29 PM
> Subjec= t: Re: [dm-crypt] (no subject)

> On Mon, Sep 03, 2012 = at 06:20:35PM -0700, Anil wrote:
> > Newbie here. I need to use dm= -crypt with aes-xts. How is dm-crypt called?
>
> Refer to the= man-page and the FAQ.
>
> > Is it possible to encrypt dat= a while being saved on the fly?
>
> That is its job. It is not= possible to do it in any other way.
>
> > Will there be fi= le filters to encrypt/decrypt while saving
> > and opening the file= ?
>
> No.
>
> > Is aes-xts provided elsewhere = as a plugin? or is it part of dmcrypt?
>
> Ciphers and modes a= re the job of the kernel, not dm-crypt.
> It just uses them.
>=
> Arno
> --
> Arno Wagner,? ? Dr. sc. techn., Dipl. In= form.,?  Email: arno@wagner.name
> GnuPG:? ID: 1E25338F? FP: 0= C30 5782 9D93 F785 E79C? 0296 797F 6B50 1E25 338F
> ----
> One = of the painful things about our time is that those who feel certainty
&= gt; are stupid, and those with any imagination and understanding are filled=
> with doubt and indecision. -- Bertrand Russell
> _________= ______________________________________
> dm-crypt mailing list
>= ; dm-crypt@saout.de
> http://www= .saout.de/mailman/listinfo/dm-crypt

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


= --
Arno Wagner,    Dr. sc. techn., Dipl. Inform.,  Emai= l: = arno@wagner.name
GnuPG:  ID: 1E25338F  FP: 0C30 5782 9D93= F785 E79C  0296 797F 6B50 1E25 338F
----
One of the painful thi= ngs about our time is that those who feel certainty
are stupid, and tho= se with any imagination and understanding are filled
with doubt and ind= ecision. -- Bertrand Russell
_______________________________________________
dm-crypt mailing li= st
dm-crypt@saout.de
http://www.saout.de/mailman/listinfo/dm-cryp= t


--1124294693-118509081-1347380237=:80031-- From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mail.saout.de ([127.0.0.1]) by localhost (mail.saout.de [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id sTQIHsMaK_qT for ; Tue, 11 Sep 2012 20:31:49 +0200 (CEST) Received: from v4.tansi.org (ns.km33513-03.keymachine.de [87.118.94.3]) by mail.saout.de (Postfix) with ESMTP for ; Tue, 11 Sep 2012 20:31:48 +0200 (CEST) Received: from gatewagner.dyndns.org (84-72-142-78.dclient.hispeed.ch [84.72.142.78]) by v4.tansi.org (Postfix) with ESMTPA id 740771404001 for ; Tue, 11 Sep 2012 20:31:48 +0200 (CEST) Date: Tue, 11 Sep 2012 20:31:48 +0200 From: Arno Wagner Message-ID: <20120911183148.GA9317@tansi.org> References: <1346721635.29083.YahooMailNeo@web161504.mail.bf1.yahoo.com> <20120904012914.GA22939@tansi.org> <1346793249.9716.YahooMailNeo@web161501.mail.bf1.yahoo.com> <20120905124109.GA11942@tansi.org> <1347380237.80031.YahooMailNeo@web160804.mail.bf1.yahoo.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <1347380237.80031.YahooMailNeo@web160804.mail.bf1.yahoo.com> Subject: Re: [dm-crypt] newbie qs on dm-crypt List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , To: dm-crypt@saout.de Simple: You need to get it into the kernel. dm-crypt does not supply the run-time encryption, it just does the kernel cm-crypt module setup, i.e. it establishes the "mapping". After that, all encryption is done by the kernel. If your stuff is non-GPL, then I suspect you will need to maintain your own kernel patch-set. Basically that will be a waste of time, and has zero engineering or security justification. It can be necessary for political reasons, I can see that. But expect it to be a huge pain and effort for zero technological advantage and you cannot distribute it legally. Note on GPL: As long as you do not distribute this kernel, or the patch-set, you can do whathever you like. As soon as you distribute, even only to specific customers or as part of a "blackbox" product, you are screwed and need to GPL the module. There is no freew lunch here. If you want your own non-GPL crypto in a Linux-like kernel, then you need to re-implement that Linux-like kernel yourself, possibly spending a few billions on it. You may want to look at the xBDSs. They have more permissive licenses. Arno On Tue, Sep 11, 2012 at 09:17:17AM -0700, Anil wrote: > Suppose I have a library of various crypto algorithms. It is proprietary. > I build it as a module and want the user to run dm-crypt specifying my module to be run. > For example, > crypt FooCryptoLibrary-aes-xts > I read that if your module is not GPL, then one cannot access core functions. > Will there be a problem here? > > > ________________________________ > From: Arno Wagner > To: dm-crypt@saout.de > Sent: Wednesday, September 5, 2012 7:41 AM > Subject: Re: [dm-crypt] newbie qs on dm-crypt > > On Tue, Sep 04, 2012 at 02:14:09PM -0700, Anil wrote: > > Thanks for replying. > > You said, > > "Ciphers and modes are the job of the kernel, not dm-crypt." > > > > > I am trying to understand if?proprietary software can be used with > > dm-crypt. > > > > That depends. > > > I read it is in GPL mode. Which version? GPL v2, v3, LGPL...? > > > > For example, there is some in-house proprietary developed code for > > AES-XTS. > > > > If I understood your reply correctly, then dm-crypt will call these > > functions loaded into the kernel and there will not be any problem as the > > GPL code (dm-crypt) will not be linked with the proprietary code.? Is that > > so?? > > No. Kernels are different. If you do not distribute, it does not > matter anyways. If you distribute, and want your stuff to stay > closed, you should probably talk to an IP lawyer. > > I have to say though that there is pobably no point, as AES-XTS is > open and the kernel implementation is probably better than yours > anyways. > > Arno > > > > > > > > > > > ________________________________ > >? From: Arno Wagner > > To: dm-crypt@saout.de > > Sent: Monday, September 3, 2012 8:29 PM > > Subject: Re: [dm-crypt] (no subject) > >? > > On Mon, Sep 03, 2012 at 06:20:35PM -0700, Anil wrote: > > > Newbie here. I need to use dm-crypt with aes-xts. How is dm-crypt called? > > > > Refer to the man-page and the FAQ. > > > > > Is it possible to encrypt data while being saved on the fly? > > > > That is its job. It is not possible to do it in any other way. > > > > > Will there be file filters to encrypt/decrypt while saving > > > and opening the file? > > > > No. > > > > > Is aes-xts provided elsewhere as a plugin? or is it part of dmcrypt? > > > > Ciphers and modes are the job of the kernel, not dm-crypt. > > It just uses them. > > > > Arno > > -- > > Arno Wagner,? ? Dr. sc. techn., Dipl. Inform.,?? Email: arno@wagner.name > > GnuPG:? ID: 1E25338F? FP: 0C30 5782 9D93 F785 E79C? 0296 797F 6B50 1E25 338F > > ---- > > One of the painful things about our time is that those who feel certainty > > are stupid, and those with any imagination and understanding are filled > > with doubt and indecision. -- Bertrand Russell > > _______________________________________________ > > dm-crypt mailing list > > dm-crypt@saout.de > > http://www.saout.de/mailman/listinfo/dm-crypt > > > _______________________________________________ > > 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: 1E25338F? FP: 0C30 5782 9D93 F785 E79C? 0296 797F 6B50 1E25 338F > ---- > One of the painful things about our time is that those who feel certainty > are stupid, and those with any imagination and understanding are filled > with doubt and indecision. -- Bertrand Russell > _______________________________________________ > dm-crypt mailing list > dm-crypt@saout.de > http://www.saout.de/mailman/listinfo/dm-crypt > _______________________________________________ > 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: 1E25338F FP: 0C30 5782 9D93 F785 E79C 0296 797F 6B50 1E25 338F ---- One of the painful things about our time is that those who feel certainty are stupid, and those with any imagination and understanding are filled with doubt and indecision. -- Bertrand Russell From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mail.saout.de ([127.0.0.1]) by localhost (mail.saout.de [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id U7LPViRBRzlL for ; Tue, 11 Sep 2012 21:05:46 +0200 (CEST) Received: from mail-ee0-f50.google.com (mail-ee0-f50.google.com [74.125.83.50]) (using TLSv1 with cipher ECDHE-RSA-RC4-SHA (128/128 bits)) (No client certificate requested) by mail.saout.de (Postfix) with ESMTPS for ; Tue, 11 Sep 2012 21:05:46 +0200 (CEST) Received: by eekc50 with SMTP id c50so746923eek.37 for ; Tue, 11 Sep 2012 12:05:46 -0700 (PDT) Message-ID: <504F8BA1.6080605@gmail.com> Date: Tue, 11 Sep 2012 21:06:09 +0200 From: =?ISO-8859-1?Q?Javier_Juan_Mart=EDnez_Cabez=F3n?= MIME-Version: 1.0 References: <1346721635.29083.YahooMailNeo@web161504.mail.bf1.yahoo.com> <20120904012914.GA22939@tansi.org> <1346793249.9716.YahooMailNeo@web161501.mail.bf1.yahoo.com> <20120905124109.GA11942@tansi.org> <1347380237.80031.YahooMailNeo@web160804.mail.bf1.yahoo.com> In-Reply-To: <1347380237.80031.YahooMailNeo@web160804.mail.bf1.yahoo.com> Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 7bit Subject: Re: [dm-crypt] newbie qs on dm-crypt List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , To: dm-crypt@saout.de On 11/09/12 18:17, Anil wrote: > Suppose I have a library of various crypto algorithms. It is proprietary. > I build it as a module and want the user to run dm-crypt specifying my module to be run. > For example, > crypt FooCryptoLibrary-aes-xts > I read that if your module is not GPL, then one cannot access core functions. > Will there be a problem here? > > > ________________________________ > From: Arno Wagner > To: dm-crypt@saout.de > Sent: Wednesday, September 5, 2012 7:41 AM > Subject: Re: [dm-crypt] newbie qs on dm-crypt > > On Tue, Sep 04, 2012 at 02:14:09PM -0700, Anil wrote: >> Thanks for replying. >> You said, >> "Ciphers and modes are the job of the kernel, not dm-crypt." > >> >> I am trying to understand if?proprietary software can be used with >> dm-crypt. >> > > That depends. > >> I read it is in GPL mode. Which version? GPL v2, v3, LGPL...? >> >> For example, there is some in-house proprietary developed code for >> AES-XTS. >> >> If I understood your reply correctly, then dm-crypt will call these >> functions loaded into the kernel and there will not be any problem as the >> GPL code (dm-crypt) will not be linked with the proprietary code. Is that >> so?? > > No. Kernels are different. If you do not distribute, it does not > matter anyways. If you distribute, and want your stuff to stay > closed, you should probably talk to an IP lawyer. > > I have to say though that there is pobably no point, as AES-XTS is > open and the kernel implementation is probably better than yours > anyways. > > Arno > > > >> >> >> >> ________________________________ >> From: Arno Wagner >> To: dm-crypt@saout.de >> Sent: Monday, September 3, 2012 8:29 PM >> Subject: Re: [dm-crypt] (no subject) >> >> On Mon, Sep 03, 2012 at 06:20:35PM -0700, Anil wrote: >>> Newbie here. I need to use dm-crypt with aes-xts. How is dm-crypt called? >> >> Refer to the man-page and the FAQ. >> >>> Is it possible to encrypt data while being saved on the fly? >> >> That is its job. It is not possible to do it in any other way. >> >>> Will there be file filters to encrypt/decrypt while saving >>> and opening the file? >> >> No. >> >>> Is aes-xts provided elsewhere as a plugin? or is it part of dmcrypt? >> >> Ciphers and modes are the job of the kernel, not dm-crypt. >> It just uses them. >> >> Arno >> -- >> Arno Wagner,? ? Dr. sc. techn., Dipl. Inform.,? Email: arno@wagner.name >> GnuPG:? ID: 1E25338F? FP: 0C30 5782 9D93 F785 E79C? 0296 797F 6B50 1E25 338F >> ---- >> One of the painful things about our time is that those who feel certainty >> are stupid, and those with any imagination and understanding are filled >> with doubt and indecision. -- Bertrand Russell >> _______________________________________________ >> dm-crypt mailing list >> dm-crypt@saout.de >> http://www.saout.de/mailman/listinfo/dm-crypt > >> _______________________________________________ >> dm-crypt mailing list >> dm-crypt@saout.de >> http://www.saout.de/mailman/listinfo/dm-crypt > > > > > _______________________________________________ > dm-crypt mailing list > dm-crypt@saout.de > http://www.saout.de/mailman/listinfo/dm-crypt If your module is not gpl I think you will not be able to use with gpl-only-symbols unless you change this. However I think you shall do this question in the kernel mailing list (dm-crypt is a userland tool). I doubt if its legal that you modify a EXPORT_SYMBOL_GPL to a EXPORT_SYMBOL one, for me is something like change the licence. I'm not and expert is this question thought, but I think you shall ask this too there.