* Re: [Comm] LUKS2 с контролем целостности данных
@ 2020-09-09 12:51 ` Andrey Savchenko
0 siblings, 0 replies; only message in thread
From: Andrey Savchenko @ 2020-09-09 12:51 UTC (permalink / raw)
To: ALT Linux Community general discussions
[-- 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 --]
^ permalink raw reply [flat|nested] only message in thread
only message in thread, other threads:[~2020-09-09 12:51 UTC | newest]
Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2020-09-09 12:51 ` [Comm] LUKS2 с контролем целостности данных Andrey Savchenko
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