ALT Linux Community general discussions
 help / color / mirror / Atom feed
From: Andrey Savchenko <bircoph@altlinux.org>
To: ALT Linux Community general discussions <community@lists.altlinux.org>
Subject: Re: [Comm] LUKS2 с контролем целостности данных
Date: Wed, 9 Sep 2020 15:51:25 +0300
Message-ID: <20200909155125.a5a6ebac3148e5412554c361@altlinux.org> (raw)
In-Reply-To: <afdb2102-c238-4a9d-6401-df69c9073f9e@gmail.com>

[-- Attachment #1: Type: text/plain, Size: 2187 bytes --]

On Wed, 9 Sep 2020 17:38:26 +0500 Stas wrote:
> Поставил девятую платформу.
> 
> Захотел посмотреть на --integrity в LUKS2, действую как написано в
> https://tech-geek.ru/luks2-full-disk-encryption/  (там без журнала, но у
> меня всё же не ноутбук)
> 
>     cryptsetup luksFormat --type luks2 --pbkdf argon2id --cipher
> aegis256-random --integrity aead /dev/md124
> 
> Получил кукиш без масла:
> 
>     Шифр aes-xts-plain64 (размер ключа 512 бит) недоступен.
> 
> Причём сообщение это появляется только после ввода пароля, что
> "несколько" бесит.
> 
> Читаю man cryptsetup - опции нормальные.
> 
> Запустил только с опцией --integrity
> 
>     cryptsetup luksFormat --integrity aead /dev/md124
> 
> Получил тот же кукиш.
> 
> Запустил без опций - выполнилось,
> 
>     cryptsetup luksFormat /dev/md124
> 
> при этом в luksDump есть пресловутый aes-xts-plain64 512 бит, который
> якобы недоступен.
> 
> Data segments:
>   0: crypt
>         offset: 17301504 [bytes]
>         length: (whole device)
>         *cipher: aes-xts-plain64*
>         sector: 512 [bytes]
> 
> Keyslots:
>   0: luks2
>         Key:        512 bits
>         Priority:   normal
>         *Cipher:     aes-xts-plain64*
>         *Cipher key: 512 bits*
>         PBKDF:      argon2i
> 
> Что я делаю не так c --integrity?

luksDump показывает что записано в хедере, а «шифр недоступен» —
вероятнее всего перевод с ругани ядра.

Модули ядра для aes и xts загружены? Ну или в ядро должны быть
вкомпилены, см. CONFIG_CRYPTO_{AES.*,XTS}.

Best regards,
Andrew Savchenko

[-- Attachment #2: Type: application/pgp-signature, Size: 833 bytes --]

           reply	other threads:[~2020-09-09 12:51 UTC|newest]

Thread overview: expand[flat|nested]  mbox.gz  Atom feed
 [parent not found: <afdb2102-c238-4a9d-6401-df69c9073f9e@gmail.com>]

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=20200909155125.a5a6ebac3148e5412554c361@altlinux.org \
    --to=bircoph@altlinux.org \
    --cc=community@lists.altlinux.org \
    /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

ALT Linux Community general discussions

This inbox may be cloned and mirrored by anyone:

	git clone --mirror http://lore.altlinux.org/community/0 community/git/0.git

	# If you have public-inbox 1.1+ installed, you may
	# initialize and index your mirror using the following commands:
	public-inbox-init -V2 community community/ http://lore.altlinux.org/community \
		mandrake-russian@linuxteam.iplabs.ru community@lists.altlinux.org community@lists.altlinux.ru community@lists.altlinux.com
	public-inbox-index community

Example config snippet for mirrors.
Newsgroup available over NNTP:
	nntp://lore.altlinux.org/org.altlinux.lists.community


AGPL code for this site: git clone https://public-inbox.org/public-inbox.git