Add LUKS2 header size constant (#140)

Signed-off-by: Daniel Weiße <dw@edgeless.systems>
This commit is contained in:
Daniel Weiße 2022-05-13 09:24:54 +02:00 committed by GitHub
parent 5ad34e0425
commit 9c5590bbce

View File

@ -19,6 +19,9 @@ import (
)
const (
// LUKSHeaderSize is the amount of bytes taken up by the header of a LUKS2 partition.
// The header is 16MiB (1048576 Bytes * 16).
LUKSHeaderSize = 16777216
cryptPrefix = "/dev/mapper/"
integritySuffix = "_dif"
integrityFSSuffix = "-integrity"