mirror of
https://gitlab.com/cryptsetup/cryptsetup.git
synced 2025-12-13 11:50:10 +01:00
Move verity_sb definition to private file.
This commit is contained in:
@@ -30,6 +30,22 @@
|
|||||||
#include "verity.h"
|
#include "verity.h"
|
||||||
#include "internal.h"
|
#include "internal.h"
|
||||||
|
|
||||||
|
/* FIXME: not yet final on-disk format! Add UUID etc */
|
||||||
|
struct verity_sb {
|
||||||
|
uint8_t signature[8];
|
||||||
|
uint8_t version;
|
||||||
|
uint8_t data_block_bits;
|
||||||
|
uint8_t hash_block_bits;
|
||||||
|
uint8_t pad1[1];
|
||||||
|
uint16_t salt_size;
|
||||||
|
uint8_t pad2[2];
|
||||||
|
uint32_t data_blocks_hi;
|
||||||
|
uint32_t data_blocks_lo;
|
||||||
|
uint8_t algorithm[16];
|
||||||
|
uint8_t salt[VERITY_MAX_SALT_SIZE];
|
||||||
|
uint8_t pad3[88];
|
||||||
|
};
|
||||||
|
|
||||||
/* Read verity superblock from disk */
|
/* Read verity superblock from disk */
|
||||||
int VERITY_read_sb(struct crypt_device *cd,
|
int VERITY_read_sb(struct crypt_device *cd,
|
||||||
const char *device,
|
const char *device,
|
||||||
|
|||||||
@@ -30,22 +30,6 @@
|
|||||||
struct crypt_device;
|
struct crypt_device;
|
||||||
struct crypt_params_verity;
|
struct crypt_params_verity;
|
||||||
|
|
||||||
/* FIXME: not yet final on-disk format! Add UUID etc */
|
|
||||||
struct verity_sb {
|
|
||||||
uint8_t signature[8];
|
|
||||||
uint8_t version;
|
|
||||||
uint8_t data_block_bits;
|
|
||||||
uint8_t hash_block_bits;
|
|
||||||
uint8_t pad1[1];
|
|
||||||
uint16_t salt_size;
|
|
||||||
uint8_t pad2[2];
|
|
||||||
uint32_t data_blocks_hi;
|
|
||||||
uint32_t data_blocks_lo;
|
|
||||||
uint8_t algorithm[16];
|
|
||||||
uint8_t salt[VERITY_MAX_SALT_SIZE];
|
|
||||||
uint8_t pad3[88];
|
|
||||||
};
|
|
||||||
|
|
||||||
int VERITY_read_sb(struct crypt_device *cd,
|
int VERITY_read_sb(struct crypt_device *cd,
|
||||||
const char *device,
|
const char *device,
|
||||||
uint64_t sb_offset,
|
uint64_t sb_offset,
|
||||||
|
|||||||
Reference in New Issue
Block a user