105
105
unsigned crypt_getpagesize(void);
106
106
int init_crypto(struct crypt_device *ctx);
108
void logger(struct crypt_device *cd, int class, const char *file, int line, const char *format, ...);
108
void logger(struct crypt_device *cd, int class, const char *file, int line, const char *format, ...) __attribute__ ((format (printf, 5, 6)));
109
109
#define log_dbg(x...) logger(NULL, CRYPT_LOG_DEBUG, __FILE__, __LINE__, x)
110
110
#define log_std(c, x...) logger(c, CRYPT_LOG_NORMAL, __FILE__, __LINE__, x)
111
111
#define log_verbose(c, x...) logger(c, CRYPT_LOG_VERBOSE, __FILE__, __LINE__, x)