All of lore.kernel.org
 help / color / mirror / Atom feed
From: Milan Broz <gmazyland@gmail.com>
To: ".. ink .." <mhogomchungu@gmail.com>
Cc: dm-crypt@saout.de
Subject: Re: [dm-crypt] inconsistent behavior btw a binary and library call when closing truecrypt volume made up of multiple algorithms
Date: Tue, 19 Feb 2013 12:37:05 +0100	[thread overview]
Message-ID: <512363E1.7040703@gmail.com> (raw)
In-Reply-To: <CAFnMBaRGXe952cN-n=s3v9CYgW8nPidisin+CJhEixEOP0o9AQ@mail.gmail.com>

On 02/18/2013 05:58 AM, .. ink .. wrote:
> 
> test:
> 
> 1. create a truecrypt volume using multiple algorithms,i went with AES-twofist-serpent
> 2. open the volume using cryptsetup with "cryptsetup tcryptOpen ttt ttt"
> 3. ls -l /dev/mapper/ will give:
> 
> crw------- 1 root root 10, 236 Feb 17 22:37 /dev/mapper/control
> lrwxrwxrwx 1 root root       7 Feb 17 23:45 /dev/mapper/ttt -> ../dm-2
> lrwxrwxrwx 1 root root       7 Feb 17 23:45 /dev/mapper/ttt_1 -> ../dm-1
> lrwxrwxrwx 1 root root       7 Feb 17 23:45 /dev/mapper/ttt_2 -> ../dm-0
> 
> It looks like 3 mapper will be created,each per algorithm.
> 
> closing the mapper with " cryptsetup tcryptClose ttt" will remove all three mappers expected.
> 
> closing the mapper through the library "crypt_deactivate( NULL,"ttt"
> )" will not remove all 3,just the "ttt" one.With the library call,
> all 3 seem to require to be removed individually.> 
> Is this behavior of the library expected?

Kind of... if NULL is in context. If you use context (init_by_name) it should work.

Anyway, I filled (and added some comment)
http://code.google.com/p/cryptsetup/issues/detail?id=147
(also for other problems you reported - see issues 146,148)
will update it there once I have time to fix it.

Thanks,
Milan

  reply	other threads:[~2013-02-19 11:37 UTC|newest]

Thread overview: 3+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2013-02-18  4:58 [dm-crypt] inconsistent behavior btw a binary and library call when closing truecrypt volume made up of multiple algorithms .. ink ..
2013-02-19 11:37 ` Milan Broz [this message]
2013-03-17 18:56   ` Milan Broz

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=512363E1.7040703@gmail.com \
    --to=gmazyland@gmail.com \
    --cc=dm-crypt@saout.de \
    --cc=mhogomchungu@gmail.com \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.