#include <unistd.h>
#include <sys/stat.h>
/* fix warnings */
#include <string.h>
#include "config.h"
#include "hymn.h"
#include "filename.h"
bin_PROGRAMS = hymn
hymn_SOURCES = cli.c filename.c filename.h
hymn_LDADD = ../hymn/libhymn.a @CLI_LDADD@
hymn_LDADD = ../hymn/libhymn.a /usr/lib/libsysfs.a @CLI_LDADD@
hymn_LDFLAGS = -static
INCLUDES = -I@top_srcdir@/src/hymn
#include "aes.h"
/* forward S-box */
static uint32 FSb[256] =
* USA.
*****************************************************************************/
#ifdef HAVE_STRING_H
# include <string.h>
#endif
/* container atoms */
#define ATOM_ALB UINT32_FROM_BYTES(0xa9,'a','l','b')
#define ATOM_ART UINT32_FROM_BYTES(0xa9,'A','R','T')
#include "drms.h"
#include "drmstables.h"
/*****************************************************************************
* aes_s: AES keys structure
*****************************************************************************
static int ERR_COULDNT_UPGRADE = 12;
/* error message array -- must keep in sync w/ hymn.h */
static const char *ERROR_MESSAGES[13] =
static const char *ERROR_MESSAGES[14] =
{
/*SUCCESS*/ "Success.",
/*ERR_FILEREAD*/ "Couldn't open file: %s",
#include <dirent.h>
#include <fcntl.h>
#include <stdio.h>
#ifdef _WIN32
#include <windows.h>
#include <tchar.h>
for (i = 0, x = 0; i < 16; i++, x+= 256) {
p_key[i] = scramble_vector[p_key[i] + x];
}
/* interface */
int scramble(unsigned char* p_key);
#endif /* __SCRAMBLE_H__ */