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 subAeLyBfNAv for ; Tue, 19 Feb 2013 09:40:51 +0100 (CET) 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 ; Tue, 19 Feb 2013 09:40:50 +0100 (CET) Received: by mail-ie0-f172.google.com with SMTP id c10so8236324ieb.31 for ; Tue, 19 Feb 2013 00:40:49 -0800 (PST) MIME-Version: 1.0 From: ".. ink .." Date: Tue, 19 Feb 2013 03:32:48 -0500 Message-ID: Content-Type: multipart/alternative; boundary=f46d04462dd8f1558504d60fb0f3 Subject: [dm-crypt] the library and the binary do not agree on the cipher mode a truecrypt volume is created with List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , To: dm-crypt@saout.de --f46d04462dd8f1558504d60fb0f3 Content-Type: text/plain; charset=ISO-8859-1 Output from the binary is below: [root@mtz ink]# cryptsetup status /dev/mapper/ttt /dev/mapper/ttt is active. type: TCRYPT cipher: serpent-xts-plain64 keysize: 512 bits device: /dev/loop4 loop: /home/ink/ttt offset: 256 sectors size: 30208 sectors skipped: 256 sectors mode: read/write Output from the library is below [root@mtz ink]# ./rrr /dev/mapper/ttt cipher: xts-plain64 [root@mtz ink]# The source code for the "rrr" program is at: http://pastebin.com/CdG7KAuE --f46d04462dd8f1558504d60fb0f3 Content-Type: text/html; charset=ISO-8859-1 Content-Transfer-Encoding: quoted-printable
Output from the binary is below:
[root@mtz ink]# cryptsetup status /= dev/mapper/ttt
/dev/mapper/ttt is active.
=A0 type:=A0=A0=A0 TCRYPT=A0 cipher:=A0 serpent-xts-plain64
=A0 keysize: 512 bits
=A0 device= :=A0 /dev/loop4
=A0 loop:=A0=A0=A0 /home/ink/ttt
=A0 offset:=A0 256 sectors
=A0 size:= =A0=A0=A0 30208 sectors
=A0 skipped: 256 sectors
=A0 mode:=A0=A0=A0 r= ead/write

Output from the library is below
[root@mtz ink]# ./rrr = /dev/mapper/ttt
cipher: xts-plain64
[root@mtz ink]#

The source code for the "rrr" program is = at: http://pastebin.com/CdG7KAuE



--f46d04462dd8f1558504d60fb0f3-- 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 RdZw1gtnGR5q for ; Tue, 19 Feb 2013 09:59:13 +0100 (CET) Received: from mail-ee0-f43.google.com (mail-ee0-f43.google.com [74.125.83.43]) (using TLSv1 with cipher ECDHE-RSA-RC4-SHA (128/128 bits)) (No client certificate requested) by mail.saout.de (Postfix) with ESMTPS for ; Tue, 19 Feb 2013 09:59:13 +0100 (CET) Received: by mail-ee0-f43.google.com with SMTP id c50so3487237eek.16 for ; Tue, 19 Feb 2013 00:59:13 -0800 (PST) Message-ID: <51233EC5.2070007@gmail.com> Date: Tue, 19 Feb 2013 09:58:45 +0100 From: Milan Broz MIME-Version: 1.0 References: In-Reply-To: Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit Subject: Re: [dm-crypt] the library and the binary do not agree on the cipher mode a truecrypt volume is created with List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , To: ".. ink .." Cc: dm-crypt@saout.de On 19.2.2013 9:32, .. ink .. wrote: > The source code for the "rrr" program is at: http://pastebin.com/CdG7KAuE Thanks, I will check that. Just please can you make there reports through issues page http://code.google.com/p/cryptsetup/issues/list and attach all test programs there? (Not for this one but for future...) This way it will be archived together and I can better trace it there. (Also you will see link to resolution/fix commit immediatelly once it is fixed.) Thanks, Milan 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 N3PMyRAaffig for ; Sun, 17 Mar 2013 19:56:23 +0100 (CET) Received: from mail-ea0-x22f.google.com (mail-ea0-x22f.google.com [IPv6:2a00:1450:4013:c01::22f]) (using TLSv1 with cipher ECDHE-RSA-RC4-SHA (128/128 bits)) (No client certificate requested) by mail.saout.de (Postfix) with ESMTPS for ; Sun, 17 Mar 2013 19:56:23 +0100 (CET) Received: by mail-ea0-f175.google.com with SMTP id o10so2189246eaj.6 for ; Sun, 17 Mar 2013 11:56:21 -0700 (PDT) Message-ID: <51461195.3030306@gmail.com> Date: Sun, 17 Mar 2013 19:55:17 +0100 From: Milan Broz MIME-Version: 1.0 References: <51233EC5.2070007@gmail.com> In-Reply-To: <51233EC5.2070007@gmail.com> Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit Subject: Re: [dm-crypt] the library and the binary do not agree on the cipher mode a truecrypt volume is created with List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , To: ".. ink .." Cc: dm-crypt@saout.de On 19.2.2013 9:58, Milan Broz wrote: > > On 19.2.2013 9:32, .. ink .. wrote: >> The source code for the "rrr" program is at: http://pastebin.com/CdG7KAuE Just for the archive - this is not a bug, it correctly returns encryption mode + IV generator. See explanation and your fixed code sample here http://code.google.com/p/cryptsetup/issues/detail?id=148#c1 Thanks, Milan