summaryrefslogtreecommitdiff
path: root/sys/src/cmd/cryptsetup/crypt.h
blob: 314077a315a69062218c458dfe55f95ab7e678aa (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
// Author Taru Karttunen <taruti@taruti.net>
// This file can be used as both Public Domain or Creative Commons CC0.
#include <libsec.h>

typedef struct {
	unsigned char Salt[16];
	unsigned char Key[32];
} Slot;

typedef struct {
	unsigned char Master[32];
	Slot Slots[8];
	AESstate C1, C2;
} XtsState;