]> git.lizzy.rs Git - plan9front.git/blob - sys/src/cmd/cryptsetup/crypt.h
kernel: keep segment locked for data2txt
[plan9front.git] / sys / src / cmd / cryptsetup / crypt.h
1 // Author Taru Karttunen <taruti@taruti.net>
2 // This file can be used as both Public Domain or Creative Commons CC0.
3 #include <libsec.h>
4
5 typedef struct {
6         unsigned char Salt[16];
7         unsigned char Key[32];
8 } Slot;
9
10 typedef struct {
11         unsigned char Master[32];
12         Slot Slots[8];
13         AESstate C1, C2;
14 } XtsState;