/*
 *  encdata.h
 *
 *  Copyright (c) 2022 Whamcloud
 */

#ifndef _ENCDATA_H
#define _ENCDATA_H

/* Define a fixed 4096-byte encryption unit size */
/* Must be identical to LUSTRE_ENCRYPTION_UNIT_SIZE */
#define EXT4_ENCRYPTION_BLOCKBITS 12
#define EXT4_ENCRYPTION_UNIT_SIZE ((size_t)1 << EXT4_ENCRYPTION_BLOCKBITS)
#define EXT4_ENCRYPTION_MASK      (~(EXT4_ENCRYPTION_UNIT_SIZE - 1))

#endif /* _ENCDATA_H */
