"Fossies" - the Fresh Open Source Software Archive  

Source code changes of the file "lib/bitlk/bitlk.h" between
cryptsetup-2.3.6.tar.xz and cryptsetup-2.4.0.tar.xz

About: cryptsetup is a utility used to conveniently setup disk encryption based on the dm-crypt kernel module. These include plain dm-crypt volumes, LUKS volumes, loop-AES and TrueCrypt compatible format.

bitlk.h  (cryptsetup-2.3.6.tar.xz):bitlk.h  (cryptsetup-2.4.0.tar.xz)
skipping to change at line 32 skipping to change at line 32
#ifndef _CRYPTSETUP_BITLK_H #ifndef _CRYPTSETUP_BITLK_H
#define _CRYPTSETUP_BITLK_H #define _CRYPTSETUP_BITLK_H
#include <stddef.h> #include <stddef.h>
#include <stdint.h> #include <stdint.h>
#include <stdbool.h> #include <stdbool.h>
struct crypt_device; struct crypt_device;
struct device; struct device;
struct volume_key;
#define BITLK_NONCE_SIZE 12 #define BITLK_NONCE_SIZE 12
#define BITLK_SALT_SIZE 16 #define BITLK_SALT_SIZE 16
#define BITLK_VMK_MAC_TAG_SIZE 16 #define BITLK_VMK_MAC_TAG_SIZE 16
#define BITLK_STATE_NORMAL 0x0004 #define BITLK_STATE_NORMAL 0x0004
typedef enum { typedef enum {
BITLK_ENCRYPTION_TYPE_NORMAL = 0, BITLK_ENCRYPTION_TYPE_NORMAL = 0,
BITLK_ENCRYPTION_TYPE_EOW, BITLK_ENCRYPTION_TYPE_EOW,
skipping to change at line 120 skipping to change at line 121
uint64_t volume_header_offset; uint64_t volume_header_offset;
uint64_t volume_header_size; uint64_t volume_header_size;
struct bitlk_vmk *vmks; struct bitlk_vmk *vmks;
struct bitlk_fvek *fvek; struct bitlk_fvek *fvek;
}; };
int BITLK_read_sb(struct crypt_device *cd, struct bitlk_metadata *params); int BITLK_read_sb(struct crypt_device *cd, struct bitlk_metadata *params);
int BITLK_dump(struct crypt_device *cd, struct device *device, struct bitlk_meta data *params); int BITLK_dump(struct crypt_device *cd, struct device *device, struct bitlk_meta data *params);
int BITLK_activate(struct crypt_device *cd, int BITLK_get_volume_key(struct crypt_device *cd,
const char *name, const char *password,
const char *password, size_t passwordLen,
size_t passwordLen, const struct bitlk_metadata *params,
const struct bitlk_metadata *params, struct volume_key **open_fvek_key);
uint32_t flags);
int BITLK_activate_by_passphrase(struct crypt_device *cd,
const char *name,
const char *password,
size_t passwordLen,
const struct bitlk_metadata *params,
uint32_t flags);
int BITLK_activate_by_volume_key(struct crypt_device *cd,
const char *name,
const char *volume_key,
size_t volume_key_size,
const struct bitlk_metadata *params,
uint32_t flags);
void BITLK_bitlk_fvek_free(struct bitlk_fvek *fvek); void BITLK_bitlk_fvek_free(struct bitlk_fvek *fvek);
void BITLK_bitlk_vmk_free(struct bitlk_vmk *vmk); void BITLK_bitlk_vmk_free(struct bitlk_vmk *vmk);
void BITLK_bitlk_metadata_free(struct bitlk_metadata *params); void BITLK_bitlk_metadata_free(struct bitlk_metadata *params);
#endif #endif
 End of changes. 2 change blocks. 
6 lines changed or deleted 20 lines changed or added

Home  |  About  |  Features  |  All  |  Newest  |  Dox  |  Diffs  |  RSS Feeds  |  Screenshots  |  Comments  |  Imprint  |  Privacy  |  HTTP(S)