From: Milan Broz <gmazyland@gmail.com>
To: Ralf Ramsauer <ralf+dm@ramses-pyramidenbau.de>, dm-crypt@saout.de
Subject: Re: [dm-crypt] What are the supported ciphers
Date: Fri, 01 May 2015 20:30:15 +0200 [thread overview]
Message-ID: <5543C637.5070400@gmail.com> (raw)
In-Reply-To: <5543C1FE.2060200@ramses-pyramidenbau.de>
On 05/01/2015 08:12 PM, Ralf Ramsauer wrote:
> Hi David,
>
> you can use
>
> cat /proc/crypto
>
> this is part of an example output:
>
> driver : xts-aes-aesni
> module : kernel
> priority : 400
> refcnt : 4
> selftest : passed
> type : ablkcipher
> async : yes
> blocksize : 16
> min keysize : 32
> max keysize : 64
> ivsize : 16
> geniv : <default>
>
> which means that this is the AES cipher driven in the XTS mode of operation. The keysize may be 32, 48 or 64 Byte. Last you need a initialisation vector generation algorithm (like ESSIV or Plain) which generates (at least) 16 Bytes.
> I remember this page http://code.google.com/p/cryptsetup/wiki/DMCrypt#IV_generators which is not accessible any more. I have in mind, that it contained a list of possible IVs.
>
> Milan, Arno, is this page available at the new wiki? I couldn't find it.
> Besides that, maybe it is a good idea to list all possible combinations of cipher, mode and IV generator together with a 'recommendation' in the FAQ.
yes, it is here, links slightly changed because of markdown syntax:
https://gitlab.com/cryptsetup/cryptsetup/wikis/DMCrypt#iv-generators
FAQ is here
https://gitlab.com/cryptsetup/cryptsetup/wikis/FrequentlyAskedQuestions
Some common combination you get when start "cryptsetup benchmark",
if kernel does not support some variant, you will see it.
Anyway, general advice: if you are not expert, do not experiment here and use default.
(to see default - run "cryptsetup --help")
Milan
next prev parent reply other threads:[~2015-05-01 18:30 UTC|newest]
Thread overview: 5+ messages / expand[flat|nested] mbox.gz Atom feed top
2015-05-01 15:58 [dm-crypt] What are the supported ciphers David Backer
2015-05-01 18:12 ` Ralf Ramsauer
2015-05-01 18:19 ` Ralf Ramsauer
2015-05-01 18:30 ` Milan Broz [this message]
-- strict thread matches above, loose matches on Subject: below --
2015-05-04 16:56 David Backer
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=5543C637.5070400@gmail.com \
--to=gmazyland@gmail.com \
--cc=dm-crypt@saout.de \
--cc=ralf+dm@ramses-pyramidenbau.de \
/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 a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox